MCPcopy Index your code
hub / github.com/angular-ui/ui-router / removeHandler

Function removeHandler

test/angular/1.4/angular.js:2892–2901  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

2890 } else {
2891
2892 var removeHandler = function(type) {
2893 var listenerFns = events[type];
2894 if (isDefined(fn)) {
2895 arrayRemove(listenerFns || [], fn);
2896 }
2897 if (!(isDefined(fn) && listenerFns && listenerFns.length > 0)) {
2898 removeEventListenerFn(element, type, handle);
2899 delete events[type];
2900 }
2901 };
2902
2903 forEach(type.split(' '), function(type) {
2904 removeHandler(type);

Callers 1

jqLiteOffFunction · 0.70

Calls 3

isDefinedFunction · 0.70
arrayRemoveFunction · 0.70
removeEventListenerFnFunction · 0.70

Tested by

no test coverage detected