Sha256: 95885dce1b8861e0a799abd7e73161d8004c6f81be662550343440bd9179dc40
Contents?: true
Size: 776 Bytes
Versions: 17
Compression:
Stored size: 776 Bytes
Contents
/** * Module dependencies. */ var Emitter; try { Emitter = require('emitter'); } catch(e){ Emitter = require('emitter-component'); } /** * Module exports. */ module.exports = Emitter; /** * Compatibility with `WebSocket#addEventListener`. * * @api public */ Emitter.prototype.addEventListener = Emitter.prototype.on; /** * Compatibility with `WebSocket#removeEventListener`. * * @api public */ Emitter.prototype.removeEventListener = Emitter.prototype.off; /** * Node-compatible `EventEmitter#removeListener` * * @api public */ Emitter.prototype.removeListener = Emitter.prototype.off; /** * Node-compatible `EventEmitter#removeAllListeners` * * @api public */ Emitter.prototype.removeAllListeners = function(){ this._callbacks = {}; };
Version data entries
17 entries across 17 versions & 2 rubygems