event-mouseenter.js revision b402e20da315b3e86bd6e770942e07d182bcba1d
/**
* <p>Adds subscription and delegation support for mouseenter and mouseleave
* events. Unlike mouseover and mouseout, these events aren't fired from child
* elements of a subscribed node.</p>
*
* <p>This avoids receiving three mouseover notifications from a setup like</p>
*
* <pre><code>div#container > p > a[href]</code></pre>
*
* <p>where</p>
*
* <pre><code>Y.one('#container').on('mouseover', callback)</code></pre>
*
* <p>When the mouse moves over the link, one mouseover event is fired from
* #container, then when the mouse moves over the p, another mouseover event is
* fired and bubbles to #container, causing a second notification, and finally
* when the mouse moves over the link, a third mouseover event is fired and
* bubbles to #container for a third notification.</p>
*
* <p>By contrast, using mouseenter instead of mouseover, the callback would be
* executed only once when the mouse moves over #container.</p>
*
* @module event
* @submodule event-mouseenter
*/
toArray = Y.Array,
noop = function () {},
config = {
proxyType: "mouseover",
relProperty: "fromElement",
}
},
args = [
this.proxyType,
this._notify,
el,
null,
this.relProperty,
notifier];
// node.on(this.proxyType, notify, null, notifier);
},
},
args = [
this.proxyType,
noop,
el,
null,
];
},
if (this.args) {
}
if (currentTarget) {
if (!e) {
}
// TODO: where is notifier? args? this.notifier?
if (ret === false) {
break;
}
}
}
}
return ret;
},
}
};
proxyType: "mouseout",
relProperty: "toElement"
}), true);