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).
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).
comboBase: The YUI combo service base dir. Ex: http://yui.yahooapis.com/combo?
- *
root: The root path to prepend to module names for the combo service. Ex\\: 2\\.5\\.2\\/build\\/
- *
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:
- *
- *
DEBUG
- *
Selects the debug versions of the library (e.g., event-debug.js).
- * This option will automatically include the Logger widget
- *
RAW
- *
Selects the non-minified version of the library (e.g., event.js).
- *
- * You can also define a custom filter, which must be an object literal
- * containing a search expression and a replace string:
- *
filters: per-component filter specification. If specified for a given component, this overrides the filter config
- *
combine:
- * Use the YUI combo service to reduce the number of http connections required to load your dependencies
- *
ignore:
- * A list of modules that should never be dynamically loaded
- *
force:
- * A list of modules that should always be loaded when required, even if already present on the page
- *
insertBefore:
- * Node or id for a node that should be used as the insertion point for new nodes
- *
charset:
- * charset for dynamic nodes
- *
timeout:
- * number of milliseconds before a timeout occurs when dynamically loading nodes. in not set, there is no timeout
- *
onSuccess:
- * callback for the 'success' event
- *
onFailure:
- * callback for the 'failure' event
- *
onTimeout:
- * callback for the 'timeout' event
- *
onProgress:
- * callback executed each time a script or css file is loaded
- *
modules:
- * A list of module definitions. See Loader.addModule for the supported module metadata
- *
- *
- * 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:
- *
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).
comboBase: The YUI combo service base dir. Ex: http://yui.yahooapis.com/combo?
- *
root: The root path to prepend to module names for the combo service. Ex\\: 2\\.5\\.2\\/build\\/
- *
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:
- *
- *
DEBUG
- *
Selects the debug versions of the library (e.g., event-debug.js).
- * This option will automatically include the Logger widget
- *
RAW
- *
Selects the non-minified version of the library (e.g., event.js).
- *
- * You can also define a custom filter, which must be an object literal
- * containing a search expression and a replace string:
- *
filters: per-component filter specification. If specified for a given component, this overrides the filter config
- *
combine:
- * Use the YUI combo service to reduce the number of http connections required to load your dependencies
- *
ignore:
- * A list of modules that should never be dynamically loaded
- *
force:
- * A list of modules that should always be loaded when required, even if already present on the page
- *
insertBefore:
- * Node or id for a node that should be used as the insertion point for new nodes
- *
charset:
- * charset for dynamic nodes
- *
timeout:
- * number of milliseconds before a timeout occurs when dynamically loading nodes. in not set, there is no timeout
- *
onSuccess:
- * callback for the 'success' event
- *
onFailure:
- * callback for the 'failure' event
- *
onTimeout:
- * callback for the 'timeout' event
- *
onProgress:
- * callback executed each time a script or css file is loaded
- *
modules:
- * A list of module definitions. See Loader.addModule for the supported module metadata
- *
- *
- * 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: {
- * 'searchExp': "-min\\.js",
- * 'replaceStr': "-debug.js"
- * }
- * </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(){
- varc;
- 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 */
- varbase=_config.base||'http://yui.yahooapis.com/3.0.0pr2/build/',
- seed=_config.seed||'yui/yui-min.js',
- s=document.createElement('script'),
- fn=function(){
- if((typeofYUI==='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||{};
- varm=o.modules||{},
- flag=true,i;
- for(iino){
- if(o.hasOwnProperty(i)&&(i!='modules')){
- flag=false;
- }
- }
- // using _config and injecting more modules
- if(flag){
- for(iinm){
- if(m.hasOwnProperty(i)){
- _config.modules[i]=m[i];
- }
- }
- o=_config;
- }
- returno;
- }
-
- 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(){
- vara=Array.prototype.slice.call(arguments,0);
- _loaderQueue.push(function(){
- /* hack: cloning configuration */
- varj,c={};
- for(jino){
- if(o.hasOwnProperty(j)){
- c[j]=o[j];
- }
- }
- /* end hack */
- varY=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){
- ((typeofYUI==='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: {
- * 'searchExp': "-min\\.js",
- * 'replaceStr': "-debug.js"
- * }
- * </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(){
- varc;
- 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(){
- varbase=_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 */
- vars=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){
- vari;
- // adding modules to the loader
- if(m&&(typeofm==='object')){
- for(iinm){
- 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){
- vari,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=newYAHOO.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||{};
- varm=o.modules||{},
- flag=true,i;
- for(iino){
- if(o.hasOwnProperty(i)&&(i!='modules')){
- flag=false;
- }
- }
- // using _config and injecting more modules
- if(flag){
- for(iinm){
- if(m.hasOwnProperty(i)){
- _config.modules[i]=m[i];
- }
- }
- if(_loaderObj){
- _addMods(m);
- }
- o=_config;
- }
- returno;
- }
-
- 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(){
- vara=Array.prototype.slice.call(arguments,0),
- callback=a.pop();
- _loaderQueue.push(function(){
- vari;
- _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){
- ((typeofYAHOO=="undefined"||!YAHOO)?_includeLoader():_loaderDispatch());
- }
- }
- };
- };
-
-})();
-
/**
- * 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: {
- * 'searchExp': "-min\\.js",
- * 'replaceStr': "-debug.js"
- * }
- * </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(){
- varc;
- 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 */
- varbase=_config.base||'http://yui.yahooapis.com/3.0.0pr2/build/',
- seed=_config.seed||'yui/yui-min.js',
- s=document.createElement('script'),
- fn=function(){
- if((typeofYUI==='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||{};
- varm=o.modules||{},
- flag=true,i;
- for(iino){
- if(o.hasOwnProperty(i)&&(i!='modules')){
- flag=false;
- }
- }
- // using _config and injecting more modules
- if(flag){
- for(iinm){
- if(m.hasOwnProperty(i)){
- _config.modules[i]=m[i];
- }
- }
- o=_config;
- }
- returno;
- }
-
- 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(){
- vara=Array.prototype.slice.call(arguments,0);
- _loaderQueue.push(function(){
- /* hack: cloning configuration */
- varj,c={};
- for(jino){
- if(o.hasOwnProperty(j)){
- c[j]=o[j];
- }
- }
- /* end hack */
- varY=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){
- ((typeofYUI==='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: {
- * 'searchExp': "-min\\.js",
- * 'replaceStr': "-debug.js"
- * }
- * </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(){
- varc;
- 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(){
- varbase=_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 */
- vars=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){
- vari;
- // adding modules to the loader
- if(m&&(typeofm==='object')){
- for(iinm){
- 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){
- vari,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=newYAHOO.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||{};
- varm=o.modules||{},
- flag=true,i;
- for(iino){
- if(o.hasOwnProperty(i)&&(i!='modules')){
- flag=false;
- }
- }
- // using _config and injecting more modules
- if(flag){
- for(iinm){
- if(m.hasOwnProperty(i)){
- _config.modules[i]=m[i];
- }
- }
- if(_loaderObj){
- _addMods(m);
- }
- o=_config;
- }
- returno;
- }
-
- 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(){
- vara=Array.prototype.slice.call(arguments,0),
- callback=a.pop();
- _loaderQueue.push(function(){
- vari;
- _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){
- ((typeofYAHOO=="undefined"||!YAHOO)?_includeLoader():_loaderDispatch());
- }
- }
- };
- };
-
-})();
-
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).
comboBase: The YUI combo service base dir. Ex: http://yui.yahooapis.com/combo?
- *
root: The root path to prepend to module names for the combo service. Ex\\: 2\\.5\\.2\\/build\\/
- *
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:
- *
- *
DEBUG
- *
Selects the debug versions of the library (e.g., event-debug.js).
- * This option will automatically include the Logger widget
- *
RAW
- *
Selects the non-minified version of the library (e.g., event.js).
- *
- * You can also define a custom filter, which must be an object literal
- * containing a search expression and a replace string:
- *
filters: per-component filter specification. If specified for a given component, this overrides the filter config
- *
combine:
- * Use the YUI combo service to reduce the number of http connections required to load your dependencies
- *
ignore:
- * A list of modules that should never be dynamically loaded
- *
force:
- * A list of modules that should always be loaded when required, even if already present on the page
- *
insertBefore:
- * Node or id for a node that should be used as the insertion point for new nodes
- *
charset:
- * charset for dynamic nodes
- *
timeout:
- * number of milliseconds before a timeout occurs when dynamically loading nodes. in not set, there is no timeout
- *
onSuccess:
- * callback for the 'success' event
- *
onFailure:
- * callback for the 'failure' event
- *
onTimeout:
- * callback for the 'timeout' event
- *
onProgress:
- * callback executed each time a script or css file is loaded
- *
modules:
- * A list of module definitions. See Loader.addModule for the supported module metadata
- *
- *
- * 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:
- *
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).
comboBase: The YUI combo service base dir. Ex: http://yui.yahooapis.com/combo?
- *
root: The root path to prepend to module names for the combo service. Ex\\: 2\\.5\\.2\\/build\\/
- *
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:
- *
- *
DEBUG
- *
Selects the debug versions of the library (e.g., event-debug.js).
- * This option will automatically include the Logger widget
- *
RAW
- *
Selects the non-minified version of the library (e.g., event.js).
- *
- * You can also define a custom filter, which must be an object literal
- * containing a search expression and a replace string:
- *
filters: per-component filter specification. If specified for a given component, this overrides the filter config
- *
combine:
- * Use the YUI combo service to reduce the number of http connections required to load your dependencies
- *
ignore:
- * A list of modules that should never be dynamically loaded
- *
force:
- * A list of modules that should always be loaded when required, even if already present on the page
- *
insertBefore:
- * Node or id for a node that should be used as the insertion point for new nodes
- *
charset:
- * charset for dynamic nodes
- *
timeout:
- * number of milliseconds before a timeout occurs when dynamically loading nodes. in not set, there is no timeout
- *
onSuccess:
- * callback for the 'success' event
- *
onFailure:
- * callback for the 'failure' event
- *
onTimeout:
- * callback for the 'timeout' event
- *
onProgress:
- * callback executed each time a script or css file is loaded
- *
modules:
- * A list of module definitions. See Loader.addModule for the supported module metadata
- *
- *
- * 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: {
- * 'searchExp': "-min\\.js",
- * 'replaceStr': "-debug.js"
- * }
- * </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(){
- varc;
- 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 */
- varbase=_config.base||'http://yui.yahooapis.com/3.0.0pr2/build/',
- seed=_config.seed||'yui/yui-min.js',
- s=document.createElement('script'),
- fn=function(){
- if((typeofYUI==='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||{};
- varm=o.modules||{},
- flag=true,i;
- for(iino){
- if(o.hasOwnProperty(i)&&(i!='modules')){
- flag=false;
- }
- }
- // using _config and injecting more modules
- if(flag){
- for(iinm){
- if(m.hasOwnProperty(i)){
- _config.modules[i]=m[i];
- }
- }
- o=_config;
- }
- returno;
- }
-
- 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(){
- vara=Array.prototype.slice.call(arguments,0);
- _loaderQueue.push(function(){
- /* hack: cloning configuration */
- varj,c={};
- for(jino){
- if(o.hasOwnProperty(j)){
- c[j]=o[j];
- }
- }
- /* end hack */
- varY=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){
- ((typeofYUI==='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: {
- * 'searchExp': "-min\\.js",
- * 'replaceStr': "-debug.js"
- * }
- * </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(){
- varc;
- 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(){
- varbase=_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 */
- vars=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){
- vari;
- // adding modules to the loader
- if(m&&(typeofm==='object')){
- for(iinm){
- 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){
- vari,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=newYAHOO.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||{};
- varm=o.modules||{},
- flag=true,i;
- for(iino){
- if(o.hasOwnProperty(i)&&(i!='modules')){
- flag=false;
- }
- }
- // using _config and injecting more modules
- if(flag){
- for(iinm){
- if(m.hasOwnProperty(i)){
- _config.modules[i]=m[i];
- }
- }
- if(_loaderObj){
- _addMods(m);
- }
- o=_config;
- }
- returno;
- }
-
- 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(){
- vara=Array.prototype.slice.call(arguments,0),
- callback=a.pop();
- _loaderQueue.push(function(){
- vari;
- _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){
- ((typeofYAHOO=="undefined"||!YAHOO)?_includeLoader():_loaderDispatch());
- }
- }
- };
- };
-
-})();
-
injected: set to true if the yui seed file was dynamically loaded in\norder to bootstrap components relying on the window load event and onDOMReady\n(former injecting on YAHOO_config).
comboBase: The YUI combo service base dir. Ex: http://yui.yahooapis.com/combo?
\n
root: The root path to prepend to module names for the combo service. Ex\\\\: 2\\\\.5\\\\.2\\\\/build\\\\/
\n
filter:\nA filter to apply to result urls. This filter will modify the default\npath for all modules. The default path for the YUI library is the\nminified version of the files (e.g., event-min.js). The filter property\ncan be a predefined filter or a custom filter. The valid predefined \nfilters are:\n
\n
DEBUG
\n
Selects the debug versions of the library (e.g., event-debug.js).\nThis option will automatically include the Logger widget
\n
RAW
\n
Selects the non-minified version of the library (e.g., event.js).
\n
\nYou can also define a custom filter, which must be an object literal \ncontaining a search expression and a replace string:\n
filters: per-component filter specification. If specified for a given component, this overrides the filter config
\n
combine:\nUse the YUI combo service to reduce the number of http connections required to load your dependencies
\n
ignore:\nA list of modules that should never be dynamically loaded
\n
force:\nA list of modules that should always be loaded when required, even if already present on the page
\n
insertBefore:\nNode or id for a node that should be used as the insertion point for new nodes
\n
charset:\ncharset for dynamic nodes
\n
timeout:\nnumber of milliseconds before a timeout occurs when dynamically loading nodes. in not set, there is no timeout
\n
onSuccess:\ncallback for the 'success' event
\n
onFailure:\ncallback for the 'failure' event
\n
onTimeout:\ncallback for the 'timeout' event
\n
onProgress:\ncallback executed each time a script or css file is loaded
\n
modules:\nA list of module definitions. See Loader.addModule for the supported module metadata
\n
seed:\ncustom COMBO url to load a default set of components including loader in a single entry.
\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
injected: set to true if the yui seed file was dynamically loaded in\norder to bootstrap components relying on the window load event and onDOMReady\n(former injecting on YAHOO_config).
comboBase: The YUI combo service base dir. Ex: http://yui.yahooapis.com/combo?
\n
root: The root path to prepend to module names for the combo service. Ex\\\\: 2\\\\.5\\\\.2\\\\/build\\\\/
\n
filter:\nA filter to apply to result urls. This filter will modify the default\npath for all modules. The default path for the YUI library is the\nminified version of the files (e.g., event-min.js). The filter property\ncan be a predefined filter or a custom filter. The valid predefined \nfilters are:\n
\n
DEBUG
\n
Selects the debug versions of the library (e.g., event-debug.js).\nThis option will automatically include the Logger widget
\n
RAW
\n
Selects the non-minified version of the library (e.g., event.js).
\n
\nYou can also define a custom filter, which must be an object literal \ncontaining a search expression and a replace string:\n
filters: per-component filter specification. If specified for a given component, this overrides the filter config
\n
combine:\nUse the YUI combo service to reduce the number of http connections required to load your dependencies
\n
ignore:\nA list of modules that should never be dynamically loaded
\n
force:\nA list of modules that should always be loaded when required, even if already present on the page
\n
insertBefore:\nNode or id for a node that should be used as the insertion point for new nodes
\n
charset:\ncharset for dynamic nodes
\n
timeout:\nnumber of milliseconds before a timeout occurs when dynamically loading nodes. in not set, there is no timeout
\n
onSuccess:\ncallback for the 'success' event
\n
onFailure:\ncallback for the 'failure' event
\n
onTimeout:\ncallback for the 'timeout' event
\n
onProgress:\ncallback executed each time a script or css file is loaded
\n
modules:\nA list of module definitions. See Loader.addModule for the supported module metadata
\n
seed:\ncustom COMBO url to load a default set of components including loader in a single entry.
\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
comboBase: The YUI combo service base dir. Ex: http://yui.yahooapis.com/combo?
\n
root: The root path to prepend to module names for the combo service. Ex\\\\: 2\\\\.5\\\\.2\\\\/build\\\\/
\n
filter:\nA filter to apply to result urls. This filter will modify the default\npath for all modules. The default path for the YUI library is the\nminified version of the files (e.g., event-min.js). The filter property\ncan be a predefined filter or a custom filter. The valid predefined \nfilters are:\n
\n
DEBUG
\n
Selects the debug versions of the library (e.g., event-debug.js).\nThis option will automatically include the Logger widget
\n
RAW
\n
Selects the non-minified version of the library (e.g., event.js).
\n
\nYou can also define a custom filter, which must be an object literal \ncontaining a search expression and a replace string:\n
filters: per-component filter specification. If specified for a given component, this overrides the filter config
\n
combine:\nUse the YUI combo service to reduce the number of http connections required to load your dependencies
\n
ignore:\nA list of modules that should never be dynamically loaded
\n
force:\nA list of modules that should always be loaded when required, even if already present on the page
\n
insertBefore:\nNode or id for a node that should be used as the insertion point for new nodes
\n
charset:\ncharset for dynamic nodes
\n
timeout:\nnumber of milliseconds before a timeout occurs when dynamically loading nodes. in not set, there is no timeout
\n
onSuccess:\ncallback for the 'success' event
\n
onFailure:\ncallback for the 'failure' event
\n
onTimeout:\ncallback for the 'timeout' event
\n
onProgress:\ncallback executed each time a script or css file is loaded
\n
modules:\nA list of module definitions. See Loader.addModule for the supported module metadata
\n
seed:\ncustom COMBO url to load a default set of components including loader in a single entry.
\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
injected: set to true if the yui seed file was dynamically loaded in\norder to bootstrap components relying on the window load event and onDOMReady\n(former injecting on YAHOO_config).
comboBase: The YUI combo service base dir. Ex: http://yui.yahooapis.com/combo?
\n
root: The root path to prepend to module names for the combo service. Ex\\\\: 2\\\\.5\\\\.2\\\\/build\\\\/
\n
filter:\nA filter to apply to result urls. This filter will modify the default\npath for all modules. The default path for the YUI library is the\nminified version of the files (e.g., event-min.js). The filter property\ncan be a predefined filter or a custom filter. The valid predefined \nfilters are:\n
\n
DEBUG
\n
Selects the debug versions of the library (e.g., event-debug.js).\nThis option will automatically include the Logger widget
\n
RAW
\n
Selects the non-minified version of the library (e.g., event.js).
\n
\nYou can also define a custom filter, which must be an object literal \ncontaining a search expression and a replace string:\n
filters: per-component filter specification. If specified for a given component, this overrides the filter config
\n
combine:\nUse the YUI combo service to reduce the number of http connections required to load your dependencies
\n
ignore:\nA list of modules that should never be dynamically loaded
\n
force:\nA list of modules that should always be loaded when required, even if already present on the page
\n
insertBefore:\nNode or id for a node that should be used as the insertion point for new nodes
\n
charset:\ncharset for dynamic nodes
\n
timeout:\nnumber of milliseconds before a timeout occurs when dynamically loading nodes. in not set, there is no timeout
\n
onSuccess:\ncallback for the 'success' event
\n
onFailure:\ncallback for the 'failure' event
\n
onTimeout:\ncallback for the 'timeout' event
\n
onProgress:\ncallback executed each time a script or css file is loaded
\n
modules:\nA list of module definitions. See Loader.addModule for the supported module metadata
\n
seed:\ncustom COMBO url to load a default set of components including loader in a single entry.
\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
injected: set to true if the yui seed file was dynamically loaded in\norder to bootstrap components relying on the window load event and onDOMReady\n(former injecting on YAHOO_config).
comboBase: The YUI combo service base dir. Ex: http://yui.yahooapis.com/combo?
\n
root: The root path to prepend to module names for the combo service. Ex\\\\: 2\\\\.5\\\\.2\\\\/build\\\\/
\n
filter:\nA filter to apply to result urls. This filter will modify the default\npath for all modules. The default path for the YUI library is the\nminified version of the files (e.g., event-min.js). The filter property\ncan be a predefined filter or a custom filter. The valid predefined \nfilters are:\n
\n
DEBUG
\n
Selects the debug versions of the library (e.g., event-debug.js).\nThis option will automatically include the Logger widget
\n
RAW
\n
Selects the non-minified version of the library (e.g., event.js).
\n
\nYou can also define a custom filter, which must be an object literal \ncontaining a search expression and a replace string:\n
filters: per-component filter specification. If specified for a given component, this overrides the filter config
\n
combine:\nUse the YUI combo service to reduce the number of http connections required to load your dependencies
\n
ignore:\nA list of modules that should never be dynamically loaded
\n
force:\nA list of modules that should always be loaded when required, even if already present on the page
\n
insertBefore:\nNode or id for a node that should be used as the insertion point for new nodes
\n
charset:\ncharset for dynamic nodes
\n
timeout:\nnumber of milliseconds before a timeout occurs when dynamically loading nodes. in not set, there is no timeout
\n
onSuccess:\ncallback for the 'success' event
\n
onFailure:\ncallback for the 'failure' event
\n
onTimeout:\ncallback for the 'timeout' event
\n
onProgress:\ncallback executed each time a script or css file is loaded
\n
modules:\nA list of module definitions. See Loader.addModule for the supported module metadata
\n
seed:\ncustom COMBO url to load a default set of components including loader in a single entry.
\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
injected: set to true if the yui seed file was dynamically loaded in\norder to bootstrap components relying on the window load event and onDOMReady\n(former injecting on YAHOO_config).
comboBase: The YUI combo service base dir. Ex: http://yui.yahooapis.com/combo?
\n
root: The root path to prepend to module names for the combo service. Ex\\\\: 2\\\\.5\\\\.2\\\\/build\\\\/
\n
filter:\nA filter to apply to result urls. This filter will modify the default\npath for all modules. The default path for the YUI library is the\nminified version of the files (e.g., event-min.js). The filter property\ncan be a predefined filter or a custom filter. The valid predefined \nfilters are:\n
\n
DEBUG
\n
Selects the debug versions of the library (e.g., event-debug.js).\nThis option will automatically include the Logger widget
\n
RAW
\n
Selects the non-minified version of the library (e.g., event.js).
\n
\nYou can also define a custom filter, which must be an object literal \ncontaining a search expression and a replace string:\n
filters: per-component filter specification. If specified for a given component, this overrides the filter config
\n
combine:\nUse the YUI combo service to reduce the number of http connections required to load your dependencies
\n
ignore:\nA list of modules that should never be dynamically loaded
\n
force:\nA list of modules that should always be loaded when required, even if already present on the page
\n
insertBefore:\nNode or id for a node that should be used as the insertion point for new nodes
\n
charset:\ncharset for dynamic nodes
\n
timeout:\nnumber of milliseconds before a timeout occurs when dynamically loading nodes. in not set, there is no timeout
\n
onSuccess:\ncallback for the 'success' event
\n
onFailure:\ncallback for the 'failure' event
\n
onTimeout:\ncallback for the 'timeout' event
\n
onProgress:\ncallback executed each time a script or css file is loaded
\n
modules:\nA list of module definitions. See Loader.addModule for the supported module metadata
\n
seed:\ncustom COMBO url to load a default set of components including loader in a single entry.
\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
comboBase: The YUI combo service base dir. Ex: http://yui.yahooapis.com/combo?
\n
root: The root path to prepend to module names for the combo service. Ex\\\\: 2\\\\.5\\\\.2\\\\/build\\\\/
\n
filter:\nA filter to apply to result urls. This filter will modify the default\npath for all modules. The default path for the YUI library is the\nminified version of the files (e.g., event-min.js). The filter property\ncan be a predefined filter or a custom filter. The valid predefined \nfilters are:\n
\n
DEBUG
\n
Selects the debug versions of the library (e.g., event-debug.js).\nThis option will automatically include the Logger widget
\n
RAW
\n
Selects the non-minified version of the library (e.g., event.js).
\n
\nYou can also define a custom filter, which must be an object literal \ncontaining a search expression and a replace string:\n
filters: per-component filter specification. If specified for a given component, this overrides the filter config
\n
combine:\nUse the YUI combo service to reduce the number of http connections required to load your dependencies
\n
ignore:\nA list of modules that should never be dynamically loaded
\n
force:\nA list of modules that should always be loaded when required, even if already present on the page
\n
insertBefore:\nNode or id for a node that should be used as the insertion point for new nodes
\n
charset:\ncharset for dynamic nodes
\n
timeout:\nnumber of milliseconds before a timeout occurs when dynamically loading nodes. in not set, there is no timeout
\n
onSuccess:\ncallback for the 'success' event
\n
onFailure:\ncallback for the 'failure' event
\n
onTimeout:\ncallback for the 'timeout' event
\n
onProgress:\ncallback executed each time a script or css file is loaded
\n
modules:\nA list of module definitions. See Loader.addModule for the supported module metadata
\n
seed:\ncustom COMBO url to load a default set of components including loader in a single entry.
\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
injected: set to true if the yui seed file was dynamically loaded in\norder to bootstrap components relying on the window load event and onDOMReady\n(former injecting on YAHOO_config).
comboBase: The YUI combo service base dir. Ex: http://yui.yahooapis.com/combo?
\n
root: The root path to prepend to module names for the combo service. Ex\\\\: 2\\\\.5\\\\.2\\\\/build\\\\/
\n
filter:\nA filter to apply to result urls. This filter will modify the default\npath for all modules. The default path for the YUI library is the\nminified version of the files (e.g., event-min.js). The filter property\ncan be a predefined filter or a custom filter. The valid predefined \nfilters are:\n
\n
DEBUG
\n
Selects the debug versions of the library (e.g., event-debug.js).\nThis option will automatically include the Logger widget
\n
RAW
\n
Selects the non-minified version of the library (e.g., event.js).
\n
\nYou can also define a custom filter, which must be an object literal \ncontaining a search expression and a replace string:\n
filters: per-component filter specification. If specified for a given component, this overrides the filter config
\n
combine:\nUse the YUI combo service to reduce the number of http connections required to load your dependencies
\n
ignore:\nA list of modules that should never be dynamically loaded
\n
force:\nA list of modules that should always be loaded when required, even if already present on the page
\n
insertBefore:\nNode or id for a node that should be used as the insertion point for new nodes
\n
charset:\ncharset for dynamic nodes
\n
timeout:\nnumber of milliseconds before a timeout occurs when dynamically loading nodes. in not set, there is no timeout
\n
onSuccess:\ncallback for the 'success' event
\n
onFailure:\ncallback for the 'failure' event
\n
onTimeout:\ncallback for the 'timeout' event
\n
onProgress:\ncallback executed each time a script or css file is loaded
\n
modules:\nA list of module definitions. See Loader.addModule for the supported module metadata
\n
seed:\ncustom COMBO url to load a default set of components including loader in a single entry.
\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:
- *
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).
comboBase: The YUI combo service base dir. Ex: http://yui.yahooapis.com/combo?
- *
root: The root path to prepend to module names for the combo service. Ex\\: 2\\.5\\.2\\/build\\/
- *
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:
- *
- *
DEBUG
- *
Selects the debug versions of the library (e.g., event-debug.js).
- * This option will automatically include the Logger widget
- *
RAW
- *
Selects the non-minified version of the library (e.g., event.js).
- *
- * You can also define a custom filter, which must be an object literal
- * containing a search expression and a replace string:
- *
filters: per-component filter specification. If specified for a given component, this overrides the filter config
- *
combine:
- * Use the YUI combo service to reduce the number of http connections required to load your dependencies
- *
ignore:
- * A list of modules that should never be dynamically loaded
- *
force:
- * A list of modules that should always be loaded when required, even if already present on the page
- *
insertBefore:
- * Node or id for a node that should be used as the insertion point for new nodes
- *
charset:
- * charset for dynamic nodes
- *
timeout:
- * number of milliseconds before a timeout occurs when dynamically loading nodes. in not set, there is no timeout
- *
onSuccess:
- * callback for the 'success' event
- *
onFailure:
- * callback for the 'failure' event
- *
onTimeout:
- * callback for the 'timeout' event
- *
onProgress:
- * callback executed each time a script or css file is loaded
- *
modules:
- * A list of module definitions. See Loader.addModule for the supported module metadata
- *
- *
- * 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: {
- * 'searchExp': "-min\\.js",
- * 'replaceStr': "-debug.js"
- * }
- * </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(){
- varc;
- 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(){
- varbase=_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 */
- vars=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){
- vari;
- // adding modules to the loader
- if(m&&(typeofm==='object')){
- for(iinm){
- 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){
- vari,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=newYAHOO.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||{};
- varm=o.modules||{},
- flag=true,i;
- for(iino){
- if(o.hasOwnProperty(i)&&(i!='modules')){
- flag=false;
- }
- }
- // using _config and injecting more modules
- if(flag){
- for(iinm){
- if(m.hasOwnProperty(i)){
- _config.modules[i]=m[i];
- }
- }
- if(_loaderObj){
- _addMods(m);
- }
- o=_config;
- }
- returno;
- }
-
- 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(){
- vara=Array.prototype.slice.call(arguments,0),
- callback=a.pop();
- _loaderQueue.push(function(){
- vari;
- _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){
- ((typeofYAHOO=="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 @@
-
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).
@@ -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(){varc;
+ _loading=false;if((c=_loaderQueue.shift())){c.call();}
@@ -116,28 +115,24 @@
*/function_includeLoader(){varbase=_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 seedseed=(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 */
- vars=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){((typeofYAHOO=="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 @@
*/function_includeLoader(){varbase=_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 seedseed=(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 */
- vars=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){((typeofYAHOO=="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:
- *
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).
comboBase: The YUI combo service base dir. Ex: http://yui.yahooapis.com/combo?
- *
root: The root path to prepend to module names for the combo service. Ex\\: 2\\.5\\.2\\/build\\/
- *
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:
- *
- *
DEBUG
- *
Selects the debug versions of the library (e.g., event-debug.js).
- * This option will automatically include the Logger widget
- *
RAW
- *
Selects the non-minified version of the library (e.g., event.js).
- *
- * You can also define a custom filter, which must be an object literal
- * containing a search expression and a replace string:
- *
filters: per-component filter specification. If specified for a given component, this overrides the filter config
- *
combine:
- * Use the YUI combo service to reduce the number of http connections required to load your dependencies
- *
ignore:
- * A list of modules that should never be dynamically loaded
- *
force:
- * A list of modules that should always be loaded when required, even if already present on the page
- *
insertBefore:
- * Node or id for a node that should be used as the insertion point for new nodes
- *
charset:
- * charset for dynamic nodes
- *
timeout:
- * number of milliseconds before a timeout occurs when dynamically loading nodes. in not set, there is no timeout
- *
onSuccess:
- * callback for the 'success' event
- *
onFailure:
- * callback for the 'failure' event
- *
onTimeout:
- * callback for the 'timeout' event
- *
onProgress:
- * callback executed each time a script or css file is loaded
- *
modules:
- * A list of module definitions. See Loader.addModule for the supported module metadata
- *
- *
- * 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: {
- * 'searchExp': "-min\\.js",
- * 'replaceStr': "-debug.js"
- * }
- * </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(){
- varc;
- 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 */
- varbase=_config.base||'http://yui.yahooapis.com/3.0.0pr2/build/',
- seed=_config.seed||'yui/yui-min.js',
- s=document.createElement('script'),
- fn=function(){
- if((typeofYUI==='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||{};
- varm=o.modules||{},
- flag=true,i;
- for(iino){
- if(o.hasOwnProperty(i)&&(i!='modules')){
- flag=false;
- }
- }
- // using _config and injecting more modules
- if(flag){
- for(iinm){
- if(m.hasOwnProperty(i)){
- _config.modules[i]=m[i];
- }
- }
- o=_config;
- }
- returno;
- }
-
- 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(){
- vara=Array.prototype.slice.call(arguments,0);
- _loaderQueue.push(function(){
- /* hack: cloning configuration */
- varj,c={};
- for(jino){
- if(o.hasOwnProperty(j)){
- c[j]=o[j];
- }
- }
- /* end hack */
- varY=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){
- ((typeofYUI==='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 @@
-
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).
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).
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).
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).
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).