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

Commit fa9f86f3 by Sorin Stoiana

nicer variable names

1 parent b763fd34
Showing with 2 additions and 2 deletions
...@@ -36,8 +36,8 @@ module.exports = (function() { ...@@ -36,8 +36,8 @@ module.exports = (function() {
CustomEventEmitter.prototype.done = CustomEventEmitter.prototype.done =
CustomEventEmitter.prototype.complete = CustomEventEmitter.prototype.complete =
function(fct) { function(fct) {
this.on('failure', function(d){ fct(d, null) }) this.on('failure', function(err) { fct(err, null) })
.on('success', function(d){ fct(null, d) }) .on('success', function(result) { fct(null, result) })
return this return this
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!