README revision bc8660dcb747bedc141ca9061de83f6f32f8018f
4632N/AYUI Event Utility
4632N/A DOM event utilities
4632N/A
4632N/A3.0.0
4632N/A - Added onreadystatechange fork in domready to handle the event in IE when YUI is hosted in an iframe.
4632N/A - Added mousewheel support.
4632N/A - Added Y.delgate function that is a bit easier to use than Y.on('delegate'...
4632N/A - Default scope of mouseenter and mouseleave events is the Node instance to which the listener is attached
4632N/A - Default scope of delegated event listeners is the Node instance that matched the supplied CSS selector
4632N/A - All special DOM event handlers (focus/blur/mousewheel,resize,delegate,etc) are
4632N/A broken down into submodules. Core DOM event functionality is provided in event-base.js,
4632N/A and all of the functionality is rolled into event.js.
4632N/A - Additional Safari key remapping.
4632N/A - Special DOM events can now be routed through delegate.
4632N/A - Y.on can target Node and NodeList references correctly.
4632N/A - Fixed onAvailable lazy DOM listener detach handles.
4632N/A - When configured to return a detach handle, a single object is always returned.
4632N/A Previously requests that resolved to multiple listeners returned an array.
4632N/A
4632N/A3.0.0beta1
4632N/A - DOM event, custom event, and simulate event moved to separate modules.
4632N/A - Added an event for DOM event delegation. It only fires if the target or its descendants
4632N/A match a supplied selector.
4632N/A Y.on('delegate', fn, el, 'click', 'selector' ...
4632N/A The event facade sets the following properties:
4632N/A target: the target of the event
4632N/A currentTarget: the element that the selector matched
4632N/A container: the bound element (the delegation container)
4632N/A - Added mouseenter/mouseleave events
4632N/A Y.on('mouseenter', fn, el, 'click', 'selector' ...
4632N/A Y.on('mouseleave', fn, el, 'click', 'selector' ...
4632N/A - Added Y.on('windowresize', fn), which attempts to normalize
4632N/A when the event fires across all browsers (once at the end
4632N/A of the resize rather than continuously during the resize).
4632N/A - Fixed unsubscribeAll return value.
4632N/A - Added ability to skip facade creation where performance is a concern.
4632N/A - Moved DOMReady core to yui-base.
4632N/A - Focus/blur abstraction works in Opera when the bound element is the target
4632N/A - purgeElement only reads element guids, it does not create new ones for elements without one.
4632N/A - Event.attach returns a single handle if the result from collection processing is a single item.
4632N/A
4632N/A3.0.0pr2
4632N/A - Fixed IE notification error when no arguments are supplied.
4632N/A - Added event-simulate.
4632N/A - getListeners works when the element has no listeners defined.
4632N/A - Event.addListener removed. Exists only in compat layer.
4632N/A - addListerer triggers 2.x event behavior.
- Removed extra undefined parameter passed to DOM event listeners.
- Compat layer contains Event.on.
- Event adapter support added to Y.on
- Added Y.on('focus', 'blur' event adaptors (support for propagation
of these events.)
- publish and subscribe support an object for the type, allowing for multiple
events/subscriptions.
- subscriber failures throw an error by default rather than log.
- subscriber failures are not routed through Y.fail in order to
improve the debug experience.
- New facades created every fire()
- before method re-added to EventTarget, which delegates to Do.before or
subscribe.
- EventTarget.after will delegate to Do.after if type is a function
- Added keylistener: Y.on('key', fn, element, 'down:13,65+ctrl+shift')
- event:ready event deprecated in favor of domready.
3.0.0pr1
- Initial Release