MCPcopy Index your code
hub / github.com/nodejs/node / off

Method off

lib/internal/event_target.js:952–957  ·  view source on GitHub ↗

* @param {string} type * @param {EventTargetCallback|EventListener} listener * @param {{ * capture?: boolean, * }} [options] * @returns {NodeEventTarget}

(type, listener, options)

Source from the content-addressed store, hash-verified

950 * @returns {NodeEventTarget}
951 */
952 off(type, listener, options) {
953 if (!isNodeEventTarget(this))
954 throw new ERR_INVALID_THIS('NodeEventTarget');
955 this.removeEventListener(type, listener, options);
956 return this;
957 }
958
959 /**
960 * @param {string} type

Callers 13

net.jsFile · 0.45
handleMessageFunction · 0.45
errorHandlerFunction · 0.45
destroyIPCMethod · 0.45
closeMethod · 0.45
initFunction · 0.45
createAsyncIteratorFunction · 0.45
pumpToNodeFunction · 0.45
onDrainMethod · 0.45
onErrorMethod · 0.45
runScriptInContextFunction · 0.45

Calls 2

isNodeEventTargetFunction · 0.85
removeEventListenerMethod · 0.65

Tested by

no test coverage detected