mouseentermouseleave.js revision 3f3aa287185afb5d48d7ef0717054a154c372dc9
/**
* Adds support for mouseenter/mouseleave events
* @module event
* @submodule event-mouseenter
*/
e.container = e.currentTarget;
e.currentTarget = node;
}
},
var relatedTarget = e.relatedTarget,
if (spec) {
var bReturnVal;
bReturnVal = true;
}
return bReturnVal;
});
}
else {
}
},
}),
eventConfig = {
}
if (!Y.getEvent(sEventName)) {
// Set up the listener on the container
}, el);
}
// Remove the element (and the spec--if defined) from the args
if (sSelector) {
}
else {
}
// Subscribe to the custom event for the delegation spec
}
};
/**
* Sets up a "mouseenter" listener—a listener that is called the first time
* the user's mouse enters the specified element(s). By passing a CSS selector
* as the fourth argument, can also be used to delegate a "mouseenter"
* event listener.
*
* @event mouseenter
* @param type {string} "mouseenter"
* @param fn {function} The method the event invokes.
* @param el {string|node} The element(s) to assign the listener to.
* @param spec {string} Optional. String representing a selector that must
* match the target of the event in order for the listener to be called.
* @return {EventHandle} the detach handle
* @for YUI
*/
/**
* Sets up a "mouseleave" listener—a listener that is called the first time
* the user's mouse leaves the specified element(s). By passing a CSS selector
* as the fourth argument, can also be used to delegate a "mouseleave"
* event listener.
*
* @event mouseleave
* @param type {string} "mouseleave"
* @param fn {function} The method the event invokes.
* @param el {string|node} The element(s) to assign the listener to.
* @param spec {string} Optional. String representing a selector that must
* match the target of the event in order for the listener to be called.
* @return {EventHandle} the detach handle
* @for YUI
*/