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

Commit 6d4679a2 by sdepold

removed/replaced addEventEmitter with custom event emitter

1 parent edf38adb
Showing with 1 additions and 2 deletions
......@@ -4,7 +4,7 @@ module.exports = (function() {
var Query = function(database, callee, options) {
throw new Error('Constructor was not overwritten!')
}
Utils.addEventEmitter(Query)
Utils._.extend(Query.prototype, require("../emitters/custom-event-emitter").prototype)
Query.prototype.run = function(sql) {
throw new Error("The run method wasn't overwritten!")
......
......@@ -15,7 +15,6 @@ module.exports = (function() {
emitters = emitters || []
emitters.forEach(function(emitter) { self.add(emitter) })
}
Utils.addEventEmitter(QueryChainer)
QueryChainer.prototype.add = function(emitterOrKlass, method, params, options) {
if(!!method) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!