embark/lib/modules/whisper/js/message_events.js

20 lines
375 B
JavaScript
Raw Normal View History

2017-12-31 02:02:46 +00:00
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();
};
2018-08-08 16:35:01 +00:00
if (typeof module !== 'undefined' && module.exports) {
module.exports = __MessageEvents;
}