From 47c0c3dfa74e2645b9005d7c2a85a50681bbb686 Mon Sep 17 00:00:00 2001 From: Caridy Date: Wed, 1 Jul 2009 19:54:39 -0400 Subject: [PATCH] - fixing queue for yui 2.x. - changing the injection routine based on Nicholas Zakas article. - removing queue for yui 3.x, yui loader will do it. --- api/YAHOO_bootstrap.html | 3 - api/bootstrap-debug.js | 480 ------------------ api/bootstrap-debug.js.highlighted | 481 ------------------ api/bootstrap-debug.js.html | 608 ----------------------- api/bootstrap-min.js | 1 - api/bootstrap-min.js.highlighted | 2 - api/bootstrap.js | 480 ------------------ api/bootstrap.js.highlighted | 481 ------------------ api/classmap.js.highlighted | 16 - api/parsed.json | 2 +- api/raw.json | 2 +- api/yahoo_bootstrap-debug.js | 272 ---------- api/yahoo_bootstrap-debug.js.highlighted | 273 ---------- api/yahoo_bootstrap-min.js | 1 - api/yahoo_bootstrap-min.js.highlighted | 2 - api/yahoo_bootstrap.js | 46 +- api/yahoo_bootstrap.js.highlighted | 46 +- api/yahoo_bootstrap.js.html | 46 +- api/yui_bootstrap-debug.js | 208 -------- api/yui_bootstrap-debug.js.highlighted | 209 -------- api/yui_bootstrap-min.js | 1 - api/yui_bootstrap-min.js.highlighted | 2 - api/yui_bootstrap.js | 31 +- api/yui_bootstrap.js.highlighted | 31 +- api/yui_bootstrap.js.html | 31 +- build/bootstrap/bootstrap-debug.js | 77 ++- build/bootstrap/bootstrap-min.js | 2 +- build/bootstrap/bootstrap.js | 77 ++- build/bootstrap/yahoo_bootstrap-debug.js | 46 +- build/bootstrap/yahoo_bootstrap-min.js | 2 +- build/bootstrap/yahoo_bootstrap.js | 46 +- build/bootstrap/yui_bootstrap-debug.js | 31 +- build/bootstrap/yui_bootstrap-min.js | 2 +- build/bootstrap/yui_bootstrap.js | 31 +- src/bootstrap/js/yahoo_bootstrap.js | 46 +- src/bootstrap/js/yui_bootstrap.js | 31 +- 36 files changed, 301 insertions(+), 3845 deletions(-) delete mode 100644 api/bootstrap-debug.js delete mode 100644 api/bootstrap-debug.js.highlighted delete mode 100644 api/bootstrap-debug.js.html delete mode 100644 api/bootstrap-min.js delete mode 100644 api/bootstrap-min.js.highlighted delete mode 100644 api/bootstrap.js delete mode 100644 api/bootstrap.js.highlighted delete mode 100644 api/classmap.js.highlighted delete mode 100644 api/yahoo_bootstrap-debug.js delete mode 100644 api/yahoo_bootstrap-debug.js.highlighted delete mode 100644 api/yahoo_bootstrap-min.js delete mode 100644 api/yahoo_bootstrap-min.js.highlighted delete mode 100644 api/yui_bootstrap-debug.js delete mode 100644 api/yui_bootstrap-debug.js.highlighted delete mode 100644 api/yui_bootstrap-min.js delete mode 100644 api/yui_bootstrap-min.js.highlighted diff --git a/api/YAHOO_bootstrap.html b/api/YAHOO_bootstrap.html index bdcf49e..0049b40 100644 --- a/api/YAHOO_bootstrap.html +++ b/api/YAHOO_bootstrap.html @@ -93,9 +93,6 @@

Constructor

  • Global:
  • ------------------------------------------------------------------------
  • debug: Turn debug statements on or off
  • -
  • injected: set to true if the yui seed file was dynamically loaded in -order to bootstrap components relying on the window load event and onDOMReady -(former injecting on YAHOO_config).
  • locale: default locale
  • -------------------------------------------------------------------------
  • For loader:
  • diff --git a/api/bootstrap-debug.js b/api/bootstrap-debug.js deleted file mode 100644 index fc162c9..0000000 --- a/api/bootstrap-debug.js +++ /dev/null @@ -1,480 +0,0 @@ -/** - * Provides Bootstrap definition based on YUI 3.x. - * - * @module bootstrap - */ -(function() { - - var _config = {modules:{}}, - _loaderQueue = []; - - /** - * YUI_bootstrap function. If YUI_bootstrap is already defined, the - * existing YUI_bootstrap function will not be overwritten to preserve - * the state of the bootstrap. - * - * @class YUI_bootstrap - * @static - * @global - * @param o Optional configuration object. Options: - * - * - * Also, we can pass a custom argument thru "o" to customize - * the file that should be injected to define the YUI Loader Utility. This feature allow us to - * define a custom COMBO url to load a default set of components including loader in a single entry. - * - * @param boolean def if true, "o" will be used as the default configuration object for succesive - * calls without the "o" argument. - * - */ - - /** - * Dispatch the first element from the job queue - * @method _loaderDispatch - * @private - * @static - * @return void - */ - function _loaderDispatch () { - var c; - if ((c = _loaderQueue.shift())) { - c.call(); - } - } - - /** - * Include YUI Loader in the the page, and wait until it get available to start dispatching jobs - * from the queue - * @method _includeLoader - * @private - * @static - * @return void - */ - function _includeLoader () { - /* injecting the YUI Loader in the current page */ - var base = _config.base || 'http://yui.yahooapis.com/3.0.0pr2/build/', - seed = _config.seed || 'yui/yui-min.js', - s = document.createElement('script'), - fn = function(){ - if ((typeof YUI === 'undefined') || !YUI || YUI.Loader) { - // keep waiting... - window.setTimeout(fn, 50); - } else { - // YUI is ready... - window.setTimeout(_loaderDispatch, 1); - } - }; - s.setAttribute('type', 'text/javascript'); - // analyzing the seed - seed = (seed.indexOf('http')===0?seed:base+seed); - s.setAttribute('src', seed); - document.getElementsByTagName('head')[0].appendChild(s); - fn(); - } - - /** - * Verify if the current configuration object just defines new modules. If that's the case, - * we will use "_config" as the computed configuration, and "o" as the list of modules to add. - * @method _getConf - * @param o currrent configuration object - * @private - * @static - * @return object computed configuration - */ - function _getConf(o) { - o = o||{}; - var m = o.modules || {}, - flag = true, i; - for (i in o) { - if (o.hasOwnProperty(i) && (i != 'modules')) { - flag = false; - } - } - // using _config and injecting more modules - if (flag) { - for (i in m) { - if (m.hasOwnProperty(i)) { - _config.modules[i] = m[i]; - } - } - o = _config; - } - return o; - } - - YUI_bootstrap = function (o, def) { - // analyzing "o" - o = _getConf(o); - // if def is true, o will be used as the default config from now on - _config = (def?o:_config); - return { - /** - * Load a set of modules and notify thru the callback method. - * @param modules* {string} 1-n modules to bind (uses arguments array) - * @param *callback {function} callback function executed when - * the instance has the required functionality. If included, it - * must be the last parameter. - * - * YUI_bootstrap().use('dd', callback) - * - * @return void - */ - use: function () { - var a=Array.prototype.slice.call(arguments, 0); - _loaderQueue.push (function () { - /* hack: cloning configuration */ - var j, c = {}; - for (j in o) { - if (o.hasOwnProperty(j)) { - c[j] = o[j]; - } - } - /* end hack */ - var Y = YUI(c), i; - Y.use.apply (Y, a); - _loaderDispatch(); // dispatching the rest of the waiting jobs - }); - // verifying if the loader is ready in the page, if not, it will be - // included automatically and then the process will continue. - if (_loaderQueue.length===1) { - ((typeof YUI === 'undefined' || !YUI)?_includeLoader():_loaderDispatch()); - } - } - }; - }; - -})(); -/** - * Provides Bootstrap definition based on YUI 2.x. - * - * @module bootstrap - */ -(function() { - - var _config = {modules:{}}, - _loaderObj = null, - _loaderQueue = []; - - /** - * YAHOO_bootstrap function. If YAHOO_bootstrap is already defined, the - * existing YAHOO_bootstrap function will not be overwritten to preserve - * the state of the bootstrap. - * - * @class YAHOO_bootstrap - * @static - * @global - * @param o Optional configuration object. Options: - * - * - * Also, we can pass a custom argument thru "o" to customize - * the file that should be injected to define the YUI Loader Utility. This feature allow us to - * define a custom COMBO url to load a default set of components including loader in a single entry. - * - * @param boolean def if true, "o" will be used as the default configuration object for succesive - * calls without the "o" argument. - * - */ - - /** - * Dispatch the first element from the job queue - * @method _loaderDispatch - * @private - * @static - * @return void - */ - function _loaderDispatch () { - var c; - if ((c = _loaderQueue.shift())) { - c.call(); - } - } - - /** - * Include YUI Loader in the the page, and wait until it get available to start dispatching jobs - * from the queue - * @method _includeLoader - * @private - * @static - * @return void - */ - function _includeLoader () { - var base = _config.base || 'http://yui.yahooapis.com/2.7.0/build/', - seed = _config.seed || 'yuiloader/yuiloader-min.js'; - // analyzing the seed - seed = (seed.indexOf('http')===0?seed:base+seed); - // Encapsulation Pattern: Conjuring YUI from thin air (by Chris Heilmann) - // more info: http://www.wait-till-i.com/2008/08/02/conjuring-yui-from-thin-air/ - YAHOO_config = function() { - /* injecting the YUI Loader in the current page */ - var s = document.createElement('script'); - s.setAttribute('type', 'text/javascript'); - s.setAttribute('src', seed); - document.getElementsByTagName('head')[0].appendChild(s); - return { - // true if the library should be dynamically loaded after window.onload. - injecting: !!_config.injected, - listener: function(o) { - // waiting for the loader component - if (o.name === 'get') { - window.setTimeout(_loaderDispatch, 1); - } - } - }; - }(); - } - - /** - * Add a set of modules to _loaderObj, it also normalize the module information before include it - * @method _addMods - * @private - * @static - * @param {object} m collection of modules - * @return void - */ - function _addMods (m) { - var i; - // adding modules to the loader - if (m && (typeof m === 'object')) { - for (i in m) { - if (m.hasOwnProperty(i)) { - m[i].name = m[i].name || i; - m[i].type = m[i].type || ((m[i].fullpath||m[i].path).indexOf('.css')>=0?'css':'js'); - //console.log ('Adding a default module: ', m[i].name, m[i]); - _loaderObj.addModule (m[i]); - } - } - } - } - - /** - * Initialization process for the YUI Loader obj. In YUI 2.x we should - * have a single instance to control everything. - * @method _initLoader - * @private - * @static - * @return void - */ - function _initLoader (l) { - var i, m; - - if (!_loaderObj) { - /* creating the loader object for this region */ - l = l || {}; - l.combine = (l.hasOwnProperty('combine')?l.combine:true); /* using the Combo Handle */ - l.filter = l.filter || 'min'; /* you can switch between YUI branch */ - - // more config here ... - - _loaderObj = new YAHOO.util.YUILoader(l); - _addMods(l.modules); - } - // probably more configurations here - } - - /** - * Verify if the current configuration object just defines new modules. If that's the case, - * we will use "_config" as the computed configuration, and "o" as the list of modules to add. - * @method _getConf - * @param o currrent configuration object - * @private - * @static - * @return object computed configuration - */ - function _getConf(o) { - o = o||{}; - var m = o.modules || {}, - flag = true, i; - for (i in o) { - if (o.hasOwnProperty(i) && (i != 'modules')) { - flag = false; - } - } - // using _config and injecting more modules - if (flag) { - for (i in m) { - if (m.hasOwnProperty(i)) { - _config.modules[i] = m[i]; - } - } - if (_loaderObj) { - _addMods(m); - } - o = _config; - } - return o; - } - - YAHOO_bootstrap = function (o, def) { - // analyzing "o" - o = _getConf(o); - // if def is true, o will be used as the default config from now on - _config = (def?o:_config); - return { - /** - * Load a set of modules and notify thru the callback method. - * @param modules* {string} 1-n modules to bind (uses arguments array) - * @param *callback {function} callback function executed when - * the instance has the required functionality. If included, it - * must be the last parameter. - * - * YAHOO_bootstrap().use('tabview', callback) - * - * @return void - */ - use: function () { - var a=Array.prototype.slice.call(arguments, 0), - callback = a.pop (); - _loaderQueue.push (function () { - var i; - _initLoader(o); - _loaderObj.require(a); - _loaderObj.insert({ - onSuccess: function () { - _loaderDispatch(); - callback.call(); - (o.onSuccess || function(){}).call(); - }, - onFailure: function(){ - _loaderDispatch(); - (o.onFailure || function(){}).call(); - }, - onTimeout: function () { - _loaderDispatch(); - (o.onTimeout || function(){}).call(); - } - }, o.type); - }); - // verifying if the loader is ready in the page, if not, it will be - // included automatically and then the process will continue. - if (_loaderQueue.length===1) { - ((typeof YAHOO == "undefined" || !YAHOO)?_includeLoader():_loaderDispatch()); - } - } - }; - }; - -})(); diff --git a/api/bootstrap-debug.js.highlighted b/api/bootstrap-debug.js.highlighted deleted file mode 100644 index fb718d3..0000000 --- a/api/bootstrap-debug.js.highlighted +++ /dev/null @@ -1,481 +0,0 @@ -
    /** 
    - * Provides Bootstrap definition based on YUI 3.x.
    - *
    - * @module bootstrap
    - */
    -(function() {
    -	
    -	var _config = {modules:{}},
    -		_loaderQueue = [];
    -   	
    -	/**
    -     * YUI_bootstrap function.  If YUI_bootstrap is already defined, the
    -     * existing YUI_bootstrap function will not be overwritten to preserve
    -     * the state of the bootstrap.
    -     *
    -     * @class YUI_bootstrap
    -     * @static
    -     * @global
    -     * @param o Optional configuration object.  Options:
    -     * <ul>
    -     *  <li>------------------------------------------------------------------------</li>
    -     *  <li>Global:</li>
    -     *  <li>------------------------------------------------------------------------</li>
    -     *  <li>debug: Turn debug statements on or off</li>
    -     *  <li>injected: set to true if the yui seed file was dynamically loaded in
    -     *  order to bootstrap components relying on the window load event and onDOMReady
    -     *  (former injecting on YAHOO_config).</li>
    -     *  <li>locale: default locale</li>
    -     *  <li>-------------------------------------------------------------------------</li>
    -     *  <li>For loader:</li>
    -     *  <li>-------------------------------------------------------------------------</li>
    -     *  <li>base: The base dir</li>
    -     *  <li>comboBase: The YUI combo service base dir. Ex: http://yui.yahooapis.com/combo?</li>
    -     *  <li>root: The root path to prepend to module names for the combo service. Ex\\: 2\\.5\\.2\\/build\\/</li>
    -     *  <li>filter:
    -     *  
    -     * A filter to apply to result urls.  This filter will modify the default
    -     * path for all modules.  The default path for the YUI library is the
    -     * minified version of the files (e.g., event-min.js).  The filter property
    -     * can be a predefined filter or a custom filter.  The valid predefined 
    -     * filters are:
    -     * <dl>
    -     *  <dt>DEBUG</dt>
    -     *  <dd>Selects the debug versions of the library (e.g., event-debug.js).
    -     *      This option will automatically include the Logger widget</dd>
    -     *  <dt>RAW</dt>
    -     *  <dd>Selects the non-minified version of the library (e.g., event.js).</dd>
    -     * </dl>
    -     * You can also define a custom filter, which must be an object literal 
    -     * containing a search expression and a replace string:
    -     * <pre>
    -     *  myFilter: &#123; 
    -     *      'searchExp': "-min\\.js", 
    -     *      'replaceStr': "-debug.js"
    -     *  &#125;
    -     * </pre>
    -     *
    -     *  </li>
    -     *  <li>filters: per-component filter specification.  If specified for a given component, this overrides the filter config</li>
    -     *  <li>combine:
    -     *  Use the YUI combo service to reduce the number of http connections required to load your dependencies</li>
    -     *  <li>ignore:
    -     *  A list of modules that should never be dynamically loaded</li>
    -     *  <li>force:
    -     *  A list of modules that should always be loaded when required, even if already present on the page</li>
    -     *  <li>insertBefore:
    -     *  Node or id for a node that should be used as the insertion point for new nodes</li>
    -     *  <li>charset:
    -     *  charset for dynamic nodes</li>
    -     *  <li>timeout:
    -     *  number of milliseconds before a timeout occurs when dynamically loading nodes.  in not set, there is no timeout</li>
    -     *  <li>onSuccess:
    -     *  callback for the 'success' event</li>
    -     *  <li>onFailure:
    -     *  callback for the 'failure' event</li>
    -     *  <li>onTimeout:
    -     *  callback for the 'timeout' event</li>
    -     *  <li>onProgress:
    -     *  callback executed each time a script or css file is loaded</li>
    -     *  <li>modules:
    -     *  A list of module definitions.  See Loader.addModule for the supported module metadata</li>
    -     * </ul>
    -     * 
    -     * Also, we can pass a custom argument thru "o" to customize
    -     * the file that should be injected to define the YUI Loader Utility. This feature allow us to
    -     * define a custom COMBO url to load a default set of components including loader in a single entry.
    -     * 
    -     * @param boolean def if true, "o" will be used as the default configuration object for succesive 
    -     * calls without the "o" argument.
    -     *
    -     */
    -	
    -	/**
    -	 * Dispatch the first element from the job queue 
    -	 * @method _loaderDispatch
    -	 * @private
    -	 * @static
    -	 * @return void
    -	 */
    -	function _loaderDispatch () {
    -		var c;
    -		if ((c = _loaderQueue.shift())) {
    -			c.call();
    -		}
    -	}
    -	
    -	/**
    -	 * Include YUI Loader in the the page, and wait until it get available to start dispatching jobs
    -	 * from the queue
    -	 * @method _includeLoader
    -	 * @private
    -	 * @static
    -	 * @return void
    -	 */
    -	function _includeLoader () {
    -		/* injecting the YUI Loader in the current page */
    -		var base = _config.base || 'http://yui.yahooapis.com/3.0.0pr2/build/',
    -			seed = _config.seed || 'yui/yui-min.js',
    -			s = document.createElement('script'),
    -			fn = function(){
    -				if ((typeof YUI === 'undefined') || !YUI || YUI.Loader) {
    -					// keep waiting...
    -					window.setTimeout(fn, 50);
    -				} else {	  
    -					// YUI is ready...
    -					window.setTimeout(_loaderDispatch, 1);
    -				}
    -		    };
    -	    s.setAttribute('type', 'text/javascript');
    -		// analyzing the seed
    -		seed = (seed.indexOf('http')===0?seed:base+seed);
    -	    s.setAttribute('src', seed);
    -	    document.getElementsByTagName('head')[0].appendChild(s);
    -		fn();
    -	}
    -	
    -	/**
    -	 * Verify if the current configuration object just defines new modules. If that's the case, 
    -	 * we will use "_config" as the computed configuration, and "o" as the list of modules to add.
    -	 * @method _getConf
    -	 * @param o currrent configuration object
    -	 * @private
    -	 * @static
    -	 * @return object computed configuration
    -	 */
    -	function _getConf(o) {
    -		o = o||{};
    -		var m = o.modules || {}, 
    -			flag = true, i;
    -		for (i in o) {
    -		  	if (o.hasOwnProperty(i) && (i != 'modules')) {
    -		  		flag = false;
    -		  	}
    -		}
    -		// using _config and injecting more modules
    -		if (flag) {
    -			for (i in m) {
    -			  	if (m.hasOwnProperty(i)) {
    -					_config.modules[i] = m[i];
    -				}
    -			}
    -			o = _config;
    -		}
    -		return o;
    -	}
    -	
    -	YUI_bootstrap = function (o, def) {
    -		// analyzing "o"
    -		o = _getConf(o);
    -		// if def is true, o will be used as the default config from now on 
    -		_config = (def?o:_config);
    -		return {
    -			/**
    -		     * Load a set of modules and notify thru the callback method.
    -		     * @param modules* {string} 1-n modules to bind (uses arguments array)
    -		     * @param *callback {function} callback function executed when 
    -		     * the instance has the required functionality.  If included, it
    -		     * must be the last parameter.
    -		     *
    -		     * YUI_bootstrap().use('dd', callback)
    -		     *
    -		     * @return void
    -		     */
    -			use: function () {
    -				var a=Array.prototype.slice.call(arguments, 0);
    -				_loaderQueue.push (function () {
    -					/* hack: cloning configuration */
    -					var j, c = {};
    -					for (j in o) {
    -					  	if (o.hasOwnProperty(j)) {
    -							c[j] = o[j];
    -						}
    -					}
    -					/* end hack */
    -					var Y = YUI(c), i;
    -					Y.use.apply (Y, a);
    -					_loaderDispatch(); // dispatching the rest of the waiting jobs
    -				});
    -				// verifying if the loader is ready in the page, if not, it will be 
    -				// included automatically and then the process will continue.
    -				if (_loaderQueue.length===1) {
    -					((typeof YUI === 'undefined' || !YUI)?_includeLoader():_loaderDispatch());				
    -				}
    -			}
    -		};
    -	};
    -
    -})();
    -/** 
    - * Provides Bootstrap definition based on YUI 2.x.
    - *
    - * @module bootstrap
    - */
    -(function() {
    -	
    -	var _config = {modules:{}},
    -		_loaderObj = null,
    -		_loaderQueue = [];
    -		
    -	/**
    -     * YAHOO_bootstrap function.  If YAHOO_bootstrap is already defined, the
    -     * existing YAHOO_bootstrap function will not be overwritten to preserve
    -     * the state of the bootstrap.
    -     *
    -     * @class YAHOO_bootstrap
    -     * @static
    -     * @global
    -     * @param o Optional configuration object.  Options:
    -     * <ul>
    -     *  <li>------------------------------------------------------------------------</li>
    -     *  <li>Global:</li>
    -     *  <li>------------------------------------------------------------------------</li>
    -     *  <li>debug: Turn debug statements on or off</li>
    -     *  <li>injected: set to true if the yui seed file was dynamically loaded in
    -     *  order to bootstrap components relying on the window load event and onDOMReady
    -     *  (former injecting on YAHOO_config).</li>
    -     *  <li>locale: default locale</li>
    -     *  <li>-------------------------------------------------------------------------</li>
    -     *  <li>For loader:</li>
    -     *  <li>-------------------------------------------------------------------------</li>
    -     *  <li>base: The base dir</li>
    -     *  <li>comboBase: The YUI combo service base dir. Ex: http://yui.yahooapis.com/combo?</li>
    -     *  <li>root: The root path to prepend to module names for the combo service. Ex\\: 2\\.5\\.2\\/build\\/</li>
    -     *  <li>filter:
    -     *  
    -     * A filter to apply to result urls.  This filter will modify the default
    -     * path for all modules.  The default path for the YUI library is the
    -     * minified version of the files (e.g., event-min.js).  The filter property
    -     * can be a predefined filter or a custom filter.  The valid predefined 
    -     * filters are:
    -     * <dl>
    -     *  <dt>DEBUG</dt>
    -     *  <dd>Selects the debug versions of the library (e.g., event-debug.js).
    -     *      This option will automatically include the Logger widget</dd>
    -     *  <dt>RAW</dt>
    -     *  <dd>Selects the non-minified version of the library (e.g., event.js).</dd>
    -     * </dl>
    -     * You can also define a custom filter, which must be an object literal 
    -     * containing a search expression and a replace string:
    -     * <pre>
    -     *  myFilter: &#123; 
    -     *      'searchExp': "-min\\.js", 
    -     *      'replaceStr': "-debug.js"
    -     *  &#125;
    -     * </pre>
    -     *
    -     *  </li>
    -     *  <li>filters: per-component filter specification.  If specified for a given component, this overrides the filter config</li>
    -     *  <li>combine:
    -     *  Use the YUI combo service to reduce the number of http connections required to load your dependencies</li>
    -     *  <li>ignore:
    -     *  A list of modules that should never be dynamically loaded</li>
    -     *  <li>force:
    -     *  A list of modules that should always be loaded when required, even if already present on the page</li>
    -     *  <li>insertBefore:
    -     *  Node or id for a node that should be used as the insertion point for new nodes</li>
    -     *  <li>charset:
    -     *  charset for dynamic nodes</li>
    -     *  <li>timeout:
    -     *  number of milliseconds before a timeout occurs when dynamically loading nodes.  in not set, there is no timeout</li>
    -     *  <li>onSuccess:
    -     *  callback for the 'success' event</li>
    -     *  <li>onFailure:
    -     *  callback for the 'failure' event</li>
    -     *  <li>onTimeout:
    -     *  callback for the 'timeout' event</li>
    -     *  <li>onProgress:
    -     *  callback executed each time a script or css file is loaded</li>
    -     *  <li>modules:
    -     *  A list of module definitions.  See Loader.addModule for the supported module metadata</li>
    -     * </ul>
    -     * 
    -     * Also, we can pass a custom argument thru "o" to customize
    -     * the file that should be injected to define the YUI Loader Utility. This feature allow us to
    -     * define a custom COMBO url to load a default set of components including loader in a single entry.
    -     * 
    -     * @param boolean def if true, "o" will be used as the default configuration object for succesive 
    -     * calls without the "o" argument.
    -     * 
    -	 */
    -	
    -	/**
    -	 * Dispatch the first element from the job queue 
    -	 * @method _loaderDispatch
    -	 * @private
    -	 * @static
    -	 * @return void
    -	 */
    -	function _loaderDispatch () {
    -		var c;
    -		if ((c = _loaderQueue.shift())) {
    -			c.call();
    -		}
    -	}
    -	
    -	/**
    -	 * Include YUI Loader in the the page, and wait until it get available to start dispatching jobs
    -	 * from the queue
    -	 * @method _includeLoader
    -	 * @private
    -	 * @static
    -	 * @return void
    -	 */
    -	function _includeLoader () {
    -		var base = _config.base || 'http://yui.yahooapis.com/2.7.0/build/',
    -			seed = _config.seed || 'yuiloader/yuiloader-min.js';
    -		// analyzing the seed
    -		seed = (seed.indexOf('http')===0?seed:base+seed);
    -		// Encapsulation Pattern: Conjuring YUI from thin air (by Chris Heilmann)
    -		// more info: http://www.wait-till-i.com/2008/08/02/conjuring-yui-from-thin-air/
    -		YAHOO_config = function() {
    -		    /* injecting the YUI Loader in the current page */
    -		    var s = document.createElement('script');
    -		    s.setAttribute('type', 'text/javascript');
    -		    s.setAttribute('src', seed);
    -		    document.getElementsByTagName('head')[0].appendChild(s);
    -		    return {
    -		        // true if the library should be dynamically loaded after window.onload.
    -		        injecting: !!_config.injected,
    -		        listener: function(o) {
    -		            // waiting for the loader component
    -		            if (o.name === 'get') {
    -		                window.setTimeout(_loaderDispatch, 1);
    -		            }
    -		        }
    -		    };
    -		}();
    -	}
    -	
    -	/**
    -	 * Add a set of modules to _loaderObj, it also normalize the module information before include it
    -	 * @method _addMods
    -	 * @private
    -	 * @static
    -	 * @param {object} m collection of modules
    -	 * @return void
    -	 */
    -	function _addMods (m) {
    -		var i;
    -		// adding modules to the loader 
    -		if (m && (typeof m === 'object')) {
    -			for (i in m) {
    -				if (m.hasOwnProperty(i)) {
    -					m[i].name = m[i].name || i;
    -					m[i].type = m[i].type || ((m[i].fullpath||m[i].path).indexOf('.css')>=0?'css':'js');
    -					//console.log ('Adding a default module: ', m[i].name, m[i]);
    -					_loaderObj.addModule (m[i]);
    -				}
    -			}
    -		}
    -	} 
    -
    -	/**
    -	 * Initialization process for the YUI Loader obj. In YUI 2.x we should
    -	 * have a single instance to control everything.
    -	 * @method _initLoader
    -	 * @private
    -	 * @static
    -	 * @return void
    -	 */
    -	function _initLoader (l) {
    -	    var i, m;
    -		
    -		if (!_loaderObj) {
    -			/* creating the loader object for this region */
    -			l = l || {};
    -			l.combine = (l.hasOwnProperty('combine')?l.combine:true); /* using the Combo Handle */
    -		    l.filter = l.filter || 'min';  /* you can switch between YUI branch */
    -			
    -			// more config here ...
    -		
    -			_loaderObj = new YAHOO.util.YUILoader(l);			
    -			_addMods(l.modules);
    -		}
    -		// probably more configurations here
    -	}
    -	
    -	/**
    -	 * Verify if the current configuration object just defines new modules. If that's the case, 
    -	 * we will use "_config" as the computed configuration, and "o" as the list of modules to add.
    -	 * @method _getConf
    -	 * @param o currrent configuration object
    -	 * @private
    -	 * @static
    -	 * @return object computed configuration
    -	 */
    -	function _getConf(o) {
    -		o = o||{};
    -		var m = o.modules || {}, 
    -			flag = true, i;
    -		for (i in o) {
    -		  	if (o.hasOwnProperty(i) && (i != 'modules')) {
    -		  		flag = false;
    -		  	}
    -		}
    -		// using _config and injecting more modules
    -		if (flag) {
    -			for (i in m) {
    -			  	if (m.hasOwnProperty(i)) {
    -					_config.modules[i] = m[i];
    -				}
    -			}
    -			if (_loaderObj) {
    -				_addMods(m);
    -			}
    -			o = _config;
    -		}
    -		return o;
    -	}
    -	
    -	YAHOO_bootstrap = function (o, def) {
    -		// analyzing "o"
    -		o = _getConf(o);
    -		// if def is true, o will be used as the default config from now on 
    -		_config = (def?o:_config);
    -		return {
    -			/**
    -		     * Load a set of modules and notify thru the callback method.
    -		     * @param modules* {string} 1-n modules to bind (uses arguments array)
    -		     * @param *callback {function} callback function executed when 
    -		     * the instance has the required functionality.  If included, it
    -		     * must be the last parameter.
    -		     *
    -		     * YAHOO_bootstrap().use('tabview', callback)
    -		     *
    -		     * @return void
    -		     */
    -			use: function () {
    -				var a=Array.prototype.slice.call(arguments, 0),
    -					callback = a.pop ();
    -				_loaderQueue.push (function () {
    -					var i;
    -					_initLoader(o);
    -					_loaderObj.require(a);
    -					_loaderObj.insert({
    -						onSuccess: function () {
    -							_loaderDispatch();
    -							callback.call();
    -							(o.onSuccess || function(){}).call();
    -						},
    -						onFailure: function(){
    -							_loaderDispatch();
    -							(o.onFailure || function(){}).call();
    -						},
    -						onTimeout: function () {
    -							_loaderDispatch();
    -							(o.onTimeout || function(){}).call();
    -						}
    -					}, o.type);
    -				});
    -				// verifying if the loader is ready in the page, if not, it will be 
    -				// included automatically and then the process will continue.
    -				if (_loaderQueue.length===1) {
    -					((typeof YAHOO == "undefined" || !YAHOO)?_includeLoader():_loaderDispatch());				
    -				}
    -			}
    -		};
    -	};
    -	
    -})();
    -
    diff --git a/api/bootstrap-debug.js.html b/api/bootstrap-debug.js.html deleted file mode 100644 index d42978d..0000000 --- a/api/bootstrap-debug.js.html +++ /dev/null @@ -1,608 +0,0 @@ - - - - - API: bootstrap bootstrap-debug.js (YUI Library) - - - - - - - - - - -
    -
    -

    Yahoo! UI Library

    -

    bootstrap  1.0.0

    - Yahoo! UI Library - > bootstrap - - > bootstrap-debug.js (source view) -
    -
    - Search: -
    -   -
    -
    -
    -
    - -
    -
    -
    -
    -
    - Filters - - - -
    -
    - -
    - -
    /** 
    - * Provides Bootstrap definition based on YUI 3.x.
    - *
    - * @module bootstrap
    - */
    -(function() {
    -	
    -	var _config = {modules:{}},
    -		_loaderQueue = [];
    -   	
    -	/**
    -     * YUI_bootstrap function.  If YUI_bootstrap is already defined, the
    -     * existing YUI_bootstrap function will not be overwritten to preserve
    -     * the state of the bootstrap.
    -     *
    -     * @class YUI_bootstrap
    -     * @static
    -     * @global
    -     * @param o Optional configuration object.  Options:
    -     * <ul>
    -     *  <li>------------------------------------------------------------------------</li>
    -     *  <li>Global:</li>
    -     *  <li>------------------------------------------------------------------------</li>
    -     *  <li>debug: Turn debug statements on or off</li>
    -     *  <li>injected: set to true if the yui seed file was dynamically loaded in
    -     *  order to bootstrap components relying on the window load event and onDOMReady
    -     *  (former injecting on YAHOO_config).</li>
    -     *  <li>locale: default locale</li>
    -     *  <li>-------------------------------------------------------------------------</li>
    -     *  <li>For loader:</li>
    -     *  <li>-------------------------------------------------------------------------</li>
    -     *  <li>base: The base dir</li>
    -     *  <li>comboBase: The YUI combo service base dir. Ex: http://yui.yahooapis.com/combo?</li>
    -     *  <li>root: The root path to prepend to module names for the combo service. Ex\\: 2\\.5\\.2\\/build\\/</li>
    -     *  <li>filter:
    -     *  
    -     * A filter to apply to result urls.  This filter will modify the default
    -     * path for all modules.  The default path for the YUI library is the
    -     * minified version of the files (e.g., event-min.js).  The filter property
    -     * can be a predefined filter or a custom filter.  The valid predefined 
    -     * filters are:
    -     * <dl>
    -     *  <dt>DEBUG</dt>
    -     *  <dd>Selects the debug versions of the library (e.g., event-debug.js).
    -     *      This option will automatically include the Logger widget</dd>
    -     *  <dt>RAW</dt>
    -     *  <dd>Selects the non-minified version of the library (e.g., event.js).</dd>
    -     * </dl>
    -     * You can also define a custom filter, which must be an object literal 
    -     * containing a search expression and a replace string:
    -     * <pre>
    -     *  myFilter: &#123; 
    -     *      'searchExp': "-min\\.js", 
    -     *      'replaceStr': "-debug.js"
    -     *  &#125;
    -     * </pre>
    -     *
    -     *  </li>
    -     *  <li>filters: per-component filter specification.  If specified for a given component, this overrides the filter config</li>
    -     *  <li>combine:
    -     *  Use the YUI combo service to reduce the number of http connections required to load your dependencies</li>
    -     *  <li>ignore:
    -     *  A list of modules that should never be dynamically loaded</li>
    -     *  <li>force:
    -     *  A list of modules that should always be loaded when required, even if already present on the page</li>
    -     *  <li>insertBefore:
    -     *  Node or id for a node that should be used as the insertion point for new nodes</li>
    -     *  <li>charset:
    -     *  charset for dynamic nodes</li>
    -     *  <li>timeout:
    -     *  number of milliseconds before a timeout occurs when dynamically loading nodes.  in not set, there is no timeout</li>
    -     *  <li>onSuccess:
    -     *  callback for the 'success' event</li>
    -     *  <li>onFailure:
    -     *  callback for the 'failure' event</li>
    -     *  <li>onTimeout:
    -     *  callback for the 'timeout' event</li>
    -     *  <li>onProgress:
    -     *  callback executed each time a script or css file is loaded</li>
    -     *  <li>modules:
    -     *  A list of module definitions.  See Loader.addModule for the supported module metadata</li>
    -     * </ul>
    -     * 
    -     * Also, we can pass a custom argument thru "o" to customize
    -     * the file that should be injected to define the YUI Loader Utility. This feature allow us to
    -     * define a custom COMBO url to load a default set of components including loader in a single entry.
    -     * 
    -     * @param boolean def if true, "o" will be used as the default configuration object for succesive 
    -     * calls without the "o" argument.
    -     *
    -     */
    -	
    -	/**
    -	 * Dispatch the first element from the job queue 
    -	 * @method _loaderDispatch
    -	 * @private
    -	 * @static
    -	 * @return void
    -	 */
    -	function _loaderDispatch () {
    -		var c;
    -		if ((c = _loaderQueue.shift())) {
    -			c.call();
    -		}
    -	}
    -	
    -	/**
    -	 * Include YUI Loader in the the page, and wait until it get available to start dispatching jobs
    -	 * from the queue
    -	 * @method _includeLoader
    -	 * @private
    -	 * @static
    -	 * @return void
    -	 */
    -	function _includeLoader () {
    -		/* injecting the YUI Loader in the current page */
    -		var base = _config.base || 'http://yui.yahooapis.com/3.0.0pr2/build/',
    -			seed = _config.seed || 'yui/yui-min.js',
    -			s = document.createElement('script'),
    -			fn = function(){
    -				if ((typeof YUI === 'undefined') || !YUI || YUI.Loader) {
    -					// keep waiting...
    -					window.setTimeout(fn, 50);
    -				} else {	  
    -					// YUI is ready...
    -					window.setTimeout(_loaderDispatch, 1);
    -				}
    -		    };
    -	    s.setAttribute('type', 'text/javascript');
    -		// analyzing the seed
    -		seed = (seed.indexOf('http')===0?seed:base+seed);
    -	    s.setAttribute('src', seed);
    -	    document.getElementsByTagName('head')[0].appendChild(s);
    -		fn();
    -	}
    -	
    -	/**
    -	 * Verify if the current configuration object just defines new modules. If that's the case, 
    -	 * we will use "_config" as the computed configuration, and "o" as the list of modules to add.
    -	 * @method _getConf
    -	 * @param o currrent configuration object
    -	 * @private
    -	 * @static
    -	 * @return object computed configuration
    -	 */
    -	function _getConf(o) {
    -		o = o||{};
    -		var m = o.modules || {}, 
    -			flag = true, i;
    -		for (i in o) {
    -		  	if (o.hasOwnProperty(i) && (i != 'modules')) {
    -		  		flag = false;
    -		  	}
    -		}
    -		// using _config and injecting more modules
    -		if (flag) {
    -			for (i in m) {
    -			  	if (m.hasOwnProperty(i)) {
    -					_config.modules[i] = m[i];
    -				}
    -			}
    -			o = _config;
    -		}
    -		return o;
    -	}
    -	
    -	YUI_bootstrap = function (o, def) {
    -		// analyzing "o"
    -		o = _getConf(o);
    -		// if def is true, o will be used as the default config from now on 
    -		_config = (def?o:_config);
    -		return {
    -			/**
    -		     * Load a set of modules and notify thru the callback method.
    -		     * @param modules* {string} 1-n modules to bind (uses arguments array)
    -		     * @param *callback {function} callback function executed when 
    -		     * the instance has the required functionality.  If included, it
    -		     * must be the last parameter.
    -		     *
    -		     * YUI_bootstrap().use('dd', callback)
    -		     *
    -		     * @return void
    -		     */
    -			use: function () {
    -				var a=Array.prototype.slice.call(arguments, 0);
    -				_loaderQueue.push (function () {
    -					/* hack: cloning configuration */
    -					var j, c = {};
    -					for (j in o) {
    -					  	if (o.hasOwnProperty(j)) {
    -							c[j] = o[j];
    -						}
    -					}
    -					/* end hack */
    -					var Y = YUI(c), i;
    -					Y.use.apply (Y, a);
    -					_loaderDispatch(); // dispatching the rest of the waiting jobs
    -				});
    -				// verifying if the loader is ready in the page, if not, it will be 
    -				// included automatically and then the process will continue.
    -				if (_loaderQueue.length===1) {
    -					((typeof YUI === 'undefined' || !YUI)?_includeLoader():_loaderDispatch());				
    -				}
    -			}
    -		};
    -	};
    -
    -})();
    -/** 
    - * Provides Bootstrap definition based on YUI 2.x.
    - *
    - * @module bootstrap
    - */
    -(function() {
    -	
    -	var _config = {modules:{}},
    -		_loaderObj = null,
    -		_loaderQueue = [];
    -		
    -	/**
    -     * YAHOO_bootstrap function.  If YAHOO_bootstrap is already defined, the
    -     * existing YAHOO_bootstrap function will not be overwritten to preserve
    -     * the state of the bootstrap.
    -     *
    -     * @class YAHOO_bootstrap
    -     * @static
    -     * @global
    -     * @param o Optional configuration object.  Options:
    -     * <ul>
    -     *  <li>------------------------------------------------------------------------</li>
    -     *  <li>Global:</li>
    -     *  <li>------------------------------------------------------------------------</li>
    -     *  <li>debug: Turn debug statements on or off</li>
    -     *  <li>injected: set to true if the yui seed file was dynamically loaded in
    -     *  order to bootstrap components relying on the window load event and onDOMReady
    -     *  (former injecting on YAHOO_config).</li>
    -     *  <li>locale: default locale</li>
    -     *  <li>-------------------------------------------------------------------------</li>
    -     *  <li>For loader:</li>
    -     *  <li>-------------------------------------------------------------------------</li>
    -     *  <li>base: The base dir</li>
    -     *  <li>comboBase: The YUI combo service base dir. Ex: http://yui.yahooapis.com/combo?</li>
    -     *  <li>root: The root path to prepend to module names for the combo service. Ex\\: 2\\.5\\.2\\/build\\/</li>
    -     *  <li>filter:
    -     *  
    -     * A filter to apply to result urls.  This filter will modify the default
    -     * path for all modules.  The default path for the YUI library is the
    -     * minified version of the files (e.g., event-min.js).  The filter property
    -     * can be a predefined filter or a custom filter.  The valid predefined 
    -     * filters are:
    -     * <dl>
    -     *  <dt>DEBUG</dt>
    -     *  <dd>Selects the debug versions of the library (e.g., event-debug.js).
    -     *      This option will automatically include the Logger widget</dd>
    -     *  <dt>RAW</dt>
    -     *  <dd>Selects the non-minified version of the library (e.g., event.js).</dd>
    -     * </dl>
    -     * You can also define a custom filter, which must be an object literal 
    -     * containing a search expression and a replace string:
    -     * <pre>
    -     *  myFilter: &#123; 
    -     *      'searchExp': "-min\\.js", 
    -     *      'replaceStr': "-debug.js"
    -     *  &#125;
    -     * </pre>
    -     *
    -     *  </li>
    -     *  <li>filters: per-component filter specification.  If specified for a given component, this overrides the filter config</li>
    -     *  <li>combine:
    -     *  Use the YUI combo service to reduce the number of http connections required to load your dependencies</li>
    -     *  <li>ignore:
    -     *  A list of modules that should never be dynamically loaded</li>
    -     *  <li>force:
    -     *  A list of modules that should always be loaded when required, even if already present on the page</li>
    -     *  <li>insertBefore:
    -     *  Node or id for a node that should be used as the insertion point for new nodes</li>
    -     *  <li>charset:
    -     *  charset for dynamic nodes</li>
    -     *  <li>timeout:
    -     *  number of milliseconds before a timeout occurs when dynamically loading nodes.  in not set, there is no timeout</li>
    -     *  <li>onSuccess:
    -     *  callback for the 'success' event</li>
    -     *  <li>onFailure:
    -     *  callback for the 'failure' event</li>
    -     *  <li>onTimeout:
    -     *  callback for the 'timeout' event</li>
    -     *  <li>onProgress:
    -     *  callback executed each time a script or css file is loaded</li>
    -     *  <li>modules:
    -     *  A list of module definitions.  See Loader.addModule for the supported module metadata</li>
    -     * </ul>
    -     * 
    -     * Also, we can pass a custom argument thru "o" to customize
    -     * the file that should be injected to define the YUI Loader Utility. This feature allow us to
    -     * define a custom COMBO url to load a default set of components including loader in a single entry.
    -     * 
    -     * @param boolean def if true, "o" will be used as the default configuration object for succesive 
    -     * calls without the "o" argument.
    -     * 
    -	 */
    -	
    -	/**
    -	 * Dispatch the first element from the job queue 
    -	 * @method _loaderDispatch
    -	 * @private
    -	 * @static
    -	 * @return void
    -	 */
    -	function _loaderDispatch () {
    -		var c;
    -		if ((c = _loaderQueue.shift())) {
    -			c.call();
    -		}
    -	}
    -	
    -	/**
    -	 * Include YUI Loader in the the page, and wait until it get available to start dispatching jobs
    -	 * from the queue
    -	 * @method _includeLoader
    -	 * @private
    -	 * @static
    -	 * @return void
    -	 */
    -	function _includeLoader () {
    -		var base = _config.base || 'http://yui.yahooapis.com/2.7.0/build/',
    -			seed = _config.seed || 'yuiloader/yuiloader-min.js';
    -		// analyzing the seed
    -		seed = (seed.indexOf('http')===0?seed:base+seed);
    -		// Encapsulation Pattern: Conjuring YUI from thin air (by Chris Heilmann)
    -		// more info: http://www.wait-till-i.com/2008/08/02/conjuring-yui-from-thin-air/
    -		YAHOO_config = function() {
    -		    /* injecting the YUI Loader in the current page */
    -		    var s = document.createElement('script');
    -		    s.setAttribute('type', 'text/javascript');
    -		    s.setAttribute('src', seed);
    -		    document.getElementsByTagName('head')[0].appendChild(s);
    -		    return {
    -		        // true if the library should be dynamically loaded after window.onload.
    -		        injecting: !!_config.injected,
    -		        listener: function(o) {
    -		            // waiting for the loader component
    -		            if (o.name === 'get') {
    -		                window.setTimeout(_loaderDispatch, 1);
    -		            }
    -		        }
    -		    };
    -		}();
    -	}
    -	
    -	/**
    -	 * Add a set of modules to _loaderObj, it also normalize the module information before include it
    -	 * @method _addMods
    -	 * @private
    -	 * @static
    -	 * @param {object} m collection of modules
    -	 * @return void
    -	 */
    -	function _addMods (m) {
    -		var i;
    -		// adding modules to the loader 
    -		if (m && (typeof m === 'object')) {
    -			for (i in m) {
    -				if (m.hasOwnProperty(i)) {
    -					m[i].name = m[i].name || i;
    -					m[i].type = m[i].type || ((m[i].fullpath||m[i].path).indexOf('.css')>=0?'css':'js');
    -					//console.log ('Adding a default module: ', m[i].name, m[i]);
    -					_loaderObj.addModule (m[i]);
    -				}
    -			}
    -		}
    -	} 
    -
    -	/**
    -	 * Initialization process for the YUI Loader obj. In YUI 2.x we should
    -	 * have a single instance to control everything.
    -	 * @method _initLoader
    -	 * @private
    -	 * @static
    -	 * @return void
    -	 */
    -	function _initLoader (l) {
    -	    var i, m;
    -		
    -		if (!_loaderObj) {
    -			/* creating the loader object for this region */
    -			l = l || {};
    -			l.combine = (l.hasOwnProperty('combine')?l.combine:true); /* using the Combo Handle */
    -		    l.filter = l.filter || 'min';  /* you can switch between YUI branch */
    -			
    -			// more config here ...
    -		
    -			_loaderObj = new YAHOO.util.YUILoader(l);			
    -			_addMods(l.modules);
    -		}
    -		// probably more configurations here
    -	}
    -	
    -	/**
    -	 * Verify if the current configuration object just defines new modules. If that's the case, 
    -	 * we will use "_config" as the computed configuration, and "o" as the list of modules to add.
    -	 * @method _getConf
    -	 * @param o currrent configuration object
    -	 * @private
    -	 * @static
    -	 * @return object computed configuration
    -	 */
    -	function _getConf(o) {
    -		o = o||{};
    -		var m = o.modules || {}, 
    -			flag = true, i;
    -		for (i in o) {
    -		  	if (o.hasOwnProperty(i) && (i != 'modules')) {
    -		  		flag = false;
    -		  	}
    -		}
    -		// using _config and injecting more modules
    -		if (flag) {
    -			for (i in m) {
    -			  	if (m.hasOwnProperty(i)) {
    -					_config.modules[i] = m[i];
    -				}
    -			}
    -			if (_loaderObj) {
    -				_addMods(m);
    -			}
    -			o = _config;
    -		}
    -		return o;
    -	}
    -	
    -	YAHOO_bootstrap = function (o, def) {
    -		// analyzing "o"
    -		o = _getConf(o);
    -		// if def is true, o will be used as the default config from now on 
    -		_config = (def?o:_config);
    -		return {
    -			/**
    -		     * Load a set of modules and notify thru the callback method.
    -		     * @param modules* {string} 1-n modules to bind (uses arguments array)
    -		     * @param *callback {function} callback function executed when 
    -		     * the instance has the required functionality.  If included, it
    -		     * must be the last parameter.
    -		     *
    -		     * YAHOO_bootstrap().use('tabview', callback)
    -		     *
    -		     * @return void
    -		     */
    -			use: function () {
    -				var a=Array.prototype.slice.call(arguments, 0),
    -					callback = a.pop ();
    -				_loaderQueue.push (function () {
    -					var i;
    -					_initLoader(o);
    -					_loaderObj.require(a);
    -					_loaderObj.insert({
    -						onSuccess: function () {
    -							_loaderDispatch();
    -							callback.call();
    -							(o.onSuccess || function(){}).call();
    -						},
    -						onFailure: function(){
    -							_loaderDispatch();
    -							(o.onFailure || function(){}).call();
    -						},
    -						onTimeout: function () {
    -							_loaderDispatch();
    -							(o.onTimeout || function(){}).call();
    -						}
    -					}, o.type);
    -				});
    -				// verifying if the loader is ready in the page, if not, it will be 
    -				// included automatically and then the process will continue.
    -				if (_loaderQueue.length===1) {
    -					((typeof YAHOO == "undefined" || !YAHOO)?_includeLoader():_loaderDispatch());				
    -				}
    -			}
    -		};
    -	};
    -	
    -})();
    -
    -
    -
    -
    -
    - -
    -
    -
    -
    - Copyright © 2009 Yahoo! Inc. All rights reserved. -
    -
    - - - diff --git a/api/bootstrap-min.js b/api/bootstrap-min.js deleted file mode 100644 index 897db78..0000000 --- a/api/bootstrap-min.js +++ /dev/null @@ -1 +0,0 @@ -(function(){var E={modules:{}},A=[];function D(){var F;if((F=A.shift())){F.call();}}function B(){var I=E.base||"http://yui.yahooapis.com/3.0.0pr2/build/",F=E.seed||"yui/yui-min.js",H=document.createElement("script"),G=function(){if((typeof YUI==="undefined")||!YUI||YUI.Loader){window.setTimeout(G,50);}else{window.setTimeout(D,1);}};H.setAttribute("type","text/javascript");F=(F.indexOf("http")===0?F:I+F);H.setAttribute("src",F);document.getElementsByTagName("head")[0].appendChild(H);G();}function C(I){I=I||{};var F=I.modules||{},G=true,H;for(H in I){if(I.hasOwnProperty(H)&&(H!="modules")){G=false;}}if(G){for(H in F){if(F.hasOwnProperty(H)){E.modules[H]=F[H];}}I=E;}return I;}YUI_bootstrap=function(G,F){G=C(G);E=(F?G:E);return{use:function(){var H=Array.prototype.slice.call(arguments,0);A.push(function(){var I,L={};for(I in G){if(G.hasOwnProperty(I)){L[I]=G[I];}}var K=YUI(L),J;K.use.apply(K,H);D();});if(A.length===1){((typeof YUI==="undefined"||!YUI)?B():D());}}};};})();(function(){var F={modules:{}},H=null,A=[];function E(){var I;if((I=A.shift())){I.call();}}function B(){var J=F.base||"http://yui.yahooapis.com/2.7.0/build/",I=F.seed||"yuiloader/yuiloader-min.js";I=(I.indexOf("http")===0?I:J+I);YAHOO_config=function(){var K=document.createElement("script");K.setAttribute("type","text/javascript");K.setAttribute("src",I);document.getElementsByTagName("head")[0].appendChild(K);return{injecting:!!F.injected,listener:function(L){if(L.name==="get"){window.setTimeout(E,1);}}};}();}function D(I){var J;if(I&&(typeof I==="object")){for(J in I){if(I.hasOwnProperty(J)){I[J].name=I[J].name||J;I[J].type=I[J].type||((I[J].fullpath||I[J].path).indexOf(".css")>=0?"css":"js");H.addModule(I[J]);}}}}function G(J){var K,I;if(!H){J=J||{};J.combine=(J.hasOwnProperty("combine")?J.combine:true);J.filter=J.filter||"min";H=new YAHOO.util.YUILoader(J);D(J.modules);}}function C(L){L=L||{};var I=L.modules||{},J=true,K;for(K in L){if(L.hasOwnProperty(K)&&(K!="modules")){J=false;}}if(J){for(K in I){if(I.hasOwnProperty(K)){F.modules[K]=I[K];}}if(H){D(I);}L=F;}return L;}YAHOO_bootstrap=function(J,I){J=C(J);F=(I?J:F);return{use:function(){var K=Array.prototype.slice.call(arguments,0),L=K.pop();A.push(function(){var M;G(J);H.require(K);H.insert({onSuccess:function(){E();L.call();(J.onSuccess||function(){}).call();},onFailure:function(){E();(J.onFailure||function(){}).call();},onTimeout:function(){E();(J.onTimeout||function(){}).call();}},J.type);});if(A.length===1){((typeof YAHOO=="undefined"||!YAHOO)?B():E());}}};};})(); \ No newline at end of file diff --git a/api/bootstrap-min.js.highlighted b/api/bootstrap-min.js.highlighted deleted file mode 100644 index 59238ce..0000000 --- a/api/bootstrap-min.js.highlighted +++ /dev/null @@ -1,2 +0,0 @@ -
    (function(){var E={modules:{}},A=[];function D(){var F;if((F=A.shift())){F.call();}}function B(){var I=E.base||"http://yui.yahooapis.com/3.0.0pr2/build/",F=E.seed||"yui/yui-min.js",H=document.createElement("script"),G=function(){if((typeof YUI==="undefined")||!YUI||YUI.Loader){window.setTimeout(G,50);}else{window.setTimeout(D,1);}};H.setAttribute("type","text/javascript");F=(F.indexOf("http")===0?F:I+F);H.setAttribute("src",F);document.getElementsByTagName("head")[0].appendChild(H);G();}function C(I){I=I||{};var F=I.modules||{},G=true,H;for(H in I){if(I.hasOwnProperty(H)&&(H!="modules")){G=false;}}if(G){for(H in F){if(F.hasOwnProperty(H)){E.modules[H]=F[H];}}I=E;}return I;}YUI_bootstrap=function(G,F){G=C(G);E=(F?G:E);return{use:function(){var H=Array.prototype.slice.call(arguments,0);A.push(function(){var I,L={};for(I in G){if(G.hasOwnProperty(I)){L[I]=G[I];}}var K=YUI(L),J;K.use.apply(K,H);D();});if(A.length===1){((typeof YUI==="undefined"||!YUI)?B():D());}}};};})();(function(){var F={modules:{}},H=null,A=[];function E(){var I;if((I=A.shift())){I.call();}}function B(){var J=F.base||"http://yui.yahooapis.com/2.7.0/build/",I=F.seed||"yuiloader/yuiloader-min.js";I=(I.indexOf("http")===0?I:J+I);YAHOO_config=function(){var K=document.createElement("script");K.setAttribute("type","text/javascript");K.setAttribute("src",I);document.getElementsByTagName("head")[0].appendChild(K);return{injecting:!!F.injected,listener:function(L){if(L.name==="get"){window.setTimeout(E,1);}}};}();}function D(I){var J;if(I&&(typeof I==="object")){for(J in I){if(I.hasOwnProperty(J)){I[J].name=I[J].name||J;I[J].type=I[J].type||((I[J].fullpath||I[J].path).indexOf(".css")>=0?"css":"js");H.addModule(I[J]);}}}}function G(J){var K,I;if(!H){J=J||{};J.combine=(J.hasOwnProperty("combine")?J.combine:true);J.filter=J.filter||"min";H=new YAHOO.util.YUILoader(J);D(J.modules);}}function C(L){L=L||{};var I=L.modules||{},J=true,K;for(K in L){if(L.hasOwnProperty(K)&&(K!="modules")){J=false;}}if(J){for(K in I){if(I.hasOwnProperty(K)){F.modules[K]=I[K];}}if(H){D(I);}L=F;}return L;}YAHOO_bootstrap=function(J,I){J=C(J);F=(I?J:F);return{use:function(){var K=Array.prototype.slice.call(arguments,0),L=K.pop();A.push(function(){var M;G(J);H.require(K);H.insert({onSuccess:function(){E();L.call();(J.onSuccess||function(){}).call();},onFailure:function(){E();(J.onFailure||function(){}).call();},onTimeout:function(){E();(J.onTimeout||function(){}).call();}},J.type);});if(A.length===1){((typeof YAHOO=="undefined"||!YAHOO)?B():E());}}};};})();
    -
    diff --git a/api/bootstrap.js b/api/bootstrap.js deleted file mode 100644 index fc162c9..0000000 --- a/api/bootstrap.js +++ /dev/null @@ -1,480 +0,0 @@ -/** - * Provides Bootstrap definition based on YUI 3.x. - * - * @module bootstrap - */ -(function() { - - var _config = {modules:{}}, - _loaderQueue = []; - - /** - * YUI_bootstrap function. If YUI_bootstrap is already defined, the - * existing YUI_bootstrap function will not be overwritten to preserve - * the state of the bootstrap. - * - * @class YUI_bootstrap - * @static - * @global - * @param o Optional configuration object. Options: - * - * - * Also, we can pass a custom argument thru "o" to customize - * the file that should be injected to define the YUI Loader Utility. This feature allow us to - * define a custom COMBO url to load a default set of components including loader in a single entry. - * - * @param boolean def if true, "o" will be used as the default configuration object for succesive - * calls without the "o" argument. - * - */ - - /** - * Dispatch the first element from the job queue - * @method _loaderDispatch - * @private - * @static - * @return void - */ - function _loaderDispatch () { - var c; - if ((c = _loaderQueue.shift())) { - c.call(); - } - } - - /** - * Include YUI Loader in the the page, and wait until it get available to start dispatching jobs - * from the queue - * @method _includeLoader - * @private - * @static - * @return void - */ - function _includeLoader () { - /* injecting the YUI Loader in the current page */ - var base = _config.base || 'http://yui.yahooapis.com/3.0.0pr2/build/', - seed = _config.seed || 'yui/yui-min.js', - s = document.createElement('script'), - fn = function(){ - if ((typeof YUI === 'undefined') || !YUI || YUI.Loader) { - // keep waiting... - window.setTimeout(fn, 50); - } else { - // YUI is ready... - window.setTimeout(_loaderDispatch, 1); - } - }; - s.setAttribute('type', 'text/javascript'); - // analyzing the seed - seed = (seed.indexOf('http')===0?seed:base+seed); - s.setAttribute('src', seed); - document.getElementsByTagName('head')[0].appendChild(s); - fn(); - } - - /** - * Verify if the current configuration object just defines new modules. If that's the case, - * we will use "_config" as the computed configuration, and "o" as the list of modules to add. - * @method _getConf - * @param o currrent configuration object - * @private - * @static - * @return object computed configuration - */ - function _getConf(o) { - o = o||{}; - var m = o.modules || {}, - flag = true, i; - for (i in o) { - if (o.hasOwnProperty(i) && (i != 'modules')) { - flag = false; - } - } - // using _config and injecting more modules - if (flag) { - for (i in m) { - if (m.hasOwnProperty(i)) { - _config.modules[i] = m[i]; - } - } - o = _config; - } - return o; - } - - YUI_bootstrap = function (o, def) { - // analyzing "o" - o = _getConf(o); - // if def is true, o will be used as the default config from now on - _config = (def?o:_config); - return { - /** - * Load a set of modules and notify thru the callback method. - * @param modules* {string} 1-n modules to bind (uses arguments array) - * @param *callback {function} callback function executed when - * the instance has the required functionality. If included, it - * must be the last parameter. - * - * YUI_bootstrap().use('dd', callback) - * - * @return void - */ - use: function () { - var a=Array.prototype.slice.call(arguments, 0); - _loaderQueue.push (function () { - /* hack: cloning configuration */ - var j, c = {}; - for (j in o) { - if (o.hasOwnProperty(j)) { - c[j] = o[j]; - } - } - /* end hack */ - var Y = YUI(c), i; - Y.use.apply (Y, a); - _loaderDispatch(); // dispatching the rest of the waiting jobs - }); - // verifying if the loader is ready in the page, if not, it will be - // included automatically and then the process will continue. - if (_loaderQueue.length===1) { - ((typeof YUI === 'undefined' || !YUI)?_includeLoader():_loaderDispatch()); - } - } - }; - }; - -})(); -/** - * Provides Bootstrap definition based on YUI 2.x. - * - * @module bootstrap - */ -(function() { - - var _config = {modules:{}}, - _loaderObj = null, - _loaderQueue = []; - - /** - * YAHOO_bootstrap function. If YAHOO_bootstrap is already defined, the - * existing YAHOO_bootstrap function will not be overwritten to preserve - * the state of the bootstrap. - * - * @class YAHOO_bootstrap - * @static - * @global - * @param o Optional configuration object. Options: - * - * - * Also, we can pass a custom argument thru "o" to customize - * the file that should be injected to define the YUI Loader Utility. This feature allow us to - * define a custom COMBO url to load a default set of components including loader in a single entry. - * - * @param boolean def if true, "o" will be used as the default configuration object for succesive - * calls without the "o" argument. - * - */ - - /** - * Dispatch the first element from the job queue - * @method _loaderDispatch - * @private - * @static - * @return void - */ - function _loaderDispatch () { - var c; - if ((c = _loaderQueue.shift())) { - c.call(); - } - } - - /** - * Include YUI Loader in the the page, and wait until it get available to start dispatching jobs - * from the queue - * @method _includeLoader - * @private - * @static - * @return void - */ - function _includeLoader () { - var base = _config.base || 'http://yui.yahooapis.com/2.7.0/build/', - seed = _config.seed || 'yuiloader/yuiloader-min.js'; - // analyzing the seed - seed = (seed.indexOf('http')===0?seed:base+seed); - // Encapsulation Pattern: Conjuring YUI from thin air (by Chris Heilmann) - // more info: http://www.wait-till-i.com/2008/08/02/conjuring-yui-from-thin-air/ - YAHOO_config = function() { - /* injecting the YUI Loader in the current page */ - var s = document.createElement('script'); - s.setAttribute('type', 'text/javascript'); - s.setAttribute('src', seed); - document.getElementsByTagName('head')[0].appendChild(s); - return { - // true if the library should be dynamically loaded after window.onload. - injecting: !!_config.injected, - listener: function(o) { - // waiting for the loader component - if (o.name === 'get') { - window.setTimeout(_loaderDispatch, 1); - } - } - }; - }(); - } - - /** - * Add a set of modules to _loaderObj, it also normalize the module information before include it - * @method _addMods - * @private - * @static - * @param {object} m collection of modules - * @return void - */ - function _addMods (m) { - var i; - // adding modules to the loader - if (m && (typeof m === 'object')) { - for (i in m) { - if (m.hasOwnProperty(i)) { - m[i].name = m[i].name || i; - m[i].type = m[i].type || ((m[i].fullpath||m[i].path).indexOf('.css')>=0?'css':'js'); - //console.log ('Adding a default module: ', m[i].name, m[i]); - _loaderObj.addModule (m[i]); - } - } - } - } - - /** - * Initialization process for the YUI Loader obj. In YUI 2.x we should - * have a single instance to control everything. - * @method _initLoader - * @private - * @static - * @return void - */ - function _initLoader (l) { - var i, m; - - if (!_loaderObj) { - /* creating the loader object for this region */ - l = l || {}; - l.combine = (l.hasOwnProperty('combine')?l.combine:true); /* using the Combo Handle */ - l.filter = l.filter || 'min'; /* you can switch between YUI branch */ - - // more config here ... - - _loaderObj = new YAHOO.util.YUILoader(l); - _addMods(l.modules); - } - // probably more configurations here - } - - /** - * Verify if the current configuration object just defines new modules. If that's the case, - * we will use "_config" as the computed configuration, and "o" as the list of modules to add. - * @method _getConf - * @param o currrent configuration object - * @private - * @static - * @return object computed configuration - */ - function _getConf(o) { - o = o||{}; - var m = o.modules || {}, - flag = true, i; - for (i in o) { - if (o.hasOwnProperty(i) && (i != 'modules')) { - flag = false; - } - } - // using _config and injecting more modules - if (flag) { - for (i in m) { - if (m.hasOwnProperty(i)) { - _config.modules[i] = m[i]; - } - } - if (_loaderObj) { - _addMods(m); - } - o = _config; - } - return o; - } - - YAHOO_bootstrap = function (o, def) { - // analyzing "o" - o = _getConf(o); - // if def is true, o will be used as the default config from now on - _config = (def?o:_config); - return { - /** - * Load a set of modules and notify thru the callback method. - * @param modules* {string} 1-n modules to bind (uses arguments array) - * @param *callback {function} callback function executed when - * the instance has the required functionality. If included, it - * must be the last parameter. - * - * YAHOO_bootstrap().use('tabview', callback) - * - * @return void - */ - use: function () { - var a=Array.prototype.slice.call(arguments, 0), - callback = a.pop (); - _loaderQueue.push (function () { - var i; - _initLoader(o); - _loaderObj.require(a); - _loaderObj.insert({ - onSuccess: function () { - _loaderDispatch(); - callback.call(); - (o.onSuccess || function(){}).call(); - }, - onFailure: function(){ - _loaderDispatch(); - (o.onFailure || function(){}).call(); - }, - onTimeout: function () { - _loaderDispatch(); - (o.onTimeout || function(){}).call(); - } - }, o.type); - }); - // verifying if the loader is ready in the page, if not, it will be - // included automatically and then the process will continue. - if (_loaderQueue.length===1) { - ((typeof YAHOO == "undefined" || !YAHOO)?_includeLoader():_loaderDispatch()); - } - } - }; - }; - -})(); diff --git a/api/bootstrap.js.highlighted b/api/bootstrap.js.highlighted deleted file mode 100644 index fb718d3..0000000 --- a/api/bootstrap.js.highlighted +++ /dev/null @@ -1,481 +0,0 @@ -
    /** 
    - * Provides Bootstrap definition based on YUI 3.x.
    - *
    - * @module bootstrap
    - */
    -(function() {
    -	
    -	var _config = {modules:{}},
    -		_loaderQueue = [];
    -   	
    -	/**
    -     * YUI_bootstrap function.  If YUI_bootstrap is already defined, the
    -     * existing YUI_bootstrap function will not be overwritten to preserve
    -     * the state of the bootstrap.
    -     *
    -     * @class YUI_bootstrap
    -     * @static
    -     * @global
    -     * @param o Optional configuration object.  Options:
    -     * <ul>
    -     *  <li>------------------------------------------------------------------------</li>
    -     *  <li>Global:</li>
    -     *  <li>------------------------------------------------------------------------</li>
    -     *  <li>debug: Turn debug statements on or off</li>
    -     *  <li>injected: set to true if the yui seed file was dynamically loaded in
    -     *  order to bootstrap components relying on the window load event and onDOMReady
    -     *  (former injecting on YAHOO_config).</li>
    -     *  <li>locale: default locale</li>
    -     *  <li>-------------------------------------------------------------------------</li>
    -     *  <li>For loader:</li>
    -     *  <li>-------------------------------------------------------------------------</li>
    -     *  <li>base: The base dir</li>
    -     *  <li>comboBase: The YUI combo service base dir. Ex: http://yui.yahooapis.com/combo?</li>
    -     *  <li>root: The root path to prepend to module names for the combo service. Ex\\: 2\\.5\\.2\\/build\\/</li>
    -     *  <li>filter:
    -     *  
    -     * A filter to apply to result urls.  This filter will modify the default
    -     * path for all modules.  The default path for the YUI library is the
    -     * minified version of the files (e.g., event-min.js).  The filter property
    -     * can be a predefined filter or a custom filter.  The valid predefined 
    -     * filters are:
    -     * <dl>
    -     *  <dt>DEBUG</dt>
    -     *  <dd>Selects the debug versions of the library (e.g., event-debug.js).
    -     *      This option will automatically include the Logger widget</dd>
    -     *  <dt>RAW</dt>
    -     *  <dd>Selects the non-minified version of the library (e.g., event.js).</dd>
    -     * </dl>
    -     * You can also define a custom filter, which must be an object literal 
    -     * containing a search expression and a replace string:
    -     * <pre>
    -     *  myFilter: &#123; 
    -     *      'searchExp': "-min\\.js", 
    -     *      'replaceStr': "-debug.js"
    -     *  &#125;
    -     * </pre>
    -     *
    -     *  </li>
    -     *  <li>filters: per-component filter specification.  If specified for a given component, this overrides the filter config</li>
    -     *  <li>combine:
    -     *  Use the YUI combo service to reduce the number of http connections required to load your dependencies</li>
    -     *  <li>ignore:
    -     *  A list of modules that should never be dynamically loaded</li>
    -     *  <li>force:
    -     *  A list of modules that should always be loaded when required, even if already present on the page</li>
    -     *  <li>insertBefore:
    -     *  Node or id for a node that should be used as the insertion point for new nodes</li>
    -     *  <li>charset:
    -     *  charset for dynamic nodes</li>
    -     *  <li>timeout:
    -     *  number of milliseconds before a timeout occurs when dynamically loading nodes.  in not set, there is no timeout</li>
    -     *  <li>onSuccess:
    -     *  callback for the 'success' event</li>
    -     *  <li>onFailure:
    -     *  callback for the 'failure' event</li>
    -     *  <li>onTimeout:
    -     *  callback for the 'timeout' event</li>
    -     *  <li>onProgress:
    -     *  callback executed each time a script or css file is loaded</li>
    -     *  <li>modules:
    -     *  A list of module definitions.  See Loader.addModule for the supported module metadata</li>
    -     * </ul>
    -     * 
    -     * Also, we can pass a custom argument thru "o" to customize
    -     * the file that should be injected to define the YUI Loader Utility. This feature allow us to
    -     * define a custom COMBO url to load a default set of components including loader in a single entry.
    -     * 
    -     * @param boolean def if true, "o" will be used as the default configuration object for succesive 
    -     * calls without the "o" argument.
    -     *
    -     */
    -	
    -	/**
    -	 * Dispatch the first element from the job queue 
    -	 * @method _loaderDispatch
    -	 * @private
    -	 * @static
    -	 * @return void
    -	 */
    -	function _loaderDispatch () {
    -		var c;
    -		if ((c = _loaderQueue.shift())) {
    -			c.call();
    -		}
    -	}
    -	
    -	/**
    -	 * Include YUI Loader in the the page, and wait until it get available to start dispatching jobs
    -	 * from the queue
    -	 * @method _includeLoader
    -	 * @private
    -	 * @static
    -	 * @return void
    -	 */
    -	function _includeLoader () {
    -		/* injecting the YUI Loader in the current page */
    -		var base = _config.base || 'http://yui.yahooapis.com/3.0.0pr2/build/',
    -			seed = _config.seed || 'yui/yui-min.js',
    -			s = document.createElement('script'),
    -			fn = function(){
    -				if ((typeof YUI === 'undefined') || !YUI || YUI.Loader) {
    -					// keep waiting...
    -					window.setTimeout(fn, 50);
    -				} else {	  
    -					// YUI is ready...
    -					window.setTimeout(_loaderDispatch, 1);
    -				}
    -		    };
    -	    s.setAttribute('type', 'text/javascript');
    -		// analyzing the seed
    -		seed = (seed.indexOf('http')===0?seed:base+seed);
    -	    s.setAttribute('src', seed);
    -	    document.getElementsByTagName('head')[0].appendChild(s);
    -		fn();
    -	}
    -	
    -	/**
    -	 * Verify if the current configuration object just defines new modules. If that's the case, 
    -	 * we will use "_config" as the computed configuration, and "o" as the list of modules to add.
    -	 * @method _getConf
    -	 * @param o currrent configuration object
    -	 * @private
    -	 * @static
    -	 * @return object computed configuration
    -	 */
    -	function _getConf(o) {
    -		o = o||{};
    -		var m = o.modules || {}, 
    -			flag = true, i;
    -		for (i in o) {
    -		  	if (o.hasOwnProperty(i) && (i != 'modules')) {
    -		  		flag = false;
    -		  	}
    -		}
    -		// using _config and injecting more modules
    -		if (flag) {
    -			for (i in m) {
    -			  	if (m.hasOwnProperty(i)) {
    -					_config.modules[i] = m[i];
    -				}
    -			}
    -			o = _config;
    -		}
    -		return o;
    -	}
    -	
    -	YUI_bootstrap = function (o, def) {
    -		// analyzing "o"
    -		o = _getConf(o);
    -		// if def is true, o will be used as the default config from now on 
    -		_config = (def?o:_config);
    -		return {
    -			/**
    -		     * Load a set of modules and notify thru the callback method.
    -		     * @param modules* {string} 1-n modules to bind (uses arguments array)
    -		     * @param *callback {function} callback function executed when 
    -		     * the instance has the required functionality.  If included, it
    -		     * must be the last parameter.
    -		     *
    -		     * YUI_bootstrap().use('dd', callback)
    -		     *
    -		     * @return void
    -		     */
    -			use: function () {
    -				var a=Array.prototype.slice.call(arguments, 0);
    -				_loaderQueue.push (function () {
    -					/* hack: cloning configuration */
    -					var j, c = {};
    -					for (j in o) {
    -					  	if (o.hasOwnProperty(j)) {
    -							c[j] = o[j];
    -						}
    -					}
    -					/* end hack */
    -					var Y = YUI(c), i;
    -					Y.use.apply (Y, a);
    -					_loaderDispatch(); // dispatching the rest of the waiting jobs
    -				});
    -				// verifying if the loader is ready in the page, if not, it will be 
    -				// included automatically and then the process will continue.
    -				if (_loaderQueue.length===1) {
    -					((typeof YUI === 'undefined' || !YUI)?_includeLoader():_loaderDispatch());				
    -				}
    -			}
    -		};
    -	};
    -
    -})();
    -/** 
    - * Provides Bootstrap definition based on YUI 2.x.
    - *
    - * @module bootstrap
    - */
    -(function() {
    -	
    -	var _config = {modules:{}},
    -		_loaderObj = null,
    -		_loaderQueue = [];
    -		
    -	/**
    -     * YAHOO_bootstrap function.  If YAHOO_bootstrap is already defined, the
    -     * existing YAHOO_bootstrap function will not be overwritten to preserve
    -     * the state of the bootstrap.
    -     *
    -     * @class YAHOO_bootstrap
    -     * @static
    -     * @global
    -     * @param o Optional configuration object.  Options:
    -     * <ul>
    -     *  <li>------------------------------------------------------------------------</li>
    -     *  <li>Global:</li>
    -     *  <li>------------------------------------------------------------------------</li>
    -     *  <li>debug: Turn debug statements on or off</li>
    -     *  <li>injected: set to true if the yui seed file was dynamically loaded in
    -     *  order to bootstrap components relying on the window load event and onDOMReady
    -     *  (former injecting on YAHOO_config).</li>
    -     *  <li>locale: default locale</li>
    -     *  <li>-------------------------------------------------------------------------</li>
    -     *  <li>For loader:</li>
    -     *  <li>-------------------------------------------------------------------------</li>
    -     *  <li>base: The base dir</li>
    -     *  <li>comboBase: The YUI combo service base dir. Ex: http://yui.yahooapis.com/combo?</li>
    -     *  <li>root: The root path to prepend to module names for the combo service. Ex\\: 2\\.5\\.2\\/build\\/</li>
    -     *  <li>filter:
    -     *  
    -     * A filter to apply to result urls.  This filter will modify the default
    -     * path for all modules.  The default path for the YUI library is the
    -     * minified version of the files (e.g., event-min.js).  The filter property
    -     * can be a predefined filter or a custom filter.  The valid predefined 
    -     * filters are:
    -     * <dl>
    -     *  <dt>DEBUG</dt>
    -     *  <dd>Selects the debug versions of the library (e.g., event-debug.js).
    -     *      This option will automatically include the Logger widget</dd>
    -     *  <dt>RAW</dt>
    -     *  <dd>Selects the non-minified version of the library (e.g., event.js).</dd>
    -     * </dl>
    -     * You can also define a custom filter, which must be an object literal 
    -     * containing a search expression and a replace string:
    -     * <pre>
    -     *  myFilter: &#123; 
    -     *      'searchExp': "-min\\.js", 
    -     *      'replaceStr': "-debug.js"
    -     *  &#125;
    -     * </pre>
    -     *
    -     *  </li>
    -     *  <li>filters: per-component filter specification.  If specified for a given component, this overrides the filter config</li>
    -     *  <li>combine:
    -     *  Use the YUI combo service to reduce the number of http connections required to load your dependencies</li>
    -     *  <li>ignore:
    -     *  A list of modules that should never be dynamically loaded</li>
    -     *  <li>force:
    -     *  A list of modules that should always be loaded when required, even if already present on the page</li>
    -     *  <li>insertBefore:
    -     *  Node or id for a node that should be used as the insertion point for new nodes</li>
    -     *  <li>charset:
    -     *  charset for dynamic nodes</li>
    -     *  <li>timeout:
    -     *  number of milliseconds before a timeout occurs when dynamically loading nodes.  in not set, there is no timeout</li>
    -     *  <li>onSuccess:
    -     *  callback for the 'success' event</li>
    -     *  <li>onFailure:
    -     *  callback for the 'failure' event</li>
    -     *  <li>onTimeout:
    -     *  callback for the 'timeout' event</li>
    -     *  <li>onProgress:
    -     *  callback executed each time a script or css file is loaded</li>
    -     *  <li>modules:
    -     *  A list of module definitions.  See Loader.addModule for the supported module metadata</li>
    -     * </ul>
    -     * 
    -     * Also, we can pass a custom argument thru "o" to customize
    -     * the file that should be injected to define the YUI Loader Utility. This feature allow us to
    -     * define a custom COMBO url to load a default set of components including loader in a single entry.
    -     * 
    -     * @param boolean def if true, "o" will be used as the default configuration object for succesive 
    -     * calls without the "o" argument.
    -     * 
    -	 */
    -	
    -	/**
    -	 * Dispatch the first element from the job queue 
    -	 * @method _loaderDispatch
    -	 * @private
    -	 * @static
    -	 * @return void
    -	 */
    -	function _loaderDispatch () {
    -		var c;
    -		if ((c = _loaderQueue.shift())) {
    -			c.call();
    -		}
    -	}
    -	
    -	/**
    -	 * Include YUI Loader in the the page, and wait until it get available to start dispatching jobs
    -	 * from the queue
    -	 * @method _includeLoader
    -	 * @private
    -	 * @static
    -	 * @return void
    -	 */
    -	function _includeLoader () {
    -		var base = _config.base || 'http://yui.yahooapis.com/2.7.0/build/',
    -			seed = _config.seed || 'yuiloader/yuiloader-min.js';
    -		// analyzing the seed
    -		seed = (seed.indexOf('http')===0?seed:base+seed);
    -		// Encapsulation Pattern: Conjuring YUI from thin air (by Chris Heilmann)
    -		// more info: http://www.wait-till-i.com/2008/08/02/conjuring-yui-from-thin-air/
    -		YAHOO_config = function() {
    -		    /* injecting the YUI Loader in the current page */
    -		    var s = document.createElement('script');
    -		    s.setAttribute('type', 'text/javascript');
    -		    s.setAttribute('src', seed);
    -		    document.getElementsByTagName('head')[0].appendChild(s);
    -		    return {
    -		        // true if the library should be dynamically loaded after window.onload.
    -		        injecting: !!_config.injected,
    -		        listener: function(o) {
    -		            // waiting for the loader component
    -		            if (o.name === 'get') {
    -		                window.setTimeout(_loaderDispatch, 1);
    -		            }
    -		        }
    -		    };
    -		}();
    -	}
    -	
    -	/**
    -	 * Add a set of modules to _loaderObj, it also normalize the module information before include it
    -	 * @method _addMods
    -	 * @private
    -	 * @static
    -	 * @param {object} m collection of modules
    -	 * @return void
    -	 */
    -	function _addMods (m) {
    -		var i;
    -		// adding modules to the loader 
    -		if (m && (typeof m === 'object')) {
    -			for (i in m) {
    -				if (m.hasOwnProperty(i)) {
    -					m[i].name = m[i].name || i;
    -					m[i].type = m[i].type || ((m[i].fullpath||m[i].path).indexOf('.css')>=0?'css':'js');
    -					//console.log ('Adding a default module: ', m[i].name, m[i]);
    -					_loaderObj.addModule (m[i]);
    -				}
    -			}
    -		}
    -	} 
    -
    -	/**
    -	 * Initialization process for the YUI Loader obj. In YUI 2.x we should
    -	 * have a single instance to control everything.
    -	 * @method _initLoader
    -	 * @private
    -	 * @static
    -	 * @return void
    -	 */
    -	function _initLoader (l) {
    -	    var i, m;
    -		
    -		if (!_loaderObj) {
    -			/* creating the loader object for this region */
    -			l = l || {};
    -			l.combine = (l.hasOwnProperty('combine')?l.combine:true); /* using the Combo Handle */
    -		    l.filter = l.filter || 'min';  /* you can switch between YUI branch */
    -			
    -			// more config here ...
    -		
    -			_loaderObj = new YAHOO.util.YUILoader(l);			
    -			_addMods(l.modules);
    -		}
    -		// probably more configurations here
    -	}
    -	
    -	/**
    -	 * Verify if the current configuration object just defines new modules. If that's the case, 
    -	 * we will use "_config" as the computed configuration, and "o" as the list of modules to add.
    -	 * @method _getConf
    -	 * @param o currrent configuration object
    -	 * @private
    -	 * @static
    -	 * @return object computed configuration
    -	 */
    -	function _getConf(o) {
    -		o = o||{};
    -		var m = o.modules || {}, 
    -			flag = true, i;
    -		for (i in o) {
    -		  	if (o.hasOwnProperty(i) && (i != 'modules')) {
    -		  		flag = false;
    -		  	}
    -		}
    -		// using _config and injecting more modules
    -		if (flag) {
    -			for (i in m) {
    -			  	if (m.hasOwnProperty(i)) {
    -					_config.modules[i] = m[i];
    -				}
    -			}
    -			if (_loaderObj) {
    -				_addMods(m);
    -			}
    -			o = _config;
    -		}
    -		return o;
    -	}
    -	
    -	YAHOO_bootstrap = function (o, def) {
    -		// analyzing "o"
    -		o = _getConf(o);
    -		// if def is true, o will be used as the default config from now on 
    -		_config = (def?o:_config);
    -		return {
    -			/**
    -		     * Load a set of modules and notify thru the callback method.
    -		     * @param modules* {string} 1-n modules to bind (uses arguments array)
    -		     * @param *callback {function} callback function executed when 
    -		     * the instance has the required functionality.  If included, it
    -		     * must be the last parameter.
    -		     *
    -		     * YAHOO_bootstrap().use('tabview', callback)
    -		     *
    -		     * @return void
    -		     */
    -			use: function () {
    -				var a=Array.prototype.slice.call(arguments, 0),
    -					callback = a.pop ();
    -				_loaderQueue.push (function () {
    -					var i;
    -					_initLoader(o);
    -					_loaderObj.require(a);
    -					_loaderObj.insert({
    -						onSuccess: function () {
    -							_loaderDispatch();
    -							callback.call();
    -							(o.onSuccess || function(){}).call();
    -						},
    -						onFailure: function(){
    -							_loaderDispatch();
    -							(o.onFailure || function(){}).call();
    -						},
    -						onTimeout: function () {
    -							_loaderDispatch();
    -							(o.onTimeout || function(){}).call();
    -						}
    -					}, o.type);
    -				});
    -				// verifying if the loader is ready in the page, if not, it will be 
    -				// included automatically and then the process will continue.
    -				if (_loaderQueue.length===1) {
    -					((typeof YAHOO == "undefined" || !YAHOO)?_includeLoader():_loaderDispatch());				
    -				}
    -			}
    -		};
    -	};
    -	
    -})();
    -
    diff --git a/api/classmap.js.highlighted b/api/classmap.js.highlighted deleted file mode 100644 index 20c003b..0000000 --- a/api/classmap.js.highlighted +++ /dev/null @@ -1,16 +0,0 @@ -
    YAHOO.env.classMap = {"YAHOO_bootstrap": "bootstrap", "YUI_bootstrap": "bootstrap"};
    -
    -YAHOO.env.resolveClass = function(className) {
    -    var a=className.split('.'), ns=YAHOO.env.classMap;
    -
    -    for (var i=0; i<a.length; i=i+1) {
    -        if (ns[a[i]]) {
    -            ns = ns[a[i]];
    -        } else {
    -            return null;
    -        }
    -    }
    -
    -    return ns;
    -};
    -
    diff --git a/api/parsed.json b/api/parsed.json index 3991e0b..5e9436a 100644 --- a/api/parsed.json +++ b/api/parsed.json @@ -1 +1 @@ -{"majorversion": 3, "classmap": {"YAHOO_bootstrap": {"global": "", "name": "YAHOO_bootstrap", "constructors": [{"params": [{"type": "", "name": "o", "description": " Optional configuration object. Options:\n"}, {"type": "boolean", "name": "def", "description": " if true, \"o\" will be used as the default configuration object for succesive \ncalls without the \"o\" argument."}], "description": "YAHOO_bootstrap function. If YAHOO_bootstrap is already defined, the\nexisting YAHOO_bootstrap function will not be overwritten to preserve\nthe state of the bootstrap."}], "namespace": "", "module": "bootstrap", "methods": {"use": {"return": {"type": "", "description": "void"}, "params": [{"type": "string", "name": "modules*", "description": " 1-n modules to bind (uses arguments array)"}, {"type": "function", "name": "*callback", "description": " callback function executed when \nthe instance has the required functionality. If included, it\nmust be the last parameter.\nYAHOO_bootstrap().use('tabview', callback)"}], "description": "Load a set of modules and notify thru the callback method.", "guessedname": "use", "guessedtype": "function"}, "_loaderDispatch": {"static": "", "return": {"type": "", "description": "void"}, "description": "Dispatch the first element from the job queue", "private": ""}, "_includeLoader": {"static": "", "return": {"type": "", "description": "void"}, "description": "Include YUI Loader in the the page, and wait until it get available to start dispatching jobs\nfrom the queue", "private": ""}, "_addMods": {"return": {"type": "", "description": "void"}, "static": "", "params": [{"type": "object", "name": "m", "description": " collection of modules"}], "description": "Add a set of modules to _loaderObj, it also normalize the module information before include it", "private": ""}, "_initLoader": {"static": "", "return": {"type": "", "description": "void"}, "description": "Initialization process for the YUI Loader obj. In YUI 2.x we should\nhave a single instance to control everything.", "private": ""}, "_getConf": {"return": {"type": "", "description": "object computed configuration"}, "static": "", "params": [{"type": "object", "name": "o", "description": " currrent configuration object"}], "description": "Verify if the current configuration object just defines new modules. If that's the case, \nwe will use \"_config\" as the computed configuration, and \"o\" as the list of modules to add.", "private": ""}}, "file": "yahoo_bootstrap.js", "shortname": "YAHOO_bootstrap", "description": "YAHOO_bootstrap function. If YAHOO_bootstrap is already defined, the\nexisting YAHOO_bootstrap function will not be overwritten to preserve\nthe state of the bootstrap."}, "YUI_bootstrap": {"global": "", "name": "YUI_bootstrap", "constructors": [{"params": [{"type": "", "name": "o", "description": " Optional configuration object. Options:\n"}, {"type": "boolean", "name": "def", "description": " if true, \"o\" will be used as the default configuration object for succesive \ncalls without the \"o\" argument."}], "description": "YUI_bootstrap function. If YUI_bootstrap is already defined, the\nexisting YUI_bootstrap function will not be overwritten to preserve\nthe state of the bootstrap."}], "namespace": "", "module": "bootstrap", "methods": {"_includeLoader": {"static": "", "return": {"type": "", "description": "void"}, "description": "Include YUI Loader in the the page, and wait until it get available to start dispatching jobs", "private": ""}, "_loaderDispatch": {"static": "", "return": {"type": "", "description": "void"}, "description": "Dispatch all the pending jobs, yui 3.x will handle the queue", "private": ""}, "use": {"return": {"type": "", "description": "void"}, "params": [{"type": "string", "name": "modules*", "description": " 1-n modules to bind (uses arguments array)"}, {"type": "function", "name": "*callback", "description": " callback function executed when \nthe instance has the required functionality. If included, it\nmust be the last parameter.\nYUI_bootstrap().use('dd', callback)"}], "description": "Load a set of modules and notify thru the callback method.", "guessedname": "use", "guessedtype": "function"}, "_getConf": {"return": {"type": "object", "description": "computed configuration"}, "static": "", "params": [{"type": "object", "name": "o", "description": " currrent configuration object"}], "description": "Verify if the current configuration object just defines new modules. If that's the case, \nwe will use \"_config\" as the computed configuration, and \"o\" as the list of modules to add.", "private": ""}}, "file": "yui_bootstrap.js", "shortname": "YUI_bootstrap", "description": "YUI_bootstrap function. If YUI_bootstrap is already defined, the\nexisting YUI_bootstrap function will not be overwritten to preserve\nthe state of the bootstrap."}}, "version": "1.0.0", "modules": {"bootstrap": {"description": "Provides Bootstrap definition based on YUI 3.x.", "submodules": [], "classlist": ["YAHOO_bootstrap", "YUI_bootstrap"], "filelist": ["yahoo_bootstrap.js", "yui_bootstrap.js"], "subdata": {}, "name": "bootstrap"}}, "filemap": {"yui_bootstrap.js": {"classlist": ["YUI_bootstrap"], "name": "yui_bootstrap.js", "module": "bootstrap"}, "yahoo_bootstrap.js": {"classlist": ["YAHOO_bootstrap"], "name": "yahoo_bootstrap.js", "module": "bootstrap"}}} \ No newline at end of file +{"majorversion": 3, "classmap": {"YAHOO_bootstrap": {"global": "", "name": "YAHOO_bootstrap", "constructors": [{"params": [{"type": "", "name": "o", "description": " Optional configuration object. Options:\n"}, {"type": "boolean", "name": "def", "description": " if true, \"o\" will be used as the default configuration object for succesive \ncalls without the \"o\" argument."}], "description": "YAHOO_bootstrap function. If YAHOO_bootstrap is already defined, the\nexisting YAHOO_bootstrap function will not be overwritten to preserve\nthe state of the bootstrap."}], "namespace": "", "module": "bootstrap", "methods": {"use": {"return": {"type": "", "description": "void"}, "params": [{"type": "string", "name": "modules*", "description": " 1-n modules to bind (uses arguments array)"}, {"type": "function", "name": "*callback", "description": " callback function executed when \nthe instance has the required functionality. If included, it\nmust be the last parameter.\nYAHOO_bootstrap().use('tabview', callback)"}], "description": "Load a set of modules and notify thru the callback method.", "guessedname": "use", "guessedtype": "function"}, "_loaderDispatch": {"static": "", "return": {"type": "", "description": "void"}, "description": "Dispatch the first element from the job queue", "private": ""}, "_includeLoader": {"static": "", "return": {"type": "", "description": "void"}, "description": "Include YUI Loader in the the page, and wait until it get available to start dispatching jobs\nfrom the queue", "private": ""}, "_addMods": {"return": {"type": "", "description": "void"}, "static": "", "params": [{"type": "object", "name": "m", "description": " collection of modules"}], "description": "Add a set of modules to _loaderObj, it also normalize the module information before include it", "private": ""}, "_initLoader": {"static": "", "return": {"type": "", "description": "void"}, "description": "Initialization process for the YUI Loader obj. In YUI 2.x we should\nhave a single instance to control everything.", "private": ""}, "_getConf": {"return": {"type": "", "description": "object computed configuration"}, "static": "", "params": [{"type": "object", "name": "o", "description": " currrent configuration object"}], "description": "Verify if the current configuration object just defines new modules. If that's the case, \nwe will use \"_config\" as the computed configuration, and \"o\" as the list of modules to add.", "private": ""}}, "file": "yahoo_bootstrap.js", "shortname": "YAHOO_bootstrap", "description": "YAHOO_bootstrap function. If YAHOO_bootstrap is already defined, the\nexisting YAHOO_bootstrap function will not be overwritten to preserve\nthe state of the bootstrap."}, "YUI_bootstrap": {"global": "", "name": "YUI_bootstrap", "constructors": [{"params": [{"type": "", "name": "o", "description": " Optional configuration object. Options:\n"}, {"type": "boolean", "name": "def", "description": " if true, \"o\" will be used as the default configuration object for succesive \ncalls without the \"o\" argument."}], "description": "YUI_bootstrap function. If YUI_bootstrap is already defined, the\nexisting YUI_bootstrap function will not be overwritten to preserve\nthe state of the bootstrap."}], "namespace": "", "module": "bootstrap", "methods": {"_includeLoader": {"static": "", "return": {"type": "", "description": "void"}, "description": "Include YUI Loader in the the page, and wait until it get available to start dispatching jobs", "private": ""}, "_loaderDispatch": {"static": "", "return": {"type": "", "description": "void"}, "description": "Dispatch all the pending jobs, yui 3.x will handle the queue", "private": ""}, "use": {"return": {"type": "", "description": "void"}, "params": [{"type": "string", "name": "modules*", "description": " 1-n modules to bind (uses arguments array)"}, {"type": "function", "name": "*callback", "description": " callback function executed when \nthe instance has the required functionality. If included, it\nmust be the last parameter.\nYUI_bootstrap().use('dd', callback)"}], "description": "Load a set of modules and notify thru the callback method.", "guessedname": "use", "guessedtype": "function"}, "_getConf": {"return": {"type": "object", "description": "computed configuration"}, "static": "", "params": [{"type": "object", "name": "o", "description": " currrent configuration object"}], "description": "Verify if the current configuration object just defines new modules. If that's the case, \nwe will use \"_config\" as the computed configuration, and \"o\" as the list of modules to add.", "private": ""}}, "file": "yui_bootstrap.js", "shortname": "YUI_bootstrap", "description": "YUI_bootstrap function. If YUI_bootstrap is already defined, the\nexisting YUI_bootstrap function will not be overwritten to preserve\nthe state of the bootstrap."}}, "version": "1.0.0", "modules": {"bootstrap": {"description": "Provides Bootstrap definition based on YUI 3.x.", "submodules": [], "classlist": ["YAHOO_bootstrap", "YUI_bootstrap"], "filelist": ["yahoo_bootstrap.js", "yui_bootstrap.js"], "subdata": {}, "name": "bootstrap"}}, "filemap": {"yui_bootstrap.js": {"classlist": ["YUI_bootstrap"], "name": "yui_bootstrap.js", "module": "bootstrap"}, "yahoo_bootstrap.js": {"classlist": ["YAHOO_bootstrap"], "name": "yahoo_bootstrap.js", "module": "bootstrap"}}} \ No newline at end of file diff --git a/api/raw.json b/api/raw.json index 3991e0b..5e9436a 100644 --- a/api/raw.json +++ b/api/raw.json @@ -1 +1 @@ -{"majorversion": 3, "classmap": {"YAHOO_bootstrap": {"global": "", "name": "YAHOO_bootstrap", "constructors": [{"params": [{"type": "", "name": "o", "description": " Optional configuration object. Options:\n"}, {"type": "boolean", "name": "def", "description": " if true, \"o\" will be used as the default configuration object for succesive \ncalls without the \"o\" argument."}], "description": "YAHOO_bootstrap function. If YAHOO_bootstrap is already defined, the\nexisting YAHOO_bootstrap function will not be overwritten to preserve\nthe state of the bootstrap."}], "namespace": "", "module": "bootstrap", "methods": {"use": {"return": {"type": "", "description": "void"}, "params": [{"type": "string", "name": "modules*", "description": " 1-n modules to bind (uses arguments array)"}, {"type": "function", "name": "*callback", "description": " callback function executed when \nthe instance has the required functionality. If included, it\nmust be the last parameter.\nYAHOO_bootstrap().use('tabview', callback)"}], "description": "Load a set of modules and notify thru the callback method.", "guessedname": "use", "guessedtype": "function"}, "_loaderDispatch": {"static": "", "return": {"type": "", "description": "void"}, "description": "Dispatch the first element from the job queue", "private": ""}, "_includeLoader": {"static": "", "return": {"type": "", "description": "void"}, "description": "Include YUI Loader in the the page, and wait until it get available to start dispatching jobs\nfrom the queue", "private": ""}, "_addMods": {"return": {"type": "", "description": "void"}, "static": "", "params": [{"type": "object", "name": "m", "description": " collection of modules"}], "description": "Add a set of modules to _loaderObj, it also normalize the module information before include it", "private": ""}, "_initLoader": {"static": "", "return": {"type": "", "description": "void"}, "description": "Initialization process for the YUI Loader obj. In YUI 2.x we should\nhave a single instance to control everything.", "private": ""}, "_getConf": {"return": {"type": "", "description": "object computed configuration"}, "static": "", "params": [{"type": "object", "name": "o", "description": " currrent configuration object"}], "description": "Verify if the current configuration object just defines new modules. If that's the case, \nwe will use \"_config\" as the computed configuration, and \"o\" as the list of modules to add.", "private": ""}}, "file": "yahoo_bootstrap.js", "shortname": "YAHOO_bootstrap", "description": "YAHOO_bootstrap function. If YAHOO_bootstrap is already defined, the\nexisting YAHOO_bootstrap function will not be overwritten to preserve\nthe state of the bootstrap."}, "YUI_bootstrap": {"global": "", "name": "YUI_bootstrap", "constructors": [{"params": [{"type": "", "name": "o", "description": " Optional configuration object. Options:\n"}, {"type": "boolean", "name": "def", "description": " if true, \"o\" will be used as the default configuration object for succesive \ncalls without the \"o\" argument."}], "description": "YUI_bootstrap function. If YUI_bootstrap is already defined, the\nexisting YUI_bootstrap function will not be overwritten to preserve\nthe state of the bootstrap."}], "namespace": "", "module": "bootstrap", "methods": {"_includeLoader": {"static": "", "return": {"type": "", "description": "void"}, "description": "Include YUI Loader in the the page, and wait until it get available to start dispatching jobs", "private": ""}, "_loaderDispatch": {"static": "", "return": {"type": "", "description": "void"}, "description": "Dispatch all the pending jobs, yui 3.x will handle the queue", "private": ""}, "use": {"return": {"type": "", "description": "void"}, "params": [{"type": "string", "name": "modules*", "description": " 1-n modules to bind (uses arguments array)"}, {"type": "function", "name": "*callback", "description": " callback function executed when \nthe instance has the required functionality. If included, it\nmust be the last parameter.\nYUI_bootstrap().use('dd', callback)"}], "description": "Load a set of modules and notify thru the callback method.", "guessedname": "use", "guessedtype": "function"}, "_getConf": {"return": {"type": "object", "description": "computed configuration"}, "static": "", "params": [{"type": "object", "name": "o", "description": " currrent configuration object"}], "description": "Verify if the current configuration object just defines new modules. If that's the case, \nwe will use \"_config\" as the computed configuration, and \"o\" as the list of modules to add.", "private": ""}}, "file": "yui_bootstrap.js", "shortname": "YUI_bootstrap", "description": "YUI_bootstrap function. If YUI_bootstrap is already defined, the\nexisting YUI_bootstrap function will not be overwritten to preserve\nthe state of the bootstrap."}}, "version": "1.0.0", "modules": {"bootstrap": {"description": "Provides Bootstrap definition based on YUI 3.x.", "submodules": [], "classlist": ["YAHOO_bootstrap", "YUI_bootstrap"], "filelist": ["yahoo_bootstrap.js", "yui_bootstrap.js"], "subdata": {}, "name": "bootstrap"}}, "filemap": {"yui_bootstrap.js": {"classlist": ["YUI_bootstrap"], "name": "yui_bootstrap.js", "module": "bootstrap"}, "yahoo_bootstrap.js": {"classlist": ["YAHOO_bootstrap"], "name": "yahoo_bootstrap.js", "module": "bootstrap"}}} \ No newline at end of file +{"majorversion": 3, "classmap": {"YAHOO_bootstrap": {"global": "", "name": "YAHOO_bootstrap", "constructors": [{"params": [{"type": "", "name": "o", "description": " Optional configuration object. Options:\n"}, {"type": "boolean", "name": "def", "description": " if true, \"o\" will be used as the default configuration object for succesive \ncalls without the \"o\" argument."}], "description": "YAHOO_bootstrap function. If YAHOO_bootstrap is already defined, the\nexisting YAHOO_bootstrap function will not be overwritten to preserve\nthe state of the bootstrap."}], "namespace": "", "module": "bootstrap", "methods": {"use": {"return": {"type": "", "description": "void"}, "params": [{"type": "string", "name": "modules*", "description": " 1-n modules to bind (uses arguments array)"}, {"type": "function", "name": "*callback", "description": " callback function executed when \nthe instance has the required functionality. If included, it\nmust be the last parameter.\nYAHOO_bootstrap().use('tabview', callback)"}], "description": "Load a set of modules and notify thru the callback method.", "guessedname": "use", "guessedtype": "function"}, "_loaderDispatch": {"static": "", "return": {"type": "", "description": "void"}, "description": "Dispatch the first element from the job queue", "private": ""}, "_includeLoader": {"static": "", "return": {"type": "", "description": "void"}, "description": "Include YUI Loader in the the page, and wait until it get available to start dispatching jobs\nfrom the queue", "private": ""}, "_addMods": {"return": {"type": "", "description": "void"}, "static": "", "params": [{"type": "object", "name": "m", "description": " collection of modules"}], "description": "Add a set of modules to _loaderObj, it also normalize the module information before include it", "private": ""}, "_initLoader": {"static": "", "return": {"type": "", "description": "void"}, "description": "Initialization process for the YUI Loader obj. In YUI 2.x we should\nhave a single instance to control everything.", "private": ""}, "_getConf": {"return": {"type": "", "description": "object computed configuration"}, "static": "", "params": [{"type": "object", "name": "o", "description": " currrent configuration object"}], "description": "Verify if the current configuration object just defines new modules. If that's the case, \nwe will use \"_config\" as the computed configuration, and \"o\" as the list of modules to add.", "private": ""}}, "file": "yahoo_bootstrap.js", "shortname": "YAHOO_bootstrap", "description": "YAHOO_bootstrap function. If YAHOO_bootstrap is already defined, the\nexisting YAHOO_bootstrap function will not be overwritten to preserve\nthe state of the bootstrap."}, "YUI_bootstrap": {"global": "", "name": "YUI_bootstrap", "constructors": [{"params": [{"type": "", "name": "o", "description": " Optional configuration object. Options:\n"}, {"type": "boolean", "name": "def", "description": " if true, \"o\" will be used as the default configuration object for succesive \ncalls without the \"o\" argument."}], "description": "YUI_bootstrap function. If YUI_bootstrap is already defined, the\nexisting YUI_bootstrap function will not be overwritten to preserve\nthe state of the bootstrap."}], "namespace": "", "module": "bootstrap", "methods": {"_includeLoader": {"static": "", "return": {"type": "", "description": "void"}, "description": "Include YUI Loader in the the page, and wait until it get available to start dispatching jobs", "private": ""}, "_loaderDispatch": {"static": "", "return": {"type": "", "description": "void"}, "description": "Dispatch all the pending jobs, yui 3.x will handle the queue", "private": ""}, "use": {"return": {"type": "", "description": "void"}, "params": [{"type": "string", "name": "modules*", "description": " 1-n modules to bind (uses arguments array)"}, {"type": "function", "name": "*callback", "description": " callback function executed when \nthe instance has the required functionality. If included, it\nmust be the last parameter.\nYUI_bootstrap().use('dd', callback)"}], "description": "Load a set of modules and notify thru the callback method.", "guessedname": "use", "guessedtype": "function"}, "_getConf": {"return": {"type": "object", "description": "computed configuration"}, "static": "", "params": [{"type": "object", "name": "o", "description": " currrent configuration object"}], "description": "Verify if the current configuration object just defines new modules. If that's the case, \nwe will use \"_config\" as the computed configuration, and \"o\" as the list of modules to add.", "private": ""}}, "file": "yui_bootstrap.js", "shortname": "YUI_bootstrap", "description": "YUI_bootstrap function. If YUI_bootstrap is already defined, the\nexisting YUI_bootstrap function will not be overwritten to preserve\nthe state of the bootstrap."}}, "version": "1.0.0", "modules": {"bootstrap": {"description": "Provides Bootstrap definition based on YUI 3.x.", "submodules": [], "classlist": ["YAHOO_bootstrap", "YUI_bootstrap"], "filelist": ["yahoo_bootstrap.js", "yui_bootstrap.js"], "subdata": {}, "name": "bootstrap"}}, "filemap": {"yui_bootstrap.js": {"classlist": ["YUI_bootstrap"], "name": "yui_bootstrap.js", "module": "bootstrap"}, "yahoo_bootstrap.js": {"classlist": ["YAHOO_bootstrap"], "name": "yahoo_bootstrap.js", "module": "bootstrap"}}} \ No newline at end of file diff --git a/api/yahoo_bootstrap-debug.js b/api/yahoo_bootstrap-debug.js deleted file mode 100644 index c769673..0000000 --- a/api/yahoo_bootstrap-debug.js +++ /dev/null @@ -1,272 +0,0 @@ -/** - * Provides Bootstrap definition based on YUI 2.x. - * - * @module bootstrap - */ -(function() { - - var _config = {modules:{}}, - _loaderObj = null, - _loaderQueue = []; - - /** - * YAHOO_bootstrap function. If YAHOO_bootstrap is already defined, the - * existing YAHOO_bootstrap function will not be overwritten to preserve - * the state of the bootstrap. - * - * @class YAHOO_bootstrap - * @static - * @global - * @param o Optional configuration object. Options: - * - * - * Also, we can pass a custom argument thru "o" to customize - * the file that should be injected to define the YUI Loader Utility. This feature allow us to - * define a custom COMBO url to load a default set of components including loader in a single entry. - * - * @param boolean def if true, "o" will be used as the default configuration object for succesive - * calls without the "o" argument. - * - */ - - /** - * Dispatch the first element from the job queue - * @method _loaderDispatch - * @private - * @static - * @return void - */ - function _loaderDispatch () { - var c; - if ((c = _loaderQueue.shift())) { - c.call(); - } - } - - /** - * Include YUI Loader in the the page, and wait until it get available to start dispatching jobs - * from the queue - * @method _includeLoader - * @private - * @static - * @return void - */ - function _includeLoader () { - var base = _config.base || 'http://yui.yahooapis.com/2.7.0/build/', - seed = _config.seed || 'yuiloader/yuiloader-min.js'; - // analyzing the seed - seed = (seed.indexOf('http')===0?seed:base+seed); - // Encapsulation Pattern: Conjuring YUI from thin air (by Chris Heilmann) - // more info: http://www.wait-till-i.com/2008/08/02/conjuring-yui-from-thin-air/ - YAHOO_config = function() { - /* injecting the YUI Loader in the current page */ - var s = document.createElement('script'); - s.setAttribute('type', 'text/javascript'); - s.setAttribute('src', seed); - document.getElementsByTagName('head')[0].appendChild(s); - return { - // true if the library should be dynamically loaded after window.onload. - injecting: !!_config.injected, - listener: function(o) { - // waiting for the loader component - if (o.name === 'get') { - window.setTimeout(_loaderDispatch, 1); - } - } - }; - }(); - } - - /** - * Add a set of modules to _loaderObj, it also normalize the module information before include it - * @method _addMods - * @private - * @static - * @param {object} m collection of modules - * @return void - */ - function _addMods (m) { - var i; - // adding modules to the loader - if (m && (typeof m === 'object')) { - for (i in m) { - if (m.hasOwnProperty(i)) { - m[i].name = m[i].name || i; - m[i].type = m[i].type || ((m[i].fullpath||m[i].path).indexOf('.css')>=0?'css':'js'); - //console.log ('Adding a default module: ', m[i].name, m[i]); - _loaderObj.addModule (m[i]); - } - } - } - } - - /** - * Initialization process for the YUI Loader obj. In YUI 2.x we should - * have a single instance to control everything. - * @method _initLoader - * @private - * @static - * @return void - */ - function _initLoader (l) { - var i, m; - - if (!_loaderObj) { - /* creating the loader object for this region */ - l = l || {}; - l.combine = (l.hasOwnProperty('combine')?l.combine:true); /* using the Combo Handle */ - l.filter = l.filter || 'min'; /* you can switch between YUI branch */ - - // more config here ... - - _loaderObj = new YAHOO.util.YUILoader(l); - _addMods(l.modules); - } - // probably more configurations here - } - - /** - * Verify if the current configuration object just defines new modules. If that's the case, - * we will use "_config" as the computed configuration, and "o" as the list of modules to add. - * @method _getConf - * @param o currrent configuration object - * @private - * @static - * @return object computed configuration - */ - function _getConf(o) { - o = o||{}; - var m = o.modules || {}, - flag = true, i; - for (i in o) { - if (o.hasOwnProperty(i) && (i != 'modules')) { - flag = false; - } - } - // using _config and injecting more modules - if (flag) { - for (i in m) { - if (m.hasOwnProperty(i)) { - _config.modules[i] = m[i]; - } - } - if (_loaderObj) { - _addMods(m); - } - o = _config; - } - return o; - } - - YAHOO_bootstrap = function (o, def) { - // analyzing "o" - o = _getConf(o); - // if def is true, o will be used as the default config from now on - _config = (def?o:_config); - return { - /** - * Load a set of modules and notify thru the callback method. - * @param modules* {string} 1-n modules to bind (uses arguments array) - * @param *callback {function} callback function executed when - * the instance has the required functionality. If included, it - * must be the last parameter. - * - * YAHOO_bootstrap().use('tabview', callback) - * - * @return void - */ - use: function () { - var a=Array.prototype.slice.call(arguments, 0), - callback = a.pop (); - _loaderQueue.push (function () { - var i; - _initLoader(o); - _loaderObj.require(a); - _loaderObj.insert({ - onSuccess: function () { - _loaderDispatch(); - callback.call(); - (o.onSuccess || function(){}).call(); - }, - onFailure: function(){ - _loaderDispatch(); - (o.onFailure || function(){}).call(); - }, - onTimeout: function () { - _loaderDispatch(); - (o.onTimeout || function(){}).call(); - } - }, o.type); - }); - // verifying if the loader is ready in the page, if not, it will be - // included automatically and then the process will continue. - if (_loaderQueue.length===1) { - ((typeof YAHOO == "undefined" || !YAHOO)?_includeLoader():_loaderDispatch()); - } - } - }; - }; - -})(); diff --git a/api/yahoo_bootstrap-debug.js.highlighted b/api/yahoo_bootstrap-debug.js.highlighted deleted file mode 100644 index e512d1b..0000000 --- a/api/yahoo_bootstrap-debug.js.highlighted +++ /dev/null @@ -1,273 +0,0 @@ -
    /** 
    - * Provides Bootstrap definition based on YUI 2.x.
    - *
    - * @module bootstrap
    - */
    -(function() {
    -	
    -	var _config = {modules:{}},
    -		_loaderObj = null,
    -		_loaderQueue = [];
    -		
    -	/**
    -     * YAHOO_bootstrap function.  If YAHOO_bootstrap is already defined, the
    -     * existing YAHOO_bootstrap function will not be overwritten to preserve
    -     * the state of the bootstrap.
    -     *
    -     * @class YAHOO_bootstrap
    -     * @static
    -     * @global
    -     * @param o Optional configuration object.  Options:
    -     * <ul>
    -     *  <li>------------------------------------------------------------------------</li>
    -     *  <li>Global:</li>
    -     *  <li>------------------------------------------------------------------------</li>
    -     *  <li>debug: Turn debug statements on or off</li>
    -     *  <li>injected: set to true if the yui seed file was dynamically loaded in
    -     *  order to bootstrap components relying on the window load event and onDOMReady
    -     *  (former injecting on YAHOO_config).</li>
    -     *  <li>locale: default locale</li>
    -     *  <li>-------------------------------------------------------------------------</li>
    -     *  <li>For loader:</li>
    -     *  <li>-------------------------------------------------------------------------</li>
    -     *  <li>base: The base dir</li>
    -     *  <li>comboBase: The YUI combo service base dir. Ex: http://yui.yahooapis.com/combo?</li>
    -     *  <li>root: The root path to prepend to module names for the combo service. Ex\\: 2\\.5\\.2\\/build\\/</li>
    -     *  <li>filter:
    -     *  
    -     * A filter to apply to result urls.  This filter will modify the default
    -     * path for all modules.  The default path for the YUI library is the
    -     * minified version of the files (e.g., event-min.js).  The filter property
    -     * can be a predefined filter or a custom filter.  The valid predefined 
    -     * filters are:
    -     * <dl>
    -     *  <dt>DEBUG</dt>
    -     *  <dd>Selects the debug versions of the library (e.g., event-debug.js).
    -     *      This option will automatically include the Logger widget</dd>
    -     *  <dt>RAW</dt>
    -     *  <dd>Selects the non-minified version of the library (e.g., event.js).</dd>
    -     * </dl>
    -     * You can also define a custom filter, which must be an object literal 
    -     * containing a search expression and a replace string:
    -     * <pre>
    -     *  myFilter: &#123; 
    -     *      'searchExp': "-min\\.js", 
    -     *      'replaceStr': "-debug.js"
    -     *  &#125;
    -     * </pre>
    -     *
    -     *  </li>
    -     *  <li>filters: per-component filter specification.  If specified for a given component, this overrides the filter config</li>
    -     *  <li>combine:
    -     *  Use the YUI combo service to reduce the number of http connections required to load your dependencies</li>
    -     *  <li>ignore:
    -     *  A list of modules that should never be dynamically loaded</li>
    -     *  <li>force:
    -     *  A list of modules that should always be loaded when required, even if already present on the page</li>
    -     *  <li>insertBefore:
    -     *  Node or id for a node that should be used as the insertion point for new nodes</li>
    -     *  <li>charset:
    -     *  charset for dynamic nodes</li>
    -     *  <li>timeout:
    -     *  number of milliseconds before a timeout occurs when dynamically loading nodes.  in not set, there is no timeout</li>
    -     *  <li>onSuccess:
    -     *  callback for the 'success' event</li>
    -     *  <li>onFailure:
    -     *  callback for the 'failure' event</li>
    -     *  <li>onTimeout:
    -     *  callback for the 'timeout' event</li>
    -     *  <li>onProgress:
    -     *  callback executed each time a script or css file is loaded</li>
    -     *  <li>modules:
    -     *  A list of module definitions.  See Loader.addModule for the supported module metadata</li>
    -     * </ul>
    -     * 
    -     * Also, we can pass a custom argument thru "o" to customize
    -     * the file that should be injected to define the YUI Loader Utility. This feature allow us to
    -     * define a custom COMBO url to load a default set of components including loader in a single entry.
    -     * 
    -     * @param boolean def if true, "o" will be used as the default configuration object for succesive 
    -     * calls without the "o" argument.
    -     * 
    -	 */
    -	
    -	/**
    -	 * Dispatch the first element from the job queue 
    -	 * @method _loaderDispatch
    -	 * @private
    -	 * @static
    -	 * @return void
    -	 */
    -	function _loaderDispatch () {
    -		var c;
    -		if ((c = _loaderQueue.shift())) {
    -			c.call();
    -		}
    -	}
    -	
    -	/**
    -	 * Include YUI Loader in the the page, and wait until it get available to start dispatching jobs
    -	 * from the queue
    -	 * @method _includeLoader
    -	 * @private
    -	 * @static
    -	 * @return void
    -	 */
    -	function _includeLoader () {
    -		var base = _config.base || 'http://yui.yahooapis.com/2.7.0/build/',
    -			seed = _config.seed || 'yuiloader/yuiloader-min.js';
    -		// analyzing the seed
    -		seed = (seed.indexOf('http')===0?seed:base+seed);
    -		// Encapsulation Pattern: Conjuring YUI from thin air (by Chris Heilmann)
    -		// more info: http://www.wait-till-i.com/2008/08/02/conjuring-yui-from-thin-air/
    -		YAHOO_config = function() {
    -		    /* injecting the YUI Loader in the current page */
    -		    var s = document.createElement('script');
    -		    s.setAttribute('type', 'text/javascript');
    -		    s.setAttribute('src', seed);
    -		    document.getElementsByTagName('head')[0].appendChild(s);
    -		    return {
    -		        // true if the library should be dynamically loaded after window.onload.
    -		        injecting: !!_config.injected,
    -		        listener: function(o) {
    -		            // waiting for the loader component
    -		            if (o.name === 'get') {
    -		                window.setTimeout(_loaderDispatch, 1);
    -		            }
    -		        }
    -		    };
    -		}();
    -	}
    -	
    -	/**
    -	 * Add a set of modules to _loaderObj, it also normalize the module information before include it
    -	 * @method _addMods
    -	 * @private
    -	 * @static
    -	 * @param {object} m collection of modules
    -	 * @return void
    -	 */
    -	function _addMods (m) {
    -		var i;
    -		// adding modules to the loader 
    -		if (m && (typeof m === 'object')) {
    -			for (i in m) {
    -				if (m.hasOwnProperty(i)) {
    -					m[i].name = m[i].name || i;
    -					m[i].type = m[i].type || ((m[i].fullpath||m[i].path).indexOf('.css')>=0?'css':'js');
    -					//console.log ('Adding a default module: ', m[i].name, m[i]);
    -					_loaderObj.addModule (m[i]);
    -				}
    -			}
    -		}
    -	} 
    -
    -	/**
    -	 * Initialization process for the YUI Loader obj. In YUI 2.x we should
    -	 * have a single instance to control everything.
    -	 * @method _initLoader
    -	 * @private
    -	 * @static
    -	 * @return void
    -	 */
    -	function _initLoader (l) {
    -	    var i, m;
    -		
    -		if (!_loaderObj) {
    -			/* creating the loader object for this region */
    -			l = l || {};
    -			l.combine = (l.hasOwnProperty('combine')?l.combine:true); /* using the Combo Handle */
    -		    l.filter = l.filter || 'min';  /* you can switch between YUI branch */
    -			
    -			// more config here ...
    -		
    -			_loaderObj = new YAHOO.util.YUILoader(l);			
    -			_addMods(l.modules);
    -		}
    -		// probably more configurations here
    -	}
    -	
    -	/**
    -	 * Verify if the current configuration object just defines new modules. If that's the case, 
    -	 * we will use "_config" as the computed configuration, and "o" as the list of modules to add.
    -	 * @method _getConf
    -	 * @param o currrent configuration object
    -	 * @private
    -	 * @static
    -	 * @return object computed configuration
    -	 */
    -	function _getConf(o) {
    -		o = o||{};
    -		var m = o.modules || {}, 
    -			flag = true, i;
    -		for (i in o) {
    -		  	if (o.hasOwnProperty(i) && (i != 'modules')) {
    -		  		flag = false;
    -		  	}
    -		}
    -		// using _config and injecting more modules
    -		if (flag) {
    -			for (i in m) {
    -			  	if (m.hasOwnProperty(i)) {
    -					_config.modules[i] = m[i];
    -				}
    -			}
    -			if (_loaderObj) {
    -				_addMods(m);
    -			}
    -			o = _config;
    -		}
    -		return o;
    -	}
    -	
    -	YAHOO_bootstrap = function (o, def) {
    -		// analyzing "o"
    -		o = _getConf(o);
    -		// if def is true, o will be used as the default config from now on 
    -		_config = (def?o:_config);
    -		return {
    -			/**
    -		     * Load a set of modules and notify thru the callback method.
    -		     * @param modules* {string} 1-n modules to bind (uses arguments array)
    -		     * @param *callback {function} callback function executed when 
    -		     * the instance has the required functionality.  If included, it
    -		     * must be the last parameter.
    -		     *
    -		     * YAHOO_bootstrap().use('tabview', callback)
    -		     *
    -		     * @return void
    -		     */
    -			use: function () {
    -				var a=Array.prototype.slice.call(arguments, 0),
    -					callback = a.pop ();
    -				_loaderQueue.push (function () {
    -					var i;
    -					_initLoader(o);
    -					_loaderObj.require(a);
    -					_loaderObj.insert({
    -						onSuccess: function () {
    -							_loaderDispatch();
    -							callback.call();
    -							(o.onSuccess || function(){}).call();
    -						},
    -						onFailure: function(){
    -							_loaderDispatch();
    -							(o.onFailure || function(){}).call();
    -						},
    -						onTimeout: function () {
    -							_loaderDispatch();
    -							(o.onTimeout || function(){}).call();
    -						}
    -					}, o.type);
    -				});
    -				// verifying if the loader is ready in the page, if not, it will be 
    -				// included automatically and then the process will continue.
    -				if (_loaderQueue.length===1) {
    -					((typeof YAHOO == "undefined" || !YAHOO)?_includeLoader():_loaderDispatch());				
    -				}
    -			}
    -		};
    -	};
    -	
    -})();
    -
    diff --git a/api/yahoo_bootstrap-min.js b/api/yahoo_bootstrap-min.js deleted file mode 100644 index a9a4d5e..0000000 --- a/api/yahoo_bootstrap-min.js +++ /dev/null @@ -1 +0,0 @@ -(function(){var F={modules:{}},H=null,A=[];function E(){var I;if((I=A.shift())){I.call();}}function B(){var J=F.base||"http://yui.yahooapis.com/2.7.0/build/",I=F.seed||"yuiloader/yuiloader-min.js";I=(I.indexOf("http")===0?I:J+I);YAHOO_config=function(){var K=document.createElement("script");K.setAttribute("type","text/javascript");K.setAttribute("src",I);document.getElementsByTagName("head")[0].appendChild(K);return{injecting:!!F.injected,listener:function(L){if(L.name==="get"){window.setTimeout(E,1);}}};}();}function D(I){var J;if(I&&(typeof I==="object")){for(J in I){if(I.hasOwnProperty(J)){I[J].name=I[J].name||J;I[J].type=I[J].type||((I[J].fullpath||I[J].path).indexOf(".css")>=0?"css":"js");H.addModule(I[J]);}}}}function G(J){var K,I;if(!H){J=J||{};J.combine=(J.hasOwnProperty("combine")?J.combine:true);J.filter=J.filter||"min";H=new YAHOO.util.YUILoader(J);D(J.modules);}}function C(L){L=L||{};var I=L.modules||{},J=true,K;for(K in L){if(L.hasOwnProperty(K)&&(K!="modules")){J=false;}}if(J){for(K in I){if(I.hasOwnProperty(K)){F.modules[K]=I[K];}}if(H){D(I);}L=F;}return L;}YAHOO_bootstrap=function(J,I){J=C(J);F=(I?J:F);return{use:function(){var K=Array.prototype.slice.call(arguments,0),L=K.pop();A.push(function(){var M;G(J);H.require(K);H.insert({onSuccess:function(){E();L.call();(J.onSuccess||function(){}).call();},onFailure:function(){E();(J.onFailure||function(){}).call();},onTimeout:function(){E();(J.onTimeout||function(){}).call();}},J.type);});if(A.length===1){((typeof YAHOO=="undefined"||!YAHOO)?B():E());}}};};})(); \ No newline at end of file diff --git a/api/yahoo_bootstrap-min.js.highlighted b/api/yahoo_bootstrap-min.js.highlighted deleted file mode 100644 index c26a648..0000000 --- a/api/yahoo_bootstrap-min.js.highlighted +++ /dev/null @@ -1,2 +0,0 @@ -
    (function(){var F={modules:{}},H=null,A=[];function E(){var I;if((I=A.shift())){I.call();}}function B(){var J=F.base||"http://yui.yahooapis.com/2.7.0/build/",I=F.seed||"yuiloader/yuiloader-min.js";I=(I.indexOf("http")===0?I:J+I);YAHOO_config=function(){var K=document.createElement("script");K.setAttribute("type","text/javascript");K.setAttribute("src",I);document.getElementsByTagName("head")[0].appendChild(K);return{injecting:!!F.injected,listener:function(L){if(L.name==="get"){window.setTimeout(E,1);}}};}();}function D(I){var J;if(I&&(typeof I==="object")){for(J in I){if(I.hasOwnProperty(J)){I[J].name=I[J].name||J;I[J].type=I[J].type||((I[J].fullpath||I[J].path).indexOf(".css")>=0?"css":"js");H.addModule(I[J]);}}}}function G(J){var K,I;if(!H){J=J||{};J.combine=(J.hasOwnProperty("combine")?J.combine:true);J.filter=J.filter||"min";H=new YAHOO.util.YUILoader(J);D(J.modules);}}function C(L){L=L||{};var I=L.modules||{},J=true,K;for(K in L){if(L.hasOwnProperty(K)&&(K!="modules")){J=false;}}if(J){for(K in I){if(I.hasOwnProperty(K)){F.modules[K]=I[K];}}if(H){D(I);}L=F;}return L;}YAHOO_bootstrap=function(J,I){J=C(J);F=(I?J:F);return{use:function(){var K=Array.prototype.slice.call(arguments,0),L=K.pop();A.push(function(){var M;G(J);H.require(K);H.insert({onSuccess:function(){E();L.call();(J.onSuccess||function(){}).call();},onFailure:function(){E();(J.onFailure||function(){}).call();},onTimeout:function(){E();(J.onTimeout||function(){}).call();}},J.type);});if(A.length===1){((typeof YAHOO=="undefined"||!YAHOO)?B():E());}}};};})();
    -
    diff --git a/api/yahoo_bootstrap.js b/api/yahoo_bootstrap.js index 9425b7c..efaf792 100644 --- a/api/yahoo_bootstrap.js +++ b/api/yahoo_bootstrap.js @@ -11,7 +11,8 @@ var _config = {modules:{}}, _loaderObj = null, - _loaderQueue = []; + _loaderQueue = [], + _loading = false; /** * YAHOO_bootstrap function. If YAHOO_bootstrap is already defined, the @@ -27,9 +28,6 @@ *
  • Global:
  • *
  • ------------------------------------------------------------------------
  • *
  • debug: Turn debug statements on or off
  • - *
  • injected: set to true if the yui seed file was dynamically loaded in - * order to bootstrap components relying on the window load event and onDOMReady - * (former injecting on YAHOO_config).
  • *
  • locale: default locale
  • *
  • -------------------------------------------------------------------------
  • *
  • For loader:
  • @@ -101,6 +99,7 @@ */ function _loaderDispatch () { var c; + _loading = false; if ((c = _loaderQueue.shift())) { c.call(); } @@ -116,28 +115,24 @@ */ function _includeLoader () { var base = _config.base || 'http://yui.yahooapis.com/2.7.0/build/', - seed = _config.seed || 'yuiloader/yuiloader-min.js'; + seed = _config.seed || 'yuiloader/yuiloader-min.js', + s = document.createElement('script'); // analyzing the seed seed = (seed.indexOf('http')===0?seed:base+seed); - // Encapsulation Pattern: Conjuring YUI from thin air (by Chris Heilmann) - // more info: http://www.wait-till-i.com/2008/08/02/conjuring-yui-from-thin-air/ - YAHOO_config = function() { - /* injecting the YUI Loader in the current page */ - var s = document.createElement('script'); - s.setAttribute('type', 'text/javascript'); - s.setAttribute('src', seed); - document.getElementsByTagName('head')[0].appendChild(s); - return { - // true if the library should be dynamically loaded after window.onload. - injecting: !!_config.injected, - listener: function(o) { - // waiting for the loader component - if (o.name === 'get') { - window.setTimeout(_loaderDispatch, 1); - } - } - }; - }(); + // more info about this here: http://www.nczonline.net/blog/2009/06/23/loading-javascript-without-blocking/ + s.type = "text/javascript"; + if (s.readyState){ //IE + s.onreadystatechange = function(){ + if (s.readyState == "loaded" || s.readyState == "complete"){ + s.onreadystatechange = null; + _loaderDispatch(); + } + }; + } else { //Others + s.onload = _loaderDispatch; + } + s.src = seed; + document.getElementsByTagName('head')[0].appendChild(s); } /** @@ -257,10 +252,11 @@ (o.onTimeout || function(){}).call(); } }, o.type); + _loading = true; }); // verifying if the loader is ready in the page, if not, it will be // included automatically and then the process will continue. - if (_loaderQueue.length===1) { + if ((_loaderQueue.length===1) && !_loading) { ((typeof YAHOO == "undefined" || !YAHOO)?_includeLoader():_loaderDispatch()); } } diff --git a/api/yahoo_bootstrap.js.highlighted b/api/yahoo_bootstrap.js.highlighted index 5d95d2e..f73ff6f 100644 --- a/api/yahoo_bootstrap.js.highlighted +++ b/api/yahoo_bootstrap.js.highlighted @@ -11,7 +11,8 @@ var _config = {modules:{}}, _loaderObj = null, - _loaderQueue = []; + _loaderQueue = [], + _loading = false; /** * YAHOO_bootstrap function. If YAHOO_bootstrap is already defined, the @@ -27,9 +28,6 @@ * <li>Global:</li> * <li>------------------------------------------------------------------------</li> * <li>debug: Turn debug statements on or off</li> - * <li>injected: set to true if the yui seed file was dynamically loaded in - * order to bootstrap components relying on the window load event and onDOMReady - * (former injecting on YAHOO_config).</li> * <li>locale: default locale</li> * <li>-------------------------------------------------------------------------</li> * <li>For loader:</li> @@ -101,6 +99,7 @@ */ function _loaderDispatch () { var c; + _loading = false; if ((c = _loaderQueue.shift())) { c.call(); } @@ -116,28 +115,24 @@ */ function _includeLoader () { var base = _config.base || 'http://yui.yahooapis.com/2.7.0/build/', - seed = _config.seed || 'yuiloader/yuiloader-min.js'; + seed = _config.seed || 'yuiloader/yuiloader-min.js', + s = document.createElement('script'); // analyzing the seed seed = (seed.indexOf('http')===0?seed:base+seed); - // Encapsulation Pattern: Conjuring YUI from thin air (by Chris Heilmann) - // more info: http://www.wait-till-i.com/2008/08/02/conjuring-yui-from-thin-air/ - YAHOO_config = function() { - /* injecting the YUI Loader in the current page */ - var s = document.createElement('script'); - s.setAttribute('type', 'text/javascript'); - s.setAttribute('src', seed); - document.getElementsByTagName('head')[0].appendChild(s); - return { - // true if the library should be dynamically loaded after window.onload. - injecting: !!_config.injected, - listener: function(o) { - // waiting for the loader component - if (o.name === 'get') { - window.setTimeout(_loaderDispatch, 1); - } - } - }; - }(); + // more info about this here: http://www.nczonline.net/blog/2009/06/23/loading-javascript-without-blocking/ + s.type = "text/javascript"; + if (s.readyState){ //IE + s.onreadystatechange = function(){ + if (s.readyState == "loaded" || s.readyState == "complete"){ + s.onreadystatechange = null; + _loaderDispatch(); + } + }; + } else { //Others + s.onload = _loaderDispatch; + } + s.src = seed; + document.getElementsByTagName('head')[0].appendChild(s); } /** @@ -257,10 +252,11 @@ (o.onTimeout || function(){}).call(); } }, o.type); + _loading = true; }); // verifying if the loader is ready in the page, if not, it will be // included automatically and then the process will continue. - if (_loaderQueue.length===1) { + if ((_loaderQueue.length===1) && !_loading) { ((typeof YAHOO == "undefined" || !YAHOO)?_includeLoader():_loaderDispatch()); } } diff --git a/api/yahoo_bootstrap.js.html b/api/yahoo_bootstrap.js.html index d998174..b821954 100644 --- a/api/yahoo_bootstrap.js.html +++ b/api/yahoo_bootstrap.js.html @@ -60,7 +60,8 @@

    bootstrap  1.0.0

    var _config = {modules:{}}, _loaderObj = null, - _loaderQueue = []; + _loaderQueue = [], + _loading = false; /** * YAHOO_bootstrap function. If YAHOO_bootstrap is already defined, the @@ -76,9 +77,6 @@

    bootstrap  1.0.0

    * <li>Global:</li> * <li>------------------------------------------------------------------------</li> * <li>debug: Turn debug statements on or off</li> - * <li>injected: set to true if the yui seed file was dynamically loaded in - * order to bootstrap components relying on the window load event and onDOMReady - * (former injecting on YAHOO_config).</li> * <li>locale: default locale</li> * <li>-------------------------------------------------------------------------</li> * <li>For loader:</li> @@ -150,6 +148,7 @@

    bootstrap  1.0.0

    */ function _loaderDispatch () { var c; + _loading = false; if ((c = _loaderQueue.shift())) { c.call(); } @@ -165,28 +164,24 @@

    bootstrap  1.0.0

    */ function _includeLoader () { var base = _config.base || 'http://yui.yahooapis.com/2.7.0/build/', - seed = _config.seed || 'yuiloader/yuiloader-min.js'; + seed = _config.seed || 'yuiloader/yuiloader-min.js', + s = document.createElement('script'); // analyzing the seed seed = (seed.indexOf('http')===0?seed:base+seed); - // Encapsulation Pattern: Conjuring YUI from thin air (by Chris Heilmann) - // more info: http://www.wait-till-i.com/2008/08/02/conjuring-yui-from-thin-air/ - YAHOO_config = function() { - /* injecting the YUI Loader in the current page */ - var s = document.createElement('script'); - s.setAttribute('type', 'text/javascript'); - s.setAttribute('src', seed); - document.getElementsByTagName('head')[0].appendChild(s); - return { - // true if the library should be dynamically loaded after window.onload. - injecting: !!_config.injected, - listener: function(o) { - // waiting for the loader component - if (o.name === 'get') { - window.setTimeout(_loaderDispatch, 1); - } - } - }; - }(); + // more info about this here: http://www.nczonline.net/blog/2009/06/23/loading-javascript-without-blocking/ + s.type = "text/javascript"; + if (s.readyState){ //IE + s.onreadystatechange = function(){ + if (s.readyState == "loaded" || s.readyState == "complete"){ + s.onreadystatechange = null; + _loaderDispatch(); + } + }; + } else { //Others + s.onload = _loaderDispatch; + } + s.src = seed; + document.getElementsByTagName('head')[0].appendChild(s); } /** @@ -306,10 +301,11 @@

    bootstrap  1.0.0

    (o.onTimeout || function(){}).call(); } }, o.type); + _loading = true; }); // verifying if the loader is ready in the page, if not, it will be // included automatically and then the process will continue. - if (_loaderQueue.length===1) { + if ((_loaderQueue.length===1) && !_loading) { ((typeof YAHOO == "undefined" || !YAHOO)?_includeLoader():_loaderDispatch()); } } diff --git a/api/yui_bootstrap-debug.js b/api/yui_bootstrap-debug.js deleted file mode 100644 index 74fff3e..0000000 --- a/api/yui_bootstrap-debug.js +++ /dev/null @@ -1,208 +0,0 @@ -/** - * Provides Bootstrap definition based on YUI 3.x. - * - * @module bootstrap - */ -(function() { - - var _config = {modules:{}}, - _loaderQueue = []; - - /** - * YUI_bootstrap function. If YUI_bootstrap is already defined, the - * existing YUI_bootstrap function will not be overwritten to preserve - * the state of the bootstrap. - * - * @class YUI_bootstrap - * @static - * @global - * @param o Optional configuration object. Options: - * - * - * Also, we can pass a custom argument thru "o" to customize - * the file that should be injected to define the YUI Loader Utility. This feature allow us to - * define a custom COMBO url to load a default set of components including loader in a single entry. - * - * @param boolean def if true, "o" will be used as the default configuration object for succesive - * calls without the "o" argument. - * - */ - - /** - * Dispatch the first element from the job queue - * @method _loaderDispatch - * @private - * @static - * @return void - */ - function _loaderDispatch () { - var c; - if ((c = _loaderQueue.shift())) { - c.call(); - } - } - - /** - * Include YUI Loader in the the page, and wait until it get available to start dispatching jobs - * from the queue - * @method _includeLoader - * @private - * @static - * @return void - */ - function _includeLoader () { - /* injecting the YUI Loader in the current page */ - var base = _config.base || 'http://yui.yahooapis.com/3.0.0pr2/build/', - seed = _config.seed || 'yui/yui-min.js', - s = document.createElement('script'), - fn = function(){ - if ((typeof YUI === 'undefined') || !YUI || YUI.Loader) { - // keep waiting... - window.setTimeout(fn, 50); - } else { - // YUI is ready... - window.setTimeout(_loaderDispatch, 1); - } - }; - s.setAttribute('type', 'text/javascript'); - // analyzing the seed - seed = (seed.indexOf('http')===0?seed:base+seed); - s.setAttribute('src', seed); - document.getElementsByTagName('head')[0].appendChild(s); - fn(); - } - - /** - * Verify if the current configuration object just defines new modules. If that's the case, - * we will use "_config" as the computed configuration, and "o" as the list of modules to add. - * @method _getConf - * @param o currrent configuration object - * @private - * @static - * @return object computed configuration - */ - function _getConf(o) { - o = o||{}; - var m = o.modules || {}, - flag = true, i; - for (i in o) { - if (o.hasOwnProperty(i) && (i != 'modules')) { - flag = false; - } - } - // using _config and injecting more modules - if (flag) { - for (i in m) { - if (m.hasOwnProperty(i)) { - _config.modules[i] = m[i]; - } - } - o = _config; - } - return o; - } - - YUI_bootstrap = function (o, def) { - // analyzing "o" - o = _getConf(o); - // if def is true, o will be used as the default config from now on - _config = (def?o:_config); - return { - /** - * Load a set of modules and notify thru the callback method. - * @param modules* {string} 1-n modules to bind (uses arguments array) - * @param *callback {function} callback function executed when - * the instance has the required functionality. If included, it - * must be the last parameter. - * - * YUI_bootstrap().use('dd', callback) - * - * @return void - */ - use: function () { - var a=Array.prototype.slice.call(arguments, 0); - _loaderQueue.push (function () { - /* hack: cloning configuration */ - var j, c = {}; - for (j in o) { - if (o.hasOwnProperty(j)) { - c[j] = o[j]; - } - } - /* end hack */ - var Y = YUI(c), i; - Y.use.apply (Y, a); - _loaderDispatch(); // dispatching the rest of the waiting jobs - }); - // verifying if the loader is ready in the page, if not, it will be - // included automatically and then the process will continue. - if (_loaderQueue.length===1) { - ((typeof YUI === 'undefined' || !YUI)?_includeLoader():_loaderDispatch()); - } - } - }; - }; - -})(); diff --git a/api/yui_bootstrap-debug.js.highlighted b/api/yui_bootstrap-debug.js.highlighted deleted file mode 100644 index 9eaffbd..0000000 --- a/api/yui_bootstrap-debug.js.highlighted +++ /dev/null @@ -1,209 +0,0 @@ -
    /** 
    - * Provides Bootstrap definition based on YUI 3.x.
    - *
    - * @module bootstrap
    - */
    -(function() {
    -	
    -	var _config = {modules:{}},
    -		_loaderQueue = [];
    -   	
    -	/**
    -     * YUI_bootstrap function.  If YUI_bootstrap is already defined, the
    -     * existing YUI_bootstrap function will not be overwritten to preserve
    -     * the state of the bootstrap.
    -     *
    -     * @class YUI_bootstrap
    -     * @static
    -     * @global
    -     * @param o Optional configuration object.  Options:
    -     * <ul>
    -     *  <li>------------------------------------------------------------------------</li>
    -     *  <li>Global:</li>
    -     *  <li>------------------------------------------------------------------------</li>
    -     *  <li>debug: Turn debug statements on or off</li>
    -     *  <li>injected: set to true if the yui seed file was dynamically loaded in
    -     *  order to bootstrap components relying on the window load event and onDOMReady
    -     *  (former injecting on YAHOO_config).</li>
    -     *  <li>locale: default locale</li>
    -     *  <li>-------------------------------------------------------------------------</li>
    -     *  <li>For loader:</li>
    -     *  <li>-------------------------------------------------------------------------</li>
    -     *  <li>base: The base dir</li>
    -     *  <li>comboBase: The YUI combo service base dir. Ex: http://yui.yahooapis.com/combo?</li>
    -     *  <li>root: The root path to prepend to module names for the combo service. Ex\\: 2\\.5\\.2\\/build\\/</li>
    -     *  <li>filter:
    -     *  
    -     * A filter to apply to result urls.  This filter will modify the default
    -     * path for all modules.  The default path for the YUI library is the
    -     * minified version of the files (e.g., event-min.js).  The filter property
    -     * can be a predefined filter or a custom filter.  The valid predefined 
    -     * filters are:
    -     * <dl>
    -     *  <dt>DEBUG</dt>
    -     *  <dd>Selects the debug versions of the library (e.g., event-debug.js).
    -     *      This option will automatically include the Logger widget</dd>
    -     *  <dt>RAW</dt>
    -     *  <dd>Selects the non-minified version of the library (e.g., event.js).</dd>
    -     * </dl>
    -     * You can also define a custom filter, which must be an object literal 
    -     * containing a search expression and a replace string:
    -     * <pre>
    -     *  myFilter: &#123; 
    -     *      'searchExp': "-min\\.js", 
    -     *      'replaceStr': "-debug.js"
    -     *  &#125;
    -     * </pre>
    -     *
    -     *  </li>
    -     *  <li>filters: per-component filter specification.  If specified for a given component, this overrides the filter config</li>
    -     *  <li>combine:
    -     *  Use the YUI combo service to reduce the number of http connections required to load your dependencies</li>
    -     *  <li>ignore:
    -     *  A list of modules that should never be dynamically loaded</li>
    -     *  <li>force:
    -     *  A list of modules that should always be loaded when required, even if already present on the page</li>
    -     *  <li>insertBefore:
    -     *  Node or id for a node that should be used as the insertion point for new nodes</li>
    -     *  <li>charset:
    -     *  charset for dynamic nodes</li>
    -     *  <li>timeout:
    -     *  number of milliseconds before a timeout occurs when dynamically loading nodes.  in not set, there is no timeout</li>
    -     *  <li>onSuccess:
    -     *  callback for the 'success' event</li>
    -     *  <li>onFailure:
    -     *  callback for the 'failure' event</li>
    -     *  <li>onTimeout:
    -     *  callback for the 'timeout' event</li>
    -     *  <li>onProgress:
    -     *  callback executed each time a script or css file is loaded</li>
    -     *  <li>modules:
    -     *  A list of module definitions.  See Loader.addModule for the supported module metadata</li>
    -     * </ul>
    -     * 
    -     * Also, we can pass a custom argument thru "o" to customize
    -     * the file that should be injected to define the YUI Loader Utility. This feature allow us to
    -     * define a custom COMBO url to load a default set of components including loader in a single entry.
    -     * 
    -     * @param boolean def if true, "o" will be used as the default configuration object for succesive 
    -     * calls without the "o" argument.
    -     *
    -     */
    -	
    -	/**
    -	 * Dispatch the first element from the job queue 
    -	 * @method _loaderDispatch
    -	 * @private
    -	 * @static
    -	 * @return void
    -	 */
    -	function _loaderDispatch () {
    -		var c;
    -		if ((c = _loaderQueue.shift())) {
    -			c.call();
    -		}
    -	}
    -	
    -	/**
    -	 * Include YUI Loader in the the page, and wait until it get available to start dispatching jobs
    -	 * from the queue
    -	 * @method _includeLoader
    -	 * @private
    -	 * @static
    -	 * @return void
    -	 */
    -	function _includeLoader () {
    -		/* injecting the YUI Loader in the current page */
    -		var base = _config.base || 'http://yui.yahooapis.com/3.0.0pr2/build/',
    -			seed = _config.seed || 'yui/yui-min.js',
    -			s = document.createElement('script'),
    -			fn = function(){
    -				if ((typeof YUI === 'undefined') || !YUI || YUI.Loader) {
    -					// keep waiting...
    -					window.setTimeout(fn, 50);
    -				} else {	  
    -					// YUI is ready...
    -					window.setTimeout(_loaderDispatch, 1);
    -				}
    -		    };
    -	    s.setAttribute('type', 'text/javascript');
    -		// analyzing the seed
    -		seed = (seed.indexOf('http')===0?seed:base+seed);
    -	    s.setAttribute('src', seed);
    -	    document.getElementsByTagName('head')[0].appendChild(s);
    -		fn();
    -	}
    -	
    -	/**
    -	 * Verify if the current configuration object just defines new modules. If that's the case, 
    -	 * we will use "_config" as the computed configuration, and "o" as the list of modules to add.
    -	 * @method _getConf
    -	 * @param o currrent configuration object
    -	 * @private
    -	 * @static
    -	 * @return object computed configuration
    -	 */
    -	function _getConf(o) {
    -		o = o||{};
    -		var m = o.modules || {}, 
    -			flag = true, i;
    -		for (i in o) {
    -		  	if (o.hasOwnProperty(i) && (i != 'modules')) {
    -		  		flag = false;
    -		  	}
    -		}
    -		// using _config and injecting more modules
    -		if (flag) {
    -			for (i in m) {
    -			  	if (m.hasOwnProperty(i)) {
    -					_config.modules[i] = m[i];
    -				}
    -			}
    -			o = _config;
    -		}
    -		return o;
    -	}
    -	
    -	YUI_bootstrap = function (o, def) {
    -		// analyzing "o"
    -		o = _getConf(o);
    -		// if def is true, o will be used as the default config from now on 
    -		_config = (def?o:_config);
    -		return {
    -			/**
    -		     * Load a set of modules and notify thru the callback method.
    -		     * @param modules* {string} 1-n modules to bind (uses arguments array)
    -		     * @param *callback {function} callback function executed when 
    -		     * the instance has the required functionality.  If included, it
    -		     * must be the last parameter.
    -		     *
    -		     * YUI_bootstrap().use('dd', callback)
    -		     *
    -		     * @return void
    -		     */
    -			use: function () {
    -				var a=Array.prototype.slice.call(arguments, 0);
    -				_loaderQueue.push (function () {
    -					/* hack: cloning configuration */
    -					var j, c = {};
    -					for (j in o) {
    -					  	if (o.hasOwnProperty(j)) {
    -							c[j] = o[j];
    -						}
    -					}
    -					/* end hack */
    -					var Y = YUI(c), i;
    -					Y.use.apply (Y, a);
    -					_loaderDispatch(); // dispatching the rest of the waiting jobs
    -				});
    -				// verifying if the loader is ready in the page, if not, it will be 
    -				// included automatically and then the process will continue.
    -				if (_loaderQueue.length===1) {
    -					((typeof YUI === 'undefined' || !YUI)?_includeLoader():_loaderDispatch());				
    -				}
    -			}
    -		};
    -	};
    -
    -})();
    -
    diff --git a/api/yui_bootstrap-min.js b/api/yui_bootstrap-min.js deleted file mode 100644 index 8ee20ac..0000000 --- a/api/yui_bootstrap-min.js +++ /dev/null @@ -1 +0,0 @@ -(function(){var E={modules:{}},A=[];function D(){var F;if((F=A.shift())){F.call();}}function B(){var I=E.base||"http://yui.yahooapis.com/3.0.0pr2/build/",F=E.seed||"yui/yui-min.js",H=document.createElement("script"),G=function(){if((typeof YUI==="undefined")||!YUI||YUI.Loader){window.setTimeout(G,50);}else{window.setTimeout(D,1);}};H.setAttribute("type","text/javascript");F=(F.indexOf("http")===0?F:I+F);H.setAttribute("src",F);document.getElementsByTagName("head")[0].appendChild(H);G();}function C(I){I=I||{};var F=I.modules||{},G=true,H;for(H in I){if(I.hasOwnProperty(H)&&(H!="modules")){G=false;}}if(G){for(H in F){if(F.hasOwnProperty(H)){E.modules[H]=F[H];}}I=E;}return I;}YUI_bootstrap=function(G,F){G=C(G);E=(F?G:E);return{use:function(){var H=Array.prototype.slice.call(arguments,0);A.push(function(){var I,L={};for(I in G){if(G.hasOwnProperty(I)){L[I]=G[I];}}var K=YUI(L),J;K.use.apply(K,H);D();});if(A.length===1){((typeof YUI==="undefined"||!YUI)?B():D());}}};};})(); \ No newline at end of file diff --git a/api/yui_bootstrap-min.js.highlighted b/api/yui_bootstrap-min.js.highlighted deleted file mode 100644 index 887b66d..0000000 --- a/api/yui_bootstrap-min.js.highlighted +++ /dev/null @@ -1,2 +0,0 @@ -
    (function(){var E={modules:{}},A=[];function D(){var F;if((F=A.shift())){F.call();}}function B(){var I=E.base||"http://yui.yahooapis.com/3.0.0pr2/build/",F=E.seed||"yui/yui-min.js",H=document.createElement("script"),G=function(){if((typeof YUI==="undefined")||!YUI||YUI.Loader){window.setTimeout(G,50);}else{window.setTimeout(D,1);}};H.setAttribute("type","text/javascript");F=(F.indexOf("http")===0?F:I+F);H.setAttribute("src",F);document.getElementsByTagName("head")[0].appendChild(H);G();}function C(I){I=I||{};var F=I.modules||{},G=true,H;for(H in I){if(I.hasOwnProperty(H)&&(H!="modules")){G=false;}}if(G){for(H in F){if(F.hasOwnProperty(H)){E.modules[H]=F[H];}}I=E;}return I;}YUI_bootstrap=function(G,F){G=C(G);E=(F?G:E);return{use:function(){var H=Array.prototype.slice.call(arguments,0);A.push(function(){var I,L={};for(I in G){if(G.hasOwnProperty(I)){L[I]=G[I];}}var K=YUI(L),J;K.use.apply(K,H);D();});if(A.length===1){((typeof YUI==="undefined"||!YUI)?B():D());}}};};})();
    -
    diff --git a/api/yui_bootstrap.js b/api/yui_bootstrap.js index ced1c6c..171b39f 100644 --- a/api/yui_bootstrap.js +++ b/api/yui_bootstrap.js @@ -113,25 +113,26 @@ * @return void */ function _includeLoader () { - /* injecting the YUI Loader in the current page */ + // injecting the YUI Loader in the current page var base = _config.base || 'http://yui.yahooapis.com/3.0.0pr2/build/', seed = _config.seed || 'yui/yui-min.js', - s = document.createElement('script'), - fn = function(){ - if ((typeof YUI === 'undefined') || !YUI) { - // keep waiting... - window.setTimeout(fn, 50); - } else { - // YUI is ready... - window.setTimeout(_loaderDispatch, 1); - } - }; - s.setAttribute('type', 'text/javascript'); - // analyzing the seed + s = document.createElement('script'); + // analyzing the seed seed = (seed.indexOf('http')===0?seed:base+seed); - s.setAttribute('src', seed); + // more info about this here: http://www.nczonline.net/blog/2009/06/23/loading-javascript-without-blocking/ + s.type = "text/javascript"; + if (s.readyState){ //IE + s.onreadystatechange = function(){ + if (s.readyState == "loaded" || s.readyState == "complete"){ + s.onreadystatechange = null; + _loaderDispatch(); + } + }; + } else { //Others + s.onload = _loaderDispatch; + } + s.src = seed; document.getElementsByTagName('head')[0].appendChild(s); - fn(); } /** diff --git a/api/yui_bootstrap.js.highlighted b/api/yui_bootstrap.js.highlighted index 941927c..1f66f85 100644 --- a/api/yui_bootstrap.js.highlighted +++ b/api/yui_bootstrap.js.highlighted @@ -113,25 +113,26 @@ * @return void */ function _includeLoader () { - /* injecting the YUI Loader in the current page */ + // injecting the YUI Loader in the current page var base = _config.base || 'http://yui.yahooapis.com/3.0.0pr2/build/', seed = _config.seed || 'yui/yui-min.js', - s = document.createElement('script'), - fn = function(){ - if ((typeof YUI === 'undefined') || !YUI) { - // keep waiting... - window.setTimeout(fn, 50); - } else { - // YUI is ready... - window.setTimeout(_loaderDispatch, 1); - } - }; - s.setAttribute('type', 'text/javascript'); - // analyzing the seed + s = document.createElement('script'); + // analyzing the seed seed = (seed.indexOf('http')===0?seed:base+seed); - s.setAttribute('src', seed); + // more info about this here: http://www.nczonline.net/blog/2009/06/23/loading-javascript-without-blocking/ + s.type = "text/javascript"; + if (s.readyState){ //IE + s.onreadystatechange = function(){ + if (s.readyState == "loaded" || s.readyState == "complete"){ + s.onreadystatechange = null; + _loaderDispatch(); + } + }; + } else { //Others + s.onload = _loaderDispatch; + } + s.src = seed; document.getElementsByTagName('head')[0].appendChild(s); - fn(); } /** diff --git a/api/yui_bootstrap.js.html b/api/yui_bootstrap.js.html index 63d903b..f2d2aa4 100644 --- a/api/yui_bootstrap.js.html +++ b/api/yui_bootstrap.js.html @@ -162,25 +162,26 @@

    bootstrap  1.0.0

    * @return void */ function _includeLoader () { - /* injecting the YUI Loader in the current page */ + // injecting the YUI Loader in the current page var base = _config.base || 'http://yui.yahooapis.com/3.0.0pr2/build/', seed = _config.seed || 'yui/yui-min.js', - s = document.createElement('script'), - fn = function(){ - if ((typeof YUI === 'undefined') || !YUI) { - // keep waiting... - window.setTimeout(fn, 50); - } else { - // YUI is ready... - window.setTimeout(_loaderDispatch, 1); - } - }; - s.setAttribute('type', 'text/javascript'); - // analyzing the seed + s = document.createElement('script'); + // analyzing the seed seed = (seed.indexOf('http')===0?seed:base+seed); - s.setAttribute('src', seed); + // more info about this here: http://www.nczonline.net/blog/2009/06/23/loading-javascript-without-blocking/ + s.type = "text/javascript"; + if (s.readyState){ //IE + s.onreadystatechange = function(){ + if (s.readyState == "loaded" || s.readyState == "complete"){ + s.onreadystatechange = null; + _loaderDispatch(); + } + }; + } else { //Others + s.onload = _loaderDispatch; + } + s.src = seed; document.getElementsByTagName('head')[0].appendChild(s); - fn(); } /** diff --git a/build/bootstrap/bootstrap-debug.js b/build/bootstrap/bootstrap-debug.js index 3991e47..15e4c63 100644 --- a/build/bootstrap/bootstrap-debug.js +++ b/build/bootstrap/bootstrap-debug.js @@ -113,25 +113,26 @@ * @return void */ function _includeLoader () { - /* injecting the YUI Loader in the current page */ + // injecting the YUI Loader in the current page var base = _config.base || 'http://yui.yahooapis.com/3.0.0pr2/build/', seed = _config.seed || 'yui/yui-min.js', - s = document.createElement('script'), - fn = function(){ - if ((typeof YUI === 'undefined') || !YUI) { - // keep waiting... - window.setTimeout(fn, 50); - } else { - // YUI is ready... - window.setTimeout(_loaderDispatch, 1); - } - }; - s.setAttribute('type', 'text/javascript'); - // analyzing the seed + s = document.createElement('script'); + // analyzing the seed seed = (seed.indexOf('http')===0?seed:base+seed); - s.setAttribute('src', seed); + // more info about this here: http://www.nczonline.net/blog/2009/06/23/loading-javascript-without-blocking/ + s.type = "text/javascript"; + if (s.readyState){ //IE + s.onreadystatechange = function(){ + if (s.readyState == "loaded" || s.readyState == "complete"){ + s.onreadystatechange = null; + _loaderDispatch(); + } + }; + } else { //Others + s.onload = _loaderDispatch; + } + s.src = seed; document.getElementsByTagName('head')[0].appendChild(s); - fn(); } /** @@ -211,7 +212,8 @@ var _config = {modules:{}}, _loaderObj = null, - _loaderQueue = []; + _loaderQueue = [], + _loading = false; /** * YAHOO_bootstrap function. If YAHOO_bootstrap is already defined, the @@ -227,9 +229,6 @@ *
  • Global:
  • *
  • ------------------------------------------------------------------------
  • *
  • debug: Turn debug statements on or off
  • - *
  • injected: set to true if the yui seed file was dynamically loaded in - * order to bootstrap components relying on the window load event and onDOMReady - * (former injecting on YAHOO_config).
  • *
  • locale: default locale
  • *
  • -------------------------------------------------------------------------
  • *
  • For loader:
  • @@ -301,6 +300,7 @@ */ function _loaderDispatch () { var c; + _loading = false; if ((c = _loaderQueue.shift())) { c.call(); } @@ -316,28 +316,24 @@ */ function _includeLoader () { var base = _config.base || 'http://yui.yahooapis.com/2.7.0/build/', - seed = _config.seed || 'yuiloader/yuiloader-min.js'; + seed = _config.seed || 'yuiloader/yuiloader-min.js', + s = document.createElement('script'); // analyzing the seed seed = (seed.indexOf('http')===0?seed:base+seed); - // Encapsulation Pattern: Conjuring YUI from thin air (by Chris Heilmann) - // more info: http://www.wait-till-i.com/2008/08/02/conjuring-yui-from-thin-air/ - YAHOO_config = function() { - /* injecting the YUI Loader in the current page */ - var s = document.createElement('script'); - s.setAttribute('type', 'text/javascript'); - s.setAttribute('src', seed); - document.getElementsByTagName('head')[0].appendChild(s); - return { - // true if the library should be dynamically loaded after window.onload. - injecting: !!_config.injected, - listener: function(o) { - // waiting for the loader component - if (o.name === 'get') { - window.setTimeout(_loaderDispatch, 1); - } - } - }; - }(); + // more info about this here: http://www.nczonline.net/blog/2009/06/23/loading-javascript-without-blocking/ + s.type = "text/javascript"; + if (s.readyState){ //IE + s.onreadystatechange = function(){ + if (s.readyState == "loaded" || s.readyState == "complete"){ + s.onreadystatechange = null; + _loaderDispatch(); + } + }; + } else { //Others + s.onload = _loaderDispatch; + } + s.src = seed; + document.getElementsByTagName('head')[0].appendChild(s); } /** @@ -457,10 +453,11 @@ (o.onTimeout || function(){}).call(); } }, o.type); + _loading = true; }); // verifying if the loader is ready in the page, if not, it will be // included automatically and then the process will continue. - if (_loaderQueue.length===1) { + if ((_loaderQueue.length===1) && !_loading) { ((typeof YAHOO == "undefined" || !YAHOO)?_includeLoader():_loaderDispatch()); } } diff --git a/build/bootstrap/bootstrap-min.js b/build/bootstrap/bootstrap-min.js index 45a11bf..43d5273 100644 --- a/build/bootstrap/bootstrap-min.js +++ b/build/bootstrap/bootstrap-min.js @@ -1 +1 @@ -(function(){if((typeof YUI_bootstrap!="undefined")&&YUI_bootstrap){return;}var E={modules:{}},A=[];function D(){var F;while((F=A.shift())){F.call();}}function B(){var I=E.base||"http://yui.yahooapis.com/3.0.0pr2/build/",F=E.seed||"yui/yui-min.js",H=document.createElement("script"),G=function(){if((typeof YUI==="undefined")||!YUI){window.setTimeout(G,50);}else{window.setTimeout(D,1);}};H.setAttribute("type","text/javascript");F=(F.indexOf("http")===0?F:I+F);H.setAttribute("src",F);document.getElementsByTagName("head")[0].appendChild(H);G();}function C(I){I=I||{};var F=I.modules||{},G=true,H;for(H in I){if(I.hasOwnProperty(H)&&(H!="modules")){G=false;}}if(G){for(H in F){if(F.hasOwnProperty(H)){E.modules[H]=F[H];}}I=E;}return I;}YUI_bootstrap=function(G,F){G=C(G);E=(F?G:E);return{use:function(){var H=Array.prototype.slice.call(arguments,0);A.push(function(){var I=YUI(G);I.use.apply(I,H);D();});if(A.length===1){((typeof YUI==="undefined"||!YUI)?B():D());}}};};})();(function(){if((typeof YAHOO_bootstrap!="undefined")&&YAHOO_bootstrap){return;}var F={modules:{}},H=null,A=[];function E(){var I;if((I=A.shift())){I.call();}}function B(){var J=F.base||"http://yui.yahooapis.com/2.7.0/build/",I=F.seed||"yuiloader/yuiloader-min.js";I=(I.indexOf("http")===0?I:J+I);YAHOO_config=function(){var K=document.createElement("script");K.setAttribute("type","text/javascript");K.setAttribute("src",I);document.getElementsByTagName("head")[0].appendChild(K);return{injecting:!!F.injected,listener:function(L){if(L.name==="get"){window.setTimeout(E,1);}}};}();}function D(I){var J;if(I&&(typeof I==="object")){for(J in I){if(I.hasOwnProperty(J)){I[J].name=I[J].name||J;I[J].type=I[J].type||((I[J].fullpath||I[J].path).indexOf(".css")>=0?"css":"js");H.addModule(I[J]);}}}}function G(I){if(!H){I=I||{};I.combine=(I.hasOwnProperty("combine")?I.combine:true);I.filter=I.filter||"min";H=new YAHOO.util.YUILoader(I);D(I.modules);}}function C(L){L=L||{};var I=L.modules||{},J=true,K;for(K in L){if(L.hasOwnProperty(K)&&(K!="modules")){J=false;}}if(J){for(K in I){if(I.hasOwnProperty(K)){F.modules[K]=I[K];}}if(H){D(I);}L=F;}return L;}YAHOO_bootstrap=function(J,I){J=C(J);F=(I?J:F);return{use:function(){var K=Array.prototype.slice.call(arguments,0),L=K.pop();A.push(function(){G(J);H.require(K);H.insert({onSuccess:function(){E();L.call();(J.onSuccess||function(){}).call();},onFailure:function(){E();(J.onFailure||function(){}).call();},onTimeout:function(){E();(J.onTimeout||function(){}).call();}},J.type);});if(A.length===1){((typeof YAHOO=="undefined"||!YAHOO)?B():E());}}};};})(); \ No newline at end of file +(function(){if((typeof YUI_bootstrap!="undefined")&&YUI_bootstrap){return;}var E={modules:{}},A=[];function D(){var F;while((F=A.shift())){F.call();}}function B(){var H=E.base||"http://yui.yahooapis.com/3.0.0pr2/build/",F=E.seed||"yui/yui-min.js",G=document.createElement("script");F=(F.indexOf("http")===0?F:H+F);G.type="text/javascript";if(G.readyState){G.onreadystatechange=function(){if(G.readyState=="loaded"||G.readyState=="complete"){G.onreadystatechange=null;D();}};}else{G.onload=D;}G.src=F;document.getElementsByTagName("head")[0].appendChild(G);}function C(I){I=I||{};var F=I.modules||{},G=true,H;for(H in I){if(I.hasOwnProperty(H)&&(H!="modules")){G=false;}}if(G){for(H in F){if(F.hasOwnProperty(H)){E.modules[H]=F[H];}}I=E;}return I;}YUI_bootstrap=function(G,F){G=C(G);E=(F?G:E);return{use:function(){var H=Array.prototype.slice.call(arguments,0);A.push(function(){var I=YUI(G);I.use.apply(I,H);D();});if(A.length===1){((typeof YUI==="undefined"||!YUI)?B():D());}}};};})();(function(){if((typeof YAHOO_bootstrap!="undefined")&&YAHOO_bootstrap){return;}var D={modules:{}},I=null,C=[],A=false;function F(){var J;A=false;if((J=C.shift())){J.call();}}function B(){var L=D.base||"http://yui.yahooapis.com/2.7.0/build/",J=D.seed||"yuiloader/yuiloader-min.js",K=document.createElement("script");J=(J.indexOf("http")===0?J:L+J);K.type="text/javascript";if(K.readyState){K.onreadystatechange=function(){if(K.readyState=="loaded"||K.readyState=="complete"){K.onreadystatechange=null;F();}};}else{K.onload=F;}K.src=J;document.getElementsByTagName("head")[0].appendChild(K);}function G(J){var K;if(J&&(typeof J==="object")){for(K in J){if(J.hasOwnProperty(K)){J[K].name=J[K].name||K;J[K].type=J[K].type||((J[K].fullpath||J[K].path).indexOf(".css")>=0?"css":"js");I.addModule(J[K]);}}}}function H(J){if(!I){J=J||{};J.combine=(J.hasOwnProperty("combine")?J.combine:true);J.filter=J.filter||"min";I=new YAHOO.util.YUILoader(J);G(J.modules);}}function E(M){M=M||{};var J=M.modules||{},K=true,L;for(L in M){if(M.hasOwnProperty(L)&&(L!="modules")){K=false;}}if(K){for(L in J){if(J.hasOwnProperty(L)){D.modules[L]=J[L];}}if(I){G(J);}M=D;}return M;}YAHOO_bootstrap=function(K,J){K=E(K);D=(J?K:D);return{use:function(){var L=Array.prototype.slice.call(arguments,0),M=L.pop();C.push(function(){H(K);I.require(L);I.insert({onSuccess:function(){F();M.call();(K.onSuccess||function(){}).call();},onFailure:function(){F();(K.onFailure||function(){}).call();},onTimeout:function(){F();(K.onTimeout||function(){}).call();}},K.type);A=true;});if((C.length===1)&&!A){((typeof YAHOO=="undefined"||!YAHOO)?B():F());}}};};})(); \ No newline at end of file diff --git a/build/bootstrap/bootstrap.js b/build/bootstrap/bootstrap.js index 3991e47..15e4c63 100644 --- a/build/bootstrap/bootstrap.js +++ b/build/bootstrap/bootstrap.js @@ -113,25 +113,26 @@ * @return void */ function _includeLoader () { - /* injecting the YUI Loader in the current page */ + // injecting the YUI Loader in the current page var base = _config.base || 'http://yui.yahooapis.com/3.0.0pr2/build/', seed = _config.seed || 'yui/yui-min.js', - s = document.createElement('script'), - fn = function(){ - if ((typeof YUI === 'undefined') || !YUI) { - // keep waiting... - window.setTimeout(fn, 50); - } else { - // YUI is ready... - window.setTimeout(_loaderDispatch, 1); - } - }; - s.setAttribute('type', 'text/javascript'); - // analyzing the seed + s = document.createElement('script'); + // analyzing the seed seed = (seed.indexOf('http')===0?seed:base+seed); - s.setAttribute('src', seed); + // more info about this here: http://www.nczonline.net/blog/2009/06/23/loading-javascript-without-blocking/ + s.type = "text/javascript"; + if (s.readyState){ //IE + s.onreadystatechange = function(){ + if (s.readyState == "loaded" || s.readyState == "complete"){ + s.onreadystatechange = null; + _loaderDispatch(); + } + }; + } else { //Others + s.onload = _loaderDispatch; + } + s.src = seed; document.getElementsByTagName('head')[0].appendChild(s); - fn(); } /** @@ -211,7 +212,8 @@ var _config = {modules:{}}, _loaderObj = null, - _loaderQueue = []; + _loaderQueue = [], + _loading = false; /** * YAHOO_bootstrap function. If YAHOO_bootstrap is already defined, the @@ -227,9 +229,6 @@ *
  • Global:
  • *
  • ------------------------------------------------------------------------
  • *
  • debug: Turn debug statements on or off
  • - *
  • injected: set to true if the yui seed file was dynamically loaded in - * order to bootstrap components relying on the window load event and onDOMReady - * (former injecting on YAHOO_config).
  • *
  • locale: default locale
  • *
  • -------------------------------------------------------------------------
  • *
  • For loader:
  • @@ -301,6 +300,7 @@ */ function _loaderDispatch () { var c; + _loading = false; if ((c = _loaderQueue.shift())) { c.call(); } @@ -316,28 +316,24 @@ */ function _includeLoader () { var base = _config.base || 'http://yui.yahooapis.com/2.7.0/build/', - seed = _config.seed || 'yuiloader/yuiloader-min.js'; + seed = _config.seed || 'yuiloader/yuiloader-min.js', + s = document.createElement('script'); // analyzing the seed seed = (seed.indexOf('http')===0?seed:base+seed); - // Encapsulation Pattern: Conjuring YUI from thin air (by Chris Heilmann) - // more info: http://www.wait-till-i.com/2008/08/02/conjuring-yui-from-thin-air/ - YAHOO_config = function() { - /* injecting the YUI Loader in the current page */ - var s = document.createElement('script'); - s.setAttribute('type', 'text/javascript'); - s.setAttribute('src', seed); - document.getElementsByTagName('head')[0].appendChild(s); - return { - // true if the library should be dynamically loaded after window.onload. - injecting: !!_config.injected, - listener: function(o) { - // waiting for the loader component - if (o.name === 'get') { - window.setTimeout(_loaderDispatch, 1); - } - } - }; - }(); + // more info about this here: http://www.nczonline.net/blog/2009/06/23/loading-javascript-without-blocking/ + s.type = "text/javascript"; + if (s.readyState){ //IE + s.onreadystatechange = function(){ + if (s.readyState == "loaded" || s.readyState == "complete"){ + s.onreadystatechange = null; + _loaderDispatch(); + } + }; + } else { //Others + s.onload = _loaderDispatch; + } + s.src = seed; + document.getElementsByTagName('head')[0].appendChild(s); } /** @@ -457,10 +453,11 @@ (o.onTimeout || function(){}).call(); } }, o.type); + _loading = true; }); // verifying if the loader is ready in the page, if not, it will be // included automatically and then the process will continue. - if (_loaderQueue.length===1) { + if ((_loaderQueue.length===1) && !_loading) { ((typeof YAHOO == "undefined" || !YAHOO)?_includeLoader():_loaderDispatch()); } } diff --git a/build/bootstrap/yahoo_bootstrap-debug.js b/build/bootstrap/yahoo_bootstrap-debug.js index c47fdb2..2902db9 100644 --- a/build/bootstrap/yahoo_bootstrap-debug.js +++ b/build/bootstrap/yahoo_bootstrap-debug.js @@ -11,7 +11,8 @@ var _config = {modules:{}}, _loaderObj = null, - _loaderQueue = []; + _loaderQueue = [], + _loading = false; /** * YAHOO_bootstrap function. If YAHOO_bootstrap is already defined, the @@ -27,9 +28,6 @@ *
  • Global:
  • *
  • ------------------------------------------------------------------------
  • *
  • debug: Turn debug statements on or off
  • - *
  • injected: set to true if the yui seed file was dynamically loaded in - * order to bootstrap components relying on the window load event and onDOMReady - * (former injecting on YAHOO_config).
  • *
  • locale: default locale
  • *
  • -------------------------------------------------------------------------
  • *
  • For loader:
  • @@ -101,6 +99,7 @@ */ function _loaderDispatch () { var c; + _loading = false; if ((c = _loaderQueue.shift())) { c.call(); } @@ -116,28 +115,24 @@ */ function _includeLoader () { var base = _config.base || 'http://yui.yahooapis.com/2.7.0/build/', - seed = _config.seed || 'yuiloader/yuiloader-min.js'; + seed = _config.seed || 'yuiloader/yuiloader-min.js', + s = document.createElement('script'); // analyzing the seed seed = (seed.indexOf('http')===0?seed:base+seed); - // Encapsulation Pattern: Conjuring YUI from thin air (by Chris Heilmann) - // more info: http://www.wait-till-i.com/2008/08/02/conjuring-yui-from-thin-air/ - YAHOO_config = function() { - /* injecting the YUI Loader in the current page */ - var s = document.createElement('script'); - s.setAttribute('type', 'text/javascript'); - s.setAttribute('src', seed); - document.getElementsByTagName('head')[0].appendChild(s); - return { - // true if the library should be dynamically loaded after window.onload. - injecting: !!_config.injected, - listener: function(o) { - // waiting for the loader component - if (o.name === 'get') { - window.setTimeout(_loaderDispatch, 1); - } - } - }; - }(); + // more info about this here: http://www.nczonline.net/blog/2009/06/23/loading-javascript-without-blocking/ + s.type = "text/javascript"; + if (s.readyState){ //IE + s.onreadystatechange = function(){ + if (s.readyState == "loaded" || s.readyState == "complete"){ + s.onreadystatechange = null; + _loaderDispatch(); + } + }; + } else { //Others + s.onload = _loaderDispatch; + } + s.src = seed; + document.getElementsByTagName('head')[0].appendChild(s); } /** @@ -257,10 +252,11 @@ (o.onTimeout || function(){}).call(); } }, o.type); + _loading = true; }); // verifying if the loader is ready in the page, if not, it will be // included automatically and then the process will continue. - if (_loaderQueue.length===1) { + if ((_loaderQueue.length===1) && !_loading) { ((typeof YAHOO == "undefined" || !YAHOO)?_includeLoader():_loaderDispatch()); } } diff --git a/build/bootstrap/yahoo_bootstrap-min.js b/build/bootstrap/yahoo_bootstrap-min.js index 9e45a1d..40fcba5 100644 --- a/build/bootstrap/yahoo_bootstrap-min.js +++ b/build/bootstrap/yahoo_bootstrap-min.js @@ -1 +1 @@ -(function(){if((typeof YAHOO_bootstrap!="undefined")&&YAHOO_bootstrap){return;}var F={modules:{}},H=null,A=[];function E(){var I;if((I=A.shift())){I.call();}}function B(){var J=F.base||"http://yui.yahooapis.com/2.7.0/build/",I=F.seed||"yuiloader/yuiloader-min.js";I=(I.indexOf("http")===0?I:J+I);YAHOO_config=function(){var K=document.createElement("script");K.setAttribute("type","text/javascript");K.setAttribute("src",I);document.getElementsByTagName("head")[0].appendChild(K);return{injecting:!!F.injected,listener:function(L){if(L.name==="get"){window.setTimeout(E,1);}}};}();}function D(I){var J;if(I&&(typeof I==="object")){for(J in I){if(I.hasOwnProperty(J)){I[J].name=I[J].name||J;I[J].type=I[J].type||((I[J].fullpath||I[J].path).indexOf(".css")>=0?"css":"js");H.addModule(I[J]);}}}}function G(I){if(!H){I=I||{};I.combine=(I.hasOwnProperty("combine")?I.combine:true);I.filter=I.filter||"min";H=new YAHOO.util.YUILoader(I);D(I.modules);}}function C(L){L=L||{};var I=L.modules||{},J=true,K;for(K in L){if(L.hasOwnProperty(K)&&(K!="modules")){J=false;}}if(J){for(K in I){if(I.hasOwnProperty(K)){F.modules[K]=I[K];}}if(H){D(I);}L=F;}return L;}YAHOO_bootstrap=function(J,I){J=C(J);F=(I?J:F);return{use:function(){var K=Array.prototype.slice.call(arguments,0),L=K.pop();A.push(function(){G(J);H.require(K);H.insert({onSuccess:function(){E();L.call();(J.onSuccess||function(){}).call();},onFailure:function(){E();(J.onFailure||function(){}).call();},onTimeout:function(){E();(J.onTimeout||function(){}).call();}},J.type);});if(A.length===1){((typeof YAHOO=="undefined"||!YAHOO)?B():E());}}};};})(); \ No newline at end of file +(function(){if((typeof YAHOO_bootstrap!="undefined")&&YAHOO_bootstrap){return;}var D={modules:{}},I=null,C=[],A=false;function F(){var J;A=false;if((J=C.shift())){J.call();}}function B(){var L=D.base||"http://yui.yahooapis.com/2.7.0/build/",J=D.seed||"yuiloader/yuiloader-min.js",K=document.createElement("script");J=(J.indexOf("http")===0?J:L+J);K.type="text/javascript";if(K.readyState){K.onreadystatechange=function(){if(K.readyState=="loaded"||K.readyState=="complete"){K.onreadystatechange=null;F();}};}else{K.onload=F;}K.src=J;document.getElementsByTagName("head")[0].appendChild(K);}function G(J){var K;if(J&&(typeof J==="object")){for(K in J){if(J.hasOwnProperty(K)){J[K].name=J[K].name||K;J[K].type=J[K].type||((J[K].fullpath||J[K].path).indexOf(".css")>=0?"css":"js");I.addModule(J[K]);}}}}function H(J){if(!I){J=J||{};J.combine=(J.hasOwnProperty("combine")?J.combine:true);J.filter=J.filter||"min";I=new YAHOO.util.YUILoader(J);G(J.modules);}}function E(M){M=M||{};var J=M.modules||{},K=true,L;for(L in M){if(M.hasOwnProperty(L)&&(L!="modules")){K=false;}}if(K){for(L in J){if(J.hasOwnProperty(L)){D.modules[L]=J[L];}}if(I){G(J);}M=D;}return M;}YAHOO_bootstrap=function(K,J){K=E(K);D=(J?K:D);return{use:function(){var L=Array.prototype.slice.call(arguments,0),M=L.pop();C.push(function(){H(K);I.require(L);I.insert({onSuccess:function(){F();M.call();(K.onSuccess||function(){}).call();},onFailure:function(){F();(K.onFailure||function(){}).call();},onTimeout:function(){F();(K.onTimeout||function(){}).call();}},K.type);A=true;});if((C.length===1)&&!A){((typeof YAHOO=="undefined"||!YAHOO)?B():F());}}};};})(); \ No newline at end of file diff --git a/build/bootstrap/yahoo_bootstrap.js b/build/bootstrap/yahoo_bootstrap.js index c47fdb2..2902db9 100644 --- a/build/bootstrap/yahoo_bootstrap.js +++ b/build/bootstrap/yahoo_bootstrap.js @@ -11,7 +11,8 @@ var _config = {modules:{}}, _loaderObj = null, - _loaderQueue = []; + _loaderQueue = [], + _loading = false; /** * YAHOO_bootstrap function. If YAHOO_bootstrap is already defined, the @@ -27,9 +28,6 @@ *
  • Global:
  • *
  • ------------------------------------------------------------------------
  • *
  • debug: Turn debug statements on or off
  • - *
  • injected: set to true if the yui seed file was dynamically loaded in - * order to bootstrap components relying on the window load event and onDOMReady - * (former injecting on YAHOO_config).
  • *
  • locale: default locale
  • *
  • -------------------------------------------------------------------------
  • *
  • For loader:
  • @@ -101,6 +99,7 @@ */ function _loaderDispatch () { var c; + _loading = false; if ((c = _loaderQueue.shift())) { c.call(); } @@ -116,28 +115,24 @@ */ function _includeLoader () { var base = _config.base || 'http://yui.yahooapis.com/2.7.0/build/', - seed = _config.seed || 'yuiloader/yuiloader-min.js'; + seed = _config.seed || 'yuiloader/yuiloader-min.js', + s = document.createElement('script'); // analyzing the seed seed = (seed.indexOf('http')===0?seed:base+seed); - // Encapsulation Pattern: Conjuring YUI from thin air (by Chris Heilmann) - // more info: http://www.wait-till-i.com/2008/08/02/conjuring-yui-from-thin-air/ - YAHOO_config = function() { - /* injecting the YUI Loader in the current page */ - var s = document.createElement('script'); - s.setAttribute('type', 'text/javascript'); - s.setAttribute('src', seed); - document.getElementsByTagName('head')[0].appendChild(s); - return { - // true if the library should be dynamically loaded after window.onload. - injecting: !!_config.injected, - listener: function(o) { - // waiting for the loader component - if (o.name === 'get') { - window.setTimeout(_loaderDispatch, 1); - } - } - }; - }(); + // more info about this here: http://www.nczonline.net/blog/2009/06/23/loading-javascript-without-blocking/ + s.type = "text/javascript"; + if (s.readyState){ //IE + s.onreadystatechange = function(){ + if (s.readyState == "loaded" || s.readyState == "complete"){ + s.onreadystatechange = null; + _loaderDispatch(); + } + }; + } else { //Others + s.onload = _loaderDispatch; + } + s.src = seed; + document.getElementsByTagName('head')[0].appendChild(s); } /** @@ -257,10 +252,11 @@ (o.onTimeout || function(){}).call(); } }, o.type); + _loading = true; }); // verifying if the loader is ready in the page, if not, it will be // included automatically and then the process will continue. - if (_loaderQueue.length===1) { + if ((_loaderQueue.length===1) && !_loading) { ((typeof YAHOO == "undefined" || !YAHOO)?_includeLoader():_loaderDispatch()); } } diff --git a/build/bootstrap/yui_bootstrap-debug.js b/build/bootstrap/yui_bootstrap-debug.js index 08b5a1b..f16d345 100644 --- a/build/bootstrap/yui_bootstrap-debug.js +++ b/build/bootstrap/yui_bootstrap-debug.js @@ -113,25 +113,26 @@ * @return void */ function _includeLoader () { - /* injecting the YUI Loader in the current page */ + // injecting the YUI Loader in the current page var base = _config.base || 'http://yui.yahooapis.com/3.0.0pr2/build/', seed = _config.seed || 'yui/yui-min.js', - s = document.createElement('script'), - fn = function(){ - if ((typeof YUI === 'undefined') || !YUI) { - // keep waiting... - window.setTimeout(fn, 50); - } else { - // YUI is ready... - window.setTimeout(_loaderDispatch, 1); - } - }; - s.setAttribute('type', 'text/javascript'); - // analyzing the seed + s = document.createElement('script'); + // analyzing the seed seed = (seed.indexOf('http')===0?seed:base+seed); - s.setAttribute('src', seed); + // more info about this here: http://www.nczonline.net/blog/2009/06/23/loading-javascript-without-blocking/ + s.type = "text/javascript"; + if (s.readyState){ //IE + s.onreadystatechange = function(){ + if (s.readyState == "loaded" || s.readyState == "complete"){ + s.onreadystatechange = null; + _loaderDispatch(); + } + }; + } else { //Others + s.onload = _loaderDispatch; + } + s.src = seed; document.getElementsByTagName('head')[0].appendChild(s); - fn(); } /** diff --git a/build/bootstrap/yui_bootstrap-min.js b/build/bootstrap/yui_bootstrap-min.js index 956f4a8..6772764 100644 --- a/build/bootstrap/yui_bootstrap-min.js +++ b/build/bootstrap/yui_bootstrap-min.js @@ -1 +1 @@ -(function(){if((typeof YUI_bootstrap!="undefined")&&YUI_bootstrap){return;}var E={modules:{}},A=[];function D(){var F;while((F=A.shift())){F.call();}}function B(){var I=E.base||"http://yui.yahooapis.com/3.0.0pr2/build/",F=E.seed||"yui/yui-min.js",H=document.createElement("script"),G=function(){if((typeof YUI==="undefined")||!YUI){window.setTimeout(G,50);}else{window.setTimeout(D,1);}};H.setAttribute("type","text/javascript");F=(F.indexOf("http")===0?F:I+F);H.setAttribute("src",F);document.getElementsByTagName("head")[0].appendChild(H);G();}function C(I){I=I||{};var F=I.modules||{},G=true,H;for(H in I){if(I.hasOwnProperty(H)&&(H!="modules")){G=false;}}if(G){for(H in F){if(F.hasOwnProperty(H)){E.modules[H]=F[H];}}I=E;}return I;}YUI_bootstrap=function(G,F){G=C(G);E=(F?G:E);return{use:function(){var H=Array.prototype.slice.call(arguments,0);A.push(function(){var I=YUI(G);I.use.apply(I,H);D();});if(A.length===1){((typeof YUI==="undefined"||!YUI)?B():D());}}};};})(); \ No newline at end of file +(function(){if((typeof YUI_bootstrap!="undefined")&&YUI_bootstrap){return;}var E={modules:{}},A=[];function D(){var F;while((F=A.shift())){F.call();}}function B(){var H=E.base||"http://yui.yahooapis.com/3.0.0pr2/build/",F=E.seed||"yui/yui-min.js",G=document.createElement("script");F=(F.indexOf("http")===0?F:H+F);G.type="text/javascript";if(G.readyState){G.onreadystatechange=function(){if(G.readyState=="loaded"||G.readyState=="complete"){G.onreadystatechange=null;D();}};}else{G.onload=D;}G.src=F;document.getElementsByTagName("head")[0].appendChild(G);}function C(I){I=I||{};var F=I.modules||{},G=true,H;for(H in I){if(I.hasOwnProperty(H)&&(H!="modules")){G=false;}}if(G){for(H in F){if(F.hasOwnProperty(H)){E.modules[H]=F[H];}}I=E;}return I;}YUI_bootstrap=function(G,F){G=C(G);E=(F?G:E);return{use:function(){var H=Array.prototype.slice.call(arguments,0);A.push(function(){var I=YUI(G);I.use.apply(I,H);D();});if(A.length===1){((typeof YUI==="undefined"||!YUI)?B():D());}}};};})(); \ No newline at end of file diff --git a/build/bootstrap/yui_bootstrap.js b/build/bootstrap/yui_bootstrap.js index 08b5a1b..f16d345 100644 --- a/build/bootstrap/yui_bootstrap.js +++ b/build/bootstrap/yui_bootstrap.js @@ -113,25 +113,26 @@ * @return void */ function _includeLoader () { - /* injecting the YUI Loader in the current page */ + // injecting the YUI Loader in the current page var base = _config.base || 'http://yui.yahooapis.com/3.0.0pr2/build/', seed = _config.seed || 'yui/yui-min.js', - s = document.createElement('script'), - fn = function(){ - if ((typeof YUI === 'undefined') || !YUI) { - // keep waiting... - window.setTimeout(fn, 50); - } else { - // YUI is ready... - window.setTimeout(_loaderDispatch, 1); - } - }; - s.setAttribute('type', 'text/javascript'); - // analyzing the seed + s = document.createElement('script'); + // analyzing the seed seed = (seed.indexOf('http')===0?seed:base+seed); - s.setAttribute('src', seed); + // more info about this here: http://www.nczonline.net/blog/2009/06/23/loading-javascript-without-blocking/ + s.type = "text/javascript"; + if (s.readyState){ //IE + s.onreadystatechange = function(){ + if (s.readyState == "loaded" || s.readyState == "complete"){ + s.onreadystatechange = null; + _loaderDispatch(); + } + }; + } else { //Others + s.onload = _loaderDispatch; + } + s.src = seed; document.getElementsByTagName('head')[0].appendChild(s); - fn(); } /** diff --git a/src/bootstrap/js/yahoo_bootstrap.js b/src/bootstrap/js/yahoo_bootstrap.js index 9425b7c..efaf792 100644 --- a/src/bootstrap/js/yahoo_bootstrap.js +++ b/src/bootstrap/js/yahoo_bootstrap.js @@ -11,7 +11,8 @@ var _config = {modules:{}}, _loaderObj = null, - _loaderQueue = []; + _loaderQueue = [], + _loading = false; /** * YAHOO_bootstrap function. If YAHOO_bootstrap is already defined, the @@ -27,9 +28,6 @@ *
  • Global:
  • *
  • ------------------------------------------------------------------------
  • *
  • debug: Turn debug statements on or off
  • - *
  • injected: set to true if the yui seed file was dynamically loaded in - * order to bootstrap components relying on the window load event and onDOMReady - * (former injecting on YAHOO_config).
  • *
  • locale: default locale
  • *
  • -------------------------------------------------------------------------
  • *
  • For loader:
  • @@ -101,6 +99,7 @@ */ function _loaderDispatch () { var c; + _loading = false; if ((c = _loaderQueue.shift())) { c.call(); } @@ -116,28 +115,24 @@ */ function _includeLoader () { var base = _config.base || 'http://yui.yahooapis.com/2.7.0/build/', - seed = _config.seed || 'yuiloader/yuiloader-min.js'; + seed = _config.seed || 'yuiloader/yuiloader-min.js', + s = document.createElement('script'); // analyzing the seed seed = (seed.indexOf('http')===0?seed:base+seed); - // Encapsulation Pattern: Conjuring YUI from thin air (by Chris Heilmann) - // more info: http://www.wait-till-i.com/2008/08/02/conjuring-yui-from-thin-air/ - YAHOO_config = function() { - /* injecting the YUI Loader in the current page */ - var s = document.createElement('script'); - s.setAttribute('type', 'text/javascript'); - s.setAttribute('src', seed); - document.getElementsByTagName('head')[0].appendChild(s); - return { - // true if the library should be dynamically loaded after window.onload. - injecting: !!_config.injected, - listener: function(o) { - // waiting for the loader component - if (o.name === 'get') { - window.setTimeout(_loaderDispatch, 1); - } - } - }; - }(); + // more info about this here: http://www.nczonline.net/blog/2009/06/23/loading-javascript-without-blocking/ + s.type = "text/javascript"; + if (s.readyState){ //IE + s.onreadystatechange = function(){ + if (s.readyState == "loaded" || s.readyState == "complete"){ + s.onreadystatechange = null; + _loaderDispatch(); + } + }; + } else { //Others + s.onload = _loaderDispatch; + } + s.src = seed; + document.getElementsByTagName('head')[0].appendChild(s); } /** @@ -257,10 +252,11 @@ (o.onTimeout || function(){}).call(); } }, o.type); + _loading = true; }); // verifying if the loader is ready in the page, if not, it will be // included automatically and then the process will continue. - if (_loaderQueue.length===1) { + if ((_loaderQueue.length===1) && !_loading) { ((typeof YAHOO == "undefined" || !YAHOO)?_includeLoader():_loaderDispatch()); } } diff --git a/src/bootstrap/js/yui_bootstrap.js b/src/bootstrap/js/yui_bootstrap.js index ced1c6c..171b39f 100644 --- a/src/bootstrap/js/yui_bootstrap.js +++ b/src/bootstrap/js/yui_bootstrap.js @@ -113,25 +113,26 @@ * @return void */ function _includeLoader () { - /* injecting the YUI Loader in the current page */ + // injecting the YUI Loader in the current page var base = _config.base || 'http://yui.yahooapis.com/3.0.0pr2/build/', seed = _config.seed || 'yui/yui-min.js', - s = document.createElement('script'), - fn = function(){ - if ((typeof YUI === 'undefined') || !YUI) { - // keep waiting... - window.setTimeout(fn, 50); - } else { - // YUI is ready... - window.setTimeout(_loaderDispatch, 1); - } - }; - s.setAttribute('type', 'text/javascript'); - // analyzing the seed + s = document.createElement('script'); + // analyzing the seed seed = (seed.indexOf('http')===0?seed:base+seed); - s.setAttribute('src', seed); + // more info about this here: http://www.nczonline.net/blog/2009/06/23/loading-javascript-without-blocking/ + s.type = "text/javascript"; + if (s.readyState){ //IE + s.onreadystatechange = function(){ + if (s.readyState == "loaded" || s.readyState == "complete"){ + s.onreadystatechange = null; + _loaderDispatch(); + } + }; + } else { //Others + s.onload = _loaderDispatch; + } + s.src = seed; document.getElementsByTagName('head')[0].appendChild(s); - fn(); } /**