diff -r 322d0feea350 -r 89ef5ed3c48b src/cm/media/js/lib/yui/yui_3.10.3/api/modules/event-mouseenter.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/cm/media/js/lib/yui/yui_3.10.3/api/modules/event-mouseenter.html Tue Jul 16 14:29:46 2013 +0200 @@ -0,0 +1,1602 @@ + + + + + event-mouseenter - YUI 3 + + + + + + + + +
+
+
+ +

+ +
+
+ API Docs for: 3.10.3 +
+
+
+ +
+ +
+
+
+ Show: + + + + + + + +
+ + +
+
+
+

event-mouseenter Module

+
+ + + User Guide & Examples + + + + + + + + + + +
+ + + +
+

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.

+ +

This avoids receiving three mouseover notifications from a setup like

+ +
div#container > p > a[href]
+ +

where

+ +
Y.one('#container').on('mouseover', callback)
+ +

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.

+ +

By contrast, using mouseenter instead of mouseover, the callback would be +executed only once when the mouse moves over #container.

+
+ + + +
+
+ +
+ +
+ +
+
+ +
+
+
+
+
+
+ + + + + + + + + +