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

Commit 48fe9864 by Michael Weibel

Make travis happy & make my need for semicolons happy ;)

1 parent dca436ec
Showing with 10 additions and 10 deletions
var util = require("util")
, EventEmitter = require("events").EventEmitter
, EventEmitter = require("events").EventEmitter;
module.exports = (function() {
var CustomEventEmitter = function(fct) {
this.fct = fct;
var self = this;
}
util.inherits(CustomEventEmitter, EventEmitter)
util.inherits(CustomEventEmitter, EventEmitter);
CustomEventEmitter.prototype.run = function() {
var self = this;
......@@ -23,26 +23,26 @@ module.exports = (function() {
CustomEventEmitter.prototype.success =
CustomEventEmitter.prototype.ok =
function(fct) {
this.on('success', fct)
return this
this.on('success', fct);
return this;
}
CustomEventEmitter.prototype.failure =
CustomEventEmitter.prototype.fail =
CustomEventEmitter.prototype.error =
function(fct) {
this.on('error', fct)
return this
this.on('error', fct);
return this;
}
CustomEventEmitter.prototype.done =
CustomEventEmitter.prototype.complete =
function(fct) {
this.on('error', function(err) { fct(err, null) })
.on('success', function(result) { fct(null, result) })
return this
.on('success', function(result) { fct(null, result) });
return this;
}
return CustomEventEmitter
})()
return CustomEventEmitter;
})();
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!