event-mouseenter.js revision 21f450f4fd5fd60f951de44878aae015ed0342e3
4458N/A * @submodule event-mouseenter 4458N/A // Need to use Y.all because if el is a string it could be a 4458N/A // selector that returns a NodeList 4458N/A // At this point el will always be a Node instance 4458N/A // The name of the custom event 4458N/A // Bind an actual DOM event listener that will call the 4458N/A // Hook into the _delete method for the Custom Event wrapper of this 4458N/A // DOM Event in order to clean up the 'listeners' map and unsubscribe 4458N/A // the associated Custom Event listeners fired by this DOM event 4458N/A // listener if/when the user calls "purgeElement" OR removes all 4458N/A // listeners of the Custom Event. // Delete this event from the map of known mouseenter // and mouseleave listeners // Unsubscribe all listeners of the Custom Event fired // Remove the element from the args // Subscribe to the custom event // Hook into the detach method of the handle in order to clean up the // 'listeners' map and remove the associated DOM event handler // responsible for firing this Custom Event if all listener for this // event have been removed. * Sets up a "mouseenter" listener—a listener that is called the first time * the user's mouse enters the specified element(s). * @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 * Sets up a "mouseleave" listener—a listener that is called the first time * the user's mouse leaves the specified element(s). * @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 },
'@VERSION@' ,{
requires:[
'node-base']});