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

Commit da0eb3e6 by Sascha Depold

passing reference to event emitter to the function

1 parent 1ab0f56b
Showing with 1 additions and 1 deletions
......@@ -156,7 +156,7 @@ Utils.addEventEmitter(CustomEventEmitter)
CustomEventEmitter.prototype.run = function() {
var self = this
setTimeout(function(){ self.fct() }, 5) // delay the function call and return the emitter
setTimeout(function(){ self.fct.call(self, self) }, 5) // delay the function call and return the emitter
return this
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!