var componentLookup = require('./util').$__componentLookup; var isArray = Array.isArray; var listenersAttached; function getEventAttribute(el, attrName) { var virtualAttrs = el._vattrs; if (virtualAttrs) { return el._vattrs[attrName]; } else { var attrValue = el.getAttribute(attrName); if (attrValue) { // [ ("|") do { if ((target = getEventAttribute(curNode, attrName))) { delegateEvent(curNode, target, event); if (propagationStopped) { break; } } } while((curNode = curNode.parentNode) && curNode.getAttribute); }); }); } function noop() {} exports.$__handleNodeAttach = noop; exports.$__handleNodeDetach = noop; exports.$__delegateEvent = delegateEvent; exports.$__getEventAttribute = getEventAttribute; exports.$__init = function(doc) { if (!listenersAttached) { listenersAttached = true; attachBubbleEventListeners(doc); } };