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

Function findCallbacks

test/angular/1.4/angular-animate.js:2324–2341  ·  view source on GitHub ↗
(parent, element, event)

Source from the content-addressed store, hash-verified

2322 };
2323
2324 function findCallbacks(parent, element, event) {
2325 var targetNode = getDomNode(element);
2326 var targetParentNode = getDomNode(parent);
2327
2328 var matches = [];
2329 var entries = callbackRegistry[event];
2330 if (entries) {
2331 forEach(entries, function(entry) {
2332 if (contains.call(entry.node, targetNode)) {
2333 matches.push(entry.callback);
2334 } else if (event === 'leave' && contains.call(entry.node, targetParentNode)) {
2335 matches.push(entry.callback);
2336 }
2337 });
2338 }
2339
2340 return matches;
2341 }
2342
2343 return {
2344 on: function(event, container, callback) {

Callers 1

notifyProgressFunction · 0.70

Calls 2

getDomNodeFunction · 0.70
forEachFunction · 0.70

Tested by

no test coverage detected