MCPcopy
hub / github.com/angular-ui/ui-router / removeHandler

Function removeHandler

test/angular/1.5/angular.js:3054–3063  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

3052 } else {
3053
3054 var removeHandler = function(type) {
3055 var listenerFns = events[type];
3056 if (isDefined(fn)) {
3057 arrayRemove(listenerFns || [], fn);
3058 }
3059 if (!(isDefined(fn) && listenerFns && listenerFns.length > 0)) {
3060 removeEventListenerFn(element, type, handle);
3061 delete events[type];
3062 }
3063 };
3064
3065 forEach(type.split(' '), function(type) {
3066 removeHandler(type);

Callers 1

jqLiteOffFunction · 0.70

Calls 3

isDefinedFunction · 0.70
arrayRemoveFunction · 0.70
removeEventListenerFnFunction · 0.70

Tested by

no test coverage detected