mouseentermouseleave.js revision ceaa4af34fe254adb33b23c07bac5f50c907d2f0
}
},
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 {string} 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 {Event.Handle} 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 {string} 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 {Event.Handle} the detach handle
* @for YUI
*/