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

Function findCallbacks

lib/test/angular/1.8.0/angular-animate.js:2318–2332  ·  view source on GitHub ↗
(targetParentNode, targetNode, event)

Source from the content-addressed store, hash-verified

2316 };
2317
2318 function findCallbacks(targetParentNode, targetNode, event) {
2319 var matches = [];
2320 var entries = callbackRegistry[event];
2321 if (entries) {
2322 forEach(entries, function(entry) {
2323 if (contains.call(entry.node, targetNode)) {
2324 matches.push(entry.callback);
2325 } else if (event === 'leave' && contains.call(entry.node, targetParentNode)) {
2326 matches.push(entry.callback);
2327 }
2328 });
2329 }
2330
2331 return matches;
2332 }
2333
2334 function filterFromRegistry(list, matchContainer, matchCallback) {
2335 var containerNode = extractElementNode(matchContainer);

Callers 1

notifyProgressFunction · 0.70

Calls 1

forEachFunction · 0.70

Tested by

no test coverage detected