You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by va...@apache.org on 2010/05/27 20:10:26 UTC
svn commit: r948937 [5/33] - in /ode/trunk: ./
agents/src/main/java/org/apache/ode/agents/memory/ axis2-war/
axis2-war/src/main/assembly/ axis2-war/src/main/webapp/
axis2-war/src/main/webapp/WEB-INF/
axis2-war/src/main/webapp/WEB-INF/classes/ axis2-war...
Modified: ode/trunk/axis2-war/src/main/webapp/js/yui/container.js
URL: http://svn.apache.org/viewvc/ode/trunk/axis2-war/src/main/webapp/js/yui/container.js?rev=948937&r1=948936&r2=948937&view=diff
==============================================================================
--- ode/trunk/axis2-war/src/main/webapp/js/yui/container.js (original)
+++ ode/trunk/axis2-war/src/main/webapp/js/yui/container.js Thu May 27 18:09:53 2010
@@ -8,9 +8,9 @@ version: 2.5.2
/**
* Config is a utility used within an Object to allow the implementer to
- * maintain a list of local configuration properties and listen for changes
- * to those properties dynamically using CustomEvent. The initial values are
- * also maintained so that the configuration can be reset at any given point
+ * maintain a list of local configuration properties and listen for changes
+ * to those properties dynamically using CustomEvent. The initial values are
+ * also maintained so that the configuration can be reset at any given point
* to its initial state.
* @namespace YAHOO.util
* @class Config
@@ -40,7 +40,7 @@ version: 2.5.2
* @final
*/
Config.CONFIG_CHANGED_EVENT = "configChanged";
-
+
/**
* Constant representing the boolean type string
* @property YAHOO.util.Config.BOOLEAN_TYPE
@@ -49,89 +49,89 @@ version: 2.5.2
* @final
*/
Config.BOOLEAN_TYPE = "boolean";
-
+
Config.prototype = {
-
+
/**
* Object reference to the owner of this Config Object
* @property owner
* @type Object
*/
owner: null,
-
+
/**
- * Boolean flag that specifies whether a queue is currently
+ * Boolean flag that specifies whether a queue is currently
* being executed
* @property queueInProgress
* @type Boolean
*/
queueInProgress: false,
-
+
/**
- * Maintains the local collection of configuration property objects and
+ * Maintains the local collection of configuration property objects and
* their specified values
* @property config
* @private
* @type Object
- */
+ */
config: null,
-
+
/**
- * Maintains the local collection of configuration property objects as
+ * Maintains the local collection of configuration property objects as
* they were initially applied.
* This object is used when resetting a property.
* @property initialConfig
* @private
* @type Object
- */
+ */
initialConfig: null,
-
+
/**
* Maintains the local, normalized CustomEvent queue
* @property eventQueue
* @private
* @type Object
- */
+ */
eventQueue: null,
-
+
/**
- * Custom Event, notifying subscribers when Config properties are set
+ * Custom Event, notifying subscribers when Config properties are set
* (setProperty is called without the silent flag
* @event configChangedEvent
*/
configChangedEvent: null,
-
+
/**
* Initializes the configuration Object and all of its local members.
* @method init
- * @param {Object} owner The owner Object to which this Config
+ * @param {Object} owner The owner Object to which this Config
* Object belongs
*/
init: function (owner) {
-
+
this.owner = owner;
-
- this.configChangedEvent =
+
+ this.configChangedEvent =
this.createEvent(Config.CONFIG_CHANGED_EVENT);
-
+
this.configChangedEvent.signature = CustomEvent.LIST;
this.queueInProgress = false;
this.config = {};
this.initialConfig = {};
this.eventQueue = [];
-
+
},
-
+
/**
* Validates that the value passed in is a Boolean.
* @method checkBoolean
* @param {Object} val The value to validate
* @return {Boolean} true, if the value is valid
- */
+ */
checkBoolean: function (val) {
return (typeof val == Config.BOOLEAN_TYPE);
},
-
+
/**
* Validates that the value passed in is a number.
* @method checkNumber
@@ -141,75 +141,75 @@ version: 2.5.2
checkNumber: function (val) {
return (!isNaN(val));
},
-
+
/**
- * Fires a configuration property event using the specified value.
+ * Fires a configuration property event using the specified value.
* @method fireEvent
* @private
* @param {String} key The configuration property's name
* @param {value} Object The value of the correct type for the property
- */
+ */
fireEvent: function ( key, value ) {
var property = this.config[key];
-
+
if (property && property.event) {
property.event.fire(value);
- }
+ }
},
-
+
/**
* Adds a property to the Config Object's private config hash.
* @method addProperty
* @param {String} key The configuration property's name
- * @param {Object} propertyObject The Object containing all of this
+ * @param {Object} propertyObject The Object containing all of this
* property's arguments
*/
addProperty: function ( key, propertyObject ) {
key = key.toLowerCase();
-
+
this.config[key] = propertyObject;
-
+
propertyObject.event = this.createEvent(key, { scope: this.owner });
propertyObject.event.signature = CustomEvent.LIST;
-
-
+
+
propertyObject.key = key;
-
+
if (propertyObject.handler) {
- propertyObject.event.subscribe(propertyObject.handler,
+ propertyObject.event.subscribe(propertyObject.handler,
this.owner);
}
-
+
this.setProperty(key, propertyObject.value, true);
-
+
if (! propertyObject.suppressEvent) {
this.queueProperty(key, propertyObject.value);
}
-
+
},
-
+
/**
- * Returns a key-value configuration map of the values currently set in
+ * Returns a key-value configuration map of the values currently set in
* the Config Object.
* @method getConfig
* @return {Object} The current config, represented in a key-value map
*/
getConfig: function () {
-
+
var cfg = {},
prop,
property;
-
+
for (prop in this.config) {
property = this.config[prop];
if (property && property.event) {
cfg[prop] = property.value;
}
}
-
+
return cfg;
},
-
+
/**
* Returns the value of specified property.
* @method getProperty
@@ -224,7 +224,7 @@ version: 2.5.2
return undefined;
}
},
-
+
/**
* Resets the specified property's value to its initial value.
* @method resetProperty
@@ -232,50 +232,50 @@ version: 2.5.2
* @return {Boolean} True is the property was reset, false if not
*/
resetProperty: function (key) {
-
+
key = key.toLowerCase();
-
+
var property = this.config[key];
-
+
if (property && property.event) {
-
- if (this.initialConfig[key] &&
+
+ if (this.initialConfig[key] &&
!Lang.isUndefined(this.initialConfig[key])) {
-
+
this.setProperty(key, this.initialConfig[key]);
return true;
-
+
}
-
+
} else {
-
+
return false;
}
-
+
},
-
+
/**
- * Sets the value of a property. If the silent property is passed as
+ * Sets the value of a property. If the silent property is passed as
* true, the property's event will not be fired.
* @method setProperty
* @param {String} key The name of the property
* @param {String} value The value to set the property to
- * @param {Boolean} silent Whether the value should be set silently,
+ * @param {Boolean} silent Whether the value should be set silently,
* without firing the property event.
* @return {Boolean} True, if the set was successful, false if it failed.
*/
setProperty: function (key, value, silent) {
-
+
var property;
-
+
key = key.toLowerCase();
-
+
if (this.queueInProgress && ! silent) {
- // Currently running through a queue...
+ // Currently running through a queue...
this.queueProperty(key,value);
return true;
-
+
} else {
property = this.config[key];
if (property && property.event) {
@@ -294,21 +294,21 @@ version: 2.5.2
}
}
},
-
+
/**
- * Sets the value of a property and queues its event to execute. If the
+ * Sets the value of a property and queues its event to execute. If the
* event is already scheduled to execute, it is
* moved from its current position to the end of the queue.
* @method queueProperty
* @param {String} key The name of the property
* @param {String} value The value to set the property to
- * @return {Boolean} true, if the set was successful, false if
+ * @return {Boolean} true, if the set was successful, false if
* it failed.
- */
+ */
queueProperty: function (key, value) {
-
+
key = key.toLowerCase();
-
+
var property = this.config[key],
foundDuplicate = false,
iLen,
@@ -324,56 +324,56 @@ version: 2.5.2
i,
s,
q;
-
+
if (property && property.event) {
-
- if (!Lang.isUndefined(value) && property.validator &&
+
+ if (!Lang.isUndefined(value) && property.validator &&
!property.validator(value)) { // validator
return false;
} else {
-
+
if (!Lang.isUndefined(value)) {
property.value = value;
} else {
value = property.value;
}
-
+
foundDuplicate = false;
iLen = this.eventQueue.length;
-
+
for (i = 0; i < iLen; i++) {
queueItem = this.eventQueue[i];
-
+
if (queueItem) {
queueItemKey = queueItem[0];
queueItemValue = queueItem[1];
if (queueItemKey == key) {
-
+
/*
- found a dupe... push to end of queue, null
+ found a dupe... push to end of queue, null
current item, and break
*/
-
+
this.eventQueue[i] = null;
-
+
this.eventQueue.push(
- [key, (!Lang.isUndefined(value) ?
+ [key, (!Lang.isUndefined(value) ?
value : queueItemValue)]);
-
+
foundDuplicate = true;
break;
}
}
}
-
+
// this is a refire, or a new property in the queue
-
- if (! foundDuplicate && !Lang.isUndefined(value)) {
+
+ if (! foundDuplicate && !Lang.isUndefined(value)) {
this.eventQueue.push([key, value]);
}
}
-
+
if (property.supercedes) {
sLen = property.supercedes.length;
@@ -390,10 +390,10 @@ version: 2.5.2
queueItemCheckKey = queueItemCheck[0];
queueItemCheckValue = queueItemCheck[1];
- if (queueItemCheckKey ==
+ if (queueItemCheckKey ==
supercedesCheck.toLowerCase() ) {
- this.eventQueue.push([queueItemCheckKey,
+ this.eventQueue.push([queueItemCheckKey,
queueItemCheckValue]);
this.eventQueue[q] = null;
@@ -411,48 +411,48 @@ version: 2.5.2
return false;
}
},
-
+
/**
* Fires the event for a property using the property's current value.
* @method refireEvent
* @param {String} key The name of the property
*/
refireEvent: function (key) {
-
+
key = key.toLowerCase();
-
+
var property = this.config[key];
-
- if (property && property.event &&
-
+
+ if (property && property.event &&
+
!Lang.isUndefined(property.value)) {
-
+
if (this.queueInProgress) {
-
+
this.queueProperty(key);
-
+
} else {
-
+
this.fireEvent(key, property.value);
-
+
}
-
+
}
},
-
+
/**
- * Applies a key-value Object literal to the configuration, replacing
+ * Applies a key-value Object literal to the configuration, replacing
* any existing values, and queueing the property events.
- * Although the values will be set, fireQueue() must be called for their
+ * Although the values will be set, fireQueue() must be called for their
* associated events to execute.
* @method applyConfig
* @param {Object} userConfig The configuration Object literal
- * @param {Boolean} init When set to true, the initialConfig will
- * be set to the userConfig passed in, so that calling a reset will
+ * @param {Boolean} init When set to true, the initialConfig will
+ * be set to the userConfig passed in, so that calling a reset will
* reset the properties to the passed values.
*/
applyConfig: function (userConfig, init) {
-
+
var sKey,
oConfig;
@@ -472,70 +472,70 @@ version: 2.5.2
}
}
},
-
+
/**
- * Refires the events for all configuration properties using their
+ * Refires the events for all configuration properties using their
* current values.
* @method refresh
*/
refresh: function () {
-
+
var prop;
-
+
for (prop in this.config) {
this.refireEvent(prop);
}
},
-
+
/**
* Fires the normalized list of queued property change events
* @method fireQueue
*/
fireQueue: function () {
-
- var i,
+
+ var i,
queueItem,
key,
value,
property;
-
+
this.queueInProgress = true;
for (i = 0;i < this.eventQueue.length; i++) {
queueItem = this.eventQueue[i];
if (queueItem) {
-
+
key = queueItem[0];
value = queueItem[1];
property = this.config[key];
-
+
property.value = value;
-
+
this.fireEvent(key,value);
}
}
-
+
this.queueInProgress = false;
this.eventQueue = [];
},
-
+
/**
- * Subscribes an external handler to the change event for any
- * given property.
+ * Subscribes an external handler to the change event for any
+ * given property.
* @method subscribeToConfigEvent
* @param {String} key The property name
- * @param {Function} handler The handler function to use subscribe to
+ * @param {Function} handler The handler function to use subscribe to
* the property's event
- * @param {Object} obj The Object to use for scoping the event handler
+ * @param {Object} obj The Object to use for scoping the event handler
* (see CustomEvent documentation)
- * @param {Boolean} override Optional. If true, will override "this"
+ * @param {Boolean} override Optional. If true, will override "this"
* within the handler to map to the scope Object passed into the method.
- * @return {Boolean} True, if the subscription was successful,
+ * @return {Boolean} True, if the subscription was successful,
* otherwise false.
- */
+ */
subscribeToConfigEvent: function (key, handler, obj, override) {
-
+
var property = this.config[key.toLowerCase()];
-
+
if (property && property.event) {
if (!Config.alreadySubscribed(property.event, handler, obj)) {
property.event.subscribe(handler, obj, override);
@@ -544,19 +544,19 @@ version: 2.5.2
} else {
return false;
}
-
+
},
-
+
/**
- * Unsubscribes an external handler from the change event for any
- * given property.
+ * Unsubscribes an external handler from the change event for any
+ * given property.
* @method unsubscribeFromConfigEvent
* @param {String} key The property name
- * @param {Function} handler The handler function to use subscribe to
+ * @param {Function} handler The handler function to use subscribe to
* the property's event
- * @param {Object} obj The Object to use for scoping the event
+ * @param {Object} obj The Object to use for scoping the event
* handler (see CustomEvent documentation)
- * @return {Boolean} True, if the unsubscription was successful,
+ * @return {Boolean} True, if the unsubscription was successful,
* otherwise false.
*/
unsubscribeFromConfigEvent: function (key, handler, obj) {
@@ -567,7 +567,7 @@ version: 2.5.2
return false;
}
},
-
+
/**
* Returns a string representation of the Config object
* @method toString
@@ -580,12 +580,12 @@ version: 2.5.2
}
return output;
},
-
+
/**
- * Returns a string representation of the Config object's current
+ * Returns a string representation of the Config object's current
* CustomEvent queue
* @method outputEventQueue
- * @return {String} The string list of CustomEvents currently queued
+ * @return {String} The string list of CustomEvents currently queued
* for execution
*/
outputEventQueue: function () {
@@ -594,7 +594,7 @@ version: 2.5.2
queueItem,
q,
nQueue = this.eventQueue.length;
-
+
for (q = 0; q < nQueue; q++) {
queueItem = this.eventQueue[q];
if (queueItem) {
@@ -605,7 +605,7 @@ version: 2.5.2
},
/**
- * Sets all properties to null, unsubscribes all listeners from each
+ * Sets all properties to null, unsubscribes all listeners from each
* property's change event and all listeners from the configChangedEvent.
* @method destroy
*/
@@ -617,7 +617,7 @@ version: 2.5.2
for (sProperty in oConfig) {
-
+
if (Lang.hasOwnProperty(oConfig, sProperty)) {
oProperty = oConfig[sProperty];
@@ -626,37 +626,37 @@ version: 2.5.2
oProperty.event = null;
}
-
+
}
-
+
this.configChangedEvent.unsubscribeAll();
-
+
this.configChangedEvent = null;
this.owner = null;
this.config = null;
this.initialConfig = null;
this.eventQueue = null;
-
+
}
};
-
-
-
+
+
+
/**
- * Checks to determine if a particular function/Object pair are already
+ * Checks to determine if a particular function/Object pair are already
* subscribed to the specified CustomEvent
* @method YAHOO.util.Config.alreadySubscribed
* @static
- * @param {YAHOO.util.CustomEvent} evt The CustomEvent for which to check
+ * @param {YAHOO.util.CustomEvent} evt The CustomEvent for which to check
* the subscriptions
* @param {Function} fn The function to look for in the subscribers list
* @param {Object} obj The execution scope Object for the subscription
- * @return {Boolean} true, if the function/Object pair is already subscribed
+ * @return {Boolean} true, if the function/Object pair is already subscribed
* to the CustomEvent passed in
*/
Config.alreadySubscribed = function (evt, fn, obj) {
-
+
var nSubscribers = evt.subscribers.length,
subsc,
i;
@@ -683,32 +683,32 @@ version: 2.5.2
(function () {
/**
- * The Container family of components is designed to enable developers to
- * create different kinds of content-containing modules on the web. Module
- * and Overlay are the most basic containers, and they can be used directly
- * or extended to build custom containers. Also part of the Container family
- * are four UI controls that extend Module and Overlay: Tooltip, Panel,
+ * The Container family of components is designed to enable developers to
+ * create different kinds of content-containing modules on the web. Module
+ * and Overlay are the most basic containers, and they can be used directly
+ * or extended to build custom containers. Also part of the Container family
+ * are four UI controls that extend Module and Overlay: Tooltip, Panel,
* Dialog, and SimpleDialog.
* @module container
* @title Container
- * @requires yahoo, dom, event
+ * @requires yahoo, dom, event
* @optional dragdrop, animation, button
*/
-
+
/**
- * Module is a JavaScript representation of the Standard Module Format.
- * Standard Module Format is a simple standard for markup containers where
- * child nodes representing the header, body, and footer of the content are
- * denoted using the CSS classes "hd", "bd", and "ft" respectively.
- * Module is the base class for all other classes in the YUI
+ * Module is a JavaScript representation of the Standard Module Format.
+ * Standard Module Format is a simple standard for markup containers where
+ * child nodes representing the header, body, and footer of the content are
+ * denoted using the CSS classes "hd", "bd", and "ft" respectively.
+ * Module is the base class for all other classes in the YUI
* Container package.
* @namespace YAHOO.widget
* @class Module
* @constructor
* @param {String} el The element ID representing the Module <em>OR</em>
* @param {HTMLElement} el The element representing the Module
- * @param {Object} userConfig The configuration Object literal containing
- * the configuration that should be set for this module. See configuration
+ * @param {Object} userConfig The configuration Object literal containing
+ * the configuration that should be set for this module. See configuration
* documentation for more details.
*/
YAHOO.widget.Module = function (el, userConfig) {
@@ -752,7 +752,7 @@ version: 2.5.2
"BEFORE_HIDE": "beforeHide",
"HIDE": "hide"
},
-
+
/**
* Constant representing the Module's configuration properties
* @property DEFAULT_CONFIG
@@ -761,30 +761,30 @@ version: 2.5.2
* @type Object
*/
DEFAULT_CONFIG = {
-
- "VISIBLE": {
- key: "visible",
- value: true,
- validator: YAHOO.lang.isBoolean
+
+ "VISIBLE": {
+ key: "visible",
+ value: true,
+ validator: YAHOO.lang.isBoolean
},
-
- "EFFECT": {
- key: "effect",
- suppressEvent: true,
- supercedes: ["visible"]
+
+ "EFFECT": {
+ key: "effect",
+ suppressEvent: true,
+ supercedes: ["visible"]
},
- "MONITOR_RESIZE": {
- key: "monitorresize",
- value: true
+ "MONITOR_RESIZE": {
+ key: "monitorresize",
+ value: true
},
- "APPEND_TO_DOCUMENT_BODY": {
- key: "appendtodocumentbody",
+ "APPEND_TO_DOCUMENT_BODY": {
+ key: "appendtodocumentbody",
value: false
}
};
-
+
/**
* Constant representing the prefix path to use for non-secure images
* @property YAHOO.widget.Module.IMG_ROOT
@@ -793,7 +793,7 @@ version: 2.5.2
* @type String
*/
Module.IMG_ROOT = null;
-
+
/**
* Constant representing the prefix path to use for securely served images
* @property YAHOO.widget.Module.IMG_ROOT_SSL
@@ -802,7 +802,7 @@ version: 2.5.2
* @type String
*/
Module.IMG_ROOT_SSL = null;
-
+
/**
* Constant for the default CSS class name that represents a Module
* @property YAHOO.widget.Module.CSS_MODULE
@@ -811,7 +811,7 @@ version: 2.5.2
* @type String
*/
Module.CSS_MODULE = "yui-module";
-
+
/**
* Constant representing the module header
* @property YAHOO.widget.Module.CSS_HEADER
@@ -829,7 +829,7 @@ version: 2.5.2
* @type String
*/
Module.CSS_BODY = "bd";
-
+
/**
* Constant representing the module footer
* @property YAHOO.widget.Module.CSS_FOOTER
@@ -838,9 +838,9 @@ version: 2.5.2
* @type String
*/
Module.CSS_FOOTER = "ft";
-
+
/**
- * Constant representing the url for the "src" attribute of the iframe
+ * Constant representing the url for the "src" attribute of the iframe
* used to monitor changes to the browser's base font size
* @property YAHOO.widget.Module.RESIZE_MONITOR_SECURE_URL
* @static
@@ -848,10 +848,10 @@ version: 2.5.2
* @type String
*/
Module.RESIZE_MONITOR_SECURE_URL = "javascript:false;";
-
+
/**
* Singleton CustomEvent fired when the font size is changed in the browser.
- * Opera's "zoom" functionality currently does not support text
+ * Opera's "zoom" functionality currently does not support text
* size detection.
* @event YAHOO.widget.Module.textResizeEvent
*/
@@ -861,10 +861,10 @@ version: 2.5.2
if (!m_oModuleTemplate) {
m_oModuleTemplate = document.createElement("div");
-
- m_oModuleTemplate.innerHTML = ("<div class=\"" +
- Module.CSS_HEADER + "\"></div>" + "<div class=\"" +
- Module.CSS_BODY + "\"></div><div class=\"" +
+
+ m_oModuleTemplate.innerHTML = ("<div class=\"" +
+ Module.CSS_HEADER + "\"></div>" + "<div class=\"" +
+ Module.CSS_BODY + "\"></div><div class=\"" +
Module.CSS_FOOTER + "\"></div>");
m_oHeaderTemplate = m_oModuleTemplate.firstChild;
@@ -904,7 +904,7 @@ version: 2.5.2
* @type Function
*/
constructor: Module,
-
+
/**
* The main module element that contains the header, body, and footer
* @property element
@@ -951,7 +951,7 @@ version: 2.5.2
imageRoot: Module.IMG_ROOT,
/**
- * Initializes the custom events for Module which are fired
+ * Initializes the custom events for Module which are fired
* automatically at appropriate times by the Module class.
* @method initEvents
*/
@@ -962,7 +962,7 @@ version: 2.5.2
/**
* CustomEvent fired prior to class initalization.
* @event beforeInitEvent
- * @param {class} classRef class reference of the initializing
+ * @param {class} classRef class reference of the initializing
* class, such as this.beforeInitEvent.fire(Module)
*/
this.beforeInitEvent = this.createEvent(EVENT_TYPES.BEFORE_INIT);
@@ -971,9 +971,9 @@ version: 2.5.2
/**
* CustomEvent fired after class initalization.
* @event initEvent
- * @param {class} classRef class reference of the initializing
+ * @param {class} classRef class reference of the initializing
* class, such as this.beforeInitEvent.fire(Module)
- */
+ */
this.initEvent = this.createEvent(EVENT_TYPES.INIT);
this.initEvent.signature = SIGNATURE;
@@ -990,43 +990,43 @@ version: 2.5.2
*/
this.beforeRenderEvent = this.createEvent(EVENT_TYPES.BEFORE_RENDER);
this.beforeRenderEvent.signature = SIGNATURE;
-
+
/**
* CustomEvent fired after the Module is rendered
* @event renderEvent
*/
this.renderEvent = this.createEvent(EVENT_TYPES.RENDER);
this.renderEvent.signature = SIGNATURE;
-
+
/**
- * CustomEvent fired when the header content of the Module
+ * CustomEvent fired when the header content of the Module
* is modified
* @event changeHeaderEvent
- * @param {String/HTMLElement} content String/element representing
+ * @param {String/HTMLElement} content String/element representing
* the new header content
*/
this.changeHeaderEvent = this.createEvent(EVENT_TYPES.CHANGE_HEADER);
this.changeHeaderEvent.signature = SIGNATURE;
-
+
/**
* CustomEvent fired when the body content of the Module is modified
* @event changeBodyEvent
- * @param {String/HTMLElement} content String/element representing
+ * @param {String/HTMLElement} content String/element representing
* the new body content
- */
+ */
this.changeBodyEvent = this.createEvent(EVENT_TYPES.CHANGE_BODY);
this.changeBodyEvent.signature = SIGNATURE;
-
+
/**
- * CustomEvent fired when the footer content of the Module
+ * CustomEvent fired when the footer content of the Module
* is modified
* @event changeFooterEvent
- * @param {String/HTMLElement} content String/element representing
+ * @param {String/HTMLElement} content String/element representing
* the new footer content
*/
this.changeFooterEvent = this.createEvent(EVENT_TYPES.CHANGE_FOOTER);
this.changeFooterEvent.signature = SIGNATURE;
-
+
/**
* CustomEvent fired when the content of the Module is modified
* @event changeContentEvent
@@ -1068,7 +1068,7 @@ version: 2.5.2
*/
this.hideEvent = this.createEvent(EVENT_TYPES.HIDE);
this.hideEvent.signature = SIGNATURE;
- },
+ },
/**
* String representing the current user-agent platform
@@ -1086,7 +1086,7 @@ version: 2.5.2
return false;
}
}(),
-
+
/**
* String representing the user-agent of the browser
* @deprecated Use YAHOO.env.ua
@@ -1099,13 +1099,13 @@ version: 2.5.2
Check Opera first in case of spoof and check Safari before
Gecko since Safari's user agent string includes "like Gecko"
*/
- if (ua.indexOf('opera') != -1) {
+ if (ua.indexOf('opera') != -1) {
return 'opera';
} else if (ua.indexOf('msie 7') != -1) {
return 'ie7';
} else if (ua.indexOf('msie') != -1) {
return 'ie';
- } else if (ua.indexOf('safari') != -1) {
+ } else if (ua.indexOf('safari') != -1) {
return 'safari';
} else if (ua.indexOf('gecko') != -1) {
return 'gecko';
@@ -1113,9 +1113,9 @@ version: 2.5.2
return false;
}
}(),
-
+
/**
- * Boolean representing whether or not the current browsing context is
+ * Boolean representing whether or not the current browsing context is
* secure (https)
* @property isSecure
* @type Boolean
@@ -1127,9 +1127,9 @@ version: 2.5.2
return false;
}
}(),
-
+
/**
- * Initializes the custom events for Module which are fired
+ * Initializes the custom events for Module which are fired
* automatically at appropriate times by the Module class.
*/
initDefaultConfig: function () {
@@ -1141,25 +1141,25 @@ version: 2.5.2
* @default true
*/
this.cfg.addProperty(DEFAULT_CONFIG.VISIBLE.key, {
- handler: this.configVisible,
- value: DEFAULT_CONFIG.VISIBLE.value,
+ handler: this.configVisible,
+ value: DEFAULT_CONFIG.VISIBLE.value,
validator: DEFAULT_CONFIG.VISIBLE.validator
});
/**
- * Object or array of objects representing the ContainerEffect
+ * Object or array of objects representing the ContainerEffect
* classes that are active for animating the container.
* @config effect
* @type Object
* @default null
*/
this.cfg.addProperty(DEFAULT_CONFIG.EFFECT.key, {
- suppressEvent: DEFAULT_CONFIG.EFFECT.suppressEvent,
+ suppressEvent: DEFAULT_CONFIG.EFFECT.suppressEvent,
supercedes: DEFAULT_CONFIG.EFFECT.supercedes
});
/**
- * Specifies whether to create a special proxy iframe to monitor
+ * Specifies whether to create a special proxy iframe to monitor
* for user font resizing in the document
* @config monitorresize
* @type Boolean
@@ -1171,15 +1171,15 @@ version: 2.5.2
});
/**
- * Specifies if the module should be rendered as the first child
+ * Specifies if the module should be rendered as the first child
* of document.body or appended as the last child when render is called
* with document.body as the "appendToNode".
* <p>
- * Appending to the body while the DOM is still being constructed can
- * lead to Operation Aborted errors in IE hence this flag is set to
+ * Appending to the body while the DOM is still being constructed can
+ * lead to Operation Aborted errors in IE hence this flag is set to
* false by default.
* </p>
- *
+ *
* @config appendtodocumentbody
* @type Boolean
* @default false
@@ -1191,15 +1191,15 @@ version: 2.5.2
/**
* The Module class's initialization method, which is executed for
- * Module and all of its subclasses. This method is automatically
- * called by the constructor, and sets up all DOM references for
- * pre-existing markup, and creates required markup if it is not
+ * Module and all of its subclasses. This method is automatically
+ * called by the constructor, and sets up all DOM references for
+ * pre-existing markup, and creates required markup if it is not
* already present.
* @method init
* @param {String} el The element ID representing the Module <em>OR</em>
* @param {HTMLElement} el The element representing the Module
- * @param {Object} userConfig The configuration Object literal
- * containing the configuration that should be set for this module.
+ * @param {Object} userConfig The configuration Object literal
+ * containing the configuration that should be set for this module.
* See configuration documentation for more details.
*/
init: function (el, userConfig) {
@@ -1210,7 +1210,7 @@ version: 2.5.2
this.beforeInitEvent.fire(Module);
/**
- * The Module's Config object used for monitoring
+ * The Module's Config object used for monitoring
* configuration properties.
* @property cfg
* @type YAHOO.util.Config
@@ -1266,10 +1266,10 @@ version: 2.5.2
}
/*
- Subscribe to the fireQueue() method of Config so that any
- queued configuration changes are excecuted upon render of
+ Subscribe to the fireQueue() method of Config so that any
+ queued configuration changes are excecuted upon render of
the Module
- */
+ */
if (!Config.alreadySubscribed(this.renderEvent, this.cfg.fireQueue, this.cfg)) {
this.renderEvent.subscribe(this.cfg.fireQueue, this.cfg, true);
@@ -1279,7 +1279,7 @@ version: 2.5.2
},
/**
- * Initialize an empty IFRAME that is placed out of the visible area
+ * Initialize an empty IFRAME that is placed out of the visible area
* that can be used to detect text resize.
* @method initResizeMonitor
*/
@@ -1287,7 +1287,7 @@ version: 2.5.2
var isGeckoWin = (YAHOO.env.ua.gecko && this.platform == "windows");
if (isGeckoWin) {
- // Help prevent spinning loading icon which
+ // Help prevent spinning loading icon which
// started with FireFox 2.0.0.8/Win
var self = this;
setTimeout(function(){self._initResizeMonitor();}, 0);
@@ -1298,14 +1298,14 @@ version: 2.5.2
/**
* Create and initialize the text resize monitoring iframe.
- *
+ *
* @protected
* @method _initResizeMonitor
*/
_initResizeMonitor : function() {
- var oDoc,
- oIFrame,
+ var oDoc,
+ oIFrame,
sHTML;
function fireTextResize() {
@@ -1339,9 +1339,9 @@ version: 2.5.2
oIFrame.id = "_yuiResizeMonitor";
/*
- Need to set "position" property before inserting the
- iframe into the document or Safari's status bar will
- forever indicate the iframe is loading
+ Need to set "position" property before inserting the
+ iframe into the document or Safari's status bar will
+ forever indicate the iframe is loading
(See SourceForge bug #1723064)
*/
oIFrame.style.position = "absolute";
@@ -1380,8 +1380,8 @@ version: 2.5.2
if (supportsCWResize) {
if (!Event.on(oIFrame.contentWindow, "resize", fireTextResize)) {
/*
- This will fail in IE if document.domain has
- changed, so we must change the listener to
+ This will fail in IE if document.domain has
+ changed, so we must change the listener to
use the oIFrame element instead
*/
Event.on(oIFrame, "resize", fireTextResize);
@@ -1397,7 +1397,7 @@ version: 2.5.2
/**
* Text resize monitor helper method.
* Determines if the browser supports resize events on iframe content windows.
- *
+ *
* @private
* @method _supportsCWResize
*/
@@ -1437,27 +1437,27 @@ version: 2.5.2
var nLeft = -1 * this.resizeMonitor.offsetWidth,
nTop = -1 * this.resizeMonitor.offsetHeight;
-
+
this.resizeMonitor.style.top = nTop + "px";
this.resizeMonitor.style.left = nLeft + "px";
},
/**
- * Sets the Module's header content to the string specified, or appends
- * the passed element to the header. If no header is present, one will
+ * Sets the Module's header content to the string specified, or appends
+ * the passed element to the header. If no header is present, one will
* be automatically created. An empty string can be passed to the method
* to clear the contents of the header.
- *
+ *
* @method setHeader
* @param {String} headerContent The string used to set the header.
- * As a convenience, non HTMLElement objects can also be passed into
+ * As a convenience, non HTMLElement objects can also be passed into
* the method, and will be treated as strings, with the header innerHTML
* set to their default toString implementations.
* <em>OR</em>
- * @param {HTMLElement} headerContent The HTMLElement to append to
+ * @param {HTMLElement} headerContent The HTMLElement to append to
* <em>OR</em>
- * @param {DocumentFragment} headerContent The document fragment
+ * @param {DocumentFragment} headerContent The document fragment
* containing elements which are to be added to the header
*/
setHeader: function (headerContent) {
@@ -1476,10 +1476,10 @@ version: 2.5.2
},
/**
- * Appends the passed element to the header. If no header is present,
+ * Appends the passed element to the header. If no header is present,
* one will be automatically created.
* @method appendToHeader
- * @param {HTMLElement | DocumentFragment} element The element to
+ * @param {HTMLElement | DocumentFragment} element The element to
* append to the header. In the case of a document fragment, the
* children of the fragment will be appended to the header.
*/
@@ -1495,18 +1495,18 @@ version: 2.5.2
/**
* Sets the Module's body content to the HTML specified, or appends the
- * passed element to the body. If no body is present, one will be
+ * passed element to the body. If no body is present, one will be
* automatically created. An empty string can be passed to the method
* to clear the contents of the body.
* @method setBody
- * @param {String} bodyContent The HTML used to set the body.
- * As a convenience, non HTMLElement objects can also be passed into
+ * @param {String} bodyContent The HTML used to set the body.
+ * As a convenience, non HTMLElement objects can also be passed into
* the method, and will be treated as strings, with the body innerHTML
* set to their default toString implementations.
* <em>OR</em>
* @param {HTMLElement} bodyContent The HTMLElement to append to the body
* <em>OR</em>
- * @param {DocumentFragment} bodyContent The document fragment
+ * @param {DocumentFragment} bodyContent The document fragment
* containing elements which are to be added to the body
*/
setBody: function (bodyContent) {
@@ -1524,39 +1524,39 @@ version: 2.5.2
},
/**
- * Appends the passed element to the body. If no body is present, one
+ * Appends the passed element to the body. If no body is present, one
* will be automatically created.
* @method appendToBody
- * @param {HTMLElement | DocumentFragment} element The element to
+ * @param {HTMLElement | DocumentFragment} element The element to
* append to the body. In the case of a document fragment, the
* children of the fragment will be appended to the body.
- *
+ *
*/
appendToBody: function (element) {
var oBody = this.body || (this.body = createBody());
-
+
oBody.appendChild(element);
this.changeBodyEvent.fire(element);
this.changeContentEvent.fire();
},
-
+
/**
- * Sets the Module's footer content to the HTML specified, or appends
- * the passed element to the footer. If no footer is present, one will
+ * Sets the Module's footer content to the HTML specified, or appends
+ * the passed element to the footer. If no footer is present, one will
* be automatically created. An empty string can be passed to the method
* to clear the contents of the footer.
* @method setFooter
- * @param {String} footerContent The HTML used to set the footer
- * As a convenience, non HTMLElement objects can also be passed into
+ * @param {String} footerContent The HTML used to set the footer
+ * As a convenience, non HTMLElement objects can also be passed into
* the method, and will be treated as strings, with the footer innerHTML
* set to their default toString implementations.
* <em>OR</em>
- * @param {HTMLElement} footerContent The HTMLElement to append to
+ * @param {HTMLElement} footerContent The HTMLElement to append to
* the footer
* <em>OR</em>
- * @param {DocumentFragment} footerContent The document fragment containing
+ * @param {DocumentFragment} footerContent The document fragment containing
* elements which are to be added to the footer
*/
setFooter: function (footerContent) {
@@ -1575,10 +1575,10 @@ version: 2.5.2
},
/**
- * Appends the passed element to the footer. If no footer is present,
+ * Appends the passed element to the footer. If no footer is present,
* one will be automatically created.
* @method appendToFooter
- * @param {HTMLElement | DocumentFragment} element The element to
+ * @param {HTMLElement | DocumentFragment} element The element to
* append to the footer. In the case of a document fragment, the
* children of the fragment will be appended to the footer
*/
@@ -1594,29 +1594,29 @@ version: 2.5.2
},
/**
- * Renders the Module by inserting the elements that are not already
- * in the main Module into their correct places. Optionally appends
- * the Module to the specified node prior to the render's execution.
+ * Renders the Module by inserting the elements that are not already
+ * in the main Module into their correct places. Optionally appends
+ * the Module to the specified node prior to the render's execution.
* <p>
- * For Modules without existing markup, the appendToNode argument
- * is REQUIRED. If this argument is ommitted and the current element is
- * not present in the document, the function will return false,
+ * For Modules without existing markup, the appendToNode argument
+ * is REQUIRED. If this argument is ommitted and the current element is
+ * not present in the document, the function will return false,
* indicating that the render was a failure.
* </p>
* <p>
* NOTE: As of 2.3.1, if the appendToNode is the document's body element
- * then the module is rendered as the first child of the body element,
- * and not appended to it, to avoid Operation Aborted errors in IE when
- * rendering the module before window's load event is fired. You can
- * use the appendtodocumentbody configuration property to change this
+ * then the module is rendered as the first child of the body element,
+ * and not appended to it, to avoid Operation Aborted errors in IE when
+ * rendering the module before window's load event is fired. You can
+ * use the appendtodocumentbody configuration property to change this
* to append to document.body if required.
* </p>
* @method render
- * @param {String} appendToNode The element id to which the Module
+ * @param {String} appendToNode The element id to which the Module
* should be appended to prior to rendering <em>OR</em>
- * @param {HTMLElement} appendToNode The element to which the Module
+ * @param {HTMLElement} appendToNode The element to which the Module
* should be appended to prior to rendering
- * @param {HTMLElement} moduleElement OPTIONAL. The element that
+ * @param {HTMLElement} moduleElement OPTIONAL. The element that
* represents the actual Standard Module container.
* @return {Boolean} Success or failure of the render
*/
@@ -1644,7 +1644,7 @@ version: 2.5.2
if (appendToNode) {
appendTo(appendToNode);
- } else {
+ } else {
// No node was passed in. If the element is not already in the Dom, this fails
if (! Dom.inDocument(this.element)) {
return false;
@@ -1663,7 +1663,7 @@ version: 2.5.2
}
if (this.body && ! Dom.inDocument(this.body)) {
- // There is a body, but it's not in the DOM yet. Need to add it.
+ // There is a body, but it's not in the DOM yet. Need to add it.
if (this.footer && Dom.isAncestor(this.moduleElement, this.footer)) {
moduleElement.insertBefore(this.body, this.footer);
} else {
@@ -1681,7 +1681,7 @@ version: 2.5.2
},
/**
- * Removes the Module element from the DOM and sets all child elements
+ * Removes the Module element from the DOM and sets all child elements
* to null.
* @method destroy
*/
@@ -1698,7 +1698,7 @@ version: 2.5.2
if (parent) {
parent.removeChild(this.element);
}
-
+
this.element = null;
this.header = null;
this.body = null;
@@ -1710,7 +1710,7 @@ version: 2.5.2
this.cfg = null;
this.destroyEvent.fire();
-
+
for (e in this) {
if (e instanceof CustomEvent) {
e.unsubscribeAll();
@@ -1720,8 +1720,8 @@ version: 2.5.2
},
/**
- * Shows the Module element by setting the visible configuration
- * property to true. Also fires two events: beforeShowEvent prior to
+ * Shows the Module element by setting the visible configuration
+ * property to true. Also fires two events: beforeShowEvent prior to
* the visibility change, and showEvent after.
* @method show
*/
@@ -1730,25 +1730,25 @@ version: 2.5.2
},
/**
- * Hides the Module element by setting the visible configuration
- * property to false. Also fires two events: beforeHideEvent prior to
+ * Hides the Module element by setting the visible configuration
+ * property to false. Also fires two events: beforeHideEvent prior to
* the visibility change, and hideEvent after.
* @method hide
*/
hide: function () {
this.cfg.setProperty("visible", false);
},
-
+
// BUILT-IN EVENT HANDLERS FOR MODULE //
/**
- * Default event handler for changing the visibility property of a
- * Module. By default, this is achieved by switching the "display" style
+ * Default event handler for changing the visibility property of a
+ * Module. By default, this is achieved by switching the "display" style
* between "block" and "none".
* This method is responsible for firing showEvent and hideEvent.
* @param {String} type The CustomEvent type (usually the property name)
- * @param {Object[]} args The CustomEvent arguments. For configuration
+ * @param {Object[]} args The CustomEvent arguments. For configuration
* handlers, args[0] will equal the newly applied value for the property.
- * @param {Object} obj The scope object. For configuration handlers,
+ * @param {Object} obj The scope object. For configuration handlers,
* this will usually equal the owner.
* @method configVisible
*/
@@ -1764,13 +1764,13 @@ version: 2.5.2
this.hideEvent.fire();
}
},
-
+
/**
* Default event handler for the "monitorresize" configuration property
* @param {String} type The CustomEvent type (usually the property name)
- * @param {Object[]} args The CustomEvent arguments. For configuration
+ * @param {Object[]} args The CustomEvent arguments. For configuration
* handlers, args[0] will equal the newly applied value for the property.
- * @param {Object} obj The scope object. For configuration handlers,
+ * @param {Object} obj The scope object. For configuration handlers,
* this will usually equal the owner.
* @method configMonitorResize
*/
@@ -1785,8 +1785,8 @@ version: 2.5.2
},
/**
- * This method is a protected helper, used when constructing the DOM structure for the module
- * to account for situations which may cause Operation Aborted errors in IE. It should not
+ * This method is a protected helper, used when constructing the DOM structure for the module
+ * to account for situations which may cause Operation Aborted errors in IE. It should not
* be used for general DOM construction.
* <p>
* If the parentNode is not document.body, the element is appended as the last element.
@@ -1826,19 +1826,19 @@ version: 2.5.2
(function () {
/**
- * Overlay is a Module that is absolutely positioned above the page flow. It
- * has convenience methods for positioning and sizing, as well as options for
- * controlling zIndex and constraining the Overlay's position to the current
- * visible viewport. Overlay also contains a dynamicly generated IFRAME which
- * is placed beneath it for Internet Explorer 6 and 5.x so that it will be
+ * Overlay is a Module that is absolutely positioned above the page flow. It
+ * has convenience methods for positioning and sizing, as well as options for
+ * controlling zIndex and constraining the Overlay's position to the current
+ * visible viewport. Overlay also contains a dynamicly generated IFRAME which
+ * is placed beneath it for Internet Explorer 6 and 5.x so that it will be
* properly rendered above SELECT elements.
* @namespace YAHOO.widget
* @class Overlay
* @extends YAHOO.widget.Module
* @param {String} el The element ID representing the Overlay <em>OR</em>
* @param {HTMLElement} el The element representing the Overlay
- * @param {Object} userConfig The configuration object literal containing
- * the configuration that should be set for this Overlay. See configuration
+ * @param {Object} userConfig The configuration object literal containing
+ * the configuration that should be set for this Overlay. See configuration
* documentation for more details.
* @constructor
*/
@@ -1877,68 +1877,68 @@ version: 2.5.2
*/
DEFAULT_CONFIG = {
- "X": {
- key: "x",
- validator: Lang.isNumber,
- suppressEvent: true,
+ "X": {
+ key: "x",
+ validator: Lang.isNumber,
+ suppressEvent: true,
+ supercedes: ["iframe"]
+ },
+
+ "Y": {
+ key: "y",
+ validator: Lang.isNumber,
+ suppressEvent: true,
supercedes: ["iframe"]
},
- "Y": {
- key: "y",
- validator: Lang.isNumber,
- suppressEvent: true,
+ "XY": {
+ key: "xy",
+ suppressEvent: true,
supercedes: ["iframe"]
},
- "XY": {
- key: "xy",
- suppressEvent: true,
- supercedes: ["iframe"]
+ "CONTEXT": {
+ key: "context",
+ suppressEvent: true,
+ supercedes: ["iframe"]
},
- "CONTEXT": {
- key: "context",
- suppressEvent: true,
- supercedes: ["iframe"]
+ "FIXED_CENTER": {
+ key: "fixedcenter",
+ value: false,
+ validator: Lang.isBoolean,
+ supercedes: ["iframe", "visible"]
},
- "FIXED_CENTER": {
- key: "fixedcenter",
- value: false,
- validator: Lang.isBoolean,
- supercedes: ["iframe", "visible"]
+ "WIDTH": {
+ key: "width",
+ suppressEvent: true,
+ supercedes: ["context", "fixedcenter", "iframe"]
},
- "WIDTH": {
- key: "width",
- suppressEvent: true,
- supercedes: ["context", "fixedcenter", "iframe"]
- },
-
- "HEIGHT": {
- key: "height",
- suppressEvent: true,
- supercedes: ["context", "fixedcenter", "iframe"]
+ "HEIGHT": {
+ key: "height",
+ suppressEvent: true,
+ supercedes: ["context", "fixedcenter", "iframe"]
},
- "ZINDEX": {
- key: "zindex",
- value: null
+ "ZINDEX": {
+ key: "zindex",
+ value: null
},
- "CONSTRAIN_TO_VIEWPORT": {
- key: "constraintoviewport",
- value: false,
- validator: Lang.isBoolean,
+ "CONSTRAIN_TO_VIEWPORT": {
+ key: "constraintoviewport",
+ value: false,
+ validator: Lang.isBoolean,
supercedes: ["iframe", "x", "y", "xy"]
- },
+ },
- "IFRAME": {
- key: "iframe",
- value: (YAHOO.env.ua.ie == 6 ? true : false),
- validator: Lang.isBoolean,
- supercedes: ["zindex"]
+ "IFRAME": {
+ key: "iframe",
+ value: (YAHOO.env.ua.ie == 6 ? true : false),
+ validator: Lang.isBoolean,
+ supercedes: ["zindex"]
}
};
@@ -1952,7 +1952,7 @@ version: 2.5.2
Overlay.IFRAME_SRC = "javascript:false;";
/**
- * Number representing how much the iframe shim should be offset from each
+ * Number representing how much the iframe shim should be offset from each
* side of an Overlay instance, in pixels.
* @property YAHOO.widget.Overlay.IFRAME_SRC
* @default 3
@@ -1963,7 +1963,7 @@ version: 2.5.2
Overlay.IFRAME_OFFSET = 3;
/**
- * Number representing the minimum distance an Overlay instance should be
+ * Number representing the minimum distance an Overlay instance should be
* positioned relative to the boundaries of the browser's viewport, in pixels.
* @property YAHOO.widget.Overlay.VIEWPORT_OFFSET
* @default 10
@@ -1974,7 +1974,7 @@ version: 2.5.2
Overlay.VIEWPORT_OFFSET = 10;
/**
- * Constant representing the top left corner of an element, used for
+ * Constant representing the top left corner of an element, used for
* configuring the context element alignment
* @property YAHOO.widget.Overlay.TOP_LEFT
* @static
@@ -1984,7 +1984,7 @@ version: 2.5.2
Overlay.TOP_LEFT = "tl";
/**
- * Constant representing the top right corner of an element, used for
+ * Constant representing the top right corner of an element, used for
* configuring the context element alignment
* @property YAHOO.widget.Overlay.TOP_RIGHT
* @static
@@ -1994,7 +1994,7 @@ version: 2.5.2
Overlay.TOP_RIGHT = "tr";
/**
- * Constant representing the top bottom left corner of an element, used for
+ * Constant representing the top bottom left corner of an element, used for
* configuring the context element alignment
* @property YAHOO.widget.Overlay.BOTTOM_LEFT
* @static
@@ -2004,7 +2004,7 @@ version: 2.5.2
Overlay.BOTTOM_LEFT = "bl";
/**
- * Constant representing the bottom right corner of an element, used for
+ * Constant representing the bottom right corner of an element, used for
* configuring the context element alignment
* @property YAHOO.widget.Overlay.BOTTOM_RIGHT
* @static
@@ -2023,7 +2023,7 @@ version: 2.5.2
Overlay.CSS_OVERLAY = "yui-overlay";
/**
- * A singleton CustomEvent used for reacting to the DOM event for
+ * A singleton CustomEvent used for reacting to the DOM event for
* window scroll
* @event YAHOO.widget.Overlay.windowScrollEvent
*/
@@ -2051,11 +2051,11 @@ version: 2.5.2
}
clearTimeout(window.scrollEnd);
-
- window.scrollEnd = setTimeout(function () {
- Overlay.windowScrollEvent.fire();
+
+ window.scrollEnd = setTimeout(function () {
+ Overlay.windowScrollEvent.fire();
}, 1);
-
+
} else {
Overlay.windowScrollEvent.fire();
}
@@ -2077,7 +2077,7 @@ version: 2.5.2
clearTimeout(window.resizeEnd);
window.resizeEnd = setTimeout(function () {
- Overlay.windowResizeEvent.fire();
+ Overlay.windowResizeEvent.fire();
}, 100);
} else {
Overlay.windowResizeEvent.fire();
@@ -2085,7 +2085,7 @@ version: 2.5.2
};
/**
- * A boolean that indicated whether the window resize and scroll events have
+ * A boolean that indicated whether the window resize and scroll events have
* already been subscribed to.
* @property YAHOO.widget.Overlay._initialized
* @private
@@ -2096,37 +2096,37 @@ version: 2.5.2
if (Overlay._initialized === null) {
Event.on(window, "scroll", Overlay.windowScrollHandler);
Event.on(window, "resize", Overlay.windowResizeHandler);
-
+
Overlay._initialized = true;
}
YAHOO.extend(Overlay, Module, {
/**
- * The Overlay initialization method, which is executed for Overlay and
- * all of its subclasses. This method is automatically called by the
- * constructor, and sets up all DOM references for pre-existing markup,
+ * The Overlay initialization method, which is executed for Overlay and
+ * all of its subclasses. This method is automatically called by the
+ * constructor, and sets up all DOM references for pre-existing markup,
* and creates required markup if it is not already present.
* @method init
* @param {String} el The element ID representing the Overlay <em>OR</em>
* @param {HTMLElement} el The element representing the Overlay
- * @param {Object} userConfig The configuration object literal
- * containing the configuration that should be set for this Overlay.
+ * @param {Object} userConfig The configuration object literal
+ * containing the configuration that should be set for this Overlay.
* See configuration documentation for more details.
*/
init: function (el, userConfig) {
-
+
/*
Note that we don't pass the user config in here yet because we
only want it executed once, at the lowest subclass level
*/
-
- Overlay.superclass.init.call(this, el/*, userConfig*/);
+
+ Overlay.superclass.init.call(this, el/*, userConfig*/);
this.beforeInitEvent.fire(Overlay);
-
+
Dom.addClass(this.element, Overlay.CSS_OVERLAY);
-
+
if (userConfig) {
this.cfg.applyConfig(userConfig, true);
}
@@ -2136,15 +2136,15 @@ version: 2.5.2
if (! Config.alreadySubscribed(this.showEvent,
this.showMacGeckoScrollbars, this)) {
- this.showEvent.subscribe(this.showMacGeckoScrollbars,
+ this.showEvent.subscribe(this.showMacGeckoScrollbars,
this, true);
}
- if (! Config.alreadySubscribed(this.hideEvent,
+ if (! Config.alreadySubscribed(this.hideEvent,
this.hideMacGeckoScrollbars, this)) {
- this.hideEvent.subscribe(this.hideMacGeckoScrollbars,
+ this.hideEvent.subscribe(this.hideMacGeckoScrollbars,
this, true);
}
@@ -2152,18 +2152,18 @@ version: 2.5.2
this.initEvent.fire(Overlay);
},
-
+
/**
- * Initializes the custom events for Overlay which are fired
+ * Initializes the custom events for Overlay which are fired
* automatically at appropriate times by the Overlay class.
* @method initEvents
*/
initEvents: function () {
-
+
Overlay.superclass.initEvents.call(this);
-
+
var SIGNATURE = CustomEvent.LIST;
-
+
/**
* CustomEvent fired before the Overlay is moved.
* @event beforeMoveEvent
@@ -2172,7 +2172,7 @@ version: 2.5.2
*/
this.beforeMoveEvent = this.createEvent(EVENT_TYPES.BEFORE_MOVE);
this.beforeMoveEvent.signature = SIGNATURE;
-
+
/**
* CustomEvent fired after the Overlay is moved.
* @event moveEvent
@@ -2181,34 +2181,34 @@ version: 2.5.2
*/
this.moveEvent = this.createEvent(EVENT_TYPES.MOVE);
this.moveEvent.signature = SIGNATURE;
-
+
},
-
+
/**
- * Initializes the class's configurable properties which can be changed
+ * Initializes the class's configurable properties which can be changed
* using the Overlay's Config object (cfg).
* @method initDefaultConfig
*/
initDefaultConfig: function () {
-
+
Overlay.superclass.initDefaultConfig.call(this);
-
-
+
+
// Add overlay config properties //
-
+
/**
* The absolute x-coordinate position of the Overlay
* @config x
* @type Number
* @default null
*/
- this.cfg.addProperty(DEFAULT_CONFIG.X.key, {
-
- handler: this.configX,
- validator: DEFAULT_CONFIG.X.validator,
- suppressEvent: DEFAULT_CONFIG.X.suppressEvent,
+ this.cfg.addProperty(DEFAULT_CONFIG.X.key, {
+
+ handler: this.configX,
+ validator: DEFAULT_CONFIG.X.validator,
+ suppressEvent: DEFAULT_CONFIG.X.suppressEvent,
supercedes: DEFAULT_CONFIG.X.supercedes
-
+
});
/**
@@ -2219,13 +2219,13 @@ version: 2.5.2
*/
this.cfg.addProperty(DEFAULT_CONFIG.Y.key, {
- handler: this.configY,
- validator: DEFAULT_CONFIG.Y.validator,
- suppressEvent: DEFAULT_CONFIG.Y.suppressEvent,
+ handler: this.configY,
+ validator: DEFAULT_CONFIG.Y.validator,
+ suppressEvent: DEFAULT_CONFIG.Y.suppressEvent,
supercedes: DEFAULT_CONFIG.Y.supercedes
});
-
+
/**
* An array with the absolute x and y positions of the Overlay
* @config xy
@@ -2233,47 +2233,47 @@ version: 2.5.2
* @default null
*/
this.cfg.addProperty(DEFAULT_CONFIG.XY.key, {
-
- handler: this.configXY,
- suppressEvent: DEFAULT_CONFIG.XY.suppressEvent,
+
+ handler: this.configXY,
+ suppressEvent: DEFAULT_CONFIG.XY.suppressEvent,
supercedes: DEFAULT_CONFIG.XY.supercedes
-
+
});
-
+
/**
- * The array of context arguments for context-sensitive positioning.
- * The format is: [id or element, element corner, context corner].
- * For example, setting this property to ["img1", "tl", "bl"] would
- * align the Overlay's top left corner to the context element's
+ * The array of context arguments for context-sensitive positioning.
+ * The format is: [id or element, element corner, context corner].
+ * For example, setting this property to ["img1", "tl", "bl"] would
+ * align the Overlay's top left corner to the context element's
* bottom left corner.
* @config context
* @type Array
* @default null
*/
this.cfg.addProperty(DEFAULT_CONFIG.CONTEXT.key, {
-
- handler: this.configContext,
- suppressEvent: DEFAULT_CONFIG.CONTEXT.suppressEvent,
+
+ handler: this.configContext,
+ suppressEvent: DEFAULT_CONFIG.CONTEXT.suppressEvent,
supercedes: DEFAULT_CONFIG.CONTEXT.supercedes
-
+
});
/**
- * True if the Overlay should be anchored to the center of
+ * True if the Overlay should be anchored to the center of
* the viewport.
* @config fixedcenter
* @type Boolean
* @default false
*/
this.cfg.addProperty(DEFAULT_CONFIG.FIXED_CENTER.key, {
-
+
handler: this.configFixedCenter,
- value: DEFAULT_CONFIG.FIXED_CENTER.value,
- validator: DEFAULT_CONFIG.FIXED_CENTER.validator,
+ value: DEFAULT_CONFIG.FIXED_CENTER.value,
+ validator: DEFAULT_CONFIG.FIXED_CENTER.validator,
supercedes: DEFAULT_CONFIG.FIXED_CENTER.supercedes
-
+
});
-
+
/**
* CSS width of the Overlay.
* @config width
@@ -2282,8 +2282,8 @@ version: 2.5.2
*/
this.cfg.addProperty(DEFAULT_CONFIG.WIDTH.key, {
- handler: this.configWidth,
- suppressEvent: DEFAULT_CONFIG.WIDTH.suppressEvent,
+ handler: this.configWidth,
+ suppressEvent: DEFAULT_CONFIG.WIDTH.suppressEvent,
supercedes: DEFAULT_CONFIG.WIDTH.supercedes
});
@@ -2296,12 +2296,12 @@ version: 2.5.2
*/
this.cfg.addProperty(DEFAULT_CONFIG.HEIGHT.key, {
- handler: this.configHeight,
- suppressEvent: DEFAULT_CONFIG.HEIGHT.suppressEvent,
+ handler: this.configHeight,
+ suppressEvent: DEFAULT_CONFIG.HEIGHT.suppressEvent,
supercedes: DEFAULT_CONFIG.HEIGHT.supercedes
-
+
});
-
+
/**
* CSS z-index of the Overlay.
* @config zIndex
@@ -2316,7 +2316,7 @@ version: 2.5.2
});
/**
- * True if the Overlay should be prevented from being positioned
+ * True if the Overlay should be prevented from being positioned
* out of the viewport.
* @config constraintoviewport
* @type Boolean
@@ -2324,18 +2324,18 @@ version: 2.5.2
*/
this.cfg.addProperty(DEFAULT_CONFIG.CONSTRAIN_TO_VIEWPORT.key, {
- handler: this.configConstrainToViewport,
- value: DEFAULT_CONFIG.CONSTRAIN_TO_VIEWPORT.value,
- validator: DEFAULT_CONFIG.CONSTRAIN_TO_VIEWPORT.validator,
+ handler: this.configConstrainToViewport,
+ value: DEFAULT_CONFIG.CONSTRAIN_TO_VIEWPORT.value,
+ validator: DEFAULT_CONFIG.CONSTRAIN_TO_VIEWPORT.validator,
supercedes: DEFAULT_CONFIG.CONSTRAIN_TO_VIEWPORT.supercedes
});
/**
* @config iframe
- * @description Boolean indicating whether or not the Overlay should
- * have an IFRAME shim; used to prevent SELECT elements from
- * poking through an Overlay instance in IE6. When set to "true",
+ * @description Boolean indicating whether or not the Overlay should
+ * have an IFRAME shim; used to prevent SELECT elements from
+ * poking through an Overlay instance in IE6. When set to "true",
* the iframe shim is created when the Overlay instance is intially
* made visible.
* @type Boolean
@@ -2343,16 +2343,16 @@ version: 2.5.2
*/
this.cfg.addProperty(DEFAULT_CONFIG.IFRAME.key, {
- handler: this.configIframe,
- value: DEFAULT_CONFIG.IFRAME.value,
- validator: DEFAULT_CONFIG.IFRAME.validator,
+ handler: this.configIframe,
+ value: DEFAULT_CONFIG.IFRAME.value,
+ validator: DEFAULT_CONFIG.IFRAME.validator,
supercedes: DEFAULT_CONFIG.IFRAME.supercedes
});
},
/**
- * Moves the Overlay to the specified position. This function is
+ * Moves the Overlay to the specified position. This function is
* identical to calling this.cfg.setProperty("xy", [x,y]);
* @method moveTo
* @param {Number} x The Overlay's new x position
@@ -2363,41 +2363,41 @@ version: 2.5.2
},
/**
- * Adds a CSS class ("hide-scrollbars") and removes a CSS class
- * ("show-scrollbars") to the Overlay to fix a bug in Gecko on Mac OS X
+ * Adds a CSS class ("hide-scrollbars") and removes a CSS class
+ * ("show-scrollbars") to the Overlay to fix a bug in Gecko on Mac OS X
* (https://bugzilla.mozilla.org/show_bug.cgi?id=187435)
* @method hideMacGeckoScrollbars
*/
hideMacGeckoScrollbars: function () {
-
+
Dom.removeClass(this.element, "show-scrollbars");
Dom.addClass(this.element, "hide-scrollbars");
-
+
},
/**
- * Adds a CSS class ("show-scrollbars") and removes a CSS class
- * ("hide-scrollbars") to the Overlay to fix a bug in Gecko on Mac OS X
+ * Adds a CSS class ("show-scrollbars") and removes a CSS class
+ * ("hide-scrollbars") to the Overlay to fix a bug in Gecko on Mac OS X
* (https://bugzilla.mozilla.org/show_bug.cgi?id=187435)
* @method showMacGeckoScrollbars
*/
showMacGeckoScrollbars: function () {
-
+
Dom.removeClass(this.element, "hide-scrollbars");
Dom.addClass(this.element, "show-scrollbars");
-
+
},
// BEGIN BUILT-IN PROPERTY EVENT HANDLERS //
/**
- * The default event handler fired when the "visible" property is
+ * The default event handler fired when the "visible" property is
* changed. This method is responsible for firing showEvent
* and hideEvent.
* @method configVisible
* @param {String} type The CustomEvent type (usually the property name)
* @param {Object[]} args The CustomEvent arguments. For configuration
* handlers, args[0] will equal the newly applied value for the property.
- * @param {Object} obj The scope object. For configuration handlers,
+ * @param {Object} obj The scope object. For configuration handlers,
* this will usually equal the owner.
*/
configVisible: function (type, args, obj) {
@@ -2418,8 +2418,8 @@ version: 2.5.2
while (e.nodeType != 9 && e.nodeType != 11) {
currentVis = Dom.getStyle(e, "visibility");
- if (currentVis != "inherit") {
- break;
+ if (currentVis != "inherit") {
+ break;
}
e = e.parentNode;
@@ -2436,12 +2436,12 @@ version: 2.5.2
for (i = 0; i < nEffects; i++) {
eff = effect[i];
- effectInstances[effectInstances.length] =
+ effectInstances[effectInstances.length] =
eff.effect(this, eff.duration);
}
} else {
- effectInstances[effectInstances.length] =
+ effectInstances[effectInstances.length] =
effect.effect(this, effect.duration);
}
}
@@ -2461,11 +2461,11 @@ version: 2.5.2
for (j = 0; j < nEffectInstances; j++) {
ei = effectInstances[j];
if (j === 0 && !alreadySubscribed(
- ei.animateInCompleteEvent,
+ ei.animateInCompleteEvent,
this.showEvent.fire, this.showEvent)) {
/*
- Delegate showEvent until end
+ Delegate showEvent until end
of animateInComplete
*/
@@ -2491,7 +2491,7 @@ version: 2.5.2
if (isMacGecko) {
this.hideMacGeckoScrollbars();
}
-
+
if (effect) { // Animate out if showing
if (currentVis == "visible") {
this.beforeHideEvent.fire();
@@ -2499,19 +2499,19 @@ version: 2.5.2
nEffectInstances = effectInstances.length;
for (k = 0; k < nEffectInstances; k++) {
h = effectInstances[k];
-
+
if (k === 0 && !alreadySubscribed(
- h.animateOutCompleteEvent, this.hideEvent.fire,
+ h.animateOutCompleteEvent, this.hideEvent.fire,
this.hideEvent)) {
-
+
/*
- Delegate hideEvent until end
+ Delegate hideEvent until end
of animateOutComplete
*/
-
+
h.animateOutCompleteEvent.subscribe(
this.hideEvent.fire, this.hideEvent, true);
-
+
}
h.animateOut();
}
@@ -2532,7 +2532,7 @@ version: 2.5.2
},
/**
- * Center event handler used for centering on scroll/resize, but only if
+ * Center event handler used for centering on scroll/resize, but only if
* the Overlay is visible
* @method doCenterOnDOMEvent
*/
@@ -2543,13 +2543,13 @@ version: 2.5.2
},
/**
- * The default event handler fired when the "fixedcenter" property
+ * The default event handler fired when the "fixedcenter" property
* is changed.
* @method configFixedCenter
* @param {String} type The CustomEvent type (usually the property name)
- * @param {Object[]} args The CustomEvent arguments. For configuration
+ * @param {Object[]} args The CustomEvent arguments. For configuration
* handlers, args[0] will equal the newly applied value for the property.
- * @param {Object} obj The scope object. For configuration handlers,
+ * @param {Object} obj The scope object. For configuration handlers,
* this will usually equal the owner.
*/
configFixedCenter: function (type, args, obj) {
@@ -2581,14 +2581,14 @@ version: 2.5.2
windowScrollEvent.unsubscribe(this.doCenterOnDOMEvent, this);
}
},
-
+
/**
* The default event handler fired when the "height" property is changed.
* @method configHeight
* @param {String} type The CustomEvent type (usually the property name)
- * @param {Object[]} args The CustomEvent arguments. For configuration
+ * @param {Object[]} args The CustomEvent arguments. For configuration
* handlers, args[0] will equal the newly applied value for the property.
- * @param {Object} obj The scope object. For configuration handlers,
+ * @param {Object} obj The scope object. For configuration handlers,
* this will usually equal the owner.
*/
configHeight: function (type, args, obj) {
@@ -2604,27 +2604,27 @@ version: 2.5.2
* The default event handler fired when the "width" property is changed.
* @method configWidth
* @param {String} type The CustomEvent type (usually the property name)
- * @param {Object[]} args The CustomEvent arguments. For configuration
+ * @param {Object[]} args The CustomEvent arguments. For configuration
* handlers, args[0] will equal the newly applied value for the property.
- * @param {Object} obj The scope object. For configuration handlers,
+ * @param {Object} obj The scope object. For configuration handlers,
* this will usually equal the owner.
*/
configWidth: function (type, args, obj) {
var width = args[0],
el = this.element;
-
+
Dom.setStyle(el, "width", width);
this.cfg.refireEvent("iframe");
},
-
+
/**
* The default event handler fired when the "zIndex" property is changed.
* @method configzIndex
* @param {String} type The CustomEvent type (usually the property name)
- * @param {Object[]} args The CustomEvent arguments. For configuration
+ * @param {Object[]} args The CustomEvent arguments. For configuration
* handlers, args[0] will equal the newly applied value for the property.
- * @param {Object} obj The scope object. For configuration handlers,
+ * @param {Object} obj The scope object. For configuration handlers,
* this will usually equal the owner.
*/
configzIndex: function (type, args, obj) {
@@ -2657,9 +2657,9 @@ version: 2.5.2
* The default event handler fired when the "xy" property is changed.
* @method configXY
* @param {String} type The CustomEvent type (usually the property name)
- * @param {Object[]} args The CustomEvent arguments. For configuration
+ * @param {Object[]} args The CustomEvent arguments. For configuration
* handlers, args[0] will equal the newly applied value for the property.
- * @param {Object} obj The scope object. For configuration handlers,
+ * @param {Object} obj The scope object. For configuration handlers,
* this will usually equal the owner.
*/
configXY: function (type, args, obj) {
@@ -2685,9 +2685,9 @@ version: 2.5.2
* The default event handler fired when the "x" property is changed.
* @method configX
* @param {String} type The CustomEvent type (usually the property name)
- * @param {Object[]} args The CustomEvent arguments. For configuration
+ * @param {Object[]} args The CustomEvent arguments. For configuration
* handlers, args[0] will equal the newly applied value for the property.
- * @param {Object} obj The scope object. For configuration handlers,
+ * @param {Object} obj The scope object. For configuration handlers,
* this will usually equal the owner.
*/
configX: function (type, args, obj) {
@@ -2702,7 +2702,7 @@ version: 2.5.2
x = this.cfg.getProperty("x");
y = this.cfg.getProperty("y");
-
+
Dom.setX(this.element, x, true);
this.cfg.setProperty("xy", [x, y], true);
@@ -2715,9 +2715,9 @@ version: 2.5.2
* The default event handler fired when the "y" property is changed.
* @method configY
* @param {String} type The CustomEvent type (usually the property name)
- * @param {Object[]} args The CustomEvent arguments. For configuration
+ * @param {Object[]} args The CustomEvent arguments. For configuration
* handlers, args[0] will equal the newly applied value for the property.
- * @param {Object} obj The scope object. For configuration handlers,
+ * @param {Object} obj The scope object. For configuration handlers,
* this will usually equal the owner.
*/
configY: function (type, args, obj) {
@@ -2740,7 +2740,7 @@ version: 2.5.2
this.cfg.refireEvent("iframe");
this.moveEvent.fire([x, y]);
},
-
+
/**
* Shows the iframe shim, if it has been enabled.
* @method showIframe
@@ -2771,7 +2771,7 @@ version: 2.5.2
},
/**
- * Syncronizes the size and position of iframe shim to that of its
+ * Syncronizes the size and position of iframe shim to that of its
* corresponding Overlay instance.
* @method syncIframe
*/
@@ -2801,13 +2801,13 @@ version: 2.5.2
/**
* Sets the zindex of the iframe shim, if it exists, based on the zindex of
- * the Overlay element. The zindex of the iframe is set to be one less
+ * the Overlay element. The zindex of the iframe is set to be one less
* than the Overlay element's zindex.
- *
+ *
* <p>NOTE: This method will not bump up the zindex of the Overlay element
* to ensure that the iframe shim has a non-negative zindex.
- * If you require the iframe zindex to be 0 or higher, the zindex of
- * the Overlay element should be set to a value greater than 0, before
+ * If you require the iframe zindex to be 0 or higher, the zindex of
+ * the Overlay element should be set to a value greater than 0, before
* this method is called.
* </p>
* @method stackIframe
@@ -2825,9 +2825,9 @@ version: 2.5.2
* The default event handler fired when the "iframe" property is changed.
* @method configIframe
* @param {String} type The CustomEvent type (usually the property name)
- * @param {Object[]} args The CustomEvent arguments. For configuration
+ * @param {Object[]} args The CustomEvent arguments. For configuration
[... 4282 lines stripped ...]