(targetParentNode, targetNode, event)
| 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); |
no test coverage detected