src/cm/media/js/lib/yui/yui_3.10.3/build/event-hover/event-hover-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/event-hover/event-hover.js']) {
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    10
   __coverage__['build/event-hover/event-hover.js'] = {"path":"build/event-hover/event-hover.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},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":23},"end":{"line":1,"column":42}}},"2":{"name":"(anonymous_2)","line":25,"loc":{"start":{"line":25,"column":11},"end":{"line":25,"column":23}}},"3":{"name":"(anonymous_3)","line":27,"loc":{"start":{"line":27,"column":21},"end":{"line":27,"column":37}}},"4":{"name":"(anonymous_4)","line":37,"loc":{"start":{"line":37,"column":12},"end":{"line":37,"column":51}}},"5":{"name":"(anonymous_5)","line":43,"loc":{"start":{"line":43,"column":28},"end":{"line":43,"column":41}}},"6":{"name":"(anonymous_6)","line":47,"loc":{"start":{"line":47,"column":28},"end":{"line":47,"column":41}}},"7":{"name":"(anonymous_7)","line":59,"loc":{"start":{"line":59,"column":16},"end":{"line":59,"column":47}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":70,"column":49}},"2":{"start":{"line":24,"column":0},"end":{"line":62,"column":6}},"3":{"start":{"line":32,"column":12},"end":{"line":32,"column":48}},"4":{"start":{"line":34,"column":12},"end":{"line":34,"column":70}},"5":{"start":{"line":38,"column":12},"end":{"line":38,"column":58}},"6":{"start":{"line":40,"column":12},"end":{"line":40,"column":31}},"7":{"start":{"line":42,"column":12},"end":{"line":56,"column":23}},"8":{"start":{"line":44,"column":20},"end":{"line":44,"column":37}},"9":{"start":{"line":45,"column":20},"end":{"line":45,"column":37}},"10":{"start":{"line":48,"column":20},"end":{"line":48,"column":54}},"11":{"start":{"line":50,"column":20},"end":{"line":50,"column":32}},"12":{"start":{"line":52,"column":20},"end":{"line":52,"column":37}},"13":{"start":{"line":53,"column":20},"end":{"line":53,"column":36}},"14":{"start":{"line":54,"column":20},"end":{"line":54,"column":52}},"15":{"start":{"line":60,"column":12},"end":{"line":60,"column":33}},"16":{"start":{"line":64,"column":0},"end":{"line":64,"column":24}},"17":{"start":{"line":65,"column":0},"end":{"line":65,"column":34}},"18":{"start":{"line":67,"column":0},"end":{"line":67,"column":30}}},"branchMap":{"1":{"line":32,"type":"cond-expr","locations":[{"start":{"line":32,"column":42},"end":{"line":32,"column":43}},{"start":{"line":32,"column":46},"end":{"line":32,"column":47}}]},"2":{"line":34,"type":"cond-expr","locations":[{"start":{"line":34,"column":43},"end":{"line":34,"column":62}},{"start":{"line":34,"column":65},"end":{"line":34,"column":69}}]},"3":{"line":38,"type":"cond-expr","locations":[{"start":{"line":38,"column":36},"end":{"line":38,"column":52}},{"start":{"line":38,"column":55},"end":{"line":38,"column":57}}]},"4":{"line":42,"type":"cond-expr","locations":[{"start":{"line":42,"column":42},"end":{"line":42,"column":52}},{"start":{"line":42,"column":55},"end":{"line":42,"column":59}}]},"5":{"line":48,"type":"binary-expr","locations":[{"start":{"line":48,"column":34},"end":{"line":48,"column":45}},{"start":{"line":48,"column":49},"end":{"line":48,"column":53}}]}},"code":["(function () { YUI.add('event-hover', function (Y, NAME) {","","/**"," * Adds support for a \"hover\" event.  The event provides a convenience wrapper"," * for subscribing separately to mouseenter and mouseleave.  The signature for"," * subscribing to the event is</p>"," *"," * <pre><code>node.on(\"hover\", overFn, outFn);"," * node.delegate(\"hover\", overFn, outFn, \".filterSelector\");"," * Y.on(\"hover\", overFn, outFn, \".targetSelector\");"," * Y.delegate(\"hover\", overFn, outFn, \"#container\", \".filterSelector\");"," * </code></pre>"," *"," * <p>Additionally, for compatibility with a more typical subscription"," * signature, the following are also supported:</p>"," *"," * <pre><code>Y.on(\"hover\", overFn, \".targetSelector\", outFn);"," * Y.delegate(\"hover\", overFn, \"#container\", outFn, \".filterSelector\");"," * </code></pre>"," *"," * @module event"," * @submodule event-hover"," */","var isFunction = Y.Lang.isFunction,","    noop = function () {},","    conf = {","        processArgs: function (args) {","            // Y.delegate('hover', over, out, '#container', '.filter')","            // comes in as ['hover', over, out, '#container', '.filter'], but","            // node.delegate('hover', over, out, '.filter')","            // comes in as ['hover', over, containerEl, out, '.filter']","            var i = isFunction(args[2]) ? 2 : 3;","","            return (isFunction(args[i])) ? args.splice(i,1)[0] : noop;","        },","","        on: function (node, sub, notifier, filter) {","            var args = (sub.args) ? sub.args.slice() : [];","","            args.unshift(null);","","            sub._detach = node[(filter) ? \"delegate\" : \"on\"]({","                mouseenter: function (e) {","                    e.phase = 'over';","                    notifier.fire(e);","                },","                mouseleave: function (e) {","                    var thisObj = sub.context || this;","","                    args[0] = e;","","                    e.type = 'hover';","                    e.phase = 'out';","                    sub._extra.apply(thisObj, args);","                }","            }, filter);","        },","","        detach: function (node, sub, notifier) {","            sub._detach.detach();","        }","    };","","conf.delegate = conf.on;","conf.detachDelegate = conf.detach;","","Y.Event.define(\"hover\", conf);","","","}, '3.10.3', {\"requires\": [\"event-mouseenter\"]});","","}());"]};
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_s6cw$Mwypfrqx4fSp0nJTw = __coverage__['build/event-hover/event-hover.js'];
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    13
__cov_s6cw$Mwypfrqx4fSp0nJTw.s['1']++;YUI.add('event-hover',function(Y,NAME){__cov_s6cw$Mwypfrqx4fSp0nJTw.f['1']++;__cov_s6cw$Mwypfrqx4fSp0nJTw.s['2']++;var isFunction=Y.Lang.isFunction,noop=function(){__cov_s6cw$Mwypfrqx4fSp0nJTw.f['2']++;},conf={processArgs:function(args){__cov_s6cw$Mwypfrqx4fSp0nJTw.f['3']++;__cov_s6cw$Mwypfrqx4fSp0nJTw.s['3']++;var i=isFunction(args[2])?(__cov_s6cw$Mwypfrqx4fSp0nJTw.b['1'][0]++,2):(__cov_s6cw$Mwypfrqx4fSp0nJTw.b['1'][1]++,3);__cov_s6cw$Mwypfrqx4fSp0nJTw.s['4']++;return isFunction(args[i])?(__cov_s6cw$Mwypfrqx4fSp0nJTw.b['2'][0]++,args.splice(i,1)[0]):(__cov_s6cw$Mwypfrqx4fSp0nJTw.b['2'][1]++,noop);},on:function(node,sub,notifier,filter){__cov_s6cw$Mwypfrqx4fSp0nJTw.f['4']++;__cov_s6cw$Mwypfrqx4fSp0nJTw.s['5']++;var args=sub.args?(__cov_s6cw$Mwypfrqx4fSp0nJTw.b['3'][0]++,sub.args.slice()):(__cov_s6cw$Mwypfrqx4fSp0nJTw.b['3'][1]++,[]);__cov_s6cw$Mwypfrqx4fSp0nJTw.s['6']++;args.unshift(null);__cov_s6cw$Mwypfrqx4fSp0nJTw.s['7']++;sub._detach=node[filter?(__cov_s6cw$Mwypfrqx4fSp0nJTw.b['4'][0]++,'delegate'):(__cov_s6cw$Mwypfrqx4fSp0nJTw.b['4'][1]++,'on')]({mouseenter:function(e){__cov_s6cw$Mwypfrqx4fSp0nJTw.f['5']++;__cov_s6cw$Mwypfrqx4fSp0nJTw.s['8']++;e.phase='over';__cov_s6cw$Mwypfrqx4fSp0nJTw.s['9']++;notifier.fire(e);},mouseleave:function(e){__cov_s6cw$Mwypfrqx4fSp0nJTw.f['6']++;__cov_s6cw$Mwypfrqx4fSp0nJTw.s['10']++;var thisObj=(__cov_s6cw$Mwypfrqx4fSp0nJTw.b['5'][0]++,sub.context)||(__cov_s6cw$Mwypfrqx4fSp0nJTw.b['5'][1]++,this);__cov_s6cw$Mwypfrqx4fSp0nJTw.s['11']++;args[0]=e;__cov_s6cw$Mwypfrqx4fSp0nJTw.s['12']++;e.type='hover';__cov_s6cw$Mwypfrqx4fSp0nJTw.s['13']++;e.phase='out';__cov_s6cw$Mwypfrqx4fSp0nJTw.s['14']++;sub._extra.apply(thisObj,args);}},filter);},detach:function(node,sub,notifier){__cov_s6cw$Mwypfrqx4fSp0nJTw.f['7']++;__cov_s6cw$Mwypfrqx4fSp0nJTw.s['15']++;sub._detach.detach();}};__cov_s6cw$Mwypfrqx4fSp0nJTw.s['16']++;conf.delegate=conf.on;__cov_s6cw$Mwypfrqx4fSp0nJTw.s['17']++;conf.detachDelegate=conf.detach;__cov_s6cw$Mwypfrqx4fSp0nJTw.s['18']++;Y.Event.define('hover',conf);},'3.10.3',{'requires':['event-mouseenter']});