mirror of https://github.com/embarklabs/embark.git
20 lines
375 B
JavaScript
20 lines
375 B
JavaScript
let __MessageEvents = function() {
|
|
this.cb = function() {};
|
|
};
|
|
|
|
__MessageEvents.prototype.then = function(cb) {
|
|
this.cb = cb;
|
|
};
|
|
|
|
__MessageEvents.prototype.error = function(err) {
|
|
return err;
|
|
};
|
|
|
|
__MessageEvents.prototype.stop = function() {
|
|
this.filter.stopWatching();
|
|
};
|
|
|
|
if (typeof module !== 'undefined' && module.exports) {
|
|
module.exports = __MessageEvents;
|
|
}
|