MCPcopy Index your code
hub / github.com/DHTMLX/gantt / off

Function off

samples/common/codehighlight/codemirror.js:549–562  ·  view source on GitHub ↗
(emitter, type, f)

Source from the content-addressed store, hash-verified

547 }
548
549 function off(emitter, type, f) {
550 if (emitter.removeEventListener) {
551 emitter.removeEventListener(type, f, false);
552 } else if (emitter.detachEvent) {
553 emitter.detachEvent("on" + type, f);
554 } else {
555 var map = emitter._handlers, arr = map && map[type];
556 if (arr) {
557 var index = indexOf(arr, f);
558 if (index > -1)
559 { map[type] = arr.slice(0, index).concat(arr.slice(index + 1)); }
560 }
561 }
562 }
563
564 function signal(emitter, type /*, values...*/) {
565 var handlers = getHandlers(emitter, type);

Callers 6

eventMixinFunction · 0.85
upFunction · 0.85
leftButtonStartDragFunction · 0.85
doneFunction · 0.85
mouseupFunction · 0.85
fromTextAreaFunction · 0.85

Calls 2

indexOfFunction · 0.85
detachEventMethod · 0.65

Tested by

no test coverage detected