From 7c0a9b20203e13a4da06fd79081215f712cceb38 Mon Sep 17 00:00:00 2001 From: Tim Laszlo Date: Thu, 14 Oct 2010 15:28:58 -0500 Subject: web reports: new skin --- reports/site_media/yui/event/README | 135 -- reports/site_media/yui/event/event-debug.js | 1797 --------------------------- reports/site_media/yui/event/event-min.js | 69 - reports/site_media/yui/event/event.js | 1771 -------------------------- 4 files changed, 3772 deletions(-) delete mode 100644 reports/site_media/yui/event/README delete mode 100644 reports/site_media/yui/event/event-debug.js delete mode 100644 reports/site_media/yui/event/event-min.js delete mode 100644 reports/site_media/yui/event/event.js (limited to 'reports/site_media/yui/event') diff --git a/reports/site_media/yui/event/README b/reports/site_media/yui/event/README deleted file mode 100644 index 18defb61c..000000000 --- a/reports/site_media/yui/event/README +++ /dev/null @@ -1,135 +0,0 @@ - -YUI Library - Event - Release Notes - -0.12.2 - - * Fixed a bug introduced in 0.12.1 release caused nested onAvailable - calls to fail. - -0.12.1 - - * If an error is thrown during the browser-specific add/remove lister call, - addListener/removeListener will catch the error and return false. - - * onAvailable array items are nulled out instead of deleted when completed to - get around an Opera issue introduced in a recent version of the browser. - -0.12.0 - - * If the function argument is not provided to Event.removeListener, all - all listeners for the specified event type on the element will be removed. - - * CustomEvent now has an optional parameter that defines the signature of - the listeners for this event. Two signatures are supported: - - YAHOO.util.CustomEvent.LIST: - param1: event name - param2: array of arguments provided to fire() - param3: the custom object supplied to subscribe() - - YAHOO.util.CustomEvent.FLAT: - param1: the first argument provided to fire() - param2: the custom object supplied to subscribe() - - The new flat signature makes it possible to provide a better API - when using custom events, and it makes it possible to transparently - wrap DOM events. - - * The parameters for overriding scope in both Event.addListener, and - CustomEvent.subscribe have been augmented. In addition to the - previous behavior where a true value would make the previous parameter - the execution scope, an object can be supplied instead. If an object - is provided, that object becomes the scope obj. This makes it possible - to pass a both a custom object and adjust the scope to a different object. - - * Added EventProvider, which is a wrapper for CustomEvent that makes it - possible to subscribe to events by name, whether or not the event has - been created. This class was designed to be used with YAHOO.augment. - EventProvider custom events are created with the new FLAT listener - signature. - - * CustomEvent subscribers can return false to stop the propagation of - the event. - - * CustomEvents now have an onSubscribe custom event that can used to the - case where a subscriber subscribes to an one-time event that has already - happened. Also provides a way for the implementer to defer initialization - logic until after the first subscription. - - * Event.getCharCode now always returns keyCode if charCode is not available. - - * Added Event.onContentReady, which is similar to onAvailable, but it also - checks simblings to try to determine when the element's children are - available. - -0.11.4 - - * Fixed a memory leak in IE6 that occurred when the utility was hosted in - an iframe. - - * Fixed an issue with Safari click listeners when listeners were removed. - -0.11.3 - - * The listener cache is now pruned when events are removed. This fixes - a performance issue when adding many listeners, removing them, and - adding them again repeatedly. - - * Safari click listeners will work correctly if a bound element is removed - from the DOM and a new element with the same ID is added. - - * Removed the code that automatically unsubscribed custom event listeners. - -0.11.0 - - * Added Event.purgeElement which will remove all listeners added via - addListener from the supplied element. If an optional "type" parameter - is supplied, only events of that type will be removed. Optionally, the - purge can be performed recursively on the element's children as well. - - * Added Event.getListeners which will return all listeners attached to - a given element.. either all listeners or listeners of a specific type. - - * getTarget now automatically resolves text nodes. The optional parameter - for this feature is now deprecated. - - * getRelatedTarget now resolves text nodes for the browsers that return the - text node rather than its host HTML element. - - * CustomEvent now logs the custom event activity if the logger widget is available - -0.10.0 - - * Added Safari dblclick to the list of legacy events. - - * When multiple identical event handlers are defined, multiple calls - to removeListener can now remove all of them. - - * removeListener works properly for unload events - - * Legacy event bookkeeping is more efficient, improving the performance for - adding Safari click events. - - * _unload() is more efficient, improving the page transition experience in - Safari in particular. - - * addListener, removeListener now return false if the function argument is - not valid. - - * Fixed an operator precedence issue in getCharCode. - - * Added Event.getXY, which returns [Event.getPageX(e), Event.getPageY(e)] - - * Added Event.onAvailable, which will execute the callback when the element - with the supplied id is found. Currently searches periodically until the - window load event or for up to 10 seconds after the onAvailable method - was executed. - - * The lazy listener attachment process now will poll beyond the window load - event in order to better handle the case when a listener is defined - late in the page but before the element is in the dom. - - * Fixed browser detection for Opera installations reporting as IE. - - * It is now possible to remove and re-add legacy events (Safari click event). - diff --git a/reports/site_media/yui/event/event-debug.js b/reports/site_media/yui/event/event-debug.js deleted file mode 100644 index 468e592e7..000000000 --- a/reports/site_media/yui/event/event-debug.js +++ /dev/null @@ -1,1797 +0,0 @@ -/* -Copyright (c) 2006, Yahoo! Inc. All rights reserved. -Code licensed under the BSD License: -http://developer.yahoo.net/yui/license.txt -version: 0.12.2 -*/ - - -/** - * The CustomEvent class lets you define events for your application - * that can be subscribed to by one or more independent component. - * - * @param {String} type The type of event, which is passed to the callback - * when the event fires - * @param {Object} oScope The context the event will fire from. "this" will - * refer to this object in the callback. Default value: - * the window object. The listener can override this. - * @param {boolean} silent pass true to prevent the event from writing to - * the debugsystem - * @param {int} signature the signature that the custom event subscriber - * will receive. YAHOO.util.CustomEvent.LIST or - * YAHOO.util.CustomEvent.FLAT. The default is - * YAHOO.util.CustomEvent.LIST. - * @namespace YAHOO.util - * @class CustomEvent - * @constructor - */ -YAHOO.util.CustomEvent = function(type, oScope, silent, signature) { - - /** - * The type of event, returned to subscribers when the event fires - * @property type - * @type string - */ - this.type = type; - - /** - * The scope the the event will fire from by default. Defaults to the window - * obj - * @property scope - * @type object - */ - this.scope = oScope || window; - - /** - * By default all custom events are logged in the debug build, set silent - * to true to disable debug outpu for this event. - * @property silent - * @type boolean - */ - this.silent = silent; - - /** - * Custom events support two styles of arguments provided to the event - * subscribers. - *
    - *
  • YAHOO.util.CustomEvent.LIST: - *
      - *
    • param1: event name
    • - *
    • param2: array of arguments sent to fire
    • - *
    • param3: a custom object supplied by the subscriber
    • - *
    - *
  • - *
  • YAHOO.util.CustomEvent.FLAT - *
      - *
    • param1: the first argument passed to fire. If you need to - * pass multiple parameters, use and array or object literal
    • - *
    • param2: a custom object supplied by the subscriber
    • - *
    - *
  • - *
- * @property signature - * @type int - */ - this.signature = signature || YAHOO.util.CustomEvent.LIST; - - /** - * The subscribers to this event - * @property subscribers - * @type Subscriber[] - */ - this.subscribers = []; - - if (!this.silent) { - YAHOO.log( "Creating " + this, "info", "Event" ); - } - - var onsubscribeType = "_YUICEOnSubscribe"; - - // Only add subscribe events for events that are not generated by - // CustomEvent - if (type !== onsubscribeType) { - - /** - * Custom events provide a custom event that fires whenever there is - * a new subscriber to the event. This provides an opportunity to - * handle the case where there is a non-repeating event that has - * already fired has a new subscriber. - * - * @event subscribeEvent - * @type YAHOO.util.CustomEvent - * @param {Function} fn The function to execute - * @param {Object} obj An object to be passed along when the event - * fires - * @param {boolean|Object} override If true, the obj passed in becomes - * the execution scope of the listener. - * if an object, that object becomes the - * the execution scope. - */ - this.subscribeEvent = - new YAHOO.util.CustomEvent(onsubscribeType, this, true); - - } -}; - -/** - * Subscriber listener sigature constant. The LIST type returns three - * parameters: the event type, the array of args passed to fire, and - * the optional custom object - * @property YAHOO.util.CustomEvent.LIST - * @static - * @type int - */ -YAHOO.util.CustomEvent.LIST = 0; - -/** - * Subscriber listener sigature constant. The FLAT type returns two - * parameters: the first argument passed to fire and the optional - * custom object - * @property YAHOO.util.CustomEvent.FLAT - * @static - * @type int - */ -YAHOO.util.CustomEvent.FLAT = 1; - -YAHOO.util.CustomEvent.prototype = { - - /** - * Subscribes the caller to this event - * @method subscribe - * @param {Function} fn The function to execute - * @param {Object} obj An object to be passed along when the event - * fires - * @param {boolean|Object} override If true, the obj passed in becomes - * the execution scope of the listener. - * if an object, that object becomes the - * the execution scope. - */ - subscribe: function(fn, obj, override) { - if (this.subscribeEvent) { - this.subscribeEvent.fire(fn, obj, override); - } - - this.subscribers.push( new YAHOO.util.Subscriber(fn, obj, override) ); - }, - - /** - * Unsubscribes the caller from this event - * @method unsubscribe - * @param {Function} fn The function to execute - * @param {Object} obj The custom object passed to subscribe (optional) - * @return {boolean} True if the subscriber was found and detached. - */ - unsubscribe: function(fn, obj) { - var found = false; - for (var i=0, len=this.subscribers.length; i - *
  • The type of event
  • - *
  • All of the arguments fire() was executed with as an array
  • - *
  • The custom object (if any) that was passed into the subscribe() - * method
  • - * - * @method fire - * @param {Object*} arguments an arbitrary set of parameters to pass to - * the handler. - * @return {boolean} false if one of the subscribers returned false, - * true otherwise - */ - fire: function() { - var len=this.subscribers.length; - if (!len && this.silent) { - return true; - } - - var args=[], ret=true, i; - - for (i=0; i" + (i+1) + ": " + s, - "info", "Event" ); - } - - var scope = s.getScope(this.scope); - - if (this.signature == YAHOO.util.CustomEvent.FLAT) { - var param = null; - if (args.length > 0) { - param = args[0]; - } - ret = s.fn.call(scope, param, s.obj); - } else { - ret = s.fn.call(scope, this.type, args, s.obj); - } - if (false === ret) { - if (!this.silent) { - YAHOO.log("Event cancelled, subscriber " + i + - " of " + len); - } - - //break; - return false; - } - } - } - - return true; - }, - - /** - * Removes all listeners - * @method unsubscribeAll - */ - unsubscribeAll: function() { - for (var i=0, len=this.subscribers.length; i