不要怂,就是干,撸起袖子干!

Commit 9854b2f7 by Sascha Depold

inherit-helper

1 parent f878edbc
Showing with 6 additions and 1 deletions
var client = new (require("mysql").Client)()
, sys = require("sys")
var Utils = module.exports = {
_: (function() {
var _ = require("underscore")
......@@ -19,8 +21,11 @@ var Utils = module.exports = {
return _
})(),
inherit: function(klass, super) {
sys.inherits(klass, super)
},
addEventEmitter: function(_class) {
require("sys").inherits(_class, require('events').EventEmitter)
Utils.inherit(_class, require('events').EventEmitter)
},
addTicks: function(s) {
return '`' + Utils.removeTicks(s) + '`'
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!