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

Function findCallbacks

test/angular/1.6/angular-animate.js:2327–2341  ·  view source on GitHub ↗
(targetParentNode, targetNode, event)

Source from the content-addressed store, hash-verified

2325 };
2326
2327 function findCallbacks(targetParentNode, targetNode, event) {
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 function filterFromRegistry(list, matchContainer, matchCallback) {
2344 var containerNode = extractElementNode(matchContainer);

Callers 1

notifyProgressFunction · 0.70

Calls 1

forEachFunction · 0.70

Tested by

no test coverage detected