MCPcopy Create free account
hub / github.com/angular-ui/ui-grid / findCallbacks

Function findCallbacks

lib/test/angular/1.4.3/angular-animate.js:1992–2006  ·  view source on GitHub ↗
(element, event)

Source from the content-addressed store, hash-verified

1990 }
1991
1992 function findCallbacks(element, event) {
1993 var targetNode = getDomNode(element);
1994
1995 var matches = [];
1996 var entries = callbackRegistry[event];
1997 if (entries) {
1998 forEach(entries, function(entry) {
1999 if (entry.node.contains(targetNode)) {
2000 matches.push(entry.callback);
2001 }
2002 });
2003 }
2004
2005 return matches;
2006 }
2007
2008 function triggerCallback(event, element, phase, data) {
2009 $$rAF(function() {

Callers 1

triggerCallbackFunction · 0.70

Calls 2

getDomNodeFunction · 0.70
forEachFunction · 0.70

Tested by

no test coverage detected