MCPcopy Index your code
hub / github.com/csev/py4e / off

Function off

tools/pythonauto/static/codemirror/codemirror.js:5512–5523  ·  view source on GitHub ↗
(emitter, type, f)

Source from the content-addressed store, hash-verified

5510 }
5511
5512 function off(emitter, type, f) {
5513 if (emitter.removeEventListener)
5514 emitter.removeEventListener(type, f, false);
5515 else if (emitter.detachEvent)
5516 emitter.detachEvent("on" + type, f);
5517 else {
5518 var arr = emitter._handlers && emitter._handlers[type];
5519 if (!arr) return;
5520 for (var i = 0; i < arr.length; ++i)
5521 if (arr[i] == f) { arr.splice(i, 1); break; }
5522 }
5523 }
5524
5525 function signal(emitter, type /*, values...*/) {
5526 var arr = emitter._handlers && emitter._handlers[type];

Callers 13

unregisterFunction · 0.70
onMouseDownFunction · 0.70
doneFunction · 0.70
mouseupFunction · 0.70
codemirror.jsFile · 0.70
eventMixinFunction · 0.70
unregisterFunction · 0.50
leftButtonStartDragFunction · 0.50
doneFunction · 0.50
upFunction · 0.50
mouseupFunction · 0.50
codemirror.jsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected