src/cm/media/js/lib/yui/yui_3.10.3/build/pluginhost-config/pluginhost-config-coverage.js
author Yves-Marie Haussonne <ymh.work+github@gmail.com>
Fri, 09 May 2014 18:35:26 +0200
changeset 656 a84519031134
parent 525 89ef5ed3c48b
permissions -rw-r--r--
add link to "privacy policy" in the header test
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
525
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
     1
/*
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
     2
YUI 3.10.3 (build 2fb5187)
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
     3
Copyright 2013 Yahoo! Inc. All rights reserved.
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
     4
Licensed under the BSD License.
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
     5
http://yuilibrary.com/license/
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
     6
*/
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
     7
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
     8
if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
     9
if (!__coverage__['build/pluginhost-config/pluginhost-config.js']) {
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    10
   __coverage__['build/pluginhost-config/pluginhost-config.js'] = {"path":"build/pluginhost-config/pluginhost-config.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":29},"end":{"line":1,"column":48}}},"2":{"name":"(anonymous_2)","line":23,"loc":{"start":{"line":23,"column":46},"end":{"line":23,"column":63}}},"3":{"name":"(anonymous_3)","line":74,"loc":{"start":{"line":74,"column":22},"end":{"line":74,"column":58}}},"4":{"name":"(anonymous_4)","line":107,"loc":{"start":{"line":107,"column":24},"end":{"line":107,"column":52}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":130,"column":48}},"2":{"start":{"line":8,"column":4},"end":{"line":9,"column":19}},"3":{"start":{"line":23,"column":4},"end":{"line":60,"column":6}},"4":{"start":{"line":26,"column":8},"end":{"line":29,"column":68}},"5":{"start":{"line":32,"column":8},"end":{"line":46,"column":9}},"6":{"start":{"line":33,"column":12},"end":{"line":33,"column":37}},"7":{"start":{"line":35,"column":12},"end":{"line":35,"column":46}},"8":{"start":{"line":36,"column":12},"end":{"line":39,"column":13}},"9":{"start":{"line":38,"column":16},"end":{"line":38,"column":49}},"10":{"start":{"line":41,"column":12},"end":{"line":41,"column":42}},"11":{"start":{"line":42,"column":12},"end":{"line":45,"column":13}},"12":{"start":{"line":44,"column":16},"end":{"line":44,"column":45}},"13":{"start":{"line":48,"column":8},"end":{"line":54,"column":9}},"14":{"start":{"line":49,"column":12},"end":{"line":53,"column":13}},"15":{"start":{"line":50,"column":16},"end":{"line":52,"column":17}},"16":{"start":{"line":51,"column":20},"end":{"line":51,"column":53}},"17":{"start":{"line":57,"column":8},"end":{"line":59,"column":9}},"18":{"start":{"line":58,"column":12},"end":{"line":58,"column":38}},"19":{"start":{"line":74,"column":4},"end":{"line":94,"column":6}},"20":{"start":{"line":76,"column":8},"end":{"line":76,"column":26}},"21":{"start":{"line":78,"column":8},"end":{"line":93,"column":9}},"22":{"start":{"line":79,"column":12},"end":{"line":79,"column":52}},"23":{"start":{"line":81,"column":12},"end":{"line":86,"column":13}},"24":{"start":{"line":82,"column":16},"end":{"line":84,"column":17}},"25":{"start":{"line":83,"column":20},"end":{"line":83,"column":53}},"26":{"start":{"line":85,"column":16},"end":{"line":85,"column":34}},"27":{"start":{"line":88,"column":12},"end":{"line":92,"column":13}},"28":{"start":{"line":89,"column":16},"end":{"line":89,"column":30}},"29":{"start":{"line":90,"column":16},"end":{"line":90,"column":43}},"30":{"start":{"line":91,"column":16},"end":{"line":91,"column":42}},"31":{"start":{"line":107,"column":4},"end":{"line":127,"column":6}},"32":{"start":{"line":108,"column":8},"end":{"line":108,"column":26}},"33":{"start":{"line":110,"column":8},"end":{"line":126,"column":9}},"34":{"start":{"line":111,"column":12},"end":{"line":111,"column":56}},"35":{"start":{"line":113,"column":12},"end":{"line":115,"column":13}},"36":{"start":{"line":114,"column":16},"end":{"line":114,"column":34}},"37":{"start":{"line":117,"column":12},"end":{"line":125,"column":13}},"38":{"start":{"line":118,"column":16},"end":{"line":118,"column":30}},"39":{"start":{"line":119,"column":16},"end":{"line":119,"column":30}},"40":{"start":{"line":120,"column":16},"end":{"line":124,"column":17}},"41":{"start":{"line":121,"column":20},"end":{"line":121,"column":48}},"42":{"start":{"line":123,"column":20},"end":{"line":123,"column":49}}},"branchMap":{"1":{"line":26,"type":"cond-expr","locations":[{"start":{"line":26,"column":43},"end":{"line":26,"column":61}},{"start":{"line":26,"column":64},"end":{"line":26,"column":82}}]},"2":{"line":36,"type":"if","locations":[{"start":{"line":36,"column":12},"end":{"line":36,"column":12}},{"start":{"line":36,"column":12},"end":{"line":36,"column":12}}]},"3":{"line":42,"type":"if","locations":[{"start":{"line":42,"column":12},"end":{"line":42,"column":12}},{"start":{"line":42,"column":12},"end":{"line":42,"column":12}}]},"4":{"line":49,"type":"if","locations":[{"start":{"line":49,"column":12},"end":{"line":49,"column":12}},{"start":{"line":49,"column":12},"end":{"line":49,"column":12}}]},"5":{"line":50,"type":"if","locations":[{"start":{"line":50,"column":16},"end":{"line":50,"column":16}},{"start":{"line":50,"column":16},"end":{"line":50,"column":16}}]},"6":{"line":57,"type":"if","locations":[{"start":{"line":57,"column":8},"end":{"line":57,"column":8}},{"start":{"line":57,"column":8},"end":{"line":57,"column":8}}]},"7":{"line":57,"type":"binary-expr","locations":[{"start":{"line":57,"column":12},"end":{"line":57,"column":18}},{"start":{"line":57,"column":22},"end":{"line":57,"column":36}}]},"8":{"line":78,"type":"if","locations":[{"start":{"line":78,"column":8},"end":{"line":78,"column":8}},{"start":{"line":78,"column":8},"end":{"line":78,"column":8}}]},"9":{"line":79,"type":"binary-expr","locations":[{"start":{"line":79,"column":30},"end":{"line":79,"column":45}},{"start":{"line":79,"column":49},"end":{"line":79,"column":51}}]},"10":{"line":81,"type":"if","locations":[{"start":{"line":81,"column":12},"end":{"line":81,"column":12}},{"start":{"line":81,"column":12},"end":{"line":81,"column":12}}]},"11":{"line":82,"type":"if","locations":[{"start":{"line":82,"column":16},"end":{"line":82,"column":16}},{"start":{"line":82,"column":16},"end":{"line":82,"column":16}}]},"12":{"line":90,"type":"binary-expr","locations":[{"start":{"line":90,"column":23},"end":{"line":90,"column":29}},{"start":{"line":90,"column":33},"end":{"line":90,"column":42}}]},"13":{"line":110,"type":"if","locations":[{"start":{"line":110,"column":8},"end":{"line":110,"column":8}},{"start":{"line":110,"column":8},"end":{"line":110,"column":8}}]},"14":{"line":111,"type":"binary-expr","locations":[{"start":{"line":111,"column":32},"end":{"line":111,"column":49}},{"start":{"line":111,"column":53},"end":{"line":111,"column":55}}]},"15":{"line":113,"type":"if","locations":[{"start":{"line":113,"column":12},"end":{"line":113,"column":12}},{"start":{"line":113,"column":12},"end":{"line":113,"column":12}}]},"16":{"line":120,"type":"if","locations":[{"start":{"line":120,"column":16},"end":{"line":120,"column":16}},{"start":{"line":120,"column":16},"end":{"line":120,"column":16}}]}},"code":["(function () { YUI.add('pluginhost-config', function (Y, NAME) {","","    /**","     * Adds pluginhost constructor configuration and static configuration support","     * @submodule pluginhost-config","     */","","    var PluginHost = Y.Plugin.Host,","        L = Y.Lang;","","    /**","     * A protected initialization method, used by the host class to initialize","     * plugin configurations passed the constructor, through the config object.","     * ","     * Host objects should invoke this method at the appropriate time in their","     * construction lifecycle.","     * ","     * @method _initConfigPlugins","     * @param {Object} config The configuration object passed to the constructor","     * @protected","     * @for Plugin.Host","     */","    PluginHost.prototype._initConfigPlugins = function(config) {","","        // Class Configuration","        var classes = (this._getClasses) ? this._getClasses() : [this.constructor],","            plug = [],","            unplug = {},","            constructor, i, classPlug, classUnplug, pluginClassName;","","        // TODO: Room for optimization. Can we apply statically/unplug in same pass?","        for (i = classes.length - 1; i >= 0; i--) {","            constructor = classes[i];","","            classUnplug = constructor._UNPLUG;","            if (classUnplug) {","                // subclasses over-write","                Y.mix(unplug, classUnplug, true);","            }","","            classPlug = constructor._PLUG;","            if (classPlug) {","                // subclasses over-write","                Y.mix(plug, classPlug, true);","            }","        }","","        for (pluginClassName in plug) {","            if (plug.hasOwnProperty(pluginClassName)) {","                if (!unplug[pluginClassName]) {","                    this.plug(plug[pluginClassName]);","                }","            }","        }","","        // User Configuration","        if (config && config.plugins) {","            this.plug(config.plugins);","        }","    };","    ","    /**","     * Registers plugins to be instantiated at the class level (plugins ","     * which should be plugged into every instance of the class by default).","     *","     * @method plug","     * @static","     *","     * @param {Function} hostClass The host class on which to register the plugins","     * @param {Function | Array} plugin Either the plugin class, an array of plugin classes or an array of objects (with fn and cfg properties defined)","     * @param {Object} config (Optional) If plugin is the plugin class, the configuration for the plugin","     * @for Plugin.Host","     */","    PluginHost.plug = function(hostClass, plugin, config) {","        // Cannot plug into Base, since Plugins derive from Base [ will cause infinite recurrsion ]","        var p, i, l, name;","    ","        if (hostClass !== Y.Base) {","            hostClass._PLUG = hostClass._PLUG || {};","    ","            if (!L.isArray(plugin)) {","                if (config) {","                    plugin = {fn:plugin, cfg:config};","                }","                plugin = [plugin];","            }","    ","            for (i = 0, l = plugin.length; i < l;i++) {","                p = plugin[i];","                name = p.NAME || p.fn.NAME;","                hostClass._PLUG[name] = p;","            }","        }","    };","","    /**","     * Unregisters any class level plugins which have been registered by the host class, or any","     * other class in the hierarchy.","     *","     * @method unplug","     * @static","     *","     * @param {Function} hostClass The host class from which to unregister the plugins","     * @param {Function | Array} plugin The plugin class, or an array of plugin classes","     * @for Plugin.Host","     */","    PluginHost.unplug = function(hostClass, plugin) {","        var p, i, l, name;","    ","        if (hostClass !== Y.Base) {","            hostClass._UNPLUG = hostClass._UNPLUG || {};","    ","            if (!L.isArray(plugin)) {","                plugin = [plugin];","            }","    ","            for (i = 0, l = plugin.length; i < l; i++) {","                p = plugin[i];","                name = p.NAME;","                if (!hostClass._PLUG[name]) {","                    hostClass._UNPLUG[name] = p;","                } else {","                    delete hostClass._PLUG[name];","                }","            }","        }","    };","","","}, '3.10.3', {\"requires\": [\"pluginhost-base\"]});","","}());"]};
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    11
}
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    12
var __cov_F8oXRhVbYy9vczyGEGWBJQ = __coverage__['build/pluginhost-config/pluginhost-config.js'];
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    13
__cov_F8oXRhVbYy9vczyGEGWBJQ.s['1']++;YUI.add('pluginhost-config',function(Y,NAME){__cov_F8oXRhVbYy9vczyGEGWBJQ.f['1']++;__cov_F8oXRhVbYy9vczyGEGWBJQ.s['2']++;var PluginHost=Y.Plugin.Host,L=Y.Lang;__cov_F8oXRhVbYy9vczyGEGWBJQ.s['3']++;PluginHost.prototype._initConfigPlugins=function(config){__cov_F8oXRhVbYy9vczyGEGWBJQ.f['2']++;__cov_F8oXRhVbYy9vczyGEGWBJQ.s['4']++;var classes=this._getClasses?(__cov_F8oXRhVbYy9vczyGEGWBJQ.b['1'][0]++,this._getClasses()):(__cov_F8oXRhVbYy9vczyGEGWBJQ.b['1'][1]++,[this.constructor]),plug=[],unplug={},constructor,i,classPlug,classUnplug,pluginClassName;__cov_F8oXRhVbYy9vczyGEGWBJQ.s['5']++;for(i=classes.length-1;i>=0;i--){__cov_F8oXRhVbYy9vczyGEGWBJQ.s['6']++;constructor=classes[i];__cov_F8oXRhVbYy9vczyGEGWBJQ.s['7']++;classUnplug=constructor._UNPLUG;__cov_F8oXRhVbYy9vczyGEGWBJQ.s['8']++;if(classUnplug){__cov_F8oXRhVbYy9vczyGEGWBJQ.b['2'][0]++;__cov_F8oXRhVbYy9vczyGEGWBJQ.s['9']++;Y.mix(unplug,classUnplug,true);}else{__cov_F8oXRhVbYy9vczyGEGWBJQ.b['2'][1]++;}__cov_F8oXRhVbYy9vczyGEGWBJQ.s['10']++;classPlug=constructor._PLUG;__cov_F8oXRhVbYy9vczyGEGWBJQ.s['11']++;if(classPlug){__cov_F8oXRhVbYy9vczyGEGWBJQ.b['3'][0]++;__cov_F8oXRhVbYy9vczyGEGWBJQ.s['12']++;Y.mix(plug,classPlug,true);}else{__cov_F8oXRhVbYy9vczyGEGWBJQ.b['3'][1]++;}}__cov_F8oXRhVbYy9vczyGEGWBJQ.s['13']++;for(pluginClassName in plug){__cov_F8oXRhVbYy9vczyGEGWBJQ.s['14']++;if(plug.hasOwnProperty(pluginClassName)){__cov_F8oXRhVbYy9vczyGEGWBJQ.b['4'][0]++;__cov_F8oXRhVbYy9vczyGEGWBJQ.s['15']++;if(!unplug[pluginClassName]){__cov_F8oXRhVbYy9vczyGEGWBJQ.b['5'][0]++;__cov_F8oXRhVbYy9vczyGEGWBJQ.s['16']++;this.plug(plug[pluginClassName]);}else{__cov_F8oXRhVbYy9vczyGEGWBJQ.b['5'][1]++;}}else{__cov_F8oXRhVbYy9vczyGEGWBJQ.b['4'][1]++;}}__cov_F8oXRhVbYy9vczyGEGWBJQ.s['17']++;if((__cov_F8oXRhVbYy9vczyGEGWBJQ.b['7'][0]++,config)&&(__cov_F8oXRhVbYy9vczyGEGWBJQ.b['7'][1]++,config.plugins)){__cov_F8oXRhVbYy9vczyGEGWBJQ.b['6'][0]++;__cov_F8oXRhVbYy9vczyGEGWBJQ.s['18']++;this.plug(config.plugins);}else{__cov_F8oXRhVbYy9vczyGEGWBJQ.b['6'][1]++;}};__cov_F8oXRhVbYy9vczyGEGWBJQ.s['19']++;PluginHost.plug=function(hostClass,plugin,config){__cov_F8oXRhVbYy9vczyGEGWBJQ.f['3']++;__cov_F8oXRhVbYy9vczyGEGWBJQ.s['20']++;var p,i,l,name;__cov_F8oXRhVbYy9vczyGEGWBJQ.s['21']++;if(hostClass!==Y.Base){__cov_F8oXRhVbYy9vczyGEGWBJQ.b['8'][0]++;__cov_F8oXRhVbYy9vczyGEGWBJQ.s['22']++;hostClass._PLUG=(__cov_F8oXRhVbYy9vczyGEGWBJQ.b['9'][0]++,hostClass._PLUG)||(__cov_F8oXRhVbYy9vczyGEGWBJQ.b['9'][1]++,{});__cov_F8oXRhVbYy9vczyGEGWBJQ.s['23']++;if(!L.isArray(plugin)){__cov_F8oXRhVbYy9vczyGEGWBJQ.b['10'][0]++;__cov_F8oXRhVbYy9vczyGEGWBJQ.s['24']++;if(config){__cov_F8oXRhVbYy9vczyGEGWBJQ.b['11'][0]++;__cov_F8oXRhVbYy9vczyGEGWBJQ.s['25']++;plugin={fn:plugin,cfg:config};}else{__cov_F8oXRhVbYy9vczyGEGWBJQ.b['11'][1]++;}__cov_F8oXRhVbYy9vczyGEGWBJQ.s['26']++;plugin=[plugin];}else{__cov_F8oXRhVbYy9vczyGEGWBJQ.b['10'][1]++;}__cov_F8oXRhVbYy9vczyGEGWBJQ.s['27']++;for(i=0,l=plugin.length;i<l;i++){__cov_F8oXRhVbYy9vczyGEGWBJQ.s['28']++;p=plugin[i];__cov_F8oXRhVbYy9vczyGEGWBJQ.s['29']++;name=(__cov_F8oXRhVbYy9vczyGEGWBJQ.b['12'][0]++,p.NAME)||(__cov_F8oXRhVbYy9vczyGEGWBJQ.b['12'][1]++,p.fn.NAME);__cov_F8oXRhVbYy9vczyGEGWBJQ.s['30']++;hostClass._PLUG[name]=p;}}else{__cov_F8oXRhVbYy9vczyGEGWBJQ.b['8'][1]++;}};__cov_F8oXRhVbYy9vczyGEGWBJQ.s['31']++;PluginHost.unplug=function(hostClass,plugin){__cov_F8oXRhVbYy9vczyGEGWBJQ.f['4']++;__cov_F8oXRhVbYy9vczyGEGWBJQ.s['32']++;var p,i,l,name;__cov_F8oXRhVbYy9vczyGEGWBJQ.s['33']++;if(hostClass!==Y.Base){__cov_F8oXRhVbYy9vczyGEGWBJQ.b['13'][0]++;__cov_F8oXRhVbYy9vczyGEGWBJQ.s['34']++;hostClass._UNPLUG=(__cov_F8oXRhVbYy9vczyGEGWBJQ.b['14'][0]++,hostClass._UNPLUG)||(__cov_F8oXRhVbYy9vczyGEGWBJQ.b['14'][1]++,{});__cov_F8oXRhVbYy9vczyGEGWBJQ.s['35']++;if(!L.isArray(plugin)){__cov_F8oXRhVbYy9vczyGEGWBJQ.b['15'][0]++;__cov_F8oXRhVbYy9vczyGEGWBJQ.s['36']++;plugin=[plugin];}else{__cov_F8oXRhVbYy9vczyGEGWBJQ.b['15'][1]++;}__cov_F8oXRhVbYy9vczyGEGWBJQ.s['37']++;for(i=0,l=plugin.length;i<l;i++){__cov_F8oXRhVbYy9vczyGEGWBJQ.s['38']++;p=plugin[i];__cov_F8oXRhVbYy9vczyGEGWBJQ.s['39']++;name=p.NAME;__cov_F8oXRhVbYy9vczyGEGWBJQ.s['40']++;if(!hostClass._PLUG[name]){__cov_F8oXRhVbYy9vczyGEGWBJQ.b['16'][0]++;__cov_F8oXRhVbYy9vczyGEGWBJQ.s['41']++;hostClass._UNPLUG[name]=p;}else{__cov_F8oXRhVbYy9vczyGEGWBJQ.b['16'][1]++;__cov_F8oXRhVbYy9vczyGEGWBJQ.s['42']++;delete hostClass._PLUG[name];}}}else{__cov_F8oXRhVbYy9vczyGEGWBJQ.b['13'][1]++;}};},'3.10.3',{'requires':['pluginhost-base']});