• Home
  • Raw
  • Download

Lines Matching refs:EventEmitter

87 function EventEmitter(opts) {  class
88 EventEmitter.init.call(this, opts);
90 module.exports = EventEmitter;
95 EventEmitter.EventEmitter = EventEmitter;
97 EventEmitter.usingDomains = false;
99 EventEmitter.captureRejectionSymbol = kRejection;
100 ObjectDefineProperty(EventEmitter, 'captureRejections', {
102 return EventEmitter.prototype[kCapture];
110 EventEmitter.prototype[kCapture] = value;
115 EventEmitter.errorMonitor = kErrorMonitor;
118 ObjectDefineProperty(EventEmitter.prototype, kCapture, {
124 EventEmitter.prototype._events = undefined;
125 EventEmitter.prototype._eventsCount = 0;
126 EventEmitter.prototype._maxListeners = undefined;
139 ObjectDefineProperty(EventEmitter, 'defaultMaxListeners', {
154 ObjectDefineProperties(EventEmitter, {
175 EventEmitter.setMaxListeners =
202 EventEmitter.init = function(opts) {
222 this[kCapture] = EventEmitter.prototype[kCapture];
274 EventEmitter.prototype.setMaxListeners = function setMaxListeners(n) {
284 return EventEmitter.defaultMaxListeners;
292 EventEmitter.prototype.getMaxListeners = function getMaxListeners() {
349 EventEmitter.prototype.emit = function emit(type, ...args) {
368 ErrorCaptureStackTrace(capture, EventEmitter.prototype.emit);
496 EventEmitter.prototype.addListener = function addListener(type, listener) {
500 EventEmitter.prototype.on = EventEmitter.prototype.addListener;
509 EventEmitter.prototype.prependListener =
538 EventEmitter.prototype.once = function once(type, listener) {
552 EventEmitter.prototype.prependOnceListener =
566 EventEmitter.prototype.removeListener =
617 EventEmitter.prototype.off = EventEmitter.prototype.removeListener;
626 EventEmitter.prototype.removeAllListeners =
695 EventEmitter.prototype.listeners = function listeners(type) {
705 EventEmitter.prototype.rawListeners = function rawListeners(type) {
717 EventEmitter.listenerCount = function(emitter, type) {
724 EventEmitter.prototype.listenerCount = listenerCount;
753 EventEmitter.prototype.eventNames = function eventNames() {