event-custom-complex-debug.js revision 0771d781138a507b3e657573703f511291640bf3
127N/A * Wraps and protects a custom event for use when emitFacade is set to true. 127N/A * Requires the event-custom-complex module 127N/A * @param e {Event} the custom event 127N/A * @param currentTarget {HTMLElement} the element the listener was attached to 127N/A * The arguments passed to fire 844N/A ////////////////////////////////////////////////////// 127N/A * Node reference for the targeted eventtarget 844N/A * Node reference for the element that the listener was attached to. 844N/A * @propery currentTarget 127N/A * Node reference to the relatedTarget 127N/A * @propery relatedTarget 729N/A * Stops the propagation to the next bubble target 729N/A * @method stopPropagation 751N/A * Stops the propagation to the next bubble target and 751N/A * prevents any additional listeners from being exectued 751N/A * on the current target. 751N/A * @method stopImmediatePropagation 729N/A * Prevents the event's default behavior 729N/A * @method preventDefault 729N/A * Stops the event propagation and prevents the default 729N/A * @param immediate {boolean} if true additional listeners 729N/A * on the current target will not be executed 729N/A // queue this event if the current item in the queue bubbles 127N/A // id of the first event in the stack // this.log("Firing " + this + ", " + "args: " + args); this.
_facade =
null;
// kill facade to eliminate stale properties // bubble if this is hosted in an event target and propagation has not been stopped // execute the default behavior if not prevented // broadcast listeners are fired as discreet events on the // YUI instance and potentially the YUI global. // process after listeners. If the default behavior was // prevented, the after events don't fire. // set up stack to allow the next item to be processed return this.
stopped ?
false :
true;
// if the first argument is an object literal, apply the // properties to the event facade // protect the event facade properties // update the details field with the arguments * Stop propagation to bubble targets * @method stopPropagation * Stops propagation to bubble targets, and prevents any remaining * subscribers on the current target from executing. * @method stopImmediatePropagation * Prevents the execution of this event's defaultFn * Stops the event propagation and prevents the default * @param immediate {boolean} if true additional listeners * on the current target will not be executed * Propagate an event. Requires the event-custom-complex module. * @param evt {Event.Custom} the custom event to propagate * @return {boolean} the aggregated return value from Event.Custom.fire // Y.log('Bubbling ' + evt.type); // if this event was not published on the bubble target, // publish it with sensible default properties // stopPropagation() was called },
'@VERSION@' ,{
requires:[
'event-custom-base']});