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