MCPcopy Create free account
hub / github.com/breck7/scroll / off

Function off

external/.scrollLibs.js:1951–1966  ·  view source on GitHub ↗
(emitter, type, f)

Source from the content-addressed store, hash-verified

1949 }
1950
1951 function off(emitter, type, f) {
1952 if (emitter.removeEventListener) {
1953 emitter.removeEventListener(type, f, false)
1954 } else if (emitter.detachEvent) {
1955 emitter.detachEvent("on" + type, f)
1956 } else {
1957 var map$$1 = emitter._handlers,
1958 arr = map$$1 && map$$1[type]
1959 if (arr) {
1960 var index = indexOf(arr, f)
1961 if (index > -1) {
1962 map$$1[type] = arr.slice(0, index).concat(arr.slice(index + 1))
1963 }
1964 }
1965 }
1966 }
1967
1968 function signal(emitter, type /*, values...*/) {
1969 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 3

indexOfFunction · 0.85
concatMethod · 0.80
sliceMethod · 0.80

Tested by

no test coverage detected