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

Function findCallbacks

lib/test/angular/1.5.0/angular-animate.js:2321–2338  ·  view source on GitHub ↗
(parent, element, event)

Source from the content-addressed store, hash-verified

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

Callers 1

notifyProgressFunction · 0.70

Calls 2

getDomNodeFunction · 0.70
forEachFunction · 0.70

Tested by

no test coverage detected