(element, event)
| 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() { |
no test coverage detected