diff --git a/.npmignore b/.npmignore index 42175da65a..8b8616db32 100644 --- a/.npmignore +++ b/.npmignore @@ -1,4 +1,6 @@ src/ +build/editor/ +build/editor.js *-min.* tools/ docs/ diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b40316f3cb..0022bcb7c9 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -45,14 +45,15 @@ ### 最简用例 -当出现问题时,请精简出错代码到最简,避免和具体业务相关联,避免其他无关的代码执行 +当出现问题时,请精简出错代码到最简,避免和具体业务相关联,避免其他无关的代码执行,并提交到 jsfidder. ## 如何提交 patch ### 代码规范 -patch 代码格式请参考 [KISSY 源码规范](http://docs.kissyui.com/docs/html/tutorials/style-guide/kissy-source-style.html) +patch 代码格式请参考 [KISSY 源码规范](http://docs.kissyui.com/1.4/docs/html/tutorials/style-guide/kissy-source-style.html), +并在提交前对代码执行 jshint,确保 pass. ### 环境: Node/Ant/Java diff --git a/bin/kissy-kison.js b/bin/kissy-kison.js index 48d3f603a5..adb43d1bd9 100755 --- a/bin/kissy-kison.js +++ b/bin/kissy-kison.js @@ -7,7 +7,6 @@ var program = require('./lib/commander'); program .option('-g, --grammar ', 'Set kison grammar file') - .option('-p, --path ', 'Set generated file path') .option('-e, --encoding [encoding]', 'Set grammar file encoding', 'utf-8') .option('-w, --watch', 'Watch grammar file change') // defaults bool true @@ -16,9 +15,9 @@ program .parse(process.argv); var S = require('../build/kissy-nodejs'), + /*jshint camelcase:false*/ js_beautify = require('js-beautify').js_beautify, fs = require('fs'), - m_path = program.path, path = require('path'), grammar = path.resolve(program.grammar), encoding = program.encoding; @@ -38,13 +37,9 @@ var grammarBaseName = path.basename(grammar, '-grammar.kison'); var modulePath; -if (m_path) { - // S.log('*********** m_path:'); - m_path = path.resolve(m_path) + '/'; - modulePath = m_path + grammarBaseName + '.js'; -} else { - modulePath = path.resolve(grammar, '../' + grammarBaseName + '.js'); -} + +modulePath = path.resolve(grammar, '../' + grammarBaseName + '.js'); + // S.log('*********** modulePath:'); // S.log(modulePath); @@ -54,14 +49,20 @@ var codeTemplate = '' + ' Generated by kissy-kison.' + '*/\n' + 'KISSY.add(function(_, undefined){\n' + + '/*jshint quotmark:false, loopfunc:true, indent:false, unused:false, asi:true, boss:true*/\n' + '{code}\n' + '});'; function my_js_beautify(str) { //return str; - var opts = {"indent_size": "4", "indent_char": " ", - "preserve_newlines": true, "brace_style": "collapse", - "keep_array_indentation": false, "space_after_anon_function": true}; + var opts = { + 'indent_size': '4', + 'indent_char': ' ', + 'preserve_newlines': true, + 'brace_style': 'collapse', + 'keep_array_indentation': false, + 'space_after_anon_function': true + }; return js_beautify(str, opts); } @@ -73,7 +74,7 @@ S.use('kison', function (S, KISON) { console.info('start generate grammar module: ' + modulePath + '\n'); var start = S.now(); - + /*jshint evil:true*/ var code = new KISON.Grammar(eval(grammarContent)).genCode(kisonCfg); var moduleCode = my_js_beautify(S.substitute(codeTemplate, { diff --git a/bin/kissy-xtemplate.js b/bin/kissy-xtemplate.js index 232ff9b7f5..f705bd4b77 100755 --- a/bin/kissy-xtemplate.js +++ b/bin/kissy-xtemplate.js @@ -51,7 +51,7 @@ S.use('xtemplate/compiler', function (S, XTemplateCompiler) { var moduleCode = myJsBeautify( '/** Compiled By kissy-xtemplate */\n' + 'KISSY.add(function(S,require,exports,module){\n' + - '/*jshint quotmark: false, unused:false, indent:false*/\n' + + '/*jshint quotmark:false, loopfunc:true, indent:false, asi:true, unused:false, boss:true*/\n' + 'return ' + XTemplateCompiler.compileToStr(tplContent)) + ';\n' + '});'; fs.writeFileSync(modulePath, moduleCode, encoding); @@ -60,8 +60,8 @@ S.use('xtemplate/compiler', function (S, XTemplateCompiler) { function process(filePath) { var modulePath; - if (S.endsWith(filePath, '.xtpl.html')) { - modulePath = filePath.replace(/\.xtpl\.html$/, '-xtpl.js'); + if (S.endsWith(filePath, '.xtpl.html')||S.endsWith(filePath, '-xtpl.html')) { + modulePath = filePath.replace(/[.-]xtpl\.html$/, '-xtpl.js'); compile(filePath, modulePath); } else if (S.endsWith(filePath, '.tpl.html')) { modulePath = filePath.replace(/\.tpl\.html$/, '-tpl.js'); @@ -81,7 +81,6 @@ S.use('xtemplate/compiler', function (S, XTemplateCompiler) { if (program.watch) { var watcher = chokidar.watch(packagePath, {ignored: /^\./, persistent: true}); watcher.on('add', process).on('change', process); - watcher.close(); } else { var walk = require('walk'); //noinspection JSUnresolvedFunction diff --git a/build/anim-min.js b/build/anim-min.js index 2593e2bbd9..d7342236dc 100644 --- a/build/anim-min.js +++ b/build/anim-min.js @@ -1,7 +1,7 @@ /* -Copyright 2013, KISSY v1.50dev +Copyright 2014, KISSY v1.49.10 MIT Licensed -build time: Dec 2 15:11 +build time: May 22 12:15 */ -KISSY.add("anim",["anim/base","anim/timer","anim/transition?"],function(b,g){function a(a,e,d,f,c){if(a.node)c=a;else{"string"===typeof e?(e=b.unparam(""+e,";",":"),b.each(e,function(c,a){var d=b.trim(a);d&&(e[d]=b.trim(c));(!d||d!==a)&&delete e[a]})):e=b.clone(e);if(b.isPlainObject(d))c=b.clone(d);else if(c={complete:c},d&&(c.duration=d),f)c.easing=f;c.node=a;c.to=e}c=b.merge(k,c,{useTransition:b.config("anim/useTransition")});if(c.useTransition&&h)return"use transition anim",new h(c);"use js timer anim"; -return new i(c)}var j=g("anim/base"),i=g("anim/timer"),h=g("anim/transition?"),f=j.Utils,k={duration:1,easing:"linear"};b.each(["pause","resume"],function(b){a[b]=function(a,d){return null===d||"string"===typeof d||!1===d?f.pauseOrResumeQueue(a,d,b):f.pauseOrResumeQueue(a,void 0,b)}});a.isRunning=f.isElRunning;a.isPaused=f.isElPaused;a.stop=f.stopEl;a.Easing=i.Easing;b.Anim=a;a.Q=j.Q;return a}); +KISSY.add("anim",["anim/base","anim/timer","anim/transition?"],function(b,g){function a(a,e,d,f,c){if(a.node)c=a;else{"string"===typeof e?(e=b.unparam(""+e,";",":"),b.each(e,function(c,a){var d=b.trim(a);d&&(e[d]=b.trim(c));(!d||d!==a)&&delete e[a]})):e=b.clone(e);if(b.isPlainObject(d))c=b.clone(d);else if(c={complete:c},d&&(c.duration=d),f)c.easing=f;c.node=a;c.to=e}c=b.merge(k,c,{useTransition:b.config("anim/useTransition")});return c.useTransition&&h?new h(c):new i(c)}var j=g("anim/base"),i=g("anim/timer"), +h=g("anim/transition?"),f=j.Utils,k={duration:1,easing:"linear"};b.each(["pause","resume"],function(b){a[b]=function(a,d){return null===d||"string"===typeof d||!1===d?f.pauseOrResumeQueue(a,d,b):f.pauseOrResumeQueue(a,void 0,b)}});a.isRunning=f.isElRunning;a.isPaused=f.isElPaused;a.stop=f.stopEl;a.Easing=i.Easing;b.Anim=a;a.Q=j.Q;return a}); diff --git a/build/anim.js b/build/anim.js index 7a84bb6605..9163c292d8 100644 --- a/build/anim.js +++ b/build/anim.js @@ -1,7 +1,7 @@ /* -Copyright 2013, KISSY v1.50dev +Copyright 2014, KISSY v1.49.10 MIT Licensed -build time: Dec 2 15:11 +build time: May 22 12:15 */ /* Combined processedModules by KISSY Module Compiler: diff --git a/build/anim/base-min.js b/build/anim/base-min.js index e4a7047152..1e612d59dc 100644 --- a/build/anim/base-min.js +++ b/build/anim/base-min.js @@ -1,16 +1,16 @@ /* -Copyright 2013, KISSY v1.50dev +Copyright 2014, KISSY v1.49.10 MIT Licensed -build time: Dec 2 15:10 +build time: May 22 12:15 */ KISSY.add("anim/base/queue",["dom"],function(c,i){function h(a,b,c){var b=b||f,j,m=d.data(a,g);!m&&!c&&d.data(a,g,m={});m&&(j=m[b],!j&&!c&&(j=m[b]=[]));return j}var d=i("dom"),g=c.guid("ks-queue-"+c.now()+"-"),f=c.guid("ks-queue-"+c.now()+"-"),a;return a={queueCollectionKey:g,queue:function(a,c,d){a=h(a,c);a.push(d);return a},remove:function(e,b,d){var j=h(e,b,1);j&&(d=c.indexOf(d,j),-1c.UA.ieMode?k.zoom=1:k.display="inline-block");var q,n;n="none"===d.css(f,"display");c.each(o,function(c,b){h=c.value;if(l[h]){if("hide"===h&&n||"show"===h&&!n)return a.stop(!0),q=!1;i[b]=d.style(f,b);"toggle"===h?h=n?"show":"hide":"hide"===h?(c.value=0,i.display="none"):(c.value=d.css(f,b),d.css(f,b,0),d.show(f))}});if(!1===q)return}a.startTime=c.now();c.isEmptyObject(o)?(a.__totalTime=1E3*p,a.__waitTimeout=setTimeout(function(){a.stop(!0)}, -a.__totalTime)):(a.prepareFx(),a.doStart())},isRunning:function(){return g.isAnimRunning(this)},isPaused:function(){return g.isAnimPaused(this)},pause:function(){this.isRunning()&&(this._runTime=c.now()-this.startTime,this.__totalTime-=this._runTime,g.removeRunningAnim(this),g.savePausedAnim(this),this.__waitTimeout?clearTimeout(this.__waitTimeout):this.doStop());return this},doStop:b,doStart:b,resume:function(){var a=this;a.isPaused()&&(a.startTime=c.now()-a._runTime,g.removePausedAnim(a),g.saveRunningAnim(a), -a.__waitTimeout?a.__waitTimeout=setTimeout(function(){a.stop(!0)},a.__totalTime):(a.beforeResume(),a.doStart()));return a},beforeResume:b,run:function(){var a;a=this.config.queue;!1===a?this.runInternal():(a=f.queue(this.node,a,this),1===a.length&&this.runInternal());return this},stop:function(a){var b=this.node,e=this.config.queue;if(this.isResolved()||this.isRejected())return this;this.__waitTimeout&&(clearTimeout(this.__waitTimeout),this.__waitTimeout=0);if(!this.isRunning()&&!this.isPaused())return!1!== -e&&f.remove(b,e,this),this;this.doStop(a);g.removeRunningAnim(this);g.removePausedAnim(this);var h=this.defer;if(a){var i,a=this.config.complete;c.isEmptyObject(i=this._backupProps)||d.css(this.node,i);a&&a.call(this);h.resolve([this])}else h.reject([this]);!1!==e&&(b=f.dequeue(b,e))&&b[0]&&b[0].runInternal();return this}});h.Utils=g;h.Q=f;return h}); +KISSY.add("anim/base",["dom","./base/utils","./base/queue","promise"],function(c,i){function h(j){h.superclass.constructor.call(this);a.Defer(this);this.config=j;var b=j.node;c.isPlainObject(b)||(b=d.get(j.node));this.node=this.el=b;this._backupProps={};this._propsData={}}var d=i("dom"),g=i("./base/utils"),f=i("./base/queue"),a=i("promise"),e=d.NodeType,b=c.noop,l={toggle:1,hide:1,show:1};c.extend(h,a,{on:function(a,c){"complete"===a?this.then(c):"end"===a?this.fin(c):"step"===a&&this.progress(c); +return this},prepareFx:b,runInternal:function(){var a=this,b=a.config,f=a.node,h,i=a._backupProps,o=a._propsData,k=b.to,r=b.delay||0,p=b.duration;g.saveRunningAnim(a);c.each(k,function(a,d){c.isPlainObject(a)||(a={value:a});o[d]=c.mix({delay:r,easing:b.easing,frame:b.frame,duration:p},a)});if(f.nodeType===e.ELEMENT_NODE){if(k.width||k.height)k=f.style,c.mix(i,{overflow:k.overflow,"overflow-x":k.overflowX,"overflow-y":k.overflowY}),k.overflow="hidden","inline"===d.css(f,"display")&&"none"===d.css(f, +"float")&&(10>c.UA.ieMode?k.zoom=1:k.display="inline-block");var q,n;n="none"===d.css(f,"display");c.each(o,function(c,b){h=c.value;if(l[h]){if("hide"===h&&n||"show"===h&&!n)return a.stop(!0),q=!1;i[b]=d.style(f,b);"toggle"===h&&(h=n?"show":"hide");"hide"===h?(c.value=0,i.display="none"):(c.value=d.css(f,b),d.css(f,b,0),d.show(f))}});if(!1===q)return}a.startTime=c.now();c.isEmptyObject(o)?(a.__totalTime=1E3*p,a.__waitTimeout=setTimeout(function(){a.stop(!0)},a.__totalTime)):(a.prepareFx(),a.doStart())}, +isRunning:function(){return g.isAnimRunning(this)},isPaused:function(){return g.isAnimPaused(this)},pause:function(){this.isRunning()&&(this._runTime=c.now()-this.startTime,this.__totalTime-=this._runTime,g.removeRunningAnim(this),g.savePausedAnim(this),this.__waitTimeout?clearTimeout(this.__waitTimeout):this.doStop());return this},doStop:b,doStart:b,resume:function(){var a=this;a.isPaused()&&(a.startTime=c.now()-a._runTime,g.removePausedAnim(a),g.saveRunningAnim(a),a.__waitTimeout?a.__waitTimeout= +setTimeout(function(){a.stop(!0)},a.__totalTime):(a.beforeResume(),a.doStart()));return a},beforeResume:b,run:function(){var a;a=this.config.queue;!1===a?this.runInternal():(a=f.queue(this.node,a,this),1===a.length&&this.runInternal());return this},stop:function(a){var b=this.node,e=this.config.queue;if(this.isResolved()||this.isRejected())return this;this.__waitTimeout&&(clearTimeout(this.__waitTimeout),this.__waitTimeout=0);if(!this.isRunning()&&!this.isPaused())return!1!==e&&f.remove(b,e,this), +this;this.doStop(a);g.removeRunningAnim(this);g.removePausedAnim(this);var h=this.defer;if(a){var i,a=this.config.complete;c.isEmptyObject(i=this._backupProps)||d.css(this.node,i);a&&a.call(this);h.resolve([this])}else h.reject([this]);!1!==e&&(b=f.dequeue(b,e))&&b[0]&&b[0].runInternal();return this}});h.Utils=g;h.Q=f;return h}); diff --git a/build/anim/base.js b/build/anim/base.js index bac3fa7d9a..69997da9b2 100644 --- a/build/anim/base.js +++ b/build/anim/base.js @@ -1,7 +1,7 @@ /* -Copyright 2013, KISSY v1.50dev +Copyright 2014, KISSY v1.49.10 MIT Licensed -build time: Dec 2 15:10 +build time: May 22 12:15 */ /* Combined processedModules by KISSY Module Compiler: @@ -227,15 +227,14 @@ KISSY.add("anim/base", ["dom", "./base/utils", "./base/queue", "promise"], funct _backupProps[prop] = Dom.style(node, prop); if(val === "toggle") { val = hidden ? "show" : "hide" + } + if(val === "hide") { + _propData.value = 0; + _backupProps.display = "none" }else { - if(val === "hide") { - _propData.value = 0; - _backupProps.display = "none" - }else { - _propData.value = Dom.css(node, prop); - Dom.css(node, prop, 0); - Dom.show(node) - } + _propData.value = Dom.css(node, prop); + Dom.css(node, prop, 0); + Dom.show(node) } } return undefined diff --git a/build/anim/timer-min.js b/build/anim/timer-min.js index 8833b0b57a..d25c01b0ca 100644 --- a/build/anim/timer-min.js +++ b/build/anim/timer-min.js @@ -1,28 +1,27 @@ /* -Copyright 2013, KISSY v1.50dev +Copyright 2014, KISSY v1.49.10 MIT Licensed -build time: Dec 2 15:11 +build time: May 22 12:15 */ -KISSY.add("anim/timer/easing",[],function(){function l(a){return a}function i(a,b,h,c){var n=3*a-3*h+1,j=3*h-6*a,d=3*a,g=3*b-3*c+1,m=3*c-6*b,e=3*b;return function(a){a:{for(var b=a,c,h,k=0;8>k;k++){h=((n*b+j)*b+d)*b-a;if(o(h)k;){h=((n*b+j)*b+d)*b-a;if(o(h)(a*=2)?0.5*a*a:0.5*(1- --a*(a-2))},easeInStrong:function(a){return a*a*a*a},easeOutStrong:function(a){return 1- --a*a*a*a},easeBothStrong:function(a){return 1> -(a*=2)?0.5*a*a*a*a:0.5*(2-(a-=2)*a*a*a)},elasticIn:function(a){return 0===a||1===a?a:-(g(2,10*(a-=1))*b(2*(a-0.075)*f/0.3))},elasticOut:function(a){return 0===a||1===a?a:g(2,-10*a)*b(2*(a-0.075)*f/0.3)+1},elasticBoth:function(a){return 0===a||2===(a*=2)?a:1>a?-0.5*g(2,10*(a-=1))*b(2*(a-0.1125)*f/0.45):0.5*g(2,-10*(a-=1))*b(2*(a-0.1125)*f/0.45)+1},backIn:function(a){1===a&&(a-=0.001);return a*a*(2.70158*a-1.70158)},backOut:function(a){return(a-=1)*a*(2.70158*a+1.70158)+1},backBoth:function(a){var b, -h=(b=2.5949095)+1;return 1>(a*=2)?0.5*a*a*(h*a-b):0.5*((a-=2)*a*(h*a+b)+2)},bounceIn:function(a){return 1-e.bounceOut(1-a)},bounceOut:function(a){return a<1/2.75?7.5625*a*a:a<2/2.75?7.5625*(a-=1.5/2.75)*a+0.75:a<2.5/2.75?7.5625*(a-=2.25/2.75)*a+0.9375:7.5625*(a-=2.625/2.75)*a+0.984375},bounceBoth:function(a){return 0.5>a?0.5*e.bounceIn(2*a):0.5*e.bounceOut(2*a-1)+0.5}},p=1.0E-6,o=Math.abs;return e}); -KISSY.add("anim/timer/manager",[],function(l){var i=l.stamp,f,g;f=function(b){return setTimeout(b,15)};g=function(b){clearTimeout(b)};return{runnings:{},timer:null,start:function(b){var d=i(b);this.runnings[d]||(this.runnings[d]=b,this.startTimer())},stop:function(b){this.notRun(b)},notRun:function(b){delete this.runnings[i(b)];l.isEmptyObject(this.runnings)&&this.stopTimer()},pause:function(b){this.notRun(b)},resume:function(b){this.start(b)},startTimer:function(){var b=this;b.timer||(b.timer=f(function m(){b.runFrames()? -b.stopTimer():b.timer=f(m)}))},stopTimer:function(){var b=this.timer;b&&(g(b),this.timer=0)},runFrames:function(){var b,d,g=this.runnings;for(b in g)g[b].frame();for(b in g){d=0;break}return void 0===d}}}); -KISSY.add("anim/timer/fx",["dom"],function(l,i){function f(b){l.mix(this,b);this.pos=0;this.unit=this.unit||""}var g=i("dom");f.prototype={isCustomFx:0,constructor:f,load:function(b){l.mix(this,b);this.pos=0;this.unit=this.unit||""},frame:function(b){if(1!==this.pos){var d=this.anim,f=this.prop,e=d.node,i=this.from,o=this.propData,a=this.to;if(void 0===b)var k=l.now(),b=o.duration,k=k-d.startTime-o.delay,b=0>=k?0:k>=b?1:o.easing(k/b);this.pos=b;i===a||0===b||(this.val=b=this.interpolate(i,a,this.pos), -o.frame?o.frame.call(this,d,this):this.isCustomFx||(void 0===b?(this.pos=1,b=a,f+" update directly ! : "+b+" : "+i+" : "+a):b+=this.unit,this.val=b,"attr"===this.type?g.attr(e,f,b,1):g.css(e,f,b)))}},interpolate:function(b,d,g){if("number"===typeof b&&"number"===typeof d)return Math.round(1E5*(b+(d-b)*g))/1E5},cur:function(){var b=this.prop,d,f,e=this.anim.node;if(this.isCustomFx)return e[b]||0;if(!(d=this.type))d=this.type=(!e.style||null==e.style[b])&&null!=g.attr(e,b,void 0,1)?"attr":"css";b="attr"=== -d?g.attr(e,b,void 0,1):g.css(e,b);return isNaN(f=parseFloat(b))?!b||"auto"===b?0:b:f}};f.Factories={};f.FxTypes={};f.getFx=function(b){var d=f,g,e;if(g=b.fxType)d=f.FxTypes[g];else if(!b.isCustomFx&&(e=f.Factories[b.prop]))d=e;return new d(b)};return f}); +KISSY.add("anim/timer/easing",[],function(){function j(a){return a}function e(a,b,n,f){var d=3*a-3*n+1,c=3*n-6*a,h=3*a,l=3*b-3*f+1,i=3*f-6*b,j=3*b;return function(a){a:{for(var b=a,f,n,k=0;8>k;k++){n=((d*b+c)*b+h)*b-a;if(m(n)k;){n=((d*b+c)*b+h)*b-a;if(m(n)(a*=2)?0.5*a*a:0.5*(1- --a*(a-2))},easeInStrong:function(a){return a*a*a*a},easeOutStrong:function(a){return 1- --a*a*a*a},easeBothStrong:function(a){return 1> +(a*=2)?0.5*a*a*a*a:0.5*(2-(a-=2)*a*a*a)},elasticIn:function(a){return 0===a||1===a?a:-(h(2,10*(a-=1))*b(2*(a-0.075)*g/0.3))},elasticOut:function(a){return 0===a||1===a?a:h(2,-10*a)*b(2*(a-0.075)*g/0.3)+1},elasticBoth:function(a){return 0===a||2===(a*=2)?a:1>a?-0.5*h(2,10*(a-=1))*b(2*(a-0.1125)*g/0.45):0.5*h(2,-10*(a-=1))*b(2*(a-0.1125)*g/0.45)+1},backIn:function(a){1===a&&(a-=0.001);return a*a*(2.70158*a-1.70158)},backOut:function(a){return(a-=1)*a*(2.70158*a+1.70158)+1},backBoth:function(a){var b, +n=(b=2.5949095)+1;return 1>(a*=2)?0.5*a*a*(n*a-b):0.5*((a-=2)*a*(n*a+b)+2)},bounceIn:function(a){return 1-i.bounceOut(1-a)},bounceOut:function(a){return a<1/2.75?7.5625*a*a:a<2/2.75?7.5625*(a-=1.5/2.75)*a+0.75:a<2.5/2.75?7.5625*(a-=2.25/2.75)*a+0.9375:7.5625*(a-=2.625/2.75)*a+0.984375},bounceBoth:function(a){return 0.5>a?0.5*i.bounceIn(2*a):0.5*i.bounceOut(2*a-1)+0.5}},o=1.0E-6,m=Math.abs;return i}); +KISSY.add("anim/timer/manager",[],function(j){var e=j.stamp,g,h;g=function(b){return setTimeout(b,15)};h=function(b){clearTimeout(b)};return{runnings:{},timer:null,start:function(b){var c=e(b);this.runnings[c]||(this.runnings[c]=b,this.startTimer())},stop:function(b){this.notRun(b)},notRun:function(b){delete this.runnings[e(b)];j.isEmptyObject(this.runnings)&&this.stopTimer()},pause:function(b){this.notRun(b)},resume:function(b){this.start(b)},startTimer:function(){var b=this;b.timer||(b.timer=g(function l(){b.runFrames()? +b.stopTimer():b.timer=g(l)}))},stopTimer:function(){var b=this.timer;b&&(h(b),this.timer=0)},runFrames:function(){var b,c,h=this.runnings;for(b in h)h[b].frame();for(b in h){c=0;break}return void 0===c}}}); +KISSY.add("anim/timer/fx",["dom"],function(j,e){function g(b){j.mix(this,b);this.pos=0;this.unit=this.unit||""}var h=e("dom");g.prototype={isCustomFx:0,constructor:g,load:function(b){j.mix(this,b);this.pos=0;this.unit=this.unit||""},frame:function(b){if(1!==this.pos){var c=this.anim,g=this.prop,i=c.node,e=this.from,m=this.propData,a=this.to;if(void 0===b)var k=j.now(),b=m.duration,k=k-c.startTime-m.delay,b=0>=k?0:k>=b?1:m.easing(k/b);this.pos=b;e===a||0===b||(this.val=e=this.interpolate(e,a,this.pos), +m.frame?m.frame.call(this,c,this):this.isCustomFx||(void 0===e?(this.pos=1,e=a):e+=this.unit,this.val=e,"attr"===this.type?h.attr(i,g,e,1):h.css(i,g,e)))}},interpolate:function(b,c,h){if("number"===typeof b&&"number"===typeof c)return Math.round(1E5*(b+(c-b)*h))/1E5},cur:function(){var b=this.prop,c,e,g=this.anim.node;if(this.isCustomFx)return g[b]||0;if(!(c=this.type))c=this.type=(!g.style||null==g.style[b])&&null!=h.attr(g,b,void 0,1)?"attr":"css";b="attr"===c?h.attr(g,b,void 0,1):h.css(g,b);return isNaN(e= +parseFloat(b))?!b||"auto"===b?0:b:e}};g.Factories={};g.FxTypes={};g.getFx=function(b){var c=g,h,e;if(h=b.fxType)c=g.FxTypes[h];else if(!b.isCustomFx&&(e=g.Factories[b.prop]))c=e;return new c(b)};return g}); KISSY.add("anim/timer/short-hand",[],function(){return{background:[],border:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],borderBottom:["borderBottomWidth"],borderLeft:["borderLeftWidth"],borderTop:["borderTopWidth"],borderRight:["borderRightWidth"],font:["fontSize","fontWeight"],margin:["marginBottom","marginLeft","marginRight","marginTop"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"]}}); -KISSY.add("anim/timer/color",["./fx","./short-hand"],function(l,i){function f(b){var b=b+"",c;if(c=b.match(o))return[parseInt(c[1]),parseInt(c[2]),parseInt(c[3])];if(c=b.match(a))return[parseInt(c[1]),parseInt(c[2]),parseInt(c[3]),parseInt(c[4])];if(c=b.match(k)){for(b=1;bc[b].length&&(c[b]+=c[b]);return[parseInt(c[1],m),parseInt(c[2],m),parseInt(c[3],m)]}if(p[b=b.toLowerCase()])return p[b];"only allow rgb or hex color string : "+b;return[255,255,255]}function g(){g.superclass.constructor.apply(this, -arguments)}var b=i("./fx"),d=i("./short-hand"),m=16,e=Math.floor,p={black:[0,0,0],silver:[192,192,192],gray:[128,128,128],white:[255,255,255],maroon:[128,0,0],red:[255,0,0],purple:[128,0,128],fuchsia:[255,0,255],green:[0,128,0],lime:[0,255,0],olive:[128,128,0],yellow:[255,255,0],navy:[0,0,128],blue:[0,0,255],teal:[0,128,128],aqua:[0,255,255]},o=/^rgb\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\)$/i,a=/^rgba\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+),\s*([0-9]+)\)$/i,k=/^#?([0-9A-F]{1,2})([0-9A-F]{1,2})([0-9A-F]{1,2})$/i; -d.background.push("backgroundColor");d.borderColor=["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"];d.border.push("borderBottomColor","borderLeftColor","borderRightColor","borderTopColor");d.borderBottom.push("borderBottomColor");d.borderLeft.push("borderLeftColor");d.borderRight.push("borderRightColor");d.borderTop.push("borderTopColor");l.extend(g,b,{load:function(){g.superclass.load.apply(this,arguments);this.from&&(this.from=f(this.from));this.to&&(this.to=f(this.to))}, -interpolate:function(a,b,k){var d=g.superclass.interpolate;if(3===a.length&&3===b.length)return"rgb("+[e(d(a[0],b[0],k)),e(d(a[1],b[1],k)),e(d(a[2],b[2],k))].join(", ")+")";if(4===a.length||4===b.length)return"rgba("+[e(d(a[0],b[0],k)),e(d(a[1],b[1],k)),e(d(a[2],b[2],k)),e(d(a[3]||1,b[3]||1,k))].join(", ")+")";"unknown value : "+a}});l.each("backgroundColor,borderBottomColor,borderLeftColor,borderRightColor,borderTopColor,color,outlineColor".split(","),function(a){b.Factories[a]=g});return b.FxTypes.color= -g}); -KISSY.add("anim/timer/transform",["dom","./fx"],function(l,i){function f(d){d=d.split(/,/);return d=l.map(d,function(a){return b(a)})}function g(){return{translateX:0,translateY:0,rotate:0,skewX:0,skewY:0,scaleX:1,scaleY:1}}function b(b){return Math.round(1E5*parseFloat(b))/1E5}function d(d){for(var d=d.split(")"),a=l.trim,k=-1,h=d.length-1,c,n,j=g();++kf[b].length&&(f[b]+=f[b]);return[parseInt(f[1],l),parseInt(f[2],l),parseInt(f[3],l)]}return o[b=b.toLowerCase()]?o[b]:[255,255,255]}function h(){h.superclass.constructor.apply(this,arguments)}var b=e("./fx"),c=e("./short-hand"), +l=16,i=Math.floor,o={black:[0,0,0],silver:[192,192,192],gray:[128,128,128],white:[255,255,255],maroon:[128,0,0],red:[255,0,0],purple:[128,0,128],fuchsia:[255,0,255],green:[0,128,0],lime:[0,255,0],olive:[128,128,0],yellow:[255,255,0],navy:[0,0,128],blue:[0,0,255],teal:[0,128,128],aqua:[0,255,255]},m=/^rgb\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\)$/i,a=/^rgba\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+),\s*([0-9]+)\)$/i,k=/^#?([0-9A-F]{1,2})([0-9A-F]{1,2})([0-9A-F]{1,2})$/i;c.background.push("backgroundColor"); +c.borderColor=["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"];c.border.push("borderBottomColor","borderLeftColor","borderRightColor","borderTopColor");c.borderBottom.push("borderBottomColor");c.borderLeft.push("borderLeftColor");c.borderRight.push("borderRightColor");c.borderTop.push("borderTopColor");j.extend(h,b,{load:function(){h.superclass.load.apply(this,arguments);this.from&&(this.from=g(this.from));this.to&&(this.to=g(this.to))},interpolate:function(a,b,d){var k= +h.superclass.interpolate;if(3===a.length&&3===b.length)return"rgb("+[i(k(a[0],b[0],d)),i(k(a[1],b[1],d)),i(k(a[2],b[2],d))].join(", ")+")";if(4===a.length||4===b.length)return"rgba("+[i(k(a[0],b[0],d)),i(k(a[1],b[1],d)),i(k(a[2],b[2],d)),i(k(a[3]||1,b[3]||1,d))].join(", ")+")"}});j.each("backgroundColor,borderBottomColor,borderLeftColor,borderRightColor,borderTopColor,color,outlineColor".split(","),function(a){b.Factories[a]=h});return b.FxTypes.color=h}); +KISSY.add("anim/timer/transform",["dom","./fx"],function(j,e){function g(a){a=a.split(/,/);return a=j.map(a,function(a){return b(a)})}function h(){return{translateX:0,translateY:0,rotate:0,skewX:0,skewY:0,scaleX:1,scaleY:1}}function b(a){return Math.round(1E5*parseFloat(a))/1E5}function c(a){for(var a=a.split(")"),k=j.trim,n=-1,f=a.length-1,d,e,c=h();++n= -e?a.delay-=e:(e-=a.delay,a.delay=0,a.duration>=e?a.duration-=e:delete c[b])})},_onTransitionEnd:function(c){var c=c.originalEvent,b=1,d=this._propsData;d[c.propertyName]&&(d[c.propertyName].pos=1,g.each(d,function(a){if(1!==a.pos)return b=0,!1}),b&&this.stop(!0))},doStop:function(c){var b=this.node,d=b.style,a=this._propsData,f=[],e={};m.detach(b,o,this._onTransitionEnd,this);g.each(a,function(a,d){c||(e[d]=i.css(b,d));f.push(d)});a=g.trim(d[j].replace(RegExp("(^|,)\\s*(?:"+f.join("|")+")\\s+[^,]+", -"gi"),"$1")).replace(/^,|,,|,$/g,"")||"none";d[j]=a;i.css(b,e)}});return k}); +KISSY.add("anim/transition",["dom","./base"],function(k,n,x,q){function r(a,c){return c.toUpperCase()}function o(a){-1!==a.indexOf("-")&&(a=a.replace(s,r));if(a in g)return g[a];if(!m||a in m)g[a]={propertyName:a,propertyNamePrefix:""};else{for(var c=a.charAt(0).toUpperCase()+a.slice(1),d,b=0;b=f?b.delay-=f:(f-=b.delay,b.delay=0,b.duration>=f?b.duration-=f:delete a[c])})},doStop:function(a){var c=this.node,d=c.style,b=this._propsData,e=[],f={};this._transitionEndTimer&&(clearTimeout(this._transitionEndTimer),this._transitionEndTimer=null);h.each(b,function(b,d){a||(f[d]=j.css(c,d));e.push(d)});b=h.trim(d[l].replace(RegExp("(^|,)\\s*(?:"+e.join("|")+")\\s+[^,]+", +"gi"),"$1")).replace(/^,|,,|,$/g,"")||"none";d[l]=b;j.css(c,f)}});h.mix(i,k.Statics);q.exports=i}); diff --git a/build/anim/transition.js b/build/anim/transition.js index e374927340..f97c16a677 100644 --- a/build/anim/transition.js +++ b/build/anim/transition.js @@ -1,7 +1,7 @@ /* -Copyright 2013, KISSY v1.50dev +Copyright 2014, KISSY v1.49.10 MIT Licensed -build time: Dec 2 15:11 +build time: Aug 18 16:35 */ /* Combined processedModules by KISSY Module Compiler: @@ -9,18 +9,46 @@ build time: Dec 2 15:11 anim/transition */ -KISSY.add("anim/transition", ["dom", "event/dom", "./base"], function(S, require) { +KISSY.add("anim/transition", ["dom", "./base"], function(S, require, exports, module) { + function upperCase() { + return arguments[1].toUpperCase() + } + var RE_DASH = /-([a-z])/ig; + var propertyPrefixes = ["Webkit", "Moz", "O", "ms"], propertyPrefixesLength = propertyPrefixes.length; + var vendorInfos = {}; + var documentElementStyle = document.documentElement.style; + function getVendorInfo(name) { + if(name.indexOf("-") !== -1) { + name = name.replace(RE_DASH, upperCase) + } + if(name in vendorInfos) { + return vendorInfos[name] + } + if(!documentElementStyle || name in documentElementStyle) { + vendorInfos[name] = {propertyName:name, propertyNamePrefix:""} + }else { + var upperFirstName = name.charAt(0).toUpperCase() + name.slice(1), vendorName; + for(var i = 0;i < propertyPrefixesLength;i++) { + var propertyNamePrefix = propertyPrefixes[i]; + vendorName = propertyNamePrefix + upperFirstName; + if(vendorName in documentElementStyle) { + vendorInfos[name] = {propertyName:vendorName, propertyNamePrefix:propertyNamePrefix} + } + } + vendorInfos[name] = vendorInfos[name] || null + } + return vendorInfos[name] + } + var util = S; var Dom = require("dom"); - var Event = require("event/dom"); var AnimBase = require("./base"); - var Features = S.Features; - var vendorPrefix = Features.getTransitionPrefix(); - var R_UPPER = /([A-Z]|^ms)/g; - var TRANSITION_END_EVENT = vendorPrefix ? vendorPrefix.toLowerCase() + "TransitionEnd" : "transitionend"; - var TRANSITION = Features.getTransitionProperty(); + var transitionVendorInfo = getVendorInfo("transition"); + var TRANSITION = transitionVendorInfo.propertyName; + var DEFAULT_EASING = "linear"; + var css3Anim = {ease:1, linear:1, "ease-in":1, "ease-out":1, "ease-in-out":1}; function genTransition(propsData) { var str = ""; - S.each(propsData, function(propData, prop) { + util.each(propsData, function(propData, prop) { if(str) { str += "," } @@ -28,26 +56,47 @@ KISSY.add("anim/transition", ["dom", "event/dom", "./base"], function(S, require }); return str } - function TransitionAnim() { - TransitionAnim.superclass.constructor.apply(this, arguments) + function unCamelCase(propertyName) { + return propertyName.replace(/[A-Z]/g, function(m) { + return"-" + m.toLowerCase() + }) } - S.extend(TransitionAnim, AnimBase, {doStart:function() { - var self = this, node = self.node, elStyle = node.style, _propsData = self._propsData, original = elStyle[TRANSITION], transform, propsCss = {}; - if(transform = _propsData.transform) { - delete _propsData.transform; - _propsData[Features.getTransformProperty().replace(R_UPPER, "-$1").toLowerCase()] = transform + function TransitionAnim(node, to, duration, easing, complete) { + var self = this; + if(!(self instanceof TransitionAnim)) { + return new TransitionAnim(node, to, duration, easing, complete) } - S.each(_propsData, function(propData, prop) { - var v = propData.value, currentValue = Dom.css(node, prop); - if(typeof v === "number") { - currentValue = parseFloat(currentValue) + TransitionAnim.superclass.constructor.apply(self, arguments) + } + util.extend(TransitionAnim, AnimBase, {prepareFx:function() { + var self = this, propsData = self._propsData; + var newProps = {}; + var val; + var vendorInfo; + for(var propertyName in propsData) { + val = propsData[propertyName]; + if(typeof val.easing === "string") { + if(!util.startsWith(val.easing, "cubic-bezier") && !css3Anim[val.easing]) { + val.easing = DEFAULT_EASING + } + }else { + val.easing = DEFAULT_EASING } - if(currentValue === v) { - setTimeout(function() { - self._onTransitionEnd({originalEvent:{propertyName:prop}}) - }, 0) + vendorInfo = getVendorInfo(propertyName); + if(!vendorInfo) { + S.log("unsupported css property for transition anim: " + propertyName, "error"); + continue } - propsCss[prop] = v + newProps[unCamelCase(vendorInfo.propertyName)] = propsData[propertyName] + } + self._propsData = newProps + }, doStart:function() { + var self = this, node = self.node, elStyle = node.style, _propsData = self._propsData, original = elStyle[TRANSITION], totalDuration = 0, propsCss = {}; + util.each(_propsData, function(propData, prop) { + var v = propData.value; + Dom.css(node, prop, Dom.css(node, prop)); + propsCss[prop] = v; + totalDuration = Math.max(propData.duration + propData.delay, totalDuration) }); if(original.indexOf("none") !== -1) { original = "" @@ -57,11 +106,15 @@ KISSY.add("anim/transition", ["dom", "event/dom", "./base"], function(S, require } } elStyle[TRANSITION] = original + genTransition(_propsData); - Event.on(node, TRANSITION_END_EVENT, self._onTransitionEnd, self); - Dom.css(node, propsCss) + setTimeout(function() { + Dom.css(node, propsCss) + }, 0); + self._transitionEndTimer = setTimeout(function() { + self.stop(true) + }, totalDuration * 1E3) }, beforeResume:function() { - var self = this, propsData = self._propsData, tmpPropsData = S.merge(propsData), runTime = self._runTime / 1E3; - S.each(tmpPropsData, function(propData, prop) { + var self = this, propsData = self._propsData, tmpPropsData = util.merge(propsData), runTime = self._runTime / 1E3; + util.each(tmpPropsData, function(propData, prop) { var tRunTime = runTime; if(propData.delay >= tRunTime) { propData.delay -= tRunTime @@ -75,36 +128,23 @@ KISSY.add("anim/transition", ["dom", "event/dom", "./base"], function(S, require } } }) - }, _onTransitionEnd:function(e) { - e = e.originalEvent; - var self = this, allCompleted = 1, propsData = self._propsData; - if(!propsData[e.propertyName]) { - return - } - propsData[e.propertyName].pos = 1; - S.each(propsData, function(propData) { - if(propData.pos !== 1) { - allCompleted = 0; - return false - } - return undefined - }); - if(allCompleted) { - self.stop(true) - } }, doStop:function(finish) { var self = this, node = self.node, elStyle = node.style, _propsData = self._propsData, propList = [], clear, propsCss = {}; - Event.detach(node, TRANSITION_END_EVENT, self._onTransitionEnd, self); - S.each(_propsData, function(propData, prop) { + if(self._transitionEndTimer) { + clearTimeout(self._transitionEndTimer); + self._transitionEndTimer = null + } + util.each(_propsData, function(propData, prop) { if(!finish) { propsCss[prop] = Dom.css(node, prop) } propList.push(prop) }); - clear = S.trim(elStyle[TRANSITION].replace(new RegExp("(^|,)" + "\\s*(?:" + propList.join("|") + ")\\s+[^,]+", "gi"), "$1")).replace(/^,|,,|,$/g, "") || "none"; + clear = util.trim(elStyle[TRANSITION].replace(new RegExp("(^|,)" + "\\s*(?:" + propList.join("|") + ")\\s+[^,]+", "gi"), "$1")).replace(/^,|,,|,$/g, "") || "none"; elStyle[TRANSITION] = clear; Dom.css(node, propsCss) }}); - return TransitionAnim + util.mix(TransitionAnim, AnimBase.Statics); + module.exports = TransitionAnim }); diff --git a/build/attribute-min.js b/build/attribute-min.js index 2e136acbc2..dd0ee093d4 100644 --- a/build/attribute-min.js +++ b/build/attribute-min.js @@ -1,7 +1,7 @@ /* -Copyright 2013, KISSY v1.50dev +Copyright 2014, KISSY v1.49.10 MIT Licensed -build time: Dec 2 15:11 +build time: May 22 12:15 */ KISSY.add("attribute",["event/custom"],function(g,p,F,C){function n(d,a){return"string"===typeof a?d[a]:a}function o(d){return d.__attrVals||(d.__attrVals={})}function q(d,a,c,b,e,f,h,i){h=h||c;return d.fire(a+g.ucfirst(c)+"Change",g.mix({attrName:h,subAttrName:f,prevVal:b,newVal:e},i))}function k(d,a,c){var b=d[a];!c&&!b&&(d[a]=b={});return b||{}}function t(d,a){for(var c=0,b=a.length;void 0!==d&&c\n
\n\n\n',b={},d= -[],j=c(f,e,{},"hasTrigger",0,6,h,!0);d.push(j);b.params=d;b.fn=function(b){var d;d='\n
\n
\n
\n'};a+=k(f,e,b,"if",6);a+='\n\n
\n\n \n\n\n \n
\n"}}); -KISSY.add("combobox/render",["component/control","./combobox-xtpl"],function(e,a){var h=a("component/control"),f=a("./combobox-xtpl");return h.getDefaultRender().extend({beforeCreateDom:function(a,f){e.mix(f,{input:"#ks-combobox-input-{id}",trigger:"#ks-combobox-trigger-{id}",invalidEl:"#ks-combobox-invalid-el-{id}",placeholderEl:"#ks-combobox-placeholder-{id}"})},getKeyEventTarget:function(){return this.control.get("input")},_onSetCollapsed:function(a){this.control.get("input").attr("aria-expanded", -!a)},_onSetDisabled:function(a,f){this.callSuper(a,f);this.control.get("input").attr("disabled",a)}},{ATTRS:{contentTpl:{value:f}},HTML_PARSER:{value:function(a){return a.one("."+this.getBaseCssClass("input")).val()},input:function(a){return a.one("."+this.getBaseCssClass("input"))},trigger:function(a){return a.one("."+this.getBaseCssClass("trigger"))},invalidEl:function(a){return a.one("."+this.getBaseCssClass("invalid-el"))},placeholderEl:function(a){return a.one("."+this.getBaseCssClass("placeholder"))}}})}); -KISSY.add("combobox/control",["node","component/control","./render","menu"],function(e,a){function h(o){for(var a=0;a',g,c="paddingLeft,paddingTop,paddingBottom,paddingRight,marginLeft,marginTop,marginBottom,marginRight,borderLeftStyle,borderTopStyle,borderBottomStyle,borderRightStyle,borderLeftWidth,borderTopWidth,borderBottomWidth,borderRightWidth,line-height,outline,height,fontFamily,fontSize,fontWeight,fontVariant,fontStyle".split(",");return function(a){var d= -f(a),a=d[0],c=a.ownerDocument,g=f(c),l=a.scrollTop,i=a.scrollLeft;if(c.selection)return a=c.selection.createRange(),{left:a.boundingLeft+i+g.scrollLeft(),top:a.boundingTop+l+a.boundingHeight+g.scrollTop()};g=d.offset();if("textarea"!==a.type)return g.top+=a.offsetHeight,g;c=h(d);d=a.selectionStart;c.html(e.escapeHtml(a.value.substring(0,d-1))+"x");c.offset(g);g=c.last();a=g.offset();a.top+=g.height();0\n
\n
\n
\n'};a+=j(d,f,c,"if",6);a+='\n\n
\n\n \n\n\n \n
\n"}}); +KISSY.add("combobox/render",["component/control","./combobox-xtpl"],function(f,a){var d=a("component/control"),j=a("./combobox-xtpl");return d.getDefaultRender().extend({beforeCreateDom:function(a,d){f.mix(d,{input:"#ks-combobox-input-{id}",trigger:"#ks-combobox-trigger-{id}",invalidEl:"#ks-combobox-invalid-el-{id}",placeholderEl:"#ks-combobox-placeholder-{id}"})},getKeyEventTarget:function(){return this.control.get("input")},_onSetCollapsed:function(a){this.control.get("input").attr("aria-expanded", +!a)},_onSetDisabled:function(a,d){this.callSuper(a,d);this.control.get("input").attr("disabled",a)}},{ATTRS:{contentTpl:{value:j}},HTML_PARSER:{value:function(a){return a.one("."+this.getBaseCssClass("input")).val()},input:function(a){return a.one("."+this.getBaseCssClass("input"))},trigger:function(a){return a.one("."+this.getBaseCssClass("trigger"))},invalidEl:function(a){return a.one("."+this.getBaseCssClass("invalid-el"))},placeholderEl:function(a){return a.one("."+this.getBaseCssClass("placeholder"))}}})}); +KISSY.add("combobox/control",["node","component/control","./render","menu"],function(f,a){function d(a){for(var c=0;c',g,h="paddingLeft,paddingTop,paddingBottom,paddingRight,marginLeft,marginTop,marginBottom,marginRight,borderLeftStyle,borderTopStyle,borderBottomStyle,borderRightStyle,borderLeftWidth,borderTopWidth,borderBottomWidth,borderRightWidth,line-height,outline,height,fontFamily,fontSize,fontWeight,fontVariant,fontStyle".split(","); +return function(a){var c=j(a),a=c[0],b=a.ownerDocument,g=j(b),h=a.scrollTop,i=a.scrollLeft;if(b.selection)return a=b.selection.createRange(),{left:a.boundingLeft+i+g.scrollLeft(),top:a.boundingTop+h+a.boundingHeight+g.scrollTop()};g=c.offset();if("textarea"!==a.type)return g.top+=a.offsetHeight,g;b=d(c);c=a.selectionStart;b.html(f.escapeHtml(a.value.substring(0,c-1))+"x");b.offset(g);g=b.last();a=g.offset();a.top+=g.height();0\n '; - var id36 = getPropertyOrRunCommandUtil(engine, scope, {}, "placeholder", 0, 37, undefined, false); - buffer += getExpressionUtil(id36, true); + var id36 = getPropertyOrRunCommandUtil(engine, scope, {}, "placeholder", 0, 37); + buffer += renderOutputUtil(id36, true); buffer += "\n \n\n"; return buffer } @@ -215,6 +215,7 @@ KISSY.add("combobox/control", ["node", "component/control", "./render", "menu"], } }, handleFocusInternal:function() { var self = this, placeholderEl; + clearDismissTimer(self); if(self.get("invalidEl")) { setInvalid(self, false) } @@ -419,6 +420,7 @@ KISSY.add("combobox/control", ["node", "component/control", "./render", "menu"], function renderData(data) { var self = this, v, children = [], val, matchVal, highlightedItem, i, menu = self.get("menu"); data = self.normalizeData(data); + menu.set("highlightedItem", null); menu.removeChildren(true); if(highlightedItem = menu.get("highlightedItem")) { highlightedItem.set("highlighted", false) diff --git a/build/combobox/assets/dpl-min.css b/build/combobox/assets/dpl-min.css index c64a7de3c7..e34b0cfd53 100644 --- a/build/combobox/assets/dpl-min.css +++ b/build/combobox/assets/dpl-min.css @@ -1,6 +1,6 @@ /* -Copyright 2013, KISSY v1.50dev +Copyright 2014, KISSY v1.49.10 MIT Licensed -build time: Dec 2 15:11 +build time: Sep 12 10:57 */ .ks-combobox{border:1px solid #ccc;border-radius:3px;display:inline-block;*display:inline;*zoom:1;*display:inline;*zoom:1;display:inline-block;*display:inline;*zoom:1;*display:inline;*zoom:1;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-webkit-transition:border linear .2s,box-shadow linear .2 s;-moz-transition:border linear .2s,box-shadow linear .2 s;-ms-transition:border linear .2s,box-shadow linear .2 s;-o-transition:border linear .2s,box-shadow linear .2 s;transition:border linear .2s,box-shadow linear .2 s;-webkit-transition:border linear .2s,box-shadow linear .2 s;-moz-transition:border linear .2s,box-shadow linear .2 s;-ms-transition:border linear .2s,box-shadow linear .2 s;-o-transition:border linear .2s,box-shadow linear .2 s;transition:border linear .2s,box-shadow linear .2 s;vertical-align:middle;position:relative}.ks-combobox-disabled{opacity:.7;filter:alpha(opacity=70);*zoom:1;opacity:.7;filter:alpha(opacity=70);*zoom:1}.ks-combobox-focused{border-color:rgba(82,168,236,0.8);*border-color:#52a8ec;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(82,168,236,0.6);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(82,168,236,0.6);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(82,168,236,0.6);-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(82,168,236,0.6);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(82,168,236,0.6);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(82,168,236,0.6)}.ks-combobox-trigger{float:right;padding:5px 9px;border-left:1px solid #ccc;background-color:#f5f5f5;background-image:-moz-linear-gradient(top,#fff,#e6e6e6);background-image:-ms-linear-gradient(top,#fff,#e6e6e6);background-image:-webkit-gradient(linear,0 0,0 100%,from(#fff),to(#e6e6e6));background-image:-webkit-linear-gradient(top,#fff,#e6e6e6);background-image:-o-linear-gradient(top,#fff,#e6e6e6);background-image:linear-gradient(top,#fff,#e6e6e6);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff',endColorstr='#e6e6e6',GradientType=0);background-color:#f5f5f5;background-image:-moz-linear-gradient(top,#fff,#e6e6e6);background-image:-ms-linear-gradient(top,#fff,#e6e6e6);background-image:-webkit-gradient(linear,0 0,0 100%,from(#fff),to(#e6e6e6));background-image:-webkit-linear-gradient(top,#fff,#e6e6e6);background-image:-o-linear-gradient(top,#fff,#e6e6e6);background-image:linear-gradient(top,#fff,#e6e6e6);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff',endColorstr='#e6e6e6',GradientType=0);border-color:#e6e6e6 #e6e6e6 #bfbfbf;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);background-color:#f5f5f5;background-image:-moz-linear-gradient(top,#fff,#e6e6e6);background-image:-ms-linear-gradient(top,#fff,#e6e6e6);background-image:-webkit-gradient(linear,0 0,0 100%,from(#fff),to(#e6e6e6));background-image:-webkit-linear-gradient(top,#fff,#e6e6e6);background-image:-o-linear-gradient(top,#fff,#e6e6e6);background-image:linear-gradient(top,#fff,#e6e6e6);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff',endColorstr='#e6e6e6',GradientType=0);background-color:#f5f5f5;background-image:-moz-linear-gradient(top,#fff,#e6e6e6);background-image:-ms-linear-gradient(top,#fff,#e6e6e6);background-image:-webkit-gradient(linear,0 0,0 100%,from(#fff),to(#e6e6e6));background-image:-webkit-linear-gradient(top,#fff,#e6e6e6);background-image:-o-linear-gradient(top,#fff,#e6e6e6);background-image:linear-gradient(top,#fff,#e6e6e6);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff',endColorstr='#e6e6e6',GradientType=0);border-color:#e6e6e6 #e6e6e6 #bfbfbf;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);filter:progid:DXImageTransform.Microsoft.gradient(enabled = false);filter:progid:DXImageTransform.Microsoft.gradient(enabled = false);color:#000}.ks-combobox-trigger.ks-button-hover,.ks-combobox-trigger:hover{color:#000;background-position:0 -15px;-webkit-transition:background-position .1s linear;-moz-transition:background-position .1s linear;-ms-transition:background-position .1s linear;-o-transition:background-position .1s linear;transition:background-position .1s linear;-webkit-transition:background-position .1s linear;-moz-transition:background-position .1s linear;-ms-transition:background-position .1s linear;-o-transition:background-position .1s linear;transition:background-position .1s linear;background-color:#e6e6e6}.ks-combobox-trigger.ks-button-active,.ks-combobox-trigger:active,.ks-combobox-trigger.ks-button-checked,.ks-combobox-trigger.ks-menu-button-open{color:#000;-webkit-box-shadow:inset 0 2px 4px rgba(0,0,0,0.15),0 1px 2px rgba(0,0,0,0.05);-moz-box-shadow:inset 0 2px 4px rgba(0,0,0,0.15),0 1px 2px rgba(0,0,0,0.05);box-shadow:inset 0 2px 4px rgba(0,0,0,0.15),0 1px 2px rgba(0,0,0,0.05);-webkit-box-shadow:inset 0 2px 4px rgba(0,0,0,0.15),0 1px 2px rgba(0,0,0,0.05);-moz-box-shadow:inset 0 2px 4px rgba(0,0,0,0.15),0 1px 2px rgba(0,0,0,0.05);box-shadow:inset 0 2px 4px rgba(0,0,0,0.15),0 1px 2px rgba(0,0,0,0.05);background-color:#ccc \9}.ks-combobox-trigger.ks-button-disabled{cursor:default;opacity:.65;filter:alpha(opacity=65);*zoom:1;opacity:.65;filter:alpha(opacity=65);*zoom:1;color:#000;background-position:0 0;-webkit-transition:none;-moz-transition:none;-ms-transition:none;-o-transition:none;transition:none;-webkit-transition:none;-moz-transition:none;-ms-transition:none;-o-transition:none;transition:none;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;background-color:#f5f5f5;background-image:-moz-linear-gradient(top,#fff,#e6e6e6);background-image:-ms-linear-gradient(top,#fff,#e6e6e6);background-image:-webkit-gradient(linear,0 0,0 100%,from(#fff),to(#e6e6e6));background-image:-webkit-linear-gradient(top,#fff,#e6e6e6);background-image:-o-linear-gradient(top,#fff,#e6e6e6);background-image:linear-gradient(top,#fff,#e6e6e6);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff',endColorstr='#e6e6e6',GradientType=0);background-color:#f5f5f5;background-image:-moz-linear-gradient(top,#fff,#e6e6e6);background-image:-ms-linear-gradient(top,#fff,#e6e6e6);background-image:-webkit-gradient(linear,0 0,0 100%,from(#fff),to(#e6e6e6));background-image:-webkit-linear-gradient(top,#fff,#e6e6e6);background-image:-o-linear-gradient(top,#fff,#e6e6e6);background-image:linear-gradient(top,#fff,#e6e6e6);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff',endColorstr='#e6e6e6',GradientType=0);border-color:#e6e6e6 #e6e6e6 #bfbfbf;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);background-color:#f5f5f5;background-image:-moz-linear-gradient(top,#fff,#e6e6e6);background-image:-ms-linear-gradient(top,#fff,#e6e6e6);background-image:-webkit-gradient(linear,0 0,0 100%,from(#fff),to(#e6e6e6));background-image:-webkit-linear-gradient(top,#fff,#e6e6e6);background-image:-o-linear-gradient(top,#fff,#e6e6e6);background-image:linear-gradient(top,#fff,#e6e6e6);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff',endColorstr='#e6e6e6',GradientType=0);background-color:#f5f5f5;background-image:-moz-linear-gradient(top,#fff,#e6e6e6);background-image:-ms-linear-gradient(top,#fff,#e6e6e6);background-image:-webkit-gradient(linear,0 0,0 100%,from(#fff),to(#e6e6e6));background-image:-webkit-linear-gradient(top,#fff,#e6e6e6);background-image:-o-linear-gradient(top,#fff,#e6e6e6);background-image:linear-gradient(top,#fff,#e6e6e6);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff',endColorstr='#e6e6e6',GradientType=0);border-color:#e6e6e6 #e6e6e6 #bfbfbf;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25)}.ks-combobox-trigger-inner{width:0;height:0;overflow:hidden;font-size:0;vertical-align:top;border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid black;opacity:.3;filter:alpha(opacity=30);*zoom:1;opacity:.3;filter:alpha(opacity=30);*zoom:1;margin-top:7px;margin-left:5px;display:inline-block;*display:inline;*zoom:1;*display:inline;*zoom:1;display:inline-block;*display:inline;*zoom:1;*display:inline;*zoom:1}.ks-combobox-trigger:hover .ks-combobox-trigger-inner{opacity:1;filter:alpha(opacity=100);*zoom:1;opacity:1;filter:alpha(opacity=100);*zoom:1}.ks-combobox-input-wrap{margin-top:1px;overflow:hidden;position:relative;padding-left:4px;padding-right:4px}.ks-combobox-input{padding:4px;padding-left:0;padding-right:0;line-height:1.5;float:left;width:100%;border:0;background-color:#fff}.ks-combobox-input:focus{outline:0;-webkit-tap-highlight-color:rgba(0,0,0,0)}.ks-combobox-placeholder{position:absolute;left:5px;top:5px;opacity:.6;filter:alpha(opacity=60);*zoom:1;opacity:.6;filter:alpha(opacity=60);*zoom:1;display:none}.ks-combobox-invalid{border:1px solid red}.ks-combobox-invalid-el{padding:5px 0;*font-size:0;float:right;display:none;background:red}.ks-combobox-invalid-inner{display:inline-block;*display:inline;*zoom:1;*display:inline;*zoom:1;display:inline-block;*display:inline;*zoom:1;*display:inline;*zoom:1;width:14px;height:14px;vertical-align:text-top;background-image:url(http://img04.taobaocdn.com/tps/i4/T1bxYzXmxeXXcIVv2D-469-159.png);background-position:14px 14px;background-repeat:no-repeat;*margin-right:.3em;*margin-right:.3em;background-position:0 -120px;background-image:url(http://img01.taobaocdn.com/tps/i1/T1pHbAXblaXXcIVv2D-469-159.png)}.ks-combobox-invalid-inner:last-child{*margin-left:0}.ks-combobox-invalid-inner:last-child{*margin-left:0} diff --git a/build/combobox/assets/dpl.css b/build/combobox/assets/dpl.css index 7c4bba31eb..262427f6e6 100644 --- a/build/combobox/assets/dpl.css +++ b/build/combobox/assets/dpl.css @@ -1,7 +1,7 @@ /* -Copyright 2013, KISSY v1.50dev +Copyright 2014, KISSY v1.49.10 MIT Licensed -build time: Dec 2 15:11 +build time: Sep 12 10:57 */ /** * Combobox Style for KISSY. diff --git a/build/component/container-min.js b/build/component/container-min.js index e00ba4203d..72d99f446d 100644 --- a/build/component/container-min.js +++ b/build/component/container-min.js @@ -1,7 +1,7 @@ /* -Copyright 2013, KISSY v1.50dev +Copyright 2014, KISSY v1.49.10 MIT Licensed -build time: Dec 2 15:11 +build time: May 22 12:16 */ KISSY.add("component/container/render",["component/control","component/manager"],function(g,d){var f=d("component/control"),i=d("component/manager");return f.getDefaultRender().extend([],{decorateDom:function(){var d=this,f=d.getChildrenContainerEl(),a=d.control,b=a.get("defaultChildCfg"),c=b.prefixCls,e=b.xclass,h=[];f.children().each(function(a){var f=d.getComponentConstructorByNode(c,a)||e&&i.getConstructorByXClass(e);f&&h.push(new f(g.merge(b,{srcNode:a})))});a.set("children",h)},getChildrenContainerEl:function(){return this.$el}}, {name:"ContainerRender"})}); diff --git a/build/component/container.js b/build/component/container.js index b9bd9ed652..320a056f14 100644 --- a/build/component/container.js +++ b/build/component/container.js @@ -1,7 +1,7 @@ /* -Copyright 2013, KISSY v1.50dev +Copyright 2014, KISSY v1.49.10 MIT Licensed -build time: Dec 2 15:11 +build time: May 22 12:16 */ /* Combined processedModules by KISSY Module Compiler: diff --git a/build/component/control-min.js b/build/component/control-min.js index 5f2e6732ee..5e7822faf3 100644 --- a/build/component/control-min.js +++ b/build/component/control-min.js @@ -1,33 +1,33 @@ /* -Copyright 2013, KISSY v1.50dev +Copyright 2014, KISSY v1.49.10 MIT Licensed -build time: Dec 2 15:11 +build time: Aug 20 14:23 */ -KISSY.add("component/control/process",["base","promise"],function(h,j){function k(b){b.fire("beforeSyncUI");b.syncUI();b.__callPluginsMethod("pluginSyncUI");b.fire("afterSyncUI")}var c=j("base"),i=j("promise").Defer,l=c.prototype.__getHook,d=h.noop,f=c.extend({bindInternal:d,syncInternal:d,initializer:function(){this._renderedDefer=new i},renderUI:d,syncUI:d,bindUI:d,onRendered:function(b){return this._renderedDefer.promise.then(b)},create:function(){this.get("created")||(this.fire("beforeCreateDom"), -this.createInternal(),this.__callPluginsMethod("pluginCreateDom"),this.fire("afterCreateDom"),this.setInternal("created",!0));return this},createInternal:function(){this.createDom()},render:function(){this.get("rendered")||(this.create(),this.fire("beforeRenderUI"),this.renderUI(),this.__callPluginsMethod("pluginRenderUI"),this.fire("afterRenderUI"),this.fire("beforeBindUI"),f.superclass.bindInternal.call(this),this.bindUI(),this.__callPluginsMethod("pluginBindUI"),this.fire("afterBindUI"),f.superclass.syncInternal.call(this), -k(this),this.setInternal("rendered",!0));return this},sync:function(){k(this)},plug:function(b){var c=this.get("plugins");this.callSuper(b);b=c[c.length-1];this.get("rendered")?(b.pluginCreateDom&&b.pluginCreateDom(this),b.pluginRenderUI&&b.pluginCreateDom(this),b.pluginBindUI&&b.pluginBindUI(this),b.pluginSyncUI&&b.pluginSyncUI(this)):this.get("created")&&b.pluginCreateDom&&b.pluginCreateDom(this);return this}},{__hooks__:{createDom:l("__createDom"),renderUI:l("__renderUI"),bindUI:l("__bindUI"), -syncUI:l("__syncUI")},name:"ComponentProcess",ATTRS:{rendered:{value:!1,setter:function(b){b&&this._renderedDefer.resolve(this)}},created:{value:!1}}});return f}); -KISSY.add("component/control/render-xtpl",[],function(){return function(h,j,k){var c,i=this;c=this.config.utils;var j=c.runBlockCommand,l=c.getExpression,d=c.getPropertyOrRunCommand;c='
'}}); -KISSY.add("component/control/render",["node","xtemplate/runtime","./process","./render-xtpl","component/manager"],function(h,j){function k(e){"number"===typeof e&&(e+="px");return e}function c(e){e||(e=[""]);"string"===typeof e&&(e=e.split(/\s+/));return e}function i(e,a,b){for(var c="",g=0,h=b.length,a=e+a;gs.ieMode&&(h.hideFocus="true"),h.tabindex=d?"-1":"0")},createDom:function(){this.beforeCreateDom(this.renderData={},this.childrenElSelectors= -{},this.renderCommands={getBaseCssClasses:d,getBaseCssClass:f});var e=this.control,a;a=this.renderTpl(o)+this.renderTpl(this.get("contentTpl"))+"
";e.setInternal("el",this.$el=r(a));this.el=this.$el[0];this.fillChildrenElsBySelectors()},decorateDom:function(a){var b=this.control;a.attr("id")||a.attr("id",b.get("id"));var c=this.constructor.HTML_PARSER,g,d;for(g in c)d=c[g],"function"===typeof d?(d=d.call(this,a),void 0!==d&&b.setInternal(g,d)):"string"===typeof d?b.setInternal(g,a.one(d)):h.isArray(d)&& -d[0]&&b.setInternal(g,a.all(d[0]));b.setInternal("el",this.$el=a);this.el=a[0]},renderUI:function(){var a=this.control,b=this.$el;if(!a.get("srcNode")){var c=a.get("render");(a=a.get("elBefore"))?b.insertBefore(a,void 0):c?b.appendTo(c,void 0):b.appendTo(t.body,void 0)}},bindUI:function(){var a=this.control,b=a.getAttrs(),c,d;for(c in b){d=b[c];var f=h.ucfirst(c),i=this[g+f];if(d.view&&i)a.on("after"+f+"Change",l,this)}},destructor:function(){this.$el&&this.$el.remove()},$:function(a){return this.$el.all(a)}, -fillChildrenElsBySelectors:function(a){var b=this.$el,c=this.control,g,d,a=a||this.childrenElSelectors;for(g in a)d=a[g],"function"===typeof d?c.setInternal(g,d(b)):c.setInternal(g,this.$(h.substitute(d,this.renderData))),delete a[g]},renderTpl:function(a,b,c){b=b||this.renderData;c=c||this.renderCommands;return(new (this.get("xtemplate"))(a,{control:this.control,view:this,commands:c})).render(b)},getComponentConstructorByNode:function(b,c){var g=c[0].className;return g?(g=g.replace(RegExp("\\b"+ -b,"ig"),""),a.getConstructorByXClass(g)):null},getComponentCssClasses:function(){if(this.componentCssClasses)return this.componentCssClasses;for(var a=this.control.constructor,b,c=[];a&&!a.prototype.hasOwnProperty("isControl");)(b=a.xclass)&&c.push(b),a=a.superclass&&a.superclass.constructor;return this.componentCssClasses=c},getBaseCssClasses:function(a){for(var a=c(a),b=this.getComponentCssClasses(),g=0,d=this.get("control"),h="",f=b.length,d=d.get("prefixCls");gf)a.on("dblclick",this.handleDblClick,this)}},sync:function(){this.fire("beforeSyncUI");this.syncUI();this.view.sync();this.__callPluginsMethod("pluginSyncUI");this.fire("afterSyncUI")},createComponent:function(a,b){return l.createComponent(a,b||this)},_onSetFocused:function(a){var b= -this.view.getKeyEventTarget()[0];a?b.focus():b.ownerDocument.activeElement===b&&b.ownerDocument.body.focus()},_onSetX:function(a){this.$el.offset({left:a})},_onSetY:function(a){this.$el.offset({top:a})},_onSetVisible:function(a){this.fire(a?"show":"hide")},show:function(){this.render();this.set("visible",!0);return this},hide:function(){this.set("visible",!1);return this},focus:function(){this.get("focusable")&&this.set("focused",!0)},blur:function(){this.get("focusable")&&this.set("focused",!1)}, -move:function(a,b){this.set({x:a,y:b})},handleDblClick:function(a){this.get("disabled")||this.handleDblClickInternal(a)},handleDblClickInternal:function(a){this.handleClickInternal(a)},handleMouseEnter:function(a){this.get("disabled")||this.handleMouseEnterInternal(a)},handleMouseEnterInternal:function(a){this.set("highlighted",!!a)},handleMouseLeave:function(a){this.get("disabled")||this.handleMouseLeaveInternal(a)},handleMouseLeaveInternal:function(a){this.set("active",!1);this.set("highlighted", -!a)},handleMouseDown:function(a){this.get("disabled")||this.handleMouseDownInternal(a)},handleMouseDownInternal:function(a){var b;if(1===a.which||n)this.get("activeable")&&this.set("active",!0),this.get("focusable")&&this.focus(),this.get("allowTextSelection")||(b=(b=a.target.nodeName)&&b.toLowerCase(),"input"!==b&&"textarea"!==b&&a.preventDefault())},handleMouseUp:function(a){this.get("disabled")||this.handleMouseUpInternal(a)},handleMouseUpInternal:function(a){this.get("active")&&(1===a.which|| -n)&&this.set("active",!1)},handleContextMenu:function(a){this.get("disabled")||this.handleContextMenuInternal(a)},handleContextMenuInternal:function(){},handleFocus:function(){this.get("disabled")||this.handleFocusInternal()},handleFocusInternal:function(){this.focus();this.fire("focus")},handleBlur:function(){this.get("disabled")||this.handleBlurInternal()},handleBlurInternal:function(){this.blur();this.fire("blur")},handleKeydown:function(a){if(!this.get("disabled")&&this.handleKeyDownInternal(a))return a.halt(), -!0},handleKeyDownInternal:function(a){if(a.keyCode===c.KeyCode.ENTER)return this.handleClickInternal(a)},handleClick:function(a){this.get("disabled")||this.handleClickInternal(a)},handleClickInternal:function(){this.get("focusable")&&this.focus()},destructor:function(){l.removeComponent(this.get("id"));this.view&&this.view.destroy()}},{name:"control",ATTRS:{id:{view:1,valueFn:function(){return h.guid("ks-component")}},content:{view:1,value:""},width:{view:1},height:{view:1},elCls:{view:1,value:[], -setter:function(a){"string"===typeof a&&(a=a.split(/\s+/));return a||[]}},elStyle:{view:1,value:{}},elAttrs:{view:1,value:{}},elBefore:{},el:{setter:function(a){this.$el=a;this.el=a[0]}},x:{},y:{},xy:{setter:function(a){var b=h.makeArray(a);b.length&&(void 0!==b[0]&&this.set("x",b[0]),void 0!==b[1]&&this.set("y",b[1]));return a},getter:function(){return[this.get("x"),this.get("y")]}},zIndex:{view:1},render:{},visible:{sync:0,value:!0,view:1},srcNode:{setter:function(a){return c.all(a)}},handleMouseEvents:{value:!0}, -focusable:{value:!0,view:1},allowTextSelection:{value:!1},activeable:{value:!0},focused:{view:1},active:{view:1,value:!1},highlighted:{view:1,value:!1},prefixCls:{view:1,value:h.config("component/prefixCls")||"ks-"},prefixXClass:{},parent:{setter:function(a,b){(b=this.get("parent"))&&this.removeTarget(b);a&&this.addTarget(a)}},disabled:{view:1,value:!1},xrender:{value:d},view:{setter:function(a){this.view=a}}}});d.getDefaultRender=k;d.extend=function g(b,c,d){var f=h.makeArray(arguments),e,j=f[f.length- -1];if(e=j.xclass)j.name=e;f=i.extend.apply(this,f);e&&l.setConstructorByXClass(e,f);f.extend=g;f.getDefaultRender=k;return f};return d}); +KISSY.add("component/control/process",["base","promise"],function(f,c){function h(d){d.fire("beforeSyncUI");d.syncUI();d.__callPluginsMethod("pluginSyncUI");d.fire("afterSyncUI")}var k=c("base"),m=c("promise").Defer,g=k.prototype.__getHook,e=f.noop,i=k.extend({bindInternal:e,syncInternal:e,initializer:function(){this._renderedDefer=new m},renderUI:e,syncUI:e,bindUI:e,onRendered:function(d){return this._renderedDefer.promise.then(d)},create:function(){this.get("created")||(this.fire("beforeCreateDom"), +this.createInternal(),this.__callPluginsMethod("pluginCreateDom"),this.fire("afterCreateDom"),this.setInternal("created",!0));return this},createInternal:function(){this.createDom()},render:function(){this.get("rendered")||(this.create(),this.fire("beforeRenderUI"),this.renderUI(),this.__callPluginsMethod("pluginRenderUI"),this.fire("afterRenderUI"),this.fire("beforeBindUI"),i.superclass.bindInternal.call(this),this.bindUI(),this.__callPluginsMethod("pluginBindUI"),this.fire("afterBindUI"),i.superclass.syncInternal.call(this), +h(this),this.setInternal("rendered",!0));return this},sync:function(){h(this)},plug:function(d){var c=this.get("plugins");this.callSuper(d);d=c[c.length-1];this.get("rendered")?(d.pluginCreateDom&&d.pluginCreateDom(this),d.pluginRenderUI&&d.pluginCreateDom(this),d.pluginBindUI&&d.pluginBindUI(this),d.pluginSyncUI&&d.pluginSyncUI(this)):this.get("created")&&d.pluginCreateDom&&d.pluginCreateDom(this);return this}},{__hooks__:{createDom:g("__createDom"),renderUI:g("__renderUI"),bindUI:g("__bindUI"), +syncUI:g("__syncUI")},name:"ComponentProcess",ATTRS:{rendered:{value:!1,setter:function(c){c&&this._renderedDefer.resolve(this)}},created:{value:!1}}});return i}); +KISSY.add("component/control/render-xtpl",[],function(){return function(f){var c,h=this;c=this.config.utils;var k=c.runBlockCommand,m=c.renderOutput,g=c.getProperty,e=c.runInlineCommand,i=c.getPropertyOrRunCommand;c='
'}}); +KISSY.add("component/control/render",["node","xtemplate/runtime","./process","./render-xtpl","component/manager"],function(f,c){function h(j){"number"===typeof j&&(j+="px");return j}function k(j){j||(j=[""]);"string"===typeof j&&(j=j.split(/\s+/));return j}function m(j,a,b){for(var c="",d=0,f=b.length,a=j+a;ds.ieMode&&(f.hideFocus="true"),f.tabindex=g?"-1":"0")},createDom:function(){this.beforeCreateDom(this.renderData={},this.childrenElSelectors= +{},this.renderCommands={getBaseCssClasses:e,getBaseCssClass:i});var a=this.control,l;l=this.renderTpl(b)+this.renderTpl(this.get("contentTpl"))+"
";a.setInternal("el",this.$el=r(l));this.el=this.$el[0];this.fillChildrenElsBySelectors()},decorateDom:function(a){var b=this.control;a.attr("id")||a.attr("id",b.get("id"));var c=this.constructor.HTML_PARSER,d,e;for(d in c)e=c[d],"function"===typeof e?(e=e.call(this,a),void 0!==e&&b.setInternal(d,e)):"string"===typeof e?b.setInternal(d,a.one(e)):f.isArray(e)&& +e[0]&&b.setInternal(d,a.all(e[0]));b.setInternal("el",this.$el=a);this.el=a[0]},renderUI:function(){var a=this.control,b=this.$el;if(!a.get("srcNode")){var c=a.get("render");(a=a.get("elBefore"))?b.insertBefore(a,void 0):c?b.appendTo(c,void 0):b.appendTo(t.body,void 0)}},bindUI:function(){var a=this.control,b=a.getAttrs(),c,d;for(c in b){d=b[c];var e=f.ucfirst(c),h=this[o+e];if(d.view&&h)a.on("after"+e+"Change",g,this)}},destructor:function(){this.$el&&this.$el.remove()},$:function(a){return this.$el.all(a)}, +fillChildrenElsBySelectors:function(a){var b=this.$el,c=this.control,d,e,a=a||this.childrenElSelectors;for(d in a)e=a[d],"function"===typeof e?c.setInternal(d,e(b)):c.setInternal(d,this.$(f.substitute(e,this.renderData))),delete a[d]},renderTpl:function(a,b,c){b=b||this.renderData;c=c||this.renderCommands;return(new (this.get("xtemplate"))(a,{control:this.control,view:this,commands:c})).render(b)},getComponentConstructorByNode:function(a,b){var c=b[0].className;if(c){for(var c=c.split(/\s+/),d=[], +e=0,h=c.length;ei)a.on("dblclick",this.handleDblClick,this)}},sync:function(){this.fire("beforeSyncUI");this.syncUI();this.view.sync();this.__callPluginsMethod("pluginSyncUI");this.fire("afterSyncUI")},createComponent:function(a,b){return g.createComponent(a,b||this)},_onSetFocused:function(a){var b=this.view.getKeyEventTarget()[0]; +a?b.focus():b.ownerDocument.activeElement===b&&b.ownerDocument.body.focus()},_onSetX:function(a){this.$el.offset({left:a})},_onSetY:function(a){this.$el.offset({top:a})},_onSetVisible:function(a){this.fire(a?"show":"hide")},show:function(){this.render();this.set("visible",!0);return this},hide:function(){this.set("visible",!1);return this},focus:function(){this.get("focusable")&&this.set("focused",!0)},blur:function(){this.get("focusable")&&this.set("focused",!1)},move:function(a,b){this.set({x:a, +y:b})},handleDblClick:function(a){this.get("disabled")||this.handleDblClickInternal(a)},handleDblClickInternal:function(a){this.handleClickInternal(a)},handleMouseEnter:function(a){this.get("disabled")||this.handleMouseEnterInternal(a)},handleMouseEnterInternal:function(a){this.set("highlighted",!!a)},handleMouseLeave:function(a){this.get("disabled")||this.handleMouseLeaveInternal(a)},handleMouseLeaveInternal:function(a){this.set("active",!1);this.set("highlighted",!a)},handleMouseDown:function(a){this.get("disabled")|| +this.handleMouseDownInternal(a)},handleMouseDownInternal:function(a){var b;if(1===a.which||n)if(this.get("activeable")&&this.set("active",!0),this.get("focusable")&&this.focus(),b=a.originalEvent.type.toLowerCase(),!this.get("allowTextSelection")&&(-1!==b.indexOf("mouse")||-1!==b.indexOf("pointer")))b=(b=a.target.nodeName)&&b.toLowerCase(),"input"!==b&&"textarea"!==b&&"button"!==b&&a.preventDefault()},handleMouseUp:function(a){this.get("disabled")||this.handleMouseUpInternal(a)},handleMouseUpInternal:function(a){this.get("active")&& +(1===a.which||n)&&this.set("active",!1)},handleContextMenu:function(a){this.get("disabled")||this.handleContextMenuInternal(a)},handleContextMenuInternal:function(){},handleFocus:function(){this.get("disabled")||this.handleFocusInternal()},handleFocusInternal:function(){this.focus();this.fire("focus")},handleBlur:function(){this.get("disabled")||this.handleBlurInternal()},handleBlurInternal:function(){this.blur();this.fire("blur")},handleKeydown:function(a){if(!this.get("disabled")&&this.handleKeyDownInternal(a))return a.halt(), +!0},handleKeyDownInternal:function(a){if(a.keyCode===k.KeyCode.ENTER)return this.handleClickInternal(a)},handleClick:function(a){this.get("disabled")||this.handleClickInternal(a)},handleClickInternal:function(){this.get("focusable")&&this.focus()},destructor:function(){g.removeComponent(this.get("id"));this.view?this.view.destroy():this.get("srcNode")&&this.get("srcNode").remove()}},{name:"control",ATTRS:{id:{view:1,valueFn:function(){return f.guid("ks-component")}},content:{view:1,value:""},width:{view:1}, +height:{view:1},elCls:{view:1,value:[],setter:function(a){"string"===typeof a&&(a=a.split(/\s+/));return a||[]}},elStyle:{view:1,value:{}},elAttrs:{view:1,value:{}},elBefore:{},el:{setter:function(a){this.$el=a;this.el=a[0]}},x:{},y:{},xy:{setter:function(a){var b=f.makeArray(a);b.length&&(void 0!==b[0]&&this.set("x",b[0]),void 0!==b[1]&&this.set("y",b[1]));return a},getter:function(){return[this.get("x"),this.get("y")]}},zIndex:{view:1},render:{},visible:{sync:0,value:!0,view:1},srcNode:{setter:function(a){return k.all(a)}}, +handleMouseEvents:{value:!0},focusable:{value:!0,view:1},allowTextSelection:{value:!1},activeable:{value:!0},focused:{view:1},active:{view:1,value:!1},highlighted:{view:1,value:!1},prefixCls:{view:1,value:f.config("component/prefixCls")||"ks-"},prefixXClass:{},parent:{setter:function(a,b){(b=this.get("parent"))&&this.removeTarget(b);a&&this.addTarget(a)}},disabled:{view:1,value:!1},xrender:{value:e},view:{setter:function(a){this.view=a}}}});e.getDefaultRender=h;e.extend=function b(c,d,e){var i=f.makeArray(arguments), +k,n=i[i.length-1];if(k=n.xclass)n.name=k;i=m.extend.apply(this,i);k&&g.setConstructorByXClass(k,i);i.extend=b;i.getDefaultRender=h;return i};return e}); diff --git a/build/component/control.js b/build/component/control.js index fda7823e78..3f46e2856d 100644 --- a/build/component/control.js +++ b/build/component/control.js @@ -1,7 +1,7 @@ /* -Copyright 2013, KISSY v1.50dev +Copyright 2014, KISSY v1.49.10 MIT Licensed -build time: Dec 2 15:11 +build time: Aug 20 14:23 */ /* Combined processedModules by KISSY Module Compiler: @@ -96,28 +96,28 @@ KISSY.add("component/control/render-xtpl", [], function(S, require, exports, mod if(typeof module !== "undefined" && module.kissy) { moduleWrap = module } - var runBlockCommandUtil = utils.runBlockCommand, getExpressionUtil = utils.getExpression, getPropertyOrRunCommandUtil = utils.getPropertyOrRunCommand; + var runBlockCommandUtil = utils.runBlockCommand, renderOutputUtil = utils.renderOutput, getPropertyUtil = utils.getProperty, runInlineCommandUtil = utils.runInlineCommand, getPropertyOrRunCommandUtil = utils.getPropertyOrRunCommand; buffer += '
b.top&&b.right>b.left?b:null}function p(a, -c,d,b){var f,h;f=a.left;h=a.top;c=q(c,d[0]);a=q(a,d[1]);a=[a.left-c.left,a.top-c.top];return{left:f-a[0]+ +b[0],top:h-a[1]+ +b[1]}}function r(a,c,d){var b=[];k.each(a,function(a){b.push(a.replace(c,function(a){return d[a]}))});return b}function l(){}function s(a){var c,d;c=a[0];k.isWindow(c)?(a=j(c).getWindow(),c={left:a.scrollLeft(),top:a.scrollTop()},d=a.width(),a=a.height()):(c=a.offset(),d=a.outerWidth(),a=a.outerHeight());c.width=d;c.height=a;return c}function q(a,c){var d=c.charAt(0),b=c.charAt(1), -f=a.width,h=a.height,e,g;e=a.left;g=a.top;"c"===d?g+=h/2:"b"===d&&(g+=h);"c"===b?e+=f/2:"r"===b&&(e+=f);return{left:e,top:g}}function w(a){a.target===this&&a.newVal&&m.call(this)}function x(){this.get("visible")&&m.call(this)}function m(){this._onSetAlign(this.get("align"))}var t=u("node"),y=k.Env.host,j=t.all,v=k.UA;l.__getOffsetParent=n;l.__getVisibleRectForElement=o;l.ATTRS={align:{value:{}}};l.prototype={__bindUI:function(){this.on("beforeVisibleChange",w,this);this.$el.getWindow().on("resize", -x,this)},_onSetAlign:function(a){a&&a.points&&this.align(a.node,a.points,a.offset,a.overflow)},align:function(a,c,d,b){var a=t.one(a||y),d=d&&[].concat(d)||[0,0],b=b||{},f=this.$el,h=0,e=o(f[0]),g=s(f),j=s(a),a=p(g,j,c,d),i=k.merge(g,a);if(e&&(b.adjustX||b.adjustY)){if(a.lefte.right)h=1,c=r(c,/[lr]/ig,{l:"r",r:"l"}),d[0]=-d[0];if(a.tope.bottom)h=1,c=r(c,/[tb]/ig,{t:"b",b:"t"}),d[1]=-d[1];h&&(a=p(g,j,c,d),k.mix(i,a));c=b.adjustX&&(a.leftb.top&&b.right>b.left?b:null}function o(a, +c,d,b){var f,h;f=a.left;h=a.top;c=p(c,d[0]);a=p(a,d[1]);a=[a.left-c.left,a.top-c.top];return{left:f-a[0]+ +b[0],top:h-a[1]+ +b[1]}}function q(a,c,d){var b=[];k.each(a,function(a){b.push(a.replace(c,function(a){return d[a]}))});return b}function l(){}function r(a){var c,d;c=a[0];k.isWindow(c)?(a=j(c).getWindow(),c={left:a.scrollLeft(),top:a.scrollTop()},d=a.width(),a=a.height()):(c=a.offset(),d=a.outerWidth(),a=a.outerHeight());c.width=d;c.height=a;return c}function p(a,c){var d=c.charAt(0),b=c.charAt(1), +f=a.width,h=a.height,e,g;e=a.left;g=a.top;"c"===d?g+=h/2:"b"===d&&(g+=h);"c"===b?e+=f/2:"r"===b&&(e+=f);return{left:e,top:g}}function w(a){a.target===this&&a.newVal&&this._onSetAlign(this.get("align"))}function s(){this.get("visible")&&this._onSetAlign(this.get("align"))}var t=u("node"),x=k.Env.host,j=t.all,v=k.UA;l.__getOffsetParent=m;l.__getVisibleRectForElement=n;l.ATTRS={align:{value:{}}};l.prototype={__bindUI:function(){this.on("beforeVisibleChange",w,this);this.$el.getWindow().on("resize",s, +this)},_onSetAlign:function(a){a&&a.points&&this.align(a.node,a.points,a.offset,a.overflow)},align:function(a,c,d,b){var a=t.one(a||x),d=d&&[].concat(d)||[0,0],b=b||{},f=this.$el,h=0,e=n(f[0]),g=r(f),j=r(a),a=o(g,j,c,d),i=k.merge(g,a);if(e&&(b.adjustX||b.adjustY)){if(a.lefte.right)h=1,c=q(c,/[lr]/ig,{l:"r",r:"l"}),d[0]=-d[0];if(a.tope.bottom)h=1,c=q(c,/[tb]/ig,{t:"b",b:"t"}),d[1]=-d[1];h&&(a=o(g,j,c,d),k.mix(i,a));c=b.adjustX&&(a.lefte.right);b=b.adjustY&&(a.tope.bottom);if(c||b)a=k.clone(a),i={width:g.width,height:g.height},c&&a.lefte.right&&(a.left=Math.max(e.right-i.width,e.left)),b&&a.tope.bottom&&(a.top=Math.max(e.bottom-i.height,e.top)),i=k.mix(a,i)}this.set({x:i.left,y:i.top},{force:1});i.width!==g.width&&this.set("width",f.width()+i.width-g.width);i.height!==g.height&&this.set("height",f.height()+i.height- -g.height);return this},center:function(a){this.set("align",{node:a,points:["cc","cc"],offset:[0,0]});return this},__destructor:function(){this.$el&&this.$el.getWindow().detach("resize",m,this)}};return l}); +g.height);return this},center:function(a){this.set("align",{node:a,points:["cc","cc"],offset:[0,0]});return this},__destructor:function(){this.$el&&this.$el.getWindow().detach("resize",s,this)}};return l}); diff --git a/build/component/extension/align.js b/build/component/extension/align.js index 4f20e94ba5..a6b1d9da61 100644 --- a/build/component/extension/align.js +++ b/build/component/extension/align.js @@ -1,7 +1,7 @@ /* -Copyright 2013, KISSY v1.50dev +Copyright 2014, KISSY v1.49.10 MIT Licensed -build time: Dec 2 15:12 +build time: May 22 12:16 */ /* Combined processedModules by KISSY Module Compiler: @@ -203,8 +203,9 @@ KISSY.add("component/extension/align", ["node"], function(S, require) { self.set("align", {node:node, points:["cc", "cc"], offset:[0, 0]}); return self }, __destructor:function() { - if(this.$el) { - this.$el.getWindow().detach("resize", realign, this) + var self = this; + if(self.$el) { + self.$el.getWindow().detach("resize", onResize, self) } }}; return Align diff --git a/build/component/extension/content-render-min.js b/build/component/extension/content-render-min.js index fcf7971543..dd3184d26c 100644 --- a/build/component/extension/content-render-min.js +++ b/build/component/extension/content-render-min.js @@ -1,7 +1,7 @@ /* -Copyright 2013, KISSY v1.50dev +Copyright 2014, KISSY v1.49.10 MIT Licensed -build time: Dec 2 15:12 +build time: May 22 12:16 */ KISSY.add("component/extension/content-render",["component/extension/content-xtpl"],function(e,g){function f(a){var b=a.control,c=b.get("contentEl");a.$contentEl=b.$contentEl=c;a.contentEl=b.contentEl=c[0]}function d(){}var h=g("component/extension/content-xtpl");d.prototype={__beforeCreateDom:function(a,b){e.mix(b,{contentEl:"#ks-content-{id}"})},__createDom:function(){f(this)},__decorateDom:function(){f(this)},getChildrenContainerEl:function(){return this.control.get("contentEl")},_onSetContent:function(a){var b= this.control,c=b.$contentEl;c.html(a);b.get("allowTextSelection")||c.unselectable()}};e.mix(d,{ATTRS:{contentTpl:{value:h}},HTML_PARSER:{content:function(a){return a.one("."+this.getBaseCssClass("content")).html()},contentEl:function(a){return a.one("."+this.getBaseCssClass("content"))}}});return d}); diff --git a/build/component/extension/content-render.js b/build/component/extension/content-render.js index 1aa7afbac5..32a22cfddd 100644 --- a/build/component/extension/content-render.js +++ b/build/component/extension/content-render.js @@ -1,7 +1,7 @@ /* -Copyright 2013, KISSY v1.50dev +Copyright 2014, KISSY v1.49.10 MIT Licensed -build time: Dec 2 15:12 +build time: May 22 12:16 */ /* Combined processedModules by KISSY Module Compiler: diff --git a/build/component/extension/content-xtpl-min.js b/build/component/extension/content-xtpl-min.js index 269cd89408..b1e11d2935 100644 --- a/build/component/extension/content-xtpl-min.js +++ b/build/component/extension/content-xtpl-min.js @@ -1,6 +1,6 @@ /* -Copyright 2013, KISSY v1.50dev +Copyright 2014, KISSY v1.49.10 MIT Licensed -build time: Dec 2 15:12 +build time: May 22 12:16 */ -KISSY.add("component/extension/content-xtpl",[],function(){return function(c,d,e){var a;a=this.config.utils;var d=a.getExpression,f=a.getPropertyOrRunCommand;a='
';c=f(this,c,{},"content",0,2,e,!1);a+=d(c,!1);return a+"
"}}); +KISSY.add("component/extension/content-xtpl",[],function(){return function(b){var a;a=this.config.utils;var d=a.renderOutput,e=a.runInlineCommand,f=a.getPropertyOrRunCommand;a='
';b=f(this,b,{},"content",0,2);a+=d(b,!1);return a+"
"}}); diff --git a/build/component/extension/content-xtpl.js b/build/component/extension/content-xtpl.js index 8d9ed34e66..1b40f325de 100644 --- a/build/component/extension/content-xtpl.js +++ b/build/component/extension/content-xtpl.js @@ -1,7 +1,7 @@ /* -Copyright 2013, KISSY v1.50dev +Copyright 2014, KISSY v1.49.10 MIT Licensed -build time: Dec 2 15:12 +build time: May 22 12:16 */ /* Combined processedModules by KISSY Module Compiler: @@ -15,20 +15,20 @@ KISSY.add("component/extension/content-xtpl", [], function(S, require, exports, if(typeof module !== "undefined" && module.kissy) { moduleWrap = module } - var runBlockCommandUtil = utils.runBlockCommand, getExpressionUtil = utils.getExpression, getPropertyOrRunCommandUtil = utils.getPropertyOrRunCommand; + var runBlockCommandUtil = utils.runBlockCommand, renderOutputUtil = utils.renderOutput, getPropertyUtil = utils.getProperty, runInlineCommandUtil = utils.runInlineCommand, getPropertyOrRunCommandUtil = utils.getPropertyOrRunCommand; buffer += '
g?"dblclick ":""));this.$el.delegate(a,"."+this.__childClsTag,this.handleChildrenEvents,this)},getOwnerControl:function(a){return k.getComponent(a.currentTarget.id)}});return f}); +KISSY.add("component/extension/delegate-children",["node","component/manager"],function(d,e){function h(a){a.target===this&&a.component.$el.addClass(this.__childClsTag)}function i(a){a.target===this&&(a=a.component.$el)&&a.removeClass(this.__childClsTag)}function f(){this.__childClsTag=d.guid("ks-component-child");this.on("afterRenderChild",h,this).on("afterRemoveChild",i,this)}var j=e("node"),k=e("component/manager"),g=d.UA.ieMode,c=j.Gesture;d.Features.isTouchEventSupported();d.augment(f,{handleChildrenEvents:function(a){if(!this.get("disabled")){var b= +this.getOwnerControl(a);if(b&&!b.get("disabled"))switch(a.stopPropagation(),a.type){case c.start:b.handleMouseDown(a);break;case c.end:b.handleMouseUp(a);break;case c.tap:b.handleClick(a);break;case "mouseenter":b.handleMouseEnter(a);break;case "mouseleave":b.handleMouseLeave(a);break;case "contextmenu":b.handleContextMenu(a);break;case "dblclick":b.handleDblClick(a)}}},__bindUI:function(){var a=c.start+" "+c.end+" "+c.tap;c.cancel&&(a+=" "+c.cancel);a+=" mouseenter mouseleave contextmenu "+(g&&9> +g?"dblclick ":"");this.$el.delegate(a,"."+this.__childClsTag,this.handleChildrenEvents,this)},getOwnerControl:function(a){return k.getComponent(a.currentTarget.id)}});return f}); diff --git a/build/component/extension/delegate-children.js b/build/component/extension/delegate-children.js index 880d002684..7bd11f05d4 100644 --- a/build/component/extension/delegate-children.js +++ b/build/component/extension/delegate-children.js @@ -1,7 +1,7 @@ /* -Copyright 2013, KISSY v1.50dev +Copyright 2014, KISSY v1.49.10 MIT Licensed -build time: Dec 2 15:12 +build time: May 22 12:16 */ /* Combined processedModules by KISSY Module Compiler: @@ -68,9 +68,7 @@ KISSY.add("component/extension/delegate-children", ["node", "component/manager"] if(Gesture.cancel) { events += " " + Gesture.cancel } - if(!isTouchEventSupported) { - events += " mouseenter mouseleave contextmenu " + (ie && ie < 9 ? "dblclick " : "") - } + events += " mouseenter mouseleave contextmenu " + (ie && ie < 9 ? "dblclick " : ""); self.$el.delegate(events, "." + self.__childClsTag, self.handleChildrenEvents, self) }, getOwnerControl:function(e) { return Manager.getComponent(e.currentTarget.id) diff --git a/build/component/extension/shim-min.js b/build/component/extension/shim-min.js index d24c0d38f2..08545569ed 100644 --- a/build/component/extension/shim-min.js +++ b/build/component/extension/shim-min.js @@ -1,6 +1,6 @@ /* -Copyright 2013, KISSY v1.50dev +Copyright 2014, KISSY v1.49.10 MIT Licensed -build time: Dec 2 15:12 +build time: May 22 12:17 */ KISSY.add("component/extension/shim",[],function(a){function b(){}var a=6===a.UA.ie,c='',I=/^(?:<(p)>)?(?:(?: )|\s|]*>)*(?:<\/\1>)?$/i; -m.Mode={SOURCE_MODE:0,WYSIWYG_MODE:1};m.addMembers({initializer:function(){this.__commands={};this.__controls={};q.register(this)},renderUI:function(){l.init(this);c.init(this);e.init(this);g.init(this)},bindUI:function(){function a(){b.detach("docReady",a);if(b.get("focused"))b.focus();else{var c=b.getSelection();c&&c.removeAllRanges()}}var b=this,c,d=b.get("prefixCls"),e=b.get("textarea");if(b.get("attachForm")&&(c=e[0].form)&&(c=B(c)))c.on("submit",b.sync,b);b.on("docReady",a);b.on("blur",function(){b.$el.removeClass(d+ +a({"editor/plugin/drag-upload":{requires:["editor","event"]}});a({"editor/plugin/element-path":{requires:["editor"]}});a({"editor/plugin/fake-objects":{requires:["editor","html-parser"]}});a({"editor/plugin/flash-bridge":{requires:["editor","swf","event"]}});a({"editor/plugin/flash-common/base-class":{requires:"editor/plugin/flash-common/utils,base,editor,editor/plugin/dialog-loader,editor/plugin/bubble,editor/plugin/contextmenu".split(",")}});a({"editor/plugin/flash-common/utils":{requires:["swf"]}}); +a({"editor/plugin/flash":{requires:["editor","editor/plugin/flash-common/base-class","editor/plugin/flash-common/utils","editor/plugin/fake-objects","editor/plugin/button"]}});a({"editor/plugin/flash/dialog":{requires:["editor","editor/plugin/flash-common/utils","editor/plugin/dialog","editor/plugin/menubutton"]}});a({"editor/plugin/focus-fix":{requires:["editor"]}});a({"editor/plugin/font-family":{requires:["editor","editor/plugin/font/ui","editor/plugin/font-family/cmd","editor/plugin/menubutton"]}}); +a({"editor/plugin/font-family/cmd":{requires:["editor/plugin/font/cmd"]}});a({"editor/plugin/font-size":{requires:["editor","editor/plugin/font/ui","editor/plugin/font-size/cmd","editor/plugin/menubutton"]}});a({"editor/plugin/font-size/cmd":{requires:["editor/plugin/font/cmd"]}});a({"editor/plugin/font/cmd":{requires:["editor"]}});a({"editor/plugin/font/ui":{requires:["editor","editor/plugin/button","editor/plugin/menubutton"]}});a({"editor/plugin/fore-color":{requires:["editor/plugin/color/btn", +"editor/plugin/fore-color/cmd"]}});a({"editor/plugin/fore-color/cmd":{requires:["editor/plugin/color/cmd"]}});a({"editor/plugin/heading":{requires:["editor/plugin/menubutton","editor","editor/plugin/heading/cmd"]}});a({"editor/plugin/heading/cmd":{requires:["editor"]}});a({"editor/plugin/image":{requires:["editor/plugin/button","editor","editor/plugin/bubble","editor/plugin/dialog-loader","editor/plugin/contextmenu"]}});a({"editor/plugin/image/dialog":{requires:["editor","io","editor/plugin/dialog", +"tabs","editor/plugin/menubutton"]}});a({"editor/plugin/indent":{requires:["editor","editor/plugin/indent/cmd","editor/plugin/button"]}});a({"editor/plugin/indent/cmd":{requires:["editor/plugin/dent-cmd"]}});a({"editor/plugin/italic":{requires:["editor/plugin/font/ui","editor/plugin/italic/cmd","editor/plugin/button"]}});a({"editor/plugin/italic/cmd":{requires:["editor","editor/plugin/font/cmd"]}});a({"editor/plugin/justify-center":{requires:["editor","editor/plugin/justify-center/cmd","editor/plugin/button"]}}); +a({"editor/plugin/justify-center/cmd":{requires:["editor/plugin/justify-cmd"]}});a({"editor/plugin/justify-cmd":{requires:["editor"]}});a({"editor/plugin/justify-left":{requires:["editor","editor/plugin/justify-left/cmd","editor/plugin/button"]}});a({"editor/plugin/justify-left/cmd":{requires:["editor/plugin/justify-cmd"]}});a({"editor/plugin/justify-right":{requires:["editor","editor/plugin/justify-right/cmd","editor/plugin/button"]}});a({"editor/plugin/justify-right/cmd":{requires:["editor/plugin/justify-cmd"]}}); +a({"editor/plugin/link":{requires:["editor/plugin/button","editor/plugin/bubble","editor","editor/plugin/link/utils","editor/plugin/dialog-loader"]}});a({"editor/plugin/link/dialog":{requires:["editor","editor/plugin/dialog","editor/plugin/link/utils"]}});a({"editor/plugin/link/utils":{requires:["editor"]}});a({"editor/plugin/list-utils":{requires:["editor"]}});a({"editor/plugin/list-utils/btn":{requires:["editor","editor/plugin/button","editor/plugin/menubutton"]}});a({"editor/plugin/list-utils/cmd":{requires:["editor", +"editor/plugin/list-utils"]}});a({"editor/plugin/local-storage":{requires:["editor","overlay","editor/plugin/flash-bridge"]}});a({"editor/plugin/maximize":{requires:["editor/plugin/maximize/cmd","editor/plugin/button"]}});a({"editor/plugin/maximize/cmd":{requires:["editor","event"]}});a({"editor/plugin/menubutton":{requires:["editor","menubutton"]}});a({"editor/plugin/ordered-list":{requires:["editor/plugin/list-utils/btn","editor/plugin/ordered-list/cmd"]}});a({"editor/plugin/ordered-list/cmd":{requires:["editor", +"editor/plugin/list-utils/cmd"]}});a({"editor/plugin/outdent":{requires:["editor","editor/plugin/button","editor/plugin/outdent/cmd"]}});a({"editor/plugin/outdent/cmd":{requires:["editor","editor/plugin/dent-cmd"]}});a({"editor/plugin/overlay":{requires:["editor","overlay","editor/plugin/focus-fix"]}});a({"editor/plugin/page-break":{requires:["editor","editor/plugin/fake-objects","editor/plugin/button"]}});a({"editor/plugin/preview":{requires:["editor/plugin/button"]}});a({"editor/plugin/progressbar":{requires:["base"]}}); +a({"editor/plugin/remove-format":{requires:["editor","editor/plugin/button","editor/plugin/remove-format/cmd"]}});a({"editor/plugin/remove-format/cmd":{requires:["editor"]}});a({"editor/plugin/resize":{requires:["dd"]}});a({"editor/plugin/separator":{requires:["editor"]}});a({"editor/plugin/smiley":{requires:["editor","editor/plugin/overlay","editor/plugin/button"]}});a({"editor/plugin/source-area":{requires:["editor","editor/plugin/button"]}});a({"editor/plugin/strike-through":{requires:["editor/plugin/font/ui", +"editor/plugin/strike-through/cmd","editor/plugin/button"]}});a({"editor/plugin/strike-through/cmd":{requires:["editor","editor/plugin/font/cmd"]}});a({"editor/plugin/table":{requires:["editor","editor/plugin/dialog-loader","editor/plugin/contextmenu","editor/plugin/button"]}});a({"editor/plugin/table/dialog":{requires:["editor","editor/plugin/dialog","editor/plugin/menubutton"]}});a({"editor/plugin/underline":{requires:["editor/plugin/font/ui","editor/plugin/underline/cmd","editor/plugin/button"]}}); +a({"editor/plugin/underline/cmd":{requires:["editor","editor/plugin/font/cmd"]}});a({"editor/plugin/undo":{requires:["editor","editor/plugin/undo/btn","editor/plugin/undo/cmd","editor/plugin/button"]}});a({"editor/plugin/undo/btn":{requires:["editor/plugin/button","editor"]}});a({"editor/plugin/undo/cmd":{requires:["editor"]}});a({"editor/plugin/unordered-list":{requires:["editor/plugin/list-utils/btn","editor/plugin/unordered-list/cmd"]}});a({"editor/plugin/unordered-list/cmd":{requires:["editor", +"editor/plugin/list-utils/cmd"]}});a({"editor/plugin/video":{requires:["editor","editor/plugin/flash-common/utils","editor/plugin/flash-common/base-class","editor/plugin/fake-objects","editor/plugin/button"]}});a({"editor/plugin/video/dialog":{requires:["editor","io","editor/plugin/flash/dialog","editor/plugin/menubutton"]}});a({"editor/plugin/word-filter":{requires:["html-parser"]}});a({"editor/plugin/xiami-music":{requires:["editor","editor/plugin/flash-common/base-class","editor/plugin/flash-common/utils", +"editor/plugin/fake-objects","editor/plugin/button"]}});a({"editor/plugin/xiami-music/dialog":{requires:["editor","editor/plugin/flash/dialog","editor/plugin/menubutton"]}})})(function(a){KISSY.config("modules",a)},KISSY.Features,KISSY.UA)}); +KISSY.add("editor/styles",["node","./selection","./range","./base","./elementPath"],function(a,b){function o(a){return!F.attr(a,"_ke_bookmark")}function t(a,b){for(var c in a)"string"===typeof a[c]?a[c]=a[c].replace(R,function(a,c){return b[c]}):t(a[c],b)}function m(b,c){c&&(b=a.clone(b),t(b,c));var d=this.element=this.element=(b.element||"*").toLowerCase();this.type=this.type="#text"===d||N[d]?A.STYLE_BLOCK:O[d]?A.STYLE_OBJECT:A.STYLE_INLINE;this._={definition:b}}function x(a,b){var c=b?this.removeFromRange: +this.applyToRange;a.body.focus();for(var d=new y(a),f=d.getRanges(),e=0;e]*>)[ \t\r\n]*/gi,"$1"),j=j.replace(/([ \t\n\r]+| )/g," "),j=j.replace(/]*>/gi,"\n"),M.ie?(r=r[0].ownerDocument.createElement("div"),r.appendChild(h[0]),h.outerHtml("
"+j+"
"),h=new g(r.firstChild),h._4eRemove()):h.html(j)):j?h=s(v(d),h):d._4eMoveChildren(h);d[0].parentNode.replaceChild(h[0],d[0]);if(e&&(d=h,e=void 0, +(e=d._4ePreviousSourceNode(B,F.NodeType.ELEMENT_NODE))&&"pre"===e.nodeName()))h=i(e.html(),/\n$/,"")+"\n\n"+i(d.html(),/^\n/,""),M.ie?d.outerHtml("
"+h+"
"):d.html(h),e._4eRemove()}a.moveToBookmark(b)}function i(a,b,c){var d="",f="",a=a.replace(/(^]+_ke_bookmark.*?\/span>)|(]+_ke_bookmark.*?\/span>$)/gi,function(a,b,c){b&&(d=b);c&&(f=c);return""});return d+a.replace(b,c)+f}function v(a){var b=[];i(a.outerHtml(),/(\S\s*)\n(?:\s|(]+_ck_bookmark.*?\/span>))*\n(?!$)/gi, +function(a,b,c){return b+""+c+"
"}).replace(/([\s\S]*?)<\/pre>/gi,function(a,c){b.push(c)});return b}function s(a,b){for(var c=b[0].ownerDocument.createDocumentFragment(),d=0;d"),f=f.replace(/[ \t]{2,}/g,function(a){return Array(a.length).join(" ")+
+" "}),e=b.clone();e.html(f);c.appendChild(e[0])}return c}function k(a){var b=a.document;if(a.collapsed)b=p(this,b,void 0),a.insertNode(b),a.moveToPosition(b,r.POSITION_BEFORE_END);else{var c=this.element,d=this._.definition,f,e=L[c];e||(f=B,e=L.span);var h=a.createBookmark();a.enlarge(r.ENLARGE_ELEMENT);a.trim();for(var i=a.createBookmark(),l=i.startNode,i=i.endNode,A=l,m;A&&A[0];){var k=I;if(F.equals(A,i))A=G,k=B;else{var n=A[0].nodeType,s=n===F.NodeType.ELEMENT_NODE?A.nodeName():G;if(s&&A.attr("_ke_bookmark")){A=
+A._4eNextSourceNode(B);continue}if(!s||e[s]&&(A._4ePosition(i)|E.POSITION_PRECEDING|E.POSITION_IDENTICAL|E.POSITION_IS_CONTAINED)===E.POSITION_PRECEDING+E.POSITION_IDENTICAL+E.POSITION_IS_CONTAINED&&(!d.childRule||d.childRule(A))){var q=A.parent();if(q&&"a"===c&&q.nodeName()===c)n=p(this,b,void 0),q._4eMoveChildren(n),q[0].parentNode.replaceChild(n[0],q[0]),n._4eMergeSiblings();else if(q&&q[0]&&((L[q.nodeName()]||L.span)[c]||f)&&(!d.parentRule||d.parentRule(q))){if(!m&&(!s||!L.$removeEmpty[s]||(A._4ePosition(i)|
+E.POSITION_PRECEDING|E.POSITION_IDENTICAL|E.POSITION_IS_CONTAINED)===E.POSITION_PRECEDING+E.POSITION_IDENTICAL+E.POSITION_IS_CONTAINED))m=new z(b),m.setStartBefore(A);if(n===F.NodeType.TEXT_NODE||n===F.NodeType.ELEMENT_NODE&&!A[0].childNodes.length){q=A;for(n=null;(k=!q.next(o,1))&&(n=q.parent())&&e[n.nodeName()]&&(n._4ePosition(l)|E.POSITION_FOLLOWING|E.POSITION_IDENTICAL|E.POSITION_IS_CONTAINED)===E.POSITION_FOLLOWING+E.POSITION_IDENTICAL+E.POSITION_IS_CONTAINED&&(!d.childRule||d.childRule(n));)q=
+n;m.setEndAfter(q)}}else k=B}else k=B;A=A._4eNextSourceNode()}if(k&&m&&!m.collapsed){for(var k=p(this,b,void 0),q=m.getCommonAncestor(),n={},s={},u,t=null,v;k&&q&&k[0]&&q[0];){if(q.nodeName()===c){for(u in d.attributes)if(!s[u]&&(v=q.attr(t)))k.attr(u)===v?k.removeAttr(u):s[u]=1;for(t in d.styles)if(!n[t]&&(v=q.style(t)))k.style(t)===v?k.style(t,""):n[t]=1;if(!k._4eHasAttributes()){k=G;break}}q=q.parent()}k?(k[0].appendChild(m.extractContents()),j(this,k),m.insertNode(k),k._4eMergeSiblings(),M.ie||
+k[0].normalize()):(k=new g(b.createElement("span")),k[0].appendChild(m.extractContents()),m.insertNode(k),j(this,k),k._4eRemove(!0));m=G}}l._4eRemove();i._4eRemove();a.moveToBookmark(h);a.shrink(r.SHRINK_TEXT)}}function u(a){a.enlarge(r.ENLARGE_ELEMENT);var b=a.createBookmark(),c=b.startNode;if(a.collapsed){for(var f=new D(c.parent()),e,i=0,j;i");d[c?"style":"attr"](a,b);return d[c?"style":"attr"](a)}
+function j(a,b){for(var c=l(a),f=b.all(a.element),e=f.length;0<=--e;)d(a,new g(f[e]));for(var r in c)if(r!==a.element){f=b.all(r);for(e=f.length-1;0<=e;e--){var i=new g(f[e]);h(i,c[r])}}}function h(a,b){var c,d,e=b&&b.attributes;if(e)for(c=0;carguments.length||(this.range=a,this.forceBrBreak=v,this.enlargeBr=i,this.enforceRealBlocks=v,this._=this._||{})}var t=b("node"),m=b("./walker"),x=b("./range"),p=b("./base"),e=b("./elementPath"),i=!0,v=!1,s=a.UA,k=p.RangeType,u=a.DOM,w=/^[\r\n\t ]*$/;a.augment(o,{getNextParagraph:function(b){var l,d,c,j,h,f;if(!this._.lastNode){c=this.range.clone();c.shrink(k.SHRINK_ELEMENT,i);c.enlarge(this.forceBrBreak||
+!this.enlargeBr?k.ENLARGE_LIST_ITEM_CONTENTS:k.ENLARGE_BLOCK_CONTENTS);d=new m(c);var g=m.bookmark(i,i);d.evaluator=g;this._.nextNode=d.next();d=new m(c);d.evaluator=g;d=d.previous();this._.lastNode=d._4eNextSourceNode(i);this._.lastNode&&this._.lastNode[0].nodeType===u.NodeType.TEXT_NODE&&!a.trim(this._.lastNode[0].nodeValue)&&this._.lastNode.parent()._4eIsBlockBoundary()&&(g=new x(c.document),g.moveToPosition(this._.lastNode,k.POSITION_AFTER_END),g.checkEndOfBlock()&&(g=new e(g.endContainer),this._.lastNode=
+(g.block||g.blockLimit)._4eNextSourceNode(i)));this._.lastNode||(this._.lastNode=this._.docEndMarker=new t(c.document.createTextNode("")),u.insertAfter(this._.lastNode[0],d[0]));c=null}g=this._.nextNode;d=this._.lastNode;for(this._.nextNode=null;g;){var o=v,p=g[0].nodeType!==u.NodeType.ELEMENT_NODE,q=v;if(p)g[0].nodeType===u.NodeType.TEXT_NODE&&w.test(g[0].nodeValue)&&(p=v);else{var D=g.nodeName();if(g._4eIsBlockBoundary(this.forceBrBreak&&{br:1})){if("br"===D)p=i;else if(!c&&!g[0].childNodes.length&&
+"hr"!==D){l=g;j=g.equals(d);break}c&&(c.setEndAt(g,k.POSITION_BEFORE_START),"br"!==D&&(this._.nextNode=g));o=i}else{if(g[0].firstChild){c||(c=new x(this.range.document),c.setStartAt(g,k.POSITION_BEFORE_START));g=new t(g[0].firstChild);continue}p=i}}p&&!c&&(c=new x(this.range.document),c.setStartAt(g,k.POSITION_BEFORE_START));j=(!o||p)&&g.equals(d);if(c&&!o)for(;!g[0].nextSibling&&!j;){D=g.parent();if(D._4eIsBlockBoundary(this.forceBrBreak&&{br:1})){o=i;j||D.equals(d);break}g=D;p=i;j=g.equals(d);q=
+i}p&&c.setEndAt(g,k.POSITION_AFTER_END);g=g._4eNextSourceNode(q,null,d);if((j=!g)||o&&c)break}if(!l){if(!c)return this._.docEndMarker&&this._.docEndMarker._4eRemove(),this._.nextNode=null;l=new e(c.startContainer);g=l.blockLimit;o={div:1,th:1,td:1};l=l.block;if((!l||!l[0])&&!this.enforceRealBlocks&&o[g.nodeName()]&&c.checkStartOfBlock()&&c.checkEndOfBlock())l=g;else if(!l||this.enforceRealBlocks&&"li"===l.nodeName())l=new t(this.range.document.createElement(b||"p")),l[0].appendChild(c.extractContents()),
+l._4eTrim(),c.insertNode(l),h=f=i;else if("li"!==l.nodeName()){if(!c.checkStartOfBlock()||!c.checkEndOfBlock())l=l.clone(v),l[0].appendChild(c.extractContents()),l._4eTrim(),f=c.splitBlock(),h=!f.wasStartOfBlock,f=!f.wasEndOfBlock,c.insertNode(l)}else j||(this._.nextNode=l.equals(d)?null:c.getBoundaryNodes().endNode._4eNextSourceNode(i,null,d))}h&&(c=new t(l[0].previousSibling),c[0]&&c[0].nodeType===u.NodeType.ELEMENT_NODE&&("br"===c.nodeName()?c._4eRemove():c[0].lastChild&&"br"===u.nodeName(c[0].lastChild)&&
+u._4eRemove(c[0].lastChild)));f&&(c=m.bookmark(v,i),h=new t(l[0].lastChild),h[0]&&h[0].nodeType===u.NodeType.ELEMENT_NODE&&"br"===h.nodeName()&&(s.ie||h.prev(c,1)||h.next(c,1))&&h.remove());this._.nextNode||(this._.nextNode=j||l.equals(d)?null:l._4eNextSourceNode(i,null,d));return l}});x.prototype.createIterator=function(){return new o(this)};return o});
+KISSY.add("editor/z-index-manager",["./base"],function(a,b){var o=b("./base"),t=o.ZIndexManager={BUBBLE_VIEW:1100,POPUP_MENU:1200,STORE_FLASH_SHOW:99999,MAXIMIZE:900,OVERLAY:9999,LOADING:11E3,LOADING_CANCEL:12E3,SELECT:1200};o.baseZIndex=function(a){return(o.Config.baseZIndex||1E4)+a};return t});
+KISSY.add("editor","node,editor/iframe-content-tpl,editor/base,editor/utils,editor/focusManager,editor/clipboard,editor/enterKey,editor/htmlDataProcessor,editor/selectionFix,editor/plugin-meta,editor/styles,editor/domIterator,editor/z-index-manager".split(","),function(a,b,o,t){function m(a,b){var c=a.body;I(function(){a.designMode="on";setTimeout(function N(){a.designMode="off";c.focus();if(!N.retry)N.retry=h},50)},function(){a.designMode="off";c.setAttribute("contentEditable",false);c.setAttribute("contentEditable",
+true);b||m(a,1)})}function x(b){var c=b.get("textarea")[0],d=b.get("window"),e=b.get("document"),g=e[0];if(z.webkit){e.on("click",function(b){var c=new s(b.target);a.inArray(c.nodeName(),["input","select"])&&b.preventDefault()});e.on("mouseup",function(b){var c=new s(b.target);a.inArray(c.nodeName(),["input","textarea"])&&b.preventDefault()})}if(z.gecko||z.ie||z.opera){var h;h=(new s('')).insertAfter(c);h.on("focus",
+function(){b.focus()});b.activateGecko=function(){z.gecko&&b.__iframeFocus&&h[0].focus()};b.on("destroy",function(){h.detach();h.remove()})}d.on("focus",function(){z.gecko?m(g,f):z.opera&&g.body.focus();b.notifySelectionChange()});if(z.gecko)e.on("mousedown",function(){b.__iframeFocus||m(g,f)});if(q){e.on("keydown",function(a){if(a.keyCode in{8:1,46:1}){var c=b.getSelection(),d=c.getSelectedElement();if(d){b.execCommand("save");var e=c.getRanges()[0].createBookmark();d.remove();c.selectBookmarks([e]);
+b.execCommand("save");a.preventDefault()}}});if(g.compatMode==="CSS1Compat"){var i={33:1,34:1};e.on("keydown",function(a){a.keyCode in i&&setTimeout(function(){b.getSelection().scrollIntoView()},0)})}}if(z.webkit)e.on("mousedown",function(c){c=new s(c.target);a.inArray(c.nodeName(),["img","hr","input","textarea","select"])&&b.getSelection().selectElement(c)});if(z.gecko)e.on("dragstart",function(a){var b=new s(a.target);b.nodeName()==="img"&&/ke_/.test(b[0].className)&&a.preventDefault()});n.add(b)}
+function p(b,c,d,e){var f="",h;h=w.debugUrl("theme/editor-iframe.css");d=d.concat([]);d.unshift(h);for(h=0;h',{href:d[h]});return a.substitute(k,{doctype:a.UA.ieMode===8?'':"",title:"{title}",links:f,style:"",data:e||"",script:b?'
+
+
diff --git a/src/anim/sub-modules/base/coverage/src/base.js b/src/anim/sub-modules/base/coverage/src/base.js
index f6b3a173a8..ccf486c732 100644
--- a/src/anim/sub-modules/base/coverage/src/base.js
+++ b/src/anim/sub-modules/base/coverage/src/base.js
@@ -505,15 +505,15 @@ function visit59_218_1(result) {
 function visit58_212_1(result) {
   _$jscoverage['/base.js'].branchData['212'][1].ranCondition(result);
   return result;
-}_$jscoverage['/base.js'].branchData['178'][1].init(3831, 27, 'S.isEmptyObject(_propsData)');
+}_$jscoverage['/base.js'].branchData['178'][1].init(3826, 27, 'S.isEmptyObject(_propsData)');
 function visit57_178_1(result) {
   _$jscoverage['/base.js'].branchData['178'][1].ranCondition(result);
   return result;
-}_$jscoverage['/base.js'].branchData['172'][1].init(2649, 14, 'exit === false');
+}_$jscoverage['/base.js'].branchData['172'][1].init(2644, 14, 'exit === false');
 function visit56_172_1(result) {
   _$jscoverage['/base.js'].branchData['172'][1].ranCondition(result);
   return result;
-}_$jscoverage['/base.js'].branchData['158'][1].init(591, 14, 'val === \'hide\'');
+}_$jscoverage['/base.js'].branchData['158'][1].init(585, 14, 'val === \'hide\'');
 function visit55_158_1(result) {
   _$jscoverage['/base.js'].branchData['158'][1].ranCondition(result);
   return result;
@@ -763,21 +763,20 @@ KISSY.add(function(S, require) {
     if (visit54_155_1(val === 'toggle')) {
       _$jscoverage['/base.js'].lineData[156]++;
       val = hidden ? 'show' : 'hide';
+    }
+    _$jscoverage['/base.js'].lineData[158]++;
+    if (visit55_158_1(val === 'hide')) {
+      _$jscoverage['/base.js'].lineData[159]++;
+      _propData.value = 0;
+      _$jscoverage['/base.js'].lineData[161]++;
+      _backupProps.display = 'none';
     } else {
-      _$jscoverage['/base.js'].lineData[158]++;
-      if (visit55_158_1(val === 'hide')) {
-        _$jscoverage['/base.js'].lineData[159]++;
-        _propData.value = 0;
-        _$jscoverage['/base.js'].lineData[161]++;
-        _backupProps.display = 'none';
-      } else {
-        _$jscoverage['/base.js'].lineData[163]++;
-        _propData.value = Dom.css(node, prop);
-        _$jscoverage['/base.js'].lineData[165]++;
-        Dom.css(node, prop, 0);
-        _$jscoverage['/base.js'].lineData[166]++;
-        Dom.show(node);
-      }
+      _$jscoverage['/base.js'].lineData[163]++;
+      _propData.value = Dom.css(node, prop);
+      _$jscoverage['/base.js'].lineData[165]++;
+      Dom.css(node, prop, 0);
+      _$jscoverage['/base.js'].lineData[166]++;
+      Dom.show(node);
     }
   }
   _$jscoverage['/base.js'].lineData[169]++;
diff --git a/src/anim/sub-modules/base/src/base.js b/src/anim/sub-modules/base/src/base.js
index 79d4e73fa6..f47d1b1dec 100644
--- a/src/anim/sub-modules/base/src/base.js
+++ b/src/anim/sub-modules/base/src/base.js
@@ -155,7 +155,7 @@ KISSY.add(function (S, require) {
                         if (val === 'toggle') {
                             val = hidden ? 'show' : 'hide';
                         }
-                        else if (val === 'hide') {
+                        if (val === 'hide') {
                             _propData.value = 0;
                             // 执行完后隐藏
                             _backupProps.display = 'none';
diff --git a/src/anim/sub-modules/timer/coverage/src/timer/transform.js b/src/anim/sub-modules/timer/coverage/src/timer/transform.js
index 04709f5044..5c8f643d81 100644
--- a/src/anim/sub-modules/timer/coverage/src/timer/transform.js
+++ b/src/anim/sub-modules/timer/coverage/src/timer/transform.js
@@ -232,85 +232,77 @@ if (! _$jscoverage['/timer/transform.js']) {
   _$jscoverage['/timer/transform.js'].lineData[6] = 0;
   _$jscoverage['/timer/transform.js'].lineData[7] = 0;
   _$jscoverage['/timer/transform.js'].lineData[8] = 0;
-  _$jscoverage['/timer/transform.js'].lineData[10] = 0;
-  _$jscoverage['/timer/transform.js'].lineData[11] = 0;
+  _$jscoverage['/timer/transform.js'].lineData[9] = 0;
   _$jscoverage['/timer/transform.js'].lineData[12] = 0;
   _$jscoverage['/timer/transform.js'].lineData[13] = 0;
+  _$jscoverage['/timer/transform.js'].lineData[14] = 0;
   _$jscoverage['/timer/transform.js'].lineData[15] = 0;
-  _$jscoverage['/timer/transform.js'].lineData[18] = 0;
-  _$jscoverage['/timer/transform.js'].lineData[19] = 0;
-  _$jscoverage['/timer/transform.js'].lineData[20] = 0;
-  _$jscoverage['/timer/transform.js'].lineData[27] = 0;
-  _$jscoverage['/timer/transform.js'].lineData[29] = 0;
+  _$jscoverage['/timer/transform.js'].lineData[17] = 0;
+  _$jscoverage['/timer/transform.js'].lineData[21] = 0;
+  _$jscoverage['/timer/transform.js'].lineData[22] = 0;
+  _$jscoverage['/timer/transform.js'].lineData[23] = 0;
   _$jscoverage['/timer/transform.js'].lineData[30] = 0;
   _$jscoverage['/timer/transform.js'].lineData[31] = 0;
+  _$jscoverage['/timer/transform.js'].lineData[32] = 0;
   _$jscoverage['/timer/transform.js'].lineData[33] = 0;
-  _$jscoverage['/timer/transform.js'].lineData[34] = 0;
   _$jscoverage['/timer/transform.js'].lineData[35] = 0;
+  _$jscoverage['/timer/transform.js'].lineData[36] = 0;
   _$jscoverage['/timer/transform.js'].lineData[37] = 0;
-  _$jscoverage['/timer/transform.js'].lineData[38] = 0;
-  _$jscoverage['/timer/transform.js'].lineData[39] = 0;
-  _$jscoverage['/timer/transform.js'].lineData[40] = 0;
   _$jscoverage['/timer/transform.js'].lineData[42] = 0;
-  _$jscoverage['/timer/transform.js'].lineData[43] = 0;
-  _$jscoverage['/timer/transform.js'].lineData[44] = 0;
-  _$jscoverage['/timer/transform.js'].lineData[45] = 0;
-  _$jscoverage['/timer/transform.js'].lineData[46] = 0;
-  _$jscoverage['/timer/transform.js'].lineData[51] = 0;
-  _$jscoverage['/timer/transform.js'].lineData[56] = 0;
-  _$jscoverage['/timer/transform.js'].lineData[67] = 0;
-  _$jscoverage['/timer/transform.js'].lineData[68] = 0;
-  _$jscoverage['/timer/transform.js'].lineData[79] = 0;
-  _$jscoverage['/timer/transform.js'].lineData[80] = 0;
+  _$jscoverage['/timer/transform.js'].lineData[47] = 0;
+  _$jscoverage['/timer/transform.js'].lineData[58] = 0;
+  _$jscoverage['/timer/transform.js'].lineData[59] = 0;
+  _$jscoverage['/timer/transform.js'].lineData[70] = 0;
+  _$jscoverage['/timer/transform.js'].lineData[71] = 0;
+  _$jscoverage['/timer/transform.js'].lineData[74] = 0;
+  _$jscoverage['/timer/transform.js'].lineData[75] = 0;
+  _$jscoverage['/timer/transform.js'].lineData[76] = 0;
   _$jscoverage['/timer/transform.js'].lineData[83] = 0;
   _$jscoverage['/timer/transform.js'].lineData[84] = 0;
   _$jscoverage['/timer/transform.js'].lineData[85] = 0;
+  _$jscoverage['/timer/transform.js'].lineData[86] = 0;
+  _$jscoverage['/timer/transform.js'].lineData[87] = 0;
   _$jscoverage['/timer/transform.js'].lineData[92] = 0;
   _$jscoverage['/timer/transform.js'].lineData[93] = 0;
-  _$jscoverage['/timer/transform.js'].lineData[94] = 0;
-  _$jscoverage['/timer/transform.js'].lineData[95] = 0;
-  _$jscoverage['/timer/transform.js'].lineData[96] = 0;
-  _$jscoverage['/timer/transform.js'].lineData[101] = 0;
+  _$jscoverage['/timer/transform.js'].lineData[98] = 0;
+  _$jscoverage['/timer/transform.js'].lineData[99] = 0;
+  _$jscoverage['/timer/transform.js'].lineData[100] = 0;
   _$jscoverage['/timer/transform.js'].lineData[102] = 0;
+  _$jscoverage['/timer/transform.js'].lineData[103] = 0;
   _$jscoverage['/timer/transform.js'].lineData[107] = 0;
   _$jscoverage['/timer/transform.js'].lineData[108] = 0;
   _$jscoverage['/timer/transform.js'].lineData[109] = 0;
-  _$jscoverage['/timer/transform.js'].lineData[111] = 0;
-  _$jscoverage['/timer/transform.js'].lineData[112] = 0;
+  _$jscoverage['/timer/transform.js'].lineData[110] = 0;
+  _$jscoverage['/timer/transform.js'].lineData[113] = 0;
+  _$jscoverage['/timer/transform.js'].lineData[114] = 0;
+  _$jscoverage['/timer/transform.js'].lineData[115] = 0;
   _$jscoverage['/timer/transform.js'].lineData[116] = 0;
-  _$jscoverage['/timer/transform.js'].lineData[117] = 0;
-  _$jscoverage['/timer/transform.js'].lineData[118] = 0;
   _$jscoverage['/timer/transform.js'].lineData[119] = 0;
-  _$jscoverage['/timer/transform.js'].lineData[122] = 0;
   _$jscoverage['/timer/transform.js'].lineData[123] = 0;
-  _$jscoverage['/timer/transform.js'].lineData[124] = 0;
-  _$jscoverage['/timer/transform.js'].lineData[125] = 0;
-  _$jscoverage['/timer/transform.js'].lineData[128] = 0;
+  _$jscoverage['/timer/transform.js'].lineData[126] = 0;
+  _$jscoverage['/timer/transform.js'].lineData[127] = 0;
+  _$jscoverage['/timer/transform.js'].lineData[130] = 0;
   _$jscoverage['/timer/transform.js'].lineData[132] = 0;
+  _$jscoverage['/timer/transform.js'].lineData[133] = 0;
   _$jscoverage['/timer/transform.js'].lineData[135] = 0;
   _$jscoverage['/timer/transform.js'].lineData[136] = 0;
+  _$jscoverage['/timer/transform.js'].lineData[137] = 0;
   _$jscoverage['/timer/transform.js'].lineData[139] = 0;
   _$jscoverage['/timer/transform.js'].lineData[141] = 0;
   _$jscoverage['/timer/transform.js'].lineData[142] = 0;
   _$jscoverage['/timer/transform.js'].lineData[144] = 0;
-  _$jscoverage['/timer/transform.js'].lineData[145] = 0;
-  _$jscoverage['/timer/transform.js'].lineData[146] = 0;
-  _$jscoverage['/timer/transform.js'].lineData[148] = 0;
+  _$jscoverage['/timer/transform.js'].lineData[149] = 0;
   _$jscoverage['/timer/transform.js'].lineData[150] = 0;
   _$jscoverage['/timer/transform.js'].lineData[151] = 0;
+  _$jscoverage['/timer/transform.js'].lineData[152] = 0;
   _$jscoverage['/timer/transform.js'].lineData[153] = 0;
+  _$jscoverage['/timer/transform.js'].lineData[154] = 0;
+  _$jscoverage['/timer/transform.js'].lineData[155] = 0;
+  _$jscoverage['/timer/transform.js'].lineData[156] = 0;
+  _$jscoverage['/timer/transform.js'].lineData[157] = 0;
   _$jscoverage['/timer/transform.js'].lineData[158] = 0;
-  _$jscoverage['/timer/transform.js'].lineData[159] = 0;
-  _$jscoverage['/timer/transform.js'].lineData[160] = 0;
-  _$jscoverage['/timer/transform.js'].lineData[161] = 0;
-  _$jscoverage['/timer/transform.js'].lineData[162] = 0;
-  _$jscoverage['/timer/transform.js'].lineData[163] = 0;
-  _$jscoverage['/timer/transform.js'].lineData[164] = 0;
-  _$jscoverage['/timer/transform.js'].lineData[165] = 0;
   _$jscoverage['/timer/transform.js'].lineData[166] = 0;
-  _$jscoverage['/timer/transform.js'].lineData[167] = 0;
-  _$jscoverage['/timer/transform.js'].lineData[175] = 0;
-  _$jscoverage['/timer/transform.js'].lineData[177] = 0;
+  _$jscoverage['/timer/transform.js'].lineData[168] = 0;
 }
 if (! _$jscoverage['/timer/transform.js'].functionData) {
   _$jscoverage['/timer/transform.js'].functionData = [];
@@ -327,65 +319,65 @@ if (! _$jscoverage['/timer/transform.js'].functionData) {
 }
 if (! _$jscoverage['/timer/transform.js'].branchData) {
   _$jscoverage['/timer/transform.js'].branchData = {};
-  _$jscoverage['/timer/transform.js'].branchData['27'] = [];
-  _$jscoverage['/timer/transform.js'].branchData['27'][1] = new BranchData();
-  _$jscoverage['/timer/transform.js'].branchData['42'] = [];
-  _$jscoverage['/timer/transform.js'].branchData['42'][1] = new BranchData();
-  _$jscoverage['/timer/transform.js'].branchData['92'] = [];
-  _$jscoverage['/timer/transform.js'].branchData['92'][1] = new BranchData();
-  _$jscoverage['/timer/transform.js'].branchData['108'] = [];
-  _$jscoverage['/timer/transform.js'].branchData['108'][1] = new BranchData();
-  _$jscoverage['/timer/transform.js'].branchData['118'] = [];
-  _$jscoverage['/timer/transform.js'].branchData['118'][1] = new BranchData();
-  _$jscoverage['/timer/transform.js'].branchData['124'] = [];
-  _$jscoverage['/timer/transform.js'].branchData['124'][1] = new BranchData();
-  _$jscoverage['/timer/transform.js'].branchData['144'] = [];
-  _$jscoverage['/timer/transform.js'].branchData['144'][1] = new BranchData();
-  _$jscoverage['/timer/transform.js'].branchData['145'] = [];
-  _$jscoverage['/timer/transform.js'].branchData['145'][1] = new BranchData();
-  _$jscoverage['/timer/transform.js'].branchData['145'][2] = new BranchData();
-  _$jscoverage['/timer/transform.js'].branchData['150'] = [];
-  _$jscoverage['/timer/transform.js'].branchData['150'][1] = new BranchData();
+  _$jscoverage['/timer/transform.js'].branchData['30'] = [];
+  _$jscoverage['/timer/transform.js'].branchData['30'][1] = new BranchData();
+  _$jscoverage['/timer/transform.js'].branchData['35'] = [];
+  _$jscoverage['/timer/transform.js'].branchData['35'][1] = new BranchData();
+  _$jscoverage['/timer/transform.js'].branchData['83'] = [];
+  _$jscoverage['/timer/transform.js'].branchData['83'][1] = new BranchData();
+  _$jscoverage['/timer/transform.js'].branchData['99'] = [];
+  _$jscoverage['/timer/transform.js'].branchData['99'][1] = new BranchData();
+  _$jscoverage['/timer/transform.js'].branchData['109'] = [];
+  _$jscoverage['/timer/transform.js'].branchData['109'][1] = new BranchData();
+  _$jscoverage['/timer/transform.js'].branchData['115'] = [];
+  _$jscoverage['/timer/transform.js'].branchData['115'][1] = new BranchData();
+  _$jscoverage['/timer/transform.js'].branchData['135'] = [];
+  _$jscoverage['/timer/transform.js'].branchData['135'][1] = new BranchData();
+  _$jscoverage['/timer/transform.js'].branchData['136'] = [];
+  _$jscoverage['/timer/transform.js'].branchData['136'][1] = new BranchData();
+  _$jscoverage['/timer/transform.js'].branchData['136'][2] = new BranchData();
+  _$jscoverage['/timer/transform.js'].branchData['141'] = [];
+  _$jscoverage['/timer/transform.js'].branchData['141'][1] = new BranchData();
 }
-_$jscoverage['/timer/transform.js'].branchData['150'][1].init(439, 7, 'self.to');
-function visit84_150_1(result) {
-  _$jscoverage['/timer/transform.js'].branchData['150'][1].ranCondition(result);
+_$jscoverage['/timer/transform.js'].branchData['141'][1].init(439, 7, 'self.to');
+function visit84_141_1(result) {
+  _$jscoverage['/timer/transform.js'].branchData['141'][1].ranCondition(result);
   return result;
-}_$jscoverage['/timer/transform.js'].branchData['145'][2].init(259, 20, 'self.from !== \'none\'');
-function visit83_145_2(result) {
-  _$jscoverage['/timer/transform.js'].branchData['145'][2].ranCondition(result);
+}_$jscoverage['/timer/transform.js'].branchData['136'][2].init(259, 20, 'self.from !== \'none\'');
+function visit83_136_2(result) {
+  _$jscoverage['/timer/transform.js'].branchData['136'][2].ranCondition(result);
   return result;
-}_$jscoverage['/timer/transform.js'].branchData['145'][1].init(246, 33, 'self.from && self.from !== \'none\'');
-function visit82_145_1(result) {
-  _$jscoverage['/timer/transform.js'].branchData['145'][1].ranCondition(result);
+}_$jscoverage['/timer/transform.js'].branchData['136'][1].init(246, 33, 'self.from && self.from !== \'none\'');
+function visit82_136_1(result) {
+  _$jscoverage['/timer/transform.js'].branchData['136'][1].ranCondition(result);
   return result;
-}_$jscoverage['/timer/transform.js'].branchData['144'][1].init(177, 51, 'Dom.style(self.anim.node, \'transform\') || self.from');
-function visit81_144_1(result) {
-  _$jscoverage['/timer/transform.js'].branchData['144'][1].ranCondition(result);
+}_$jscoverage['/timer/transform.js'].branchData['135'][1].init(177, 51, 'Dom.style(self.anim.node, \'transform\') || self.from');
+function visit81_135_1(result) {
+  _$jscoverage['/timer/transform.js'].branchData['135'][1].ranCondition(result);
   return result;
-}_$jscoverage['/timer/transform.js'].branchData['124'][1].init(146, 16, 'val[1] || val[0]');
-function visit80_124_1(result) {
-  _$jscoverage['/timer/transform.js'].branchData['124'][1].ranCondition(result);
+}_$jscoverage['/timer/transform.js'].branchData['115'][1].init(146, 16, 'val[1] || val[0]');
+function visit80_115_1(result) {
+  _$jscoverage['/timer/transform.js'].branchData['115'][1].ranCondition(result);
   return result;
-}_$jscoverage['/timer/transform.js'].branchData['118'][1].init(160, 11, 'val[1] || 0');
-function visit79_118_1(result) {
-  _$jscoverage['/timer/transform.js'].branchData['118'][1].ranCondition(result);
+}_$jscoverage['/timer/transform.js'].branchData['109'][1].init(160, 11, 'val[1] || 0');
+function visit79_109_1(result) {
+  _$jscoverage['/timer/transform.js'].branchData['109'][1].ranCondition(result);
   return result;
-}_$jscoverage['/timer/transform.js'].branchData['108'][1].init(79, 23, '!S.endsWith(val, \'deg\')');
-function visit78_108_1(result) {
-  _$jscoverage['/timer/transform.js'].branchData['108'][1].ranCondition(result);
+}_$jscoverage['/timer/transform.js'].branchData['99'][1].init(79, 23, '!S.endsWith(val, \'deg\')');
+function visit78_99_1(result) {
+  _$jscoverage['/timer/transform.js'].branchData['99'][1].ranCondition(result);
   return result;
-}_$jscoverage['/timer/transform.js'].branchData['92'][1].init(286, 7, '++i < l');
-function visit77_92_1(result) {
-  _$jscoverage['/timer/transform.js'].branchData['92'][1].ranCondition(result);
+}_$jscoverage['/timer/transform.js'].branchData['83'][1].init(286, 7, '++i < l');
+function visit77_83_1(result) {
+  _$jscoverage['/timer/transform.js'].branchData['83'][1].ranCondition(result);
   return result;
-}_$jscoverage['/timer/transform.js'].branchData['42'][1].init(423, 13, 'A * D < B * C');
-function visit76_42_1(result) {
-  _$jscoverage['/timer/transform.js'].branchData['42'][1].ranCondition(result);
+}_$jscoverage['/timer/transform.js'].branchData['35'][1].init(189, 13, 'A * D < B * C');
+function visit76_35_1(result) {
+  _$jscoverage['/timer/transform.js'].branchData['35'][1].ranCondition(result);
   return result;
-}_$jscoverage['/timer/transform.js'].branchData['27'][1].init(243, 13, 'A * D - B * C');
-function visit75_27_1(result) {
-  _$jscoverage['/timer/transform.js'].branchData['27'][1].ranCondition(result);
+}_$jscoverage['/timer/transform.js'].branchData['30'][1].init(243, 13, 'A * D - B * C');
+function visit75_30_1(result) {
+  _$jscoverage['/timer/transform.js'].branchData['30'][1].ranCondition(result);
   return result;
 }_$jscoverage['/timer/transform.js'].lineData[6]++;
 KISSY.add(function(S, require) {
@@ -394,65 +386,49 @@ KISSY.add(function(S, require) {
   var Dom = require('dom');
   _$jscoverage['/timer/transform.js'].lineData[8]++;
   var Fx = require('./fx');
-  _$jscoverage['/timer/transform.js'].lineData[10]++;
+  _$jscoverage['/timer/transform.js'].lineData[9]++;
+  var translateTpl = S.Features.isTransform3dSupported() ? 'translate3d({translateX}px,{translateY}px,0)' : 'translate({translateX}px,{translateY}px)';
+  _$jscoverage['/timer/transform.js'].lineData[12]++;
   function toMatrixArray(matrix) {
     _$jscoverage['/timer/transform.js'].functionData[1]++;
-    _$jscoverage['/timer/transform.js'].lineData[11]++;
+    _$jscoverage['/timer/transform.js'].lineData[13]++;
     matrix = matrix.split(/,/);
-    _$jscoverage['/timer/transform.js'].lineData[12]++;
+    _$jscoverage['/timer/transform.js'].lineData[14]++;
     matrix = S.map(matrix, function(v) {
   _$jscoverage['/timer/transform.js'].functionData[2]++;
-  _$jscoverage['/timer/transform.js'].lineData[13]++;
+  _$jscoverage['/timer/transform.js'].lineData[15]++;
   return myParse(v);
 });
-    _$jscoverage['/timer/transform.js'].lineData[15]++;
+    _$jscoverage['/timer/transform.js'].lineData[17]++;
     return matrix;
   }
-  _$jscoverage['/timer/transform.js'].lineData[18]++;
+  _$jscoverage['/timer/transform.js'].lineData[21]++;
   function decomposeMatrix(matrix) {
     _$jscoverage['/timer/transform.js'].functionData[3]++;
-    _$jscoverage['/timer/transform.js'].lineData[19]++;
+    _$jscoverage['/timer/transform.js'].lineData[22]++;
     matrix = toMatrixArray(matrix);
-    _$jscoverage['/timer/transform.js'].lineData[20]++;
+    _$jscoverage['/timer/transform.js'].lineData[23]++;
     var scaleX, scaleY, skew, A = matrix[0], B = matrix[1], C = matrix[2], D = matrix[3];
-    _$jscoverage['/timer/transform.js'].lineData[27]++;
-    if (visit75_27_1(A * D - B * C)) {
-      _$jscoverage['/timer/transform.js'].lineData[29]++;
-      scaleX = Math.sqrt(A * A + B * B);
-      _$jscoverage['/timer/transform.js'].lineData[30]++;
-      A /= scaleX;
+    _$jscoverage['/timer/transform.js'].lineData[30]++;
+    if (visit75_30_1(A * D - B * C)) {
       _$jscoverage['/timer/transform.js'].lineData[31]++;
-      B /= scaleX;
+      scaleX = Math.sqrt(A * A + B * B);
+      _$jscoverage['/timer/transform.js'].lineData[32]++;
+      skew = (A * C + B * D) / (A * D - C * B);
       _$jscoverage['/timer/transform.js'].lineData[33]++;
-      skew = A * C + B * D;
-      _$jscoverage['/timer/transform.js'].lineData[34]++;
-      C -= A * skew;
+      scaleY = (A * D - B * C) / scaleX;
       _$jscoverage['/timer/transform.js'].lineData[35]++;
-      D -= B * skew;
-      _$jscoverage['/timer/transform.js'].lineData[37]++;
-      scaleY = Math.sqrt(C * C + D * D);
-      _$jscoverage['/timer/transform.js'].lineData[38]++;
-      C /= scaleY;
-      _$jscoverage['/timer/transform.js'].lineData[39]++;
-      D /= scaleY;
-      _$jscoverage['/timer/transform.js'].lineData[40]++;
-      skew /= scaleY;
-      _$jscoverage['/timer/transform.js'].lineData[42]++;
-      if (visit76_42_1(A * D < B * C)) {
-        _$jscoverage['/timer/transform.js'].lineData[43]++;
-        A = -A;
-        _$jscoverage['/timer/transform.js'].lineData[44]++;
-        B = -B;
-        _$jscoverage['/timer/transform.js'].lineData[45]++;
+      if (visit76_35_1(A * D < B * C)) {
+        _$jscoverage['/timer/transform.js'].lineData[36]++;
         skew = -skew;
-        _$jscoverage['/timer/transform.js'].lineData[46]++;
+        _$jscoverage['/timer/transform.js'].lineData[37]++;
         scaleX = -scaleX;
       }
     } else {
-      _$jscoverage['/timer/transform.js'].lineData[51]++;
+      _$jscoverage['/timer/transform.js'].lineData[42]++;
       scaleX = scaleY = skew = 0;
     }
-    _$jscoverage['/timer/transform.js'].lineData[56]++;
+    _$jscoverage['/timer/transform.js'].lineData[47]++;
     return {
   'translateX': myParse(matrix[4]), 
   'translateY': myParse(matrix[5]), 
@@ -462,10 +438,10 @@ KISSY.add(function(S, require) {
   'scaleX': myParse(scaleX), 
   'scaleY': myParse(scaleY)};
   }
-  _$jscoverage['/timer/transform.js'].lineData[67]++;
+  _$jscoverage['/timer/transform.js'].lineData[58]++;
   function defaultDecompose() {
     _$jscoverage['/timer/transform.js'].functionData[4]++;
-    _$jscoverage['/timer/transform.js'].lineData[68]++;
+    _$jscoverage['/timer/transform.js'].lineData[59]++;
     return {
   'translateX': 0, 
   'translateY': 0, 
@@ -475,136 +451,136 @@ KISSY.add(function(S, require) {
   'scaleX': 1, 
   'scaleY': 1};
   }
-  _$jscoverage['/timer/transform.js'].lineData[79]++;
+  _$jscoverage['/timer/transform.js'].lineData[70]++;
   function myParse(v) {
     _$jscoverage['/timer/transform.js'].functionData[5]++;
-    _$jscoverage['/timer/transform.js'].lineData[80]++;
+    _$jscoverage['/timer/transform.js'].lineData[71]++;
     return Math.round(parseFloat(v) * 1e5) / 1e5;
   }
-  _$jscoverage['/timer/transform.js'].lineData[83]++;
+  _$jscoverage['/timer/transform.js'].lineData[74]++;
   function getTransformInfo(transform) {
     _$jscoverage['/timer/transform.js'].functionData[6]++;
-    _$jscoverage['/timer/transform.js'].lineData[84]++;
+    _$jscoverage['/timer/transform.js'].lineData[75]++;
     transform = transform.split(')');
-    _$jscoverage['/timer/transform.js'].lineData[85]++;
+    _$jscoverage['/timer/transform.js'].lineData[76]++;
     var trim = S.trim, i = -1, l = transform.length - 1, split, prop, val, ret = defaultDecompose();
-    _$jscoverage['/timer/transform.js'].lineData[92]++;
-    while (visit77_92_1(++i < l)) {
-      _$jscoverage['/timer/transform.js'].lineData[93]++;
+    _$jscoverage['/timer/transform.js'].lineData[83]++;
+    while (visit77_83_1(++i < l)) {
+      _$jscoverage['/timer/transform.js'].lineData[84]++;
       split = transform[i].split('(');
-      _$jscoverage['/timer/transform.js'].lineData[94]++;
+      _$jscoverage['/timer/transform.js'].lineData[85]++;
       prop = trim(split[0]);
-      _$jscoverage['/timer/transform.js'].lineData[95]++;
+      _$jscoverage['/timer/transform.js'].lineData[86]++;
       val = split[1];
-      _$jscoverage['/timer/transform.js'].lineData[96]++;
+      _$jscoverage['/timer/transform.js'].lineData[87]++;
       switch (prop) {
         case 'translateX':
         case 'translateY':
         case 'scaleX':
         case 'scaleY':
-          _$jscoverage['/timer/transform.js'].lineData[101]++;
+          _$jscoverage['/timer/transform.js'].lineData[92]++;
           ret[prop] = myParse(val);
-          _$jscoverage['/timer/transform.js'].lineData[102]++;
+          _$jscoverage['/timer/transform.js'].lineData[93]++;
           break;
         case 'rotate':
         case 'skewX':
         case 'skewY':
-          _$jscoverage['/timer/transform.js'].lineData[107]++;
+          _$jscoverage['/timer/transform.js'].lineData[98]++;
           var v = myParse(val);
-          _$jscoverage['/timer/transform.js'].lineData[108]++;
-          if (visit78_108_1(!S.endsWith(val, 'deg'))) {
-            _$jscoverage['/timer/transform.js'].lineData[109]++;
+          _$jscoverage['/timer/transform.js'].lineData[99]++;
+          if (visit78_99_1(!S.endsWith(val, 'deg'))) {
+            _$jscoverage['/timer/transform.js'].lineData[100]++;
             v = v * 180 / Math.PI;
           }
-          _$jscoverage['/timer/transform.js'].lineData[111]++;
+          _$jscoverage['/timer/transform.js'].lineData[102]++;
           ret[prop] = v;
-          _$jscoverage['/timer/transform.js'].lineData[112]++;
+          _$jscoverage['/timer/transform.js'].lineData[103]++;
           break;
         case 'translate':
         case 'translate3d':
-          _$jscoverage['/timer/transform.js'].lineData[116]++;
+          _$jscoverage['/timer/transform.js'].lineData[107]++;
           val = val.split(',');
-          _$jscoverage['/timer/transform.js'].lineData[117]++;
+          _$jscoverage['/timer/transform.js'].lineData[108]++;
           ret.translateX = myParse(val[0]);
-          _$jscoverage['/timer/transform.js'].lineData[118]++;
-          ret.translateY = myParse(visit79_118_1(val[1] || 0));
-          _$jscoverage['/timer/transform.js'].lineData[119]++;
+          _$jscoverage['/timer/transform.js'].lineData[109]++;
+          ret.translateY = myParse(visit79_109_1(val[1] || 0));
+          _$jscoverage['/timer/transform.js'].lineData[110]++;
           break;
         case 'scale':
-          _$jscoverage['/timer/transform.js'].lineData[122]++;
+          _$jscoverage['/timer/transform.js'].lineData[113]++;
           val = val.split(',');
-          _$jscoverage['/timer/transform.js'].lineData[123]++;
+          _$jscoverage['/timer/transform.js'].lineData[114]++;
           ret.scaleX = myParse(val[0]);
-          _$jscoverage['/timer/transform.js'].lineData[124]++;
-          ret.scaleY = myParse(visit80_124_1(val[1] || val[0]));
-          _$jscoverage['/timer/transform.js'].lineData[125]++;
+          _$jscoverage['/timer/transform.js'].lineData[115]++;
+          ret.scaleY = myParse(visit80_115_1(val[1] || val[0]));
+          _$jscoverage['/timer/transform.js'].lineData[116]++;
           break;
         case 'matrix':
-          _$jscoverage['/timer/transform.js'].lineData[128]++;
+          _$jscoverage['/timer/transform.js'].lineData[119]++;
           return decomposeMatrix(val);
       }
     }
-    _$jscoverage['/timer/transform.js'].lineData[132]++;
+    _$jscoverage['/timer/transform.js'].lineData[123]++;
     return ret;
   }
-  _$jscoverage['/timer/transform.js'].lineData[135]++;
+  _$jscoverage['/timer/transform.js'].lineData[126]++;
   function TransformFx() {
     _$jscoverage['/timer/transform.js'].functionData[7]++;
-    _$jscoverage['/timer/transform.js'].lineData[136]++;
+    _$jscoverage['/timer/transform.js'].lineData[127]++;
     TransformFx.superclass.constructor.apply(this, arguments);
   }
-  _$jscoverage['/timer/transform.js'].lineData[139]++;
+  _$jscoverage['/timer/transform.js'].lineData[130]++;
   S.extend(TransformFx, Fx, {
   load: function() {
   _$jscoverage['/timer/transform.js'].functionData[8]++;
-  _$jscoverage['/timer/transform.js'].lineData[141]++;
+  _$jscoverage['/timer/transform.js'].lineData[132]++;
   var self = this;
-  _$jscoverage['/timer/transform.js'].lineData[142]++;
+  _$jscoverage['/timer/transform.js'].lineData[133]++;
   TransformFx.superclass.load.apply(self, arguments);
-  _$jscoverage['/timer/transform.js'].lineData[144]++;
-  self.from = visit81_144_1(Dom.style(self.anim.node, 'transform') || self.from);
-  _$jscoverage['/timer/transform.js'].lineData[145]++;
-  if (visit82_145_1(self.from && visit83_145_2(self.from !== 'none'))) {
-    _$jscoverage['/timer/transform.js'].lineData[146]++;
+  _$jscoverage['/timer/transform.js'].lineData[135]++;
+  self.from = visit81_135_1(Dom.style(self.anim.node, 'transform') || self.from);
+  _$jscoverage['/timer/transform.js'].lineData[136]++;
+  if (visit82_136_1(self.from && visit83_136_2(self.from !== 'none'))) {
+    _$jscoverage['/timer/transform.js'].lineData[137]++;
     self.from = getTransformInfo(self.from);
   } else {
-    _$jscoverage['/timer/transform.js'].lineData[148]++;
+    _$jscoverage['/timer/transform.js'].lineData[139]++;
     self.from = defaultDecompose();
   }
-  _$jscoverage['/timer/transform.js'].lineData[150]++;
-  if (visit84_150_1(self.to)) {
-    _$jscoverage['/timer/transform.js'].lineData[151]++;
+  _$jscoverage['/timer/transform.js'].lineData[141]++;
+  if (visit84_141_1(self.to)) {
+    _$jscoverage['/timer/transform.js'].lineData[142]++;
     self.to = getTransformInfo(self.to);
   } else {
-    _$jscoverage['/timer/transform.js'].lineData[153]++;
+    _$jscoverage['/timer/transform.js'].lineData[144]++;
     self.to = defaultDecompose();
   }
 }, 
   interpolate: function(from, to, pos) {
   _$jscoverage['/timer/transform.js'].functionData[9]++;
-  _$jscoverage['/timer/transform.js'].lineData[158]++;
+  _$jscoverage['/timer/transform.js'].lineData[149]++;
   var interpolate = TransformFx.superclass.interpolate;
-  _$jscoverage['/timer/transform.js'].lineData[159]++;
+  _$jscoverage['/timer/transform.js'].lineData[150]++;
   var ret = {};
-  _$jscoverage['/timer/transform.js'].lineData[160]++;
+  _$jscoverage['/timer/transform.js'].lineData[151]++;
   ret.translateX = interpolate(from.translateX, to.translateX, pos);
-  _$jscoverage['/timer/transform.js'].lineData[161]++;
+  _$jscoverage['/timer/transform.js'].lineData[152]++;
   ret.translateY = interpolate(from.translateY, to.translateY, pos);
-  _$jscoverage['/timer/transform.js'].lineData[162]++;
+  _$jscoverage['/timer/transform.js'].lineData[153]++;
   ret.rotate = interpolate(from.rotate, to.rotate, pos);
-  _$jscoverage['/timer/transform.js'].lineData[163]++;
+  _$jscoverage['/timer/transform.js'].lineData[154]++;
   ret.skewX = interpolate(from.skewX, to.skewX, pos);
-  _$jscoverage['/timer/transform.js'].lineData[164]++;
+  _$jscoverage['/timer/transform.js'].lineData[155]++;
   ret.skewY = interpolate(from.skewY, to.skewY, pos);
-  _$jscoverage['/timer/transform.js'].lineData[165]++;
+  _$jscoverage['/timer/transform.js'].lineData[156]++;
   ret.scaleX = interpolate(from.scaleX, to.scaleX, pos);
-  _$jscoverage['/timer/transform.js'].lineData[166]++;
+  _$jscoverage['/timer/transform.js'].lineData[157]++;
   ret.scaleY = interpolate(from.scaleY, to.scaleY, pos);
-  _$jscoverage['/timer/transform.js'].lineData[167]++;
-  return S.substitute('translate3d({translateX}px,{translateY}px,0) ' + 'rotate({rotate}deg) ' + 'skewX({skewX}deg) ' + 'skewY({skewY}deg) ' + 'scale({scaleX},{scaleY})', ret);
+  _$jscoverage['/timer/transform.js'].lineData[158]++;
+  return S.substitute(translateTpl + ' ' + 'rotate({rotate}deg) ' + 'skewX({skewX}deg) ' + 'skewY({skewY}deg) ' + 'scale({scaleX},{scaleY})', ret);
 }});
-  _$jscoverage['/timer/transform.js'].lineData[175]++;
+  _$jscoverage['/timer/transform.js'].lineData[166]++;
   Fx.Factories.transform = TransformFx;
-  _$jscoverage['/timer/transform.js'].lineData[177]++;
+  _$jscoverage['/timer/transform.js'].lineData[168]++;
   return TransformFx;
 });
diff --git a/src/anim/sub-modules/timer/src/timer/transform.js b/src/anim/sub-modules/timer/src/timer/transform.js
index e734bc43d0..cda81b9954 100644
--- a/src/anim/sub-modules/timer/src/timer/transform.js
+++ b/src/anim/sub-modules/timer/src/timer/transform.js
@@ -3,9 +3,11 @@
  * animation for transform property
  * @author yiminghe@gmail.com
  */
-KISSY.add(function (S,require) {
+KISSY.add(function (S, require) {
     var Dom = require('dom');
     var Fx = require('./fx');
+    var translateTpl = S.Features.isTransform3dSupported() ?
+        'translate3d({translateX}px,{translateY}px,0)' : 'translate({translateX}px,{translateY}px)';
 
     function toMatrixArray(matrix) {
         matrix = matrix.split(/,/);
@@ -15,6 +17,7 @@ KISSY.add(function (S,require) {
         return matrix;
     }
 
+    // blog.yiminghe.me/2013/12/03/decomposing-css-2d-transform-matrix-into-simple-transformations
     function decomposeMatrix(matrix) {
         matrix = toMatrixArray(matrix);
         var scaleX, scaleY , skew ,
@@ -25,23 +28,11 @@ KISSY.add(function (S,require) {
 
         // Make sure matrix is not singular
         if (A * D - B * C) {
-            // step (3)
             scaleX = Math.sqrt(A * A + B * B);
-            A /= scaleX;
-            B /= scaleX;
-            // step (4)
-            skew = A * C + B * D;
-            C -= A * skew;
-            D -= B * skew;
-            // step (5)
-            scaleY = Math.sqrt(C * C + D * D);
-            C /= scaleY;
-            D /= scaleY;
-            skew /= scaleY;
+            skew = (A * C + B * D) / (A * D - C * B);
+            scaleY = (A * D - B * C) / scaleX;
             // step (6)
             if (A * D < B * C) {
-                A = -A;
-                B = -B;
                 skew = -skew;
                 scaleX = -scaleX;
             }
@@ -164,7 +155,7 @@ KISSY.add(function (S,require) {
             ret.skewY = interpolate(from.skewY, to.skewY, pos);
             ret.scaleX = interpolate(from.scaleX, to.scaleX, pos);
             ret.scaleY = interpolate(from.scaleY, to.scaleY, pos);
-            return S.substitute('translate3d({translateX}px,{translateY}px,0) ' +
+            return S.substitute(translateTpl + ' ' +
                 'rotate({rotate}deg) ' +
                 'skewX({skewX}deg) ' +
                 'skewY({skewY}deg) ' +
diff --git a/src/anim/sub-modules/transition/coverage/src/transition.js b/src/anim/sub-modules/transition/coverage/src/transition.js
index 3046cd1b7d..a82dc89376 100644
--- a/src/anim/sub-modules/transition/coverage/src/transition.js
+++ b/src/anim/sub-modules/transition/coverage/src/transition.js
@@ -232,73 +232,102 @@ if (! _$jscoverage['/transition.js']) {
   _$jscoverage['/transition.js'].lineData[6] = 0;
   _$jscoverage['/transition.js'].lineData[7] = 0;
   _$jscoverage['/transition.js'].lineData[8] = 0;
-  _$jscoverage['/transition.js'].lineData[9] = 0;
   _$jscoverage['/transition.js'].lineData[11] = 0;
   _$jscoverage['/transition.js'].lineData[12] = 0;
-  _$jscoverage['/transition.js'].lineData[13] = 0;
-  _$jscoverage['/transition.js'].lineData[14] = 0;
-  _$jscoverage['/transition.js'].lineData[18] = 0;
   _$jscoverage['/transition.js'].lineData[20] = 0;
   _$jscoverage['/transition.js'].lineData[21] = 0;
-  _$jscoverage['/transition.js'].lineData[22] = 0;
   _$jscoverage['/transition.js'].lineData[23] = 0;
   _$jscoverage['/transition.js'].lineData[24] = 0;
-  _$jscoverage['/transition.js'].lineData[26] = 0;
+  _$jscoverage['/transition.js'].lineData[25] = 0;
+  _$jscoverage['/transition.js'].lineData[27] = 0;
+  _$jscoverage['/transition.js'].lineData[28] = 0;
   _$jscoverage['/transition.js'].lineData[31] = 0;
-  _$jscoverage['/transition.js'].lineData[34] = 0;
-  _$jscoverage['/transition.js'].lineData[35] = 0;
-  _$jscoverage['/transition.js'].lineData[38] = 0;
+  _$jscoverage['/transition.js'].lineData[32] = 0;
+  _$jscoverage['/transition.js'].lineData[37] = 0;
   _$jscoverage['/transition.js'].lineData[40] = 0;
-  _$jscoverage['/transition.js'].lineData[47] = 0;
-  _$jscoverage['/transition.js'].lineData[48] = 0;
-  _$jscoverage['/transition.js'].lineData[49] = 0;
-  _$jscoverage['/transition.js'].lineData[52] = 0;
+  _$jscoverage['/transition.js'].lineData[41] = 0;
+  _$jscoverage['/transition.js'].lineData[42] = 0;
+  _$jscoverage['/transition.js'].lineData[43] = 0;
+  _$jscoverage['/transition.js'].lineData[44] = 0;
+  _$jscoverage['/transition.js'].lineData[51] = 0;
   _$jscoverage['/transition.js'].lineData[53] = 0;
-  _$jscoverage['/transition.js'].lineData[55] = 0;
-  _$jscoverage['/transition.js'].lineData[56] = 0;
-  _$jscoverage['/transition.js'].lineData[58] = 0;
-  _$jscoverage['/transition.js'].lineData[60] = 0;
   _$jscoverage['/transition.js'].lineData[61] = 0;
-  _$jscoverage['/transition.js'].lineData[68] = 0;
-  _$jscoverage['/transition.js'].lineData[72] = 0;
-  _$jscoverage['/transition.js'].lineData[73] = 0;
-  _$jscoverage['/transition.js'].lineData[74] = 0;
+  _$jscoverage['/transition.js'].lineData[62] = 0;
+  _$jscoverage['/transition.js'].lineData[63] = 0;
+  _$jscoverage['/transition.js'].lineData[64] = 0;
+  _$jscoverage['/transition.js'].lineData[65] = 0;
+  _$jscoverage['/transition.js'].lineData[66] = 0;
+  _$jscoverage['/transition.js'].lineData[67] = 0;
   _$jscoverage['/transition.js'].lineData[75] = 0;
+  _$jscoverage['/transition.js'].lineData[76] = 0;
+  _$jscoverage['/transition.js'].lineData[77] = 0;
+  _$jscoverage['/transition.js'].lineData[78] = 0;
   _$jscoverage['/transition.js'].lineData[79] = 0;
-  _$jscoverage['/transition.js'].lineData[82] = 0;
+  _$jscoverage['/transition.js'].lineData[81] = 0;
   _$jscoverage['/transition.js'].lineData[84] = 0;
-  _$jscoverage['/transition.js'].lineData[90] = 0;
+  _$jscoverage['/transition.js'].lineData[87] = 0;
+  _$jscoverage['/transition.js'].lineData[88] = 0;
+  _$jscoverage['/transition.js'].lineData[89] = 0;
+  _$jscoverage['/transition.js'].lineData[93] = 0;
   _$jscoverage['/transition.js'].lineData[94] = 0;
   _$jscoverage['/transition.js'].lineData[95] = 0;
   _$jscoverage['/transition.js'].lineData[96] = 0;
-  _$jscoverage['/transition.js'].lineData[97] = 0;
-  _$jscoverage['/transition.js'].lineData[99] = 0;
-  _$jscoverage['/transition.js'].lineData[100] = 0;
+  _$jscoverage['/transition.js'].lineData[98] = 0;
   _$jscoverage['/transition.js'].lineData[101] = 0;
-  _$jscoverage['/transition.js'].lineData[102] = 0;
-  _$jscoverage['/transition.js'].lineData[104] = 0;
+  _$jscoverage['/transition.js'].lineData[103] = 0;
+  _$jscoverage['/transition.js'].lineData[105] = 0;
+  _$jscoverage['/transition.js'].lineData[106] = 0;
+  _$jscoverage['/transition.js'].lineData[107] = 0;
+  _$jscoverage['/transition.js'].lineData[108] = 0;
+  _$jscoverage['/transition.js'].lineData[109] = 0;
+  _$jscoverage['/transition.js'].lineData[110] = 0;
   _$jscoverage['/transition.js'].lineData[111] = 0;
   _$jscoverage['/transition.js'].lineData[112] = 0;
-  _$jscoverage['/transition.js'].lineData[116] = 0;
+  _$jscoverage['/transition.js'].lineData[115] = 0;
   _$jscoverage['/transition.js'].lineData[117] = 0;
+  _$jscoverage['/transition.js'].lineData[118] = 0;
   _$jscoverage['/transition.js'].lineData[119] = 0;
   _$jscoverage['/transition.js'].lineData[120] = 0;
-  _$jscoverage['/transition.js'].lineData[121] = 0;
   _$jscoverage['/transition.js'].lineData[122] = 0;
-  _$jscoverage['/transition.js'].lineData[123] = 0;
-  _$jscoverage['/transition.js'].lineData[125] = 0;
-  _$jscoverage['/transition.js'].lineData[127] = 0;
+  _$jscoverage['/transition.js'].lineData[124] = 0;
   _$jscoverage['/transition.js'].lineData[128] = 0;
-  _$jscoverage['/transition.js'].lineData[133] = 0;
+  _$jscoverage['/transition.js'].lineData[136] = 0;
+  _$jscoverage['/transition.js'].lineData[137] = 0;
+  _$jscoverage['/transition.js'].lineData[139] = 0;
+  _$jscoverage['/transition.js'].lineData[140] = 0;
   _$jscoverage['/transition.js'].lineData[141] = 0;
-  _$jscoverage['/transition.js'].lineData[142] = 0;
-  _$jscoverage['/transition.js'].lineData[143] = 0;
-  _$jscoverage['/transition.js'].lineData[144] = 0;
   _$jscoverage['/transition.js'].lineData[146] = 0;
-  _$jscoverage['/transition.js'].lineData[150] = 0;
+  _$jscoverage['/transition.js'].lineData[147] = 0;
+  _$jscoverage['/transition.js'].lineData[148] = 0;
+  _$jscoverage['/transition.js'].lineData[149] = 0;
+  _$jscoverage['/transition.js'].lineData[152] = 0;
   _$jscoverage['/transition.js'].lineData[155] = 0;
   _$jscoverage['/transition.js'].lineData[156] = 0;
   _$jscoverage['/transition.js'].lineData[160] = 0;
+  _$jscoverage['/transition.js'].lineData[161] = 0;
+  _$jscoverage['/transition.js'].lineData[168] = 0;
+  _$jscoverage['/transition.js'].lineData[172] = 0;
+  _$jscoverage['/transition.js'].lineData[173] = 0;
+  _$jscoverage['/transition.js'].lineData[174] = 0;
+  _$jscoverage['/transition.js'].lineData[175] = 0;
+  _$jscoverage['/transition.js'].lineData[177] = 0;
+  _$jscoverage['/transition.js'].lineData[178] = 0;
+  _$jscoverage['/transition.js'].lineData[179] = 0;
+  _$jscoverage['/transition.js'].lineData[180] = 0;
+  _$jscoverage['/transition.js'].lineData[182] = 0;
+  _$jscoverage['/transition.js'].lineData[189] = 0;
+  _$jscoverage['/transition.js'].lineData[197] = 0;
+  _$jscoverage['/transition.js'].lineData[198] = 0;
+  _$jscoverage['/transition.js'].lineData[199] = 0;
+  _$jscoverage['/transition.js'].lineData[202] = 0;
+  _$jscoverage['/transition.js'].lineData[203] = 0;
+  _$jscoverage['/transition.js'].lineData[204] = 0;
+  _$jscoverage['/transition.js'].lineData[206] = 0;
+  _$jscoverage['/transition.js'].lineData[210] = 0;
+  _$jscoverage['/transition.js'].lineData[215] = 0;
+  _$jscoverage['/transition.js'].lineData[216] = 0;
+  _$jscoverage['/transition.js'].lineData[220] = 0;
+  _$jscoverage['/transition.js'].lineData[223] = 0;
 }
 if (! _$jscoverage['/transition.js'].functionData) {
   _$jscoverage['/transition.js'].functionData = [];
@@ -315,266 +344,386 @@ if (! _$jscoverage['/transition.js'].functionData) {
   _$jscoverage['/transition.js'].functionData[10] = 0;
   _$jscoverage['/transition.js'].functionData[11] = 0;
   _$jscoverage['/transition.js'].functionData[12] = 0;
+  _$jscoverage['/transition.js'].functionData[13] = 0;
+  _$jscoverage['/transition.js'].functionData[14] = 0;
+  _$jscoverage['/transition.js'].functionData[15] = 0;
+  _$jscoverage['/transition.js'].functionData[16] = 0;
 }
 if (! _$jscoverage['/transition.js'].branchData) {
   _$jscoverage['/transition.js'].branchData = {};
-  _$jscoverage['/transition.js'].branchData['23'] = [];
-  _$jscoverage['/transition.js'].branchData['23'][1] = new BranchData();
-  _$jscoverage['/transition.js'].branchData['55'] = [];
-  _$jscoverage['/transition.js'].branchData['55'][1] = new BranchData();
-  _$jscoverage['/transition.js'].branchData['58'] = [];
-  _$jscoverage['/transition.js'].branchData['58'][1] = new BranchData();
-  _$jscoverage['/transition.js'].branchData['72'] = [];
-  _$jscoverage['/transition.js'].branchData['72'][1] = new BranchData();
-  _$jscoverage['/transition.js'].branchData['74'] = [];
-  _$jscoverage['/transition.js'].branchData['74'][1] = new BranchData();
-  _$jscoverage['/transition.js'].branchData['96'] = [];
-  _$jscoverage['/transition.js'].branchData['96'][1] = new BranchData();
-  _$jscoverage['/transition.js'].branchData['101'] = [];
-  _$jscoverage['/transition.js'].branchData['101'][1] = new BranchData();
-  _$jscoverage['/transition.js'].branchData['116'] = [];
-  _$jscoverage['/transition.js'].branchData['116'][1] = new BranchData();
-  _$jscoverage['/transition.js'].branchData['121'] = [];
-  _$jscoverage['/transition.js'].branchData['121'][1] = new BranchData();
-  _$jscoverage['/transition.js'].branchData['127'] = [];
-  _$jscoverage['/transition.js'].branchData['127'][1] = new BranchData();
-  _$jscoverage['/transition.js'].branchData['143'] = [];
-  _$jscoverage['/transition.js'].branchData['143'][1] = new BranchData();
-  _$jscoverage['/transition.js'].branchData['153'] = [];
-  _$jscoverage['/transition.js'].branchData['153'][1] = new BranchData();
+  _$jscoverage['/transition.js'].branchData['24'] = [];
+  _$jscoverage['/transition.js'].branchData['24'][1] = new BranchData();
+  _$jscoverage['/transition.js'].branchData['27'] = [];
+  _$jscoverage['/transition.js'].branchData['27'][1] = new BranchData();
+  _$jscoverage['/transition.js'].branchData['31'] = [];
+  _$jscoverage['/transition.js'].branchData['31'][1] = new BranchData();
+  _$jscoverage['/transition.js'].branchData['40'] = [];
+  _$jscoverage['/transition.js'].branchData['40'][1] = new BranchData();
+  _$jscoverage['/transition.js'].branchData['43'] = [];
+  _$jscoverage['/transition.js'].branchData['43'][1] = new BranchData();
+  _$jscoverage['/transition.js'].branchData['51'] = [];
+  _$jscoverage['/transition.js'].branchData['51'][1] = new BranchData();
+  _$jscoverage['/transition.js'].branchData['78'] = [];
+  _$jscoverage['/transition.js'].branchData['78'][1] = new BranchData();
+  _$jscoverage['/transition.js'].branchData['95'] = [];
+  _$jscoverage['/transition.js'].branchData['95'][1] = new BranchData();
+  _$jscoverage['/transition.js'].branchData['110'] = [];
+  _$jscoverage['/transition.js'].branchData['110'][1] = new BranchData();
+  _$jscoverage['/transition.js'].branchData['111'] = [];
+  _$jscoverage['/transition.js'].branchData['111'][1] = new BranchData();
+  _$jscoverage['/transition.js'].branchData['118'] = [];
+  _$jscoverage['/transition.js'].branchData['118'][1] = new BranchData();
+  _$jscoverage['/transition.js'].branchData['146'] = [];
+  _$jscoverage['/transition.js'].branchData['146'][1] = new BranchData();
+  _$jscoverage['/transition.js'].branchData['148'] = [];
+  _$jscoverage['/transition.js'].branchData['148'][1] = new BranchData();
+  _$jscoverage['/transition.js'].branchData['174'] = [];
+  _$jscoverage['/transition.js'].branchData['174'][1] = new BranchData();
+  _$jscoverage['/transition.js'].branchData['179'] = [];
+  _$jscoverage['/transition.js'].branchData['179'][1] = new BranchData();
+  _$jscoverage['/transition.js'].branchData['197'] = [];
+  _$jscoverage['/transition.js'].branchData['197'][1] = new BranchData();
+  _$jscoverage['/transition.js'].branchData['203'] = [];
+  _$jscoverage['/transition.js'].branchData['203'][1] = new BranchData();
+  _$jscoverage['/transition.js'].branchData['213'] = [];
+  _$jscoverage['/transition.js'].branchData['213'][1] = new BranchData();
 }
-_$jscoverage['/transition.js'].branchData['153'][1].init(7, 213, 'S.trim(elStyle[TRANSITION].replace(new RegExp(\'(^|,)\' + \'\\\\s*(?:\' + propList.join(\'|\') + \')\\\\s+[^,]+\', \'gi\'), \'$1\')).replace(/^,|,,|,$/g, \'\') || \'none\'');
-function visit12_153_1(result) {
-  _$jscoverage['/transition.js'].branchData['153'][1].ranCondition(result);
+_$jscoverage['/transition.js'].branchData['213'][1].init(7, 204, 'util.trim(elStyle[TRANSITION].replace(new RegExp(\'(^|,)\' + \'\\\\s*(?:\' + propList.join(\'|\') + \')\\\\s+[^,]+\', \'gi\'), \'$1\')).replace(/^,|,,|,$/g, \'\') || \'none\'');
+function visit18_213_1(result) {
+  _$jscoverage['/transition.js'].branchData['213'][1].ranCondition(result);
   return result;
-}_$jscoverage['/transition.js'].branchData['143'][1].init(21, 7, '!finish');
-function visit11_143_1(result) {
-  _$jscoverage['/transition.js'].branchData['143'][1].ranCondition(result);
+}_$jscoverage['/transition.js'].branchData['203'][1].init(21, 7, '!finish');
+function visit17_203_1(result) {
+  _$jscoverage['/transition.js'].branchData['203'][1].ranCondition(result);
   return result;
-}_$jscoverage['/transition.js'].branchData['127'][1].init(569, 12, 'allCompleted');
-function visit10_127_1(result) {
-  _$jscoverage['/transition.js'].branchData['127'][1].ranCondition(result);
+}_$jscoverage['/transition.js'].branchData['197'][1].init(250, 24, 'self._transitionEndTimer');
+function visit16_197_1(result) {
+  _$jscoverage['/transition.js'].branchData['197'][1].ranCondition(result);
   return result;
-}_$jscoverage['/transition.js'].branchData['121'][1].init(21, 18, 'propData.pos !== 1');
-function visit9_121_1(result) {
-  _$jscoverage['/transition.js'].branchData['121'][1].ranCondition(result);
+}_$jscoverage['/transition.js'].branchData['179'][1].init(113, 29, 'propData.duration >= tRunTime');
+function visit15_179_1(result) {
+  _$jscoverage['/transition.js'].branchData['179'][1].ranCondition(result);
   return result;
-}_$jscoverage['/transition.js'].branchData['116'][1].init(204, 26, '!propsData[e.propertyName]');
-function visit8_116_1(result) {
-  _$jscoverage['/transition.js'].branchData['116'][1].ranCondition(result);
+}_$jscoverage['/transition.js'].branchData['174'][1].init(61, 26, 'propData.delay >= tRunTime');
+function visit14_174_1(result) {
+  _$jscoverage['/transition.js'].branchData['174'][1].ranCondition(result);
   return result;
-}_$jscoverage['/transition.js'].branchData['101'][1].init(113, 29, 'propData.duration >= tRunTime');
-function visit7_101_1(result) {
-  _$jscoverage['/transition.js'].branchData['101'][1].ranCondition(result);
+}_$jscoverage['/transition.js'].branchData['148'][1].init(781, 8, 'original');
+function visit13_148_1(result) {
+  _$jscoverage['/transition.js'].branchData['148'][1].ranCondition(result);
   return result;
-}_$jscoverage['/transition.js'].branchData['96'][1].init(61, 26, 'propData.delay >= tRunTime');
-function visit6_96_1(result) {
-  _$jscoverage['/transition.js'].branchData['96'][1].ranCondition(result);
+}_$jscoverage['/transition.js'].branchData['146'][1].init(691, 31, 'original.indexOf(\'none\') !== -1');
+function visit12_146_1(result) {
+  _$jscoverage['/transition.js'].branchData['146'][1].ranCondition(result);
   return result;
-}_$jscoverage['/transition.js'].branchData['74'][1].init(1425, 8, 'original');
-function visit5_74_1(result) {
-  _$jscoverage['/transition.js'].branchData['74'][1].ranCondition(result);
+}_$jscoverage['/transition.js'].branchData['118'][1].init(444, 11, '!vendorInfo');
+function visit11_118_1(result) {
+  _$jscoverage['/transition.js'].branchData['118'][1].ranCondition(result);
   return result;
-}_$jscoverage['/transition.js'].branchData['72'][1].init(1335, 31, 'original.indexOf(\'none\') !== -1');
-function visit4_72_1(result) {
-  _$jscoverage['/transition.js'].branchData['72'][1].ranCondition(result);
+}_$jscoverage['/transition.js'].branchData['111'][1].init(25, 69, '!util.startsWith(val.easing, \'cubic-bezier\') && !css3Anim[val.easing]');
+function visit10_111_1(result) {
+  _$jscoverage['/transition.js'].branchData['111'][1].ranCondition(result);
   return result;
-}_$jscoverage['/transition.js'].branchData['58'][1].init(241, 18, 'currentValue === v');
-function visit3_58_1(result) {
-  _$jscoverage['/transition.js'].branchData['58'][1].ranCondition(result);
+}_$jscoverage['/transition.js'].branchData['110'][1].init(68, 30, 'typeof val.easing === \'string\'');
+function visit9_110_1(result) {
+  _$jscoverage['/transition.js'].branchData['110'][1].ranCondition(result);
   return result;
-}_$jscoverage['/transition.js'].branchData['55'][1].init(117, 21, 'typeof v === \'number\'');
-function visit2_55_1(result) {
-  _$jscoverage['/transition.js'].branchData['55'][1].ranCondition(result);
+}_$jscoverage['/transition.js'].branchData['95'][1].init(38, 34, '!(self instanceof TransitionAnim)');
+function visit8_95_1(result) {
+  _$jscoverage['/transition.js'].branchData['95'][1].ranCondition(result);
   return result;
-}_$jscoverage['/transition.js'].branchData['23'][1].init(17, 3, 'str');
-function visit1_23_1(result) {
-  _$jscoverage['/transition.js'].branchData['23'][1].ranCondition(result);
+}_$jscoverage['/transition.js'].branchData['78'][1].init(17, 3, 'str');
+function visit7_78_1(result) {
+  _$jscoverage['/transition.js'].branchData['78'][1].ranCondition(result);
+  return result;
+}_$jscoverage['/transition.js'].branchData['51'][1].init(601, 25, 'vendorInfos[name] || null');
+function visit6_51_1(result) {
+  _$jscoverage['/transition.js'].branchData['51'][1].ranCondition(result);
+  return result;
+}_$jscoverage['/transition.js'].branchData['43'][1].init(149, 34, 'vendorName in documentElementStyle');
+function visit5_43_1(result) {
+  _$jscoverage['/transition.js'].branchData['43'][1].ranCondition(result);
+  return result;
+}_$jscoverage['/transition.js'].branchData['40'][1].init(137, 26, 'i < propertyPrefixesLength');
+function visit4_40_1(result) {
+  _$jscoverage['/transition.js'].branchData['40'][1].ranCondition(result);
+  return result;
+}_$jscoverage['/transition.js'].branchData['31'][1].init(252, 53, '!documentElementStyle || name in documentElementStyle');
+function visit3_31_1(result) {
+  _$jscoverage['/transition.js'].branchData['31'][1].ranCondition(result);
+  return result;
+}_$jscoverage['/transition.js'].branchData['27'][1].init(116, 19, 'name in vendorInfos');
+function visit2_27_1(result) {
+  _$jscoverage['/transition.js'].branchData['27'][1].ranCondition(result);
+  return result;
+}_$jscoverage['/transition.js'].branchData['24'][1].init(13, 24, 'name.indexOf(\'-\') !== -1');
+function visit1_24_1(result) {
+  _$jscoverage['/transition.js'].branchData['24'][1].ranCondition(result);
   return result;
 }_$jscoverage['/transition.js'].lineData[6]++;
-KISSY.add(function(S, require) {
+KISSY.add(function(S, require, exports, module) {
   _$jscoverage['/transition.js'].functionData[0]++;
   _$jscoverage['/transition.js'].lineData[7]++;
-  var Dom = require('dom');
-  _$jscoverage['/transition.js'].lineData[8]++;
-  var Event = require('event/dom');
-  _$jscoverage['/transition.js'].lineData[9]++;
-  var AnimBase = require('./base');
+  function upperCase() {
+    _$jscoverage['/transition.js'].functionData[1]++;
+    _$jscoverage['/transition.js'].lineData[8]++;
+    return arguments[1].toUpperCase();
+  }
   _$jscoverage['/transition.js'].lineData[11]++;
-  var Features = S.Features;
+  var RE_DASH = /-([a-z])/ig;
   _$jscoverage['/transition.js'].lineData[12]++;
-  var vendorPrefix = Features.getTransitionPrefix();
-  _$jscoverage['/transition.js'].lineData[13]++;
-  var R_UPPER = /([A-Z]|^ms)/g;
-  _$jscoverage['/transition.js'].lineData[14]++;
-  var TRANSITION_END_EVENT = vendorPrefix ? (vendorPrefix.toLowerCase() + 'TransitionEnd') : 'transitionend';
-  _$jscoverage['/transition.js'].lineData[18]++;
-  var TRANSITION = Features.getTransitionProperty();
+  var propertyPrefixes = ['Webkit', 'Moz', 'O', 'ms'], propertyPrefixesLength = propertyPrefixes.length;
   _$jscoverage['/transition.js'].lineData[20]++;
-  function genTransition(propsData) {
-    _$jscoverage['/transition.js'].functionData[1]++;
-    _$jscoverage['/transition.js'].lineData[21]++;
-    var str = '';
-    _$jscoverage['/transition.js'].lineData[22]++;
-    S.each(propsData, function(propData, prop) {
-  _$jscoverage['/transition.js'].functionData[2]++;
+  var vendorInfos = {};
+  _$jscoverage['/transition.js'].lineData[21]++;
+  var documentElementStyle = document.documentElement.style;
   _$jscoverage['/transition.js'].lineData[23]++;
-  if (visit1_23_1(str)) {
+  function getVendorInfo(name) {
+    _$jscoverage['/transition.js'].functionData[2]++;
     _$jscoverage['/transition.js'].lineData[24]++;
+    if (visit1_24_1(name.indexOf('-') !== -1)) {
+      _$jscoverage['/transition.js'].lineData[25]++;
+      name = name.replace(RE_DASH, upperCase);
+    }
+    _$jscoverage['/transition.js'].lineData[27]++;
+    if (visit2_27_1(name in vendorInfos)) {
+      _$jscoverage['/transition.js'].lineData[28]++;
+      return vendorInfos[name];
+    }
+    _$jscoverage['/transition.js'].lineData[31]++;
+    if (visit3_31_1(!documentElementStyle || name in documentElementStyle)) {
+      _$jscoverage['/transition.js'].lineData[32]++;
+      vendorInfos[name] = {
+  propertyName: name, 
+  propertyNamePrefix: ''};
+    } else {
+      _$jscoverage['/transition.js'].lineData[37]++;
+      var upperFirstName = name.charAt(0).toUpperCase() + name.slice(1), vendorName;
+      _$jscoverage['/transition.js'].lineData[40]++;
+      for (var i = 0; visit4_40_1(i < propertyPrefixesLength); i++) {
+        _$jscoverage['/transition.js'].lineData[41]++;
+        var propertyNamePrefix = propertyPrefixes[i];
+        _$jscoverage['/transition.js'].lineData[42]++;
+        vendorName = propertyNamePrefix + upperFirstName;
+        _$jscoverage['/transition.js'].lineData[43]++;
+        if (visit5_43_1(vendorName in documentElementStyle)) {
+          _$jscoverage['/transition.js'].lineData[44]++;
+          vendorInfos[name] = {
+  propertyName: vendorName, 
+  propertyNamePrefix: propertyNamePrefix};
+        }
+      }
+      _$jscoverage['/transition.js'].lineData[51]++;
+      vendorInfos[name] = visit6_51_1(vendorInfos[name] || null);
+    }
+    _$jscoverage['/transition.js'].lineData[53]++;
+    return vendorInfos[name];
+  }
+  _$jscoverage['/transition.js'].lineData[61]++;
+  var util = S;
+  _$jscoverage['/transition.js'].lineData[62]++;
+  var Dom = require('dom');
+  _$jscoverage['/transition.js'].lineData[63]++;
+  var AnimBase = require('./base');
+  _$jscoverage['/transition.js'].lineData[64]++;
+  var transitionVendorInfo = getVendorInfo('transition');
+  _$jscoverage['/transition.js'].lineData[65]++;
+  var TRANSITION = transitionVendorInfo.propertyName;
+  _$jscoverage['/transition.js'].lineData[66]++;
+  var DEFAULT_EASING = 'linear';
+  _$jscoverage['/transition.js'].lineData[67]++;
+  var css3Anim = {
+  ease: 1, 
+  linear: 1, 
+  'ease-in': 1, 
+  'ease-out': 1, 
+  'ease-in-out': 1};
+  _$jscoverage['/transition.js'].lineData[75]++;
+  function genTransition(propsData) {
+    _$jscoverage['/transition.js'].functionData[3]++;
+    _$jscoverage['/transition.js'].lineData[76]++;
+    var str = '';
+    _$jscoverage['/transition.js'].lineData[77]++;
+    util.each(propsData, function(propData, prop) {
+  _$jscoverage['/transition.js'].functionData[4]++;
+  _$jscoverage['/transition.js'].lineData[78]++;
+  if (visit7_78_1(str)) {
+    _$jscoverage['/transition.js'].lineData[79]++;
     str += ',';
   }
-  _$jscoverage['/transition.js'].lineData[26]++;
+  _$jscoverage['/transition.js'].lineData[81]++;
   str += prop + ' ' + propData.duration + 's ' + propData.easing + ' ' + propData.delay + 's';
 });
-    _$jscoverage['/transition.js'].lineData[31]++;
+    _$jscoverage['/transition.js'].lineData[84]++;
     return str;
   }
-  _$jscoverage['/transition.js'].lineData[34]++;
-  function TransitionAnim() {
-    _$jscoverage['/transition.js'].functionData[3]++;
-    _$jscoverage['/transition.js'].lineData[35]++;
-    TransitionAnim.superclass.constructor.apply(this, arguments);
-  }
-  _$jscoverage['/transition.js'].lineData[38]++;
-  S.extend(TransitionAnim, AnimBase, {
-  doStart: function() {
-  _$jscoverage['/transition.js'].functionData[4]++;
-  _$jscoverage['/transition.js'].lineData[40]++;
-  var self = this, node = self.node, elStyle = node.style, _propsData = self._propsData, original = elStyle[TRANSITION], transform, propsCss = {};
-  _$jscoverage['/transition.js'].lineData[47]++;
-  if ((transform = _propsData.transform)) {
-    _$jscoverage['/transition.js'].lineData[48]++;
-    delete _propsData.transform;
-    _$jscoverage['/transition.js'].lineData[49]++;
-    _propsData[Features.getTransformProperty().replace(R_UPPER, '-$1').toLowerCase()] = transform;
+  _$jscoverage['/transition.js'].lineData[87]++;
+  function unCamelCase(propertyName) {
+    _$jscoverage['/transition.js'].functionData[5]++;
+    _$jscoverage['/transition.js'].lineData[88]++;
+    return propertyName.replace(/[A-Z]/g, function(m) {
+  _$jscoverage['/transition.js'].functionData[6]++;
+  _$jscoverage['/transition.js'].lineData[89]++;
+  return '-' + m.toLowerCase();
+});
   }
-  _$jscoverage['/transition.js'].lineData[52]++;
-  S.each(_propsData, function(propData, prop) {
-  _$jscoverage['/transition.js'].functionData[5]++;
-  _$jscoverage['/transition.js'].lineData[53]++;
-  var v = propData.value, currentValue = Dom.css(node, prop);
-  _$jscoverage['/transition.js'].lineData[55]++;
-  if (visit2_55_1(typeof v === 'number')) {
-    _$jscoverage['/transition.js'].lineData[56]++;
-    currentValue = parseFloat(currentValue);
+  _$jscoverage['/transition.js'].lineData[93]++;
+  function TransitionAnim(node, to, duration, easing, complete) {
+    _$jscoverage['/transition.js'].functionData[7]++;
+    _$jscoverage['/transition.js'].lineData[94]++;
+    var self = this;
+    _$jscoverage['/transition.js'].lineData[95]++;
+    if (visit8_95_1(!(self instanceof TransitionAnim))) {
+      _$jscoverage['/transition.js'].lineData[96]++;
+      return new TransitionAnim(node, to, duration, easing, complete);
+    }
+    _$jscoverage['/transition.js'].lineData[98]++;
+    TransitionAnim.superclass.constructor.apply(self, arguments);
   }
-  _$jscoverage['/transition.js'].lineData[58]++;
-  if (visit3_58_1(currentValue === v)) {
-    _$jscoverage['/transition.js'].lineData[60]++;
-    setTimeout(function() {
-  _$jscoverage['/transition.js'].functionData[6]++;
-  _$jscoverage['/transition.js'].lineData[61]++;
-  self._onTransitionEnd({
-  originalEvent: {
-  propertyName: prop}});
-}, 0);
+  _$jscoverage['/transition.js'].lineData[101]++;
+  util.extend(TransitionAnim, AnimBase, {
+  prepareFx: function() {
+  _$jscoverage['/transition.js'].functionData[8]++;
+  _$jscoverage['/transition.js'].lineData[103]++;
+  var self = this, propsData = self._propsData;
+  _$jscoverage['/transition.js'].lineData[105]++;
+  var newProps = {};
+  _$jscoverage['/transition.js'].lineData[106]++;
+  var val;
+  _$jscoverage['/transition.js'].lineData[107]++;
+  var vendorInfo;
+  _$jscoverage['/transition.js'].lineData[108]++;
+  for (var propertyName in propsData) {
+    _$jscoverage['/transition.js'].lineData[109]++;
+    val = propsData[propertyName];
+    _$jscoverage['/transition.js'].lineData[110]++;
+    if (visit9_110_1(typeof val.easing === 'string')) {
+      _$jscoverage['/transition.js'].lineData[111]++;
+      if (visit10_111_1(!util.startsWith(val.easing, 'cubic-bezier') && !css3Anim[val.easing])) {
+        _$jscoverage['/transition.js'].lineData[112]++;
+        val.easing = DEFAULT_EASING;
+      }
+    } else {
+      _$jscoverage['/transition.js'].lineData[115]++;
+      val.easing = DEFAULT_EASING;
+    }
+    _$jscoverage['/transition.js'].lineData[117]++;
+    vendorInfo = getVendorInfo(propertyName);
+    _$jscoverage['/transition.js'].lineData[118]++;
+    if (visit11_118_1(!vendorInfo)) {
+      _$jscoverage['/transition.js'].lineData[119]++;
+      S.log('unsupported css property for transition anim: ' + propertyName, 'error');
+      _$jscoverage['/transition.js'].lineData[120]++;
+      continue;
+    }
+    _$jscoverage['/transition.js'].lineData[122]++;
+    newProps[unCamelCase(vendorInfo.propertyName)] = propsData[propertyName];
   }
-  _$jscoverage['/transition.js'].lineData[68]++;
+  _$jscoverage['/transition.js'].lineData[124]++;
+  self._propsData = newProps;
+}, 
+  doStart: function() {
+  _$jscoverage['/transition.js'].functionData[9]++;
+  _$jscoverage['/transition.js'].lineData[128]++;
+  var self = this, node = self.node, elStyle = node.style, _propsData = self._propsData, original = elStyle[TRANSITION], totalDuration = 0, propsCss = {};
+  _$jscoverage['/transition.js'].lineData[136]++;
+  util.each(_propsData, function(propData, prop) {
+  _$jscoverage['/transition.js'].functionData[10]++;
+  _$jscoverage['/transition.js'].lineData[137]++;
+  var v = propData.value;
+  _$jscoverage['/transition.js'].lineData[139]++;
+  Dom.css(node, prop, Dom.css(node, prop));
+  _$jscoverage['/transition.js'].lineData[140]++;
   propsCss[prop] = v;
+  _$jscoverage['/transition.js'].lineData[141]++;
+  totalDuration = Math.max(propData.duration + propData.delay, totalDuration);
 });
-  _$jscoverage['/transition.js'].lineData[72]++;
-  if (visit4_72_1(original.indexOf('none') !== -1)) {
-    _$jscoverage['/transition.js'].lineData[73]++;
+  _$jscoverage['/transition.js'].lineData[146]++;
+  if (visit12_146_1(original.indexOf('none') !== -1)) {
+    _$jscoverage['/transition.js'].lineData[147]++;
     original = '';
   } else {
-    _$jscoverage['/transition.js'].lineData[74]++;
-    if (visit5_74_1(original)) {
-      _$jscoverage['/transition.js'].lineData[75]++;
+    _$jscoverage['/transition.js'].lineData[148]++;
+    if (visit13_148_1(original)) {
+      _$jscoverage['/transition.js'].lineData[149]++;
       original += ',';
     }
   }
-  _$jscoverage['/transition.js'].lineData[79]++;
+  _$jscoverage['/transition.js'].lineData[152]++;
   elStyle[TRANSITION] = original + genTransition(_propsData);
-  _$jscoverage['/transition.js'].lineData[82]++;
-  Event.on(node, TRANSITION_END_EVENT, self._onTransitionEnd, self);
-  _$jscoverage['/transition.js'].lineData[84]++;
+  _$jscoverage['/transition.js'].lineData[155]++;
+  setTimeout(function() {
+  _$jscoverage['/transition.js'].functionData[11]++;
+  _$jscoverage['/transition.js'].lineData[156]++;
   Dom.css(node, propsCss);
+}, 0);
+  _$jscoverage['/transition.js'].lineData[160]++;
+  self._transitionEndTimer = setTimeout(function() {
+  _$jscoverage['/transition.js'].functionData[12]++;
+  _$jscoverage['/transition.js'].lineData[161]++;
+  self.stop(true);
+}, totalDuration * 1000);
 }, 
   beforeResume: function() {
-  _$jscoverage['/transition.js'].functionData[7]++;
-  _$jscoverage['/transition.js'].lineData[90]++;
-  var self = this, propsData = self._propsData, tmpPropsData = S.merge(propsData), runTime = self._runTime / 1000;
-  _$jscoverage['/transition.js'].lineData[94]++;
-  S.each(tmpPropsData, function(propData, prop) {
-  _$jscoverage['/transition.js'].functionData[8]++;
-  _$jscoverage['/transition.js'].lineData[95]++;
+  _$jscoverage['/transition.js'].functionData[13]++;
+  _$jscoverage['/transition.js'].lineData[168]++;
+  var self = this, propsData = self._propsData, tmpPropsData = util.merge(propsData), runTime = self._runTime / 1000;
+  _$jscoverage['/transition.js'].lineData[172]++;
+  util.each(tmpPropsData, function(propData, prop) {
+  _$jscoverage['/transition.js'].functionData[14]++;
+  _$jscoverage['/transition.js'].lineData[173]++;
   var tRunTime = runTime;
-  _$jscoverage['/transition.js'].lineData[96]++;
-  if (visit6_96_1(propData.delay >= tRunTime)) {
-    _$jscoverage['/transition.js'].lineData[97]++;
+  _$jscoverage['/transition.js'].lineData[174]++;
+  if (visit14_174_1(propData.delay >= tRunTime)) {
+    _$jscoverage['/transition.js'].lineData[175]++;
     propData.delay -= tRunTime;
   } else {
-    _$jscoverage['/transition.js'].lineData[99]++;
+    _$jscoverage['/transition.js'].lineData[177]++;
     tRunTime -= propData.delay;
-    _$jscoverage['/transition.js'].lineData[100]++;
+    _$jscoverage['/transition.js'].lineData[178]++;
     propData.delay = 0;
-    _$jscoverage['/transition.js'].lineData[101]++;
-    if (visit7_101_1(propData.duration >= tRunTime)) {
-      _$jscoverage['/transition.js'].lineData[102]++;
+    _$jscoverage['/transition.js'].lineData[179]++;
+    if (visit15_179_1(propData.duration >= tRunTime)) {
+      _$jscoverage['/transition.js'].lineData[180]++;
       propData.duration -= tRunTime;
     } else {
-      _$jscoverage['/transition.js'].lineData[104]++;
+      _$jscoverage['/transition.js'].lineData[182]++;
       delete propsData[prop];
     }
   }
 });
-}, 
-  _onTransitionEnd: function(e) {
-  _$jscoverage['/transition.js'].functionData[9]++;
-  _$jscoverage['/transition.js'].lineData[111]++;
-  e = e.originalEvent;
-  _$jscoverage['/transition.js'].lineData[112]++;
-  var self = this, allCompleted = 1, propsData = self._propsData;
-  _$jscoverage['/transition.js'].lineData[116]++;
-  if (visit8_116_1(!propsData[e.propertyName])) {
-    _$jscoverage['/transition.js'].lineData[117]++;
-    return;
-  }
-  _$jscoverage['/transition.js'].lineData[119]++;
-  propsData[e.propertyName].pos = 1;
-  _$jscoverage['/transition.js'].lineData[120]++;
-  S.each(propsData, function(propData) {
-  _$jscoverage['/transition.js'].functionData[10]++;
-  _$jscoverage['/transition.js'].lineData[121]++;
-  if (visit9_121_1(propData.pos !== 1)) {
-    _$jscoverage['/transition.js'].lineData[122]++;
-    allCompleted = 0;
-    _$jscoverage['/transition.js'].lineData[123]++;
-    return false;
-  }
-  _$jscoverage['/transition.js'].lineData[125]++;
-  return undefined;
-});
-  _$jscoverage['/transition.js'].lineData[127]++;
-  if (visit10_127_1(allCompleted)) {
-    _$jscoverage['/transition.js'].lineData[128]++;
-    self.stop(true);
-  }
 }, 
   doStop: function(finish) {
-  _$jscoverage['/transition.js'].functionData[11]++;
-  _$jscoverage['/transition.js'].lineData[133]++;
+  _$jscoverage['/transition.js'].functionData[15]++;
+  _$jscoverage['/transition.js'].lineData[189]++;
   var self = this, node = self.node, elStyle = node.style, _propsData = self._propsData, propList = [], clear, propsCss = {};
-  _$jscoverage['/transition.js'].lineData[141]++;
-  Event.detach(node, TRANSITION_END_EVENT, self._onTransitionEnd, self);
-  _$jscoverage['/transition.js'].lineData[142]++;
-  S.each(_propsData, function(propData, prop) {
-  _$jscoverage['/transition.js'].functionData[12]++;
-  _$jscoverage['/transition.js'].lineData[143]++;
-  if (visit11_143_1(!finish)) {
-    _$jscoverage['/transition.js'].lineData[144]++;
+  _$jscoverage['/transition.js'].lineData[197]++;
+  if (visit16_197_1(self._transitionEndTimer)) {
+    _$jscoverage['/transition.js'].lineData[198]++;
+    clearTimeout(self._transitionEndTimer);
+    _$jscoverage['/transition.js'].lineData[199]++;
+    self._transitionEndTimer = null;
+  }
+  _$jscoverage['/transition.js'].lineData[202]++;
+  util.each(_propsData, function(propData, prop) {
+  _$jscoverage['/transition.js'].functionData[16]++;
+  _$jscoverage['/transition.js'].lineData[203]++;
+  if (visit17_203_1(!finish)) {
+    _$jscoverage['/transition.js'].lineData[204]++;
     propsCss[prop] = Dom.css(node, prop);
   }
-  _$jscoverage['/transition.js'].lineData[146]++;
+  _$jscoverage['/transition.js'].lineData[206]++;
   propList.push(prop);
 });
-  _$jscoverage['/transition.js'].lineData[150]++;
-  clear = visit12_153_1(S.trim(elStyle[TRANSITION].replace(new RegExp('(^|,)' + '\\s*(?:' + propList.join('|') + ')\\s+[^,]+', 'gi'), '$1')).replace(/^,|,,|,$/g, '') || 'none');
-  _$jscoverage['/transition.js'].lineData[155]++;
+  _$jscoverage['/transition.js'].lineData[210]++;
+  clear = visit18_213_1(util.trim(elStyle[TRANSITION].replace(new RegExp('(^|,)' + '\\s*(?:' + propList.join('|') + ')\\s+[^,]+', 'gi'), '$1')).replace(/^,|,,|,$/g, '') || 'none');
+  _$jscoverage['/transition.js'].lineData[215]++;
   elStyle[TRANSITION] = clear;
-  _$jscoverage['/transition.js'].lineData[156]++;
+  _$jscoverage['/transition.js'].lineData[216]++;
   Dom.css(node, propsCss);
 }});
-  _$jscoverage['/transition.js'].lineData[160]++;
-  return TransitionAnim;
+  _$jscoverage['/transition.js'].lineData[220]++;
+  util.mix(TransitionAnim, AnimBase.Statics);
+  _$jscoverage['/transition.js'].lineData[223]++;
+  module.exports = TransitionAnim;
 });
diff --git a/src/anim/sub-modules/transition/meta/deps.js b/src/anim/sub-modules/transition/meta/deps.js
index aaf040c760..0a218b740a 100644
--- a/src/anim/sub-modules/transition/meta/deps.js
+++ b/src/anim/sub-modules/transition/meta/deps.js
@@ -1,4 +1,4 @@
 /*Generated By KISSY Module Compiler*/
 config({
-'anim/transition': {requires: ['dom','event/dom','anim/base']}
+'anim/transition': {requires: ['dom','anim/base']}
 });
diff --git a/src/anim/sub-modules/transition/src/transition.js b/src/anim/sub-modules/transition/src/transition.js
index 0b24c67ce0..5bd458af4d 100644
--- a/src/anim/sub-modules/transition/src/transition.js
+++ b/src/anim/sub-modules/transition/src/transition.js
@@ -3,70 +3,144 @@
  * @author yiminghe@gmail.com
  * @ignore
  */
-KISSY.add(function (S, require) {
+KISSY.add(function (S, require, exports, module) {
+    function upperCase() {
+        return arguments[1].toUpperCase();
+    }
+
+    var RE_DASH = /-([a-z])/ig;
+    var propertyPrefixes = [
+            'Webkit',
+            'Moz',
+            'O',
+            // ms is special .... !
+            'ms'
+        ],
+        propertyPrefixesLength = propertyPrefixes.length;
+    var vendorInfos = {};
+    var documentElementStyle = document.documentElement.style;
+
+    function getVendorInfo(name) {
+        if (name.indexOf('-') !== -1) {
+            name = name.replace(RE_DASH, upperCase);
+        }
+        if (name in vendorInfos) {
+            return vendorInfos[name];
+        }
+        // if already prefixed or need not to prefix
+        if (!documentElementStyle || name in documentElementStyle) {
+            vendorInfos[name] = {
+                propertyName: name,
+                propertyNamePrefix: ''
+            };
+        } else {
+            var upperFirstName = name.charAt(0).toUpperCase() + name.slice(1),
+                vendorName;
+
+            for (var i = 0; i < propertyPrefixesLength; i++) {
+                var propertyNamePrefix = propertyPrefixes[i];
+                vendorName = propertyNamePrefix + upperFirstName;
+                if (vendorName in documentElementStyle) {
+                    vendorInfos[name] = {
+                        propertyName: vendorName,
+                        propertyNamePrefix: propertyNamePrefix
+                    };
+                }
+            }
+
+            vendorInfos[name] = vendorInfos[name] || null;
+        }
+        return  vendorInfos[name];
+    }
+
+    /**
+     * animation using css transition
+     * @author yiminghe@gmail.com
+     * @ignore
+     */
+    var util = S;
     var Dom = require('dom');
-    var Event = require('event/dom');
     var AnimBase = require('./base');
-
-    var Features = S.Features;
-    var vendorPrefix = Features.getTransitionPrefix();
-    var R_UPPER = /([A-Z]|^ms)/g;
-    var TRANSITION_END_EVENT = vendorPrefix ?
-        // webkitTransitionEnd !
-        (vendorPrefix.toLowerCase() + 'TransitionEnd') :
-        'transitionend';
-    var TRANSITION = Features.getTransitionProperty();
+    var transitionVendorInfo = getVendorInfo('transition');
+    var TRANSITION = transitionVendorInfo.propertyName;
+    var DEFAULT_EASING = 'linear';
+    var css3Anim = {
+        ease: 1,
+        linear: 1,
+        'ease-in': 1,
+        'ease-out': 1,
+        'ease-in-out': 1
+    };
 
     function genTransition(propsData) {
         var str = '';
-        S.each(propsData, function (propData, prop) {
+        util.each(propsData, function (propData, prop) {
             if (str) {
                 str += ',';
             }
-            str += prop + ' ' +
-                propData.duration +
-                's ' + propData.easing +
-                ' ' + propData.delay + 's';
+            str += prop + ' ' + propData.duration + 's ' +
+                propData.easing + ' ' + propData.delay + 's';
         });
         return str;
     }
 
-    function TransitionAnim() {
-        TransitionAnim.superclass.constructor.apply(this, arguments);
+    function unCamelCase(propertyName) {
+        return propertyName.replace(/[A-Z]/g, function (m) {
+            return '-' + m.toLowerCase();
+        });
+    }
+
+    function TransitionAnim(node, to, duration, easing, complete) {
+        var self = this;
+        if (!(self instanceof  TransitionAnim)) {
+            return new TransitionAnim(node, to, duration, easing, complete);
+        }
+        TransitionAnim.superclass.constructor.apply(self, arguments);
     }
 
-    S.extend(TransitionAnim, AnimBase, {
+    util.extend(TransitionAnim, AnimBase, {
+        prepareFx: function () {
+            var self = this,
+                propsData = self._propsData;
+            var newProps = {};
+            var val;
+            var vendorInfo;
+            for (var propertyName in propsData) {
+                val = propsData[propertyName];
+                if (typeof val.easing === 'string') {
+                    if (!util.startsWith(val.easing, 'cubic-bezier') && !css3Anim[val.easing]) {
+                        val.easing = DEFAULT_EASING;
+                    }
+                } else {
+                    val.easing = DEFAULT_EASING;
+                }
+                vendorInfo = getVendorInfo(propertyName);
+                if (!vendorInfo) {
+                    S.log('unsupported css property for transition anim: ' + propertyName, 'error');
+                    continue;
+                }
+                newProps[unCamelCase(vendorInfo.propertyName)] = propsData[propertyName];
+            }
+            self._propsData = newProps;
+        },
+
         doStart: function () {
             var self = this,
                 node = self.node,
                 elStyle = node.style,
                 _propsData = self._propsData,
                 original = elStyle[TRANSITION],
-                transform,
+                totalDuration = 0,
                 propsCss = {};
-            if ((transform = _propsData.transform)) {
-                delete _propsData.transform;
-                _propsData[Features.getTransformProperty()
-                    .replace(R_UPPER, '-$1').toLowerCase()] = transform;
-            }
-            S.each(_propsData, function (propData, prop) {
-                var v = propData.value,
-                    currentValue = Dom.css(node, prop);
-                if (typeof v === 'number') {
-                    currentValue = parseFloat(currentValue);
-                }
-                if (currentValue === v) {
-                    // browser does not trigger _onTransitionEnd if from is same with to
-                    setTimeout(function () {
-                        self._onTransitionEnd({
-                            originalEvent: {
-                                propertyName: prop
-                            }
-                        });
-                    }, 0);
-                }
+
+            util.each(_propsData, function (propData, prop) {
+                var v = propData.value;
+                // hack, for to reflow?
+                Dom.css(node, prop, Dom.css(node, prop));
                 propsCss[prop] = v;
+                totalDuration = Math.max(propData.duration + propData.delay, totalDuration);
             });
+
             // chrome none
             // firefox none 0s ease 0s
             if (original.indexOf('none') !== -1) {
@@ -75,13 +149,17 @@ KISSY.add(function (S, require) {
                 original += ',';
             }
 
-            // S.log('before start: '+original);
             elStyle[TRANSITION] = original + genTransition(_propsData);
-            // S.log('after start: '+elStyle[TRANSITION]);
 
-            Event.on(node, TRANSITION_END_EVENT, self._onTransitionEnd, self);
+            // bug when set left on relative element
+            setTimeout(function () {
+                Dom.css(node, propsCss);
+            }, 0);
 
-            Dom.css(node, propsCss);
+            // timer is more reliable and can deal with short hand css properties
+            self._transitionEndTimer = setTimeout(function () {
+                self.stop(true);
+            }, totalDuration * 1000);
         },
 
         beforeResume: function () {
@@ -89,9 +167,9 @@ KISSY.add(function (S, require) {
             // already run time before pause
             var self = this,
                 propsData = self._propsData,
-                tmpPropsData = S.merge(propsData),
+                tmpPropsData = util.merge(propsData),
                 runTime = self._runTime / 1000;
-            S.each(tmpPropsData, function (propData, prop) {
+            util.each(tmpPropsData, function (propData, prop) {
                 var tRunTime = runTime;
                 if (propData.delay >= tRunTime) {
                     propData.delay -= tRunTime;
@@ -107,28 +185,6 @@ KISSY.add(function (S, require) {
             });
         },
 
-        _onTransitionEnd: function (e) {
-            e = e.originalEvent;
-            var self = this,
-                allCompleted = 1,
-                propsData = self._propsData;
-            // other anim on the same element
-            if (!propsData[e.propertyName]) {
-                return;
-            }
-            propsData[e.propertyName].pos = 1;
-            S.each(propsData, function (propData) {
-                if (propData.pos !== 1) {
-                    allCompleted = 0;
-                    return false;
-                }
-                return undefined;
-            });
-            if (allCompleted) {
-                self.stop(true);
-            }
-        },
-
         doStop: function (finish) {
             var self = this,
                 node = self.node,
@@ -138,8 +194,12 @@ KISSY.add(function (S, require) {
                 clear,
                 propsCss = {};
 
-            Event.detach(node, TRANSITION_END_EVENT, self._onTransitionEnd, self);
-            S.each(_propsData, function (propData, prop) {
+            if (self._transitionEndTimer) {
+                clearTimeout(self._transitionEndTimer);
+                self._transitionEndTimer = null;
+            }
+
+            util.each(_propsData, function (propData, prop) {
                 if (!finish) {
                     propsCss[prop] = Dom.css(node, prop);
                 }
@@ -147,9 +207,9 @@ KISSY.add(function (S, require) {
             });
 
             // firefox need set transition and need set none
-            clear = S.trim(elStyle[TRANSITION]
-                    .replace(new RegExp('(^|,)' + '\\s*(?:' + propList.join('|') + ')\\s+[^,]+', 'gi'),
-                        '$1'))
+            clear = util.trim(elStyle[TRANSITION]
+                .replace(new RegExp('(^|,)' + '\\s*(?:' + propList.join('|') + ')\\s+[^,]+', 'gi'),
+                '$1'))
                 .replace(/^,|,,|,$/g, '') || 'none';
 
             elStyle[TRANSITION] = clear;
@@ -157,7 +217,14 @@ KISSY.add(function (S, require) {
         }
     });
 
-    return TransitionAnim;
+    util.mix(TransitionAnim, AnimBase.Statics);
+
+// bad
+    module.exports = TransitionAnim;
+    /*
+     refer:
+     - https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_animated_properties
+     */
 });
 /*
  refer:
diff --git a/src/base/coverage/src/base.js b/src/base/coverage/src/base.js
index 90f308f14d..622553b6e7 100644
--- a/src/base/coverage/src/base.js
+++ b/src/base/coverage/src/base.js
@@ -376,6 +376,7 @@ if (! _$jscoverage['/base.js']) {
   _$jscoverage['/base.js'].lineData[436] = 0;
   _$jscoverage['/base.js'].lineData[437] = 0;
   _$jscoverage['/base.js'].lineData[443] = 0;
+  _$jscoverage['/base.js'].lineData[445] = 0;
 }
 if (! _$jscoverage['/base.js'].functionData) {
   _$jscoverage['/base.js'].functionData = [];
@@ -1081,5 +1082,7 @@ KISSY.add(function(S, require) {
     }
   }
   _$jscoverage['/base.js'].lineData[443]++;
+  S.Base = Base;
+  _$jscoverage['/base.js'].lineData[445]++;
   return Base;
 });
diff --git a/src/base/src/base.js b/src/base/src/base.js
index cd2386940d..19f62b5868 100644
--- a/src/base/src/base.js
+++ b/src/base/src/base.js
@@ -440,6 +440,8 @@ KISSY.add(function (S, require) {
         }
     }
 
+    S.Base = Base;
+
     return Base;
 });
 /**
diff --git a/src/build.xml b/src/build.xml
index 86b058f6c5..bfdaf55f11 100644
--- a/src/build.xml
+++ b/src/build.xml
@@ -59,26 +59,9 @@
             
         
 
-        
-            
-        
-
-        
-            
-        
-
         
             
         
-
-        
-        
-            
-        
-
-        
-            
-        
     
 
 
@@ -125,6 +108,14 @@
             
         
 
+        
+            
+        
+
         
     
         
     
 
-    
-    
+    
+    
     
     
     
 
     
     
-    
-    
-    
+    
+    
+    
     
 
 
\ No newline at end of file
diff --git a/src/date/picker-xtpl/build.xml b/src/date/picker-xtpl/build.xml
new file mode 100644
index 0000000000..0a48617bad
--- /dev/null
+++ b/src/date/picker-xtpl/build.xml
@@ -0,0 +1,6 @@
+
+    
+    
+    
+
+
diff --git a/src/date/picker-xtpl/coverage/src/picker-xtpl.js b/src/date/picker-xtpl/coverage/src/picker-xtpl.js
new file mode 100644
index 0000000000..0fe6f84396
--- /dev/null
+++ b/src/date/picker-xtpl/coverage/src/picker-xtpl.js
@@ -0,0 +1,943 @@
+function BranchData() {
+    this.position = -1;
+    this.nodeLength = -1;
+    this.src = null;
+    this.evalFalse = 0;
+    this.evalTrue = 0;
+
+    this.init = function(position, nodeLength, src) {
+        this.position = position;
+        this.nodeLength = nodeLength;
+        this.src = src;
+        return this;
+    }
+
+    this.ranCondition = function(result) {
+        if (result)
+            this.evalTrue++;
+        else
+            this.evalFalse++;
+    };
+
+    this.pathsCovered = function() {
+        var paths = 0;
+        if (this.evalTrue > 0)
+          paths++;
+        if (this.evalFalse > 0)
+          paths++;
+        return paths;
+    };
+
+    this.covered = function() {
+        return this.evalTrue > 0 && this.evalFalse > 0;
+    };
+
+    this.toJSON = function() {
+        return '{"position":' + this.position
+            + ',"nodeLength":' + this.nodeLength
+            + ',"src":' + jscoverage_quote(this.src)
+            + ',"evalFalse":' + this.evalFalse
+            + ',"evalTrue":' + this.evalTrue + '}';
+    };
+
+    this.message = function() {
+        if (this.evalTrue === 0 && this.evalFalse === 0)
+            return 'Condition never evaluated         :\t' + this.src;
+        else if (this.evalTrue === 0)
+            return 'Condition never evaluated to true :\t' + this.src;
+        else if (this.evalFalse === 0)
+            return 'Condition never evaluated to false:\t' + this.src;
+        else
+            return 'Condition covered';
+    };
+}
+
+BranchData.fromJson = function(jsonString) {
+    var json = eval('(' + jsonString + ')');
+    var branchData = new BranchData();
+    branchData.init(json.position, json.nodeLength, json.src);
+    branchData.evalFalse = json.evalFalse;
+    branchData.evalTrue = json.evalTrue;
+    return branchData;
+};
+
+BranchData.fromJsonObject = function(json) {
+    var branchData = new BranchData();
+    branchData.init(json.position, json.nodeLength, json.src);
+    branchData.evalFalse = json.evalFalse;
+    branchData.evalTrue = json.evalTrue;
+    return branchData;
+};
+
+function buildBranchMessage(conditions) {
+    var message = 'The following was not covered:';
+    for (var i = 0; i < conditions.length; i++) {
+        if (conditions[i] !== undefined && conditions[i] !== null && !conditions[i].covered())
+          message += '\n- '+ conditions[i].message();
+    }
+    return message;
+};
+
+function convertBranchDataConditionArrayToJSON(branchDataConditionArray) {
+    var array = [];
+    var length = branchDataConditionArray.length;
+    for (var condition = 0; condition < length; condition++) {
+        var branchDataObject = branchDataConditionArray[condition];
+        if (branchDataObject === undefined || branchDataObject === null) {
+            value = 'null';
+        } else {
+            value = branchDataObject.toJSON();
+        }
+        array.push(value);
+    }
+    return '[' + array.join(',') + ']';
+}
+
+function convertBranchDataLinesToJSON(branchData) {
+    if (branchData === undefined) {
+        return '{}'
+    }
+    var json = '';
+    for (var line in branchData) {
+        if (json !== '')
+            json += ','
+        json += '"' + line + '":' + convertBranchDataConditionArrayToJSON(branchData[line]);
+    }
+    return '{' + json + '}';
+}
+
+function convertBranchDataLinesFromJSON(jsonObject) {
+    if (jsonObject === undefined) {
+        return {};
+    }
+    for (var line in jsonObject) {
+        var branchDataJSON = jsonObject[line];
+        if (branchDataJSON !== null) {
+            for (var conditionIndex = 0; conditionIndex < branchDataJSON.length; conditionIndex ++) {
+                var condition = branchDataJSON[conditionIndex];
+                if (condition !== null) {
+                    branchDataJSON[conditionIndex] = BranchData.fromJsonObject(condition);
+                }
+            }
+        }
+    }
+    return jsonObject;
+}
+function jscoverage_quote(s) {
+    return '"' + s.replace(/[\u0000-\u001f"\\\u007f-\uffff]/g, function (c) {
+        switch (c) {
+            case '\b':
+                return '\\b';
+            case '\f':
+                return '\\f';
+            case '\n':
+                return '\\n';
+            case '\r':
+                return '\\r';
+            case '\t':
+                return '\\t';
+            // IE doesn't support this
+            /*
+             case '\v':
+             return '\\v';
+             */
+            case '"':
+                return '\\"';
+            case '\\':
+                return '\\\\';
+            default:
+                return '\\u' + jscoverage_pad(c.charCodeAt(0).toString(16));
+        }
+    }) + '"';
+}
+
+function getArrayJSON(coverage) {
+    var array = [];
+    if (coverage === undefined)
+        return array;
+
+    var length = coverage.length;
+    for (var line = 0; line < length; line++) {
+        var value = coverage[line];
+        if (value === undefined || value === null) {
+            value = 'null';
+        }
+        array.push(value);
+    }
+    return array;
+}
+
+function jscoverage_serializeCoverageToJSON() {
+    var json = [];
+    for (var file in _$jscoverage) {
+        var lineArray = getArrayJSON(_$jscoverage[file].lineData);
+        var fnArray = getArrayJSON(_$jscoverage[file].functionData);
+
+        json.push(jscoverage_quote(file) + ':{"lineData":[' + lineArray.join(',') + '],"functionData":[' + fnArray.join(',') + '],"branchData":' + convertBranchDataLinesToJSON(_$jscoverage[file].branchData) + '}');
+    }
+    return '{' + json.join(',') + '}';
+}
+
+
+function jscoverage_pad(s) {
+    return '0000'.substr(s.length) + s;
+}
+
+function jscoverage_html_escape(s) {
+    return s.replace(/[<>\&\"\']/g, function (c) {
+        return '&#' + c.charCodeAt(0) + ';';
+    });
+}
+try {
+  if (typeof top === 'object' && top !== null && typeof top.opener === 'object' && top.opener !== null) {
+    // this is a browser window that was opened from another window
+
+    if (! top.opener._$jscoverage) {
+      top.opener._$jscoverage = {};
+    }
+  }
+}
+catch (e) {}
+
+try {
+  if (typeof top === 'object' && top !== null) {
+    // this is a browser window
+
+    try {
+      if (typeof top.opener === 'object' && top.opener !== null && top.opener._$jscoverage) {
+        top._$jscoverage = top.opener._$jscoverage;
+      }
+    }
+    catch (e) {}
+
+    if (! top._$jscoverage) {
+      top._$jscoverage = {};
+    }
+  }
+}
+catch (e) {}
+
+try {
+  if (typeof top === 'object' && top !== null && top._$jscoverage) {
+    this._$jscoverage = top._$jscoverage;
+  }
+}
+catch (e) {}
+if (! this._$jscoverage) {
+  this._$jscoverage = {};
+}
+if (! _$jscoverage['/picker-xtpl.js']) {
+  _$jscoverage['/picker-xtpl.js'] = {};
+  _$jscoverage['/picker-xtpl.js'].lineData = [];
+  _$jscoverage['/picker-xtpl.js'].lineData[2] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[4] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[5] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[9] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[10] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[12] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[17] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[18] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[19] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[20] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[21] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[22] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[23] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[24] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[25] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[26] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[27] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[28] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[29] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[30] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[31] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[32] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[33] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[34] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[35] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[36] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[37] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[38] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[39] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[40] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[41] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[42] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[43] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[44] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[45] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[46] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[47] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[48] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[49] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[50] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[51] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[52] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[53] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[54] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[55] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[56] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[57] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[58] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[59] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[60] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[61] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[62] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[63] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[64] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[65] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[66] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[67] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[68] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[69] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[70] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[71] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[72] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[73] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[74] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[75] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[76] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[77] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[78] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[79] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[80] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[81] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[82] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[83] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[84] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[85] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[86] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[87] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[88] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[89] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[90] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[91] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[92] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[93] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[94] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[95] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[96] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[97] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[98] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[99] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[100] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[101] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[102] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[103] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[104] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[105] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[106] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[107] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[108] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[109] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[110] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[111] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[112] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[113] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[114] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[115] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[116] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[117] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[118] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[119] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[120] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[121] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[122] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[123] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[124] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[125] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[126] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[127] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[128] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[129] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[130] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[131] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[132] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[133] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[134] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[135] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[136] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[137] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[138] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[139] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[140] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[141] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[142] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[143] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[144] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[145] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[146] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[148] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[149] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[150] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[151] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[152] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[153] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[154] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[155] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[156] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[157] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[158] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[159] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[160] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[161] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[162] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[163] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[164] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[165] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[166] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[167] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[168] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[169] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[170] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[171] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[172] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[173] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[174] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[175] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[176] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[177] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[178] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[179] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[181] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[182] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[183] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[184] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[185] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[186] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[187] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[188] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[189] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[190] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[191] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[192] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[193] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[194] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[195] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[196] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[197] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[198] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[199] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[200] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[201] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[202] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[203] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[204] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[205] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[206] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[207] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[208] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[209] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[210] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[211] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[212] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[213] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[214] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[215] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[216] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[217] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[218] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[219] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[220] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[221] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[222] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[223] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[224] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[225] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[226] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[227] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[228] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[229] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[230] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[231] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[232] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[233] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[234] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[236] = 0;
+  _$jscoverage['/picker-xtpl.js'].lineData[237] = 0;
+}
+if (! _$jscoverage['/picker-xtpl.js'].functionData) {
+  _$jscoverage['/picker-xtpl.js'].functionData = [];
+  _$jscoverage['/picker-xtpl.js'].functionData[0] = 0;
+  _$jscoverage['/picker-xtpl.js'].functionData[1] = 0;
+  _$jscoverage['/picker-xtpl.js'].functionData[2] = 0;
+  _$jscoverage['/picker-xtpl.js'].functionData[3] = 0;
+  _$jscoverage['/picker-xtpl.js'].functionData[4] = 0;
+}
+if (! _$jscoverage['/picker-xtpl.js'].branchData) {
+  _$jscoverage['/picker-xtpl.js'].branchData = {};
+  _$jscoverage['/picker-xtpl.js'].branchData['9'] = [];
+  _$jscoverage['/picker-xtpl.js'].branchData['9'][1] = new BranchData();
+  _$jscoverage['/picker-xtpl.js'].branchData['9'][2] = new BranchData();
+  _$jscoverage['/picker-xtpl.js'].branchData['193'] = [];
+  _$jscoverage['/picker-xtpl.js'].branchData['193'][1] = new BranchData();
+}
+_$jscoverage['/picker-xtpl.js'].branchData['193'][1].init(10711, 12, 'id67 || id68');
+function visit3_193_1(result) {
+  _$jscoverage['/picker-xtpl.js'].branchData['193'][1].ranCondition(result);
+  return result;
+}_$jscoverage['/picker-xtpl.js'].branchData['9'][2].init(165, 29, 'typeof module !== "undefined"');
+function visit2_9_2(result) {
+  _$jscoverage['/picker-xtpl.js'].branchData['9'][2].ranCondition(result);
+  return result;
+}_$jscoverage['/picker-xtpl.js'].branchData['9'][1].init(165, 45, 'typeof module !== "undefined" && module.kissy');
+function visit1_9_1(result) {
+  _$jscoverage['/picker-xtpl.js'].branchData['9'][1].ranCondition(result);
+  return result;
+}_$jscoverage['/picker-xtpl.js'].lineData[2]++;
+KISSY.add(function(S, require, exports, module) {
+  _$jscoverage['/picker-xtpl.js'].functionData[0]++;
+  _$jscoverage['/picker-xtpl.js'].lineData[4]++;
+  return function(scope, S, undefined) {
+  _$jscoverage['/picker-xtpl.js'].functionData[1]++;
+  _$jscoverage['/picker-xtpl.js'].lineData[5]++;
+  var buffer = "", config = this.config, engine = this, moduleWrap, utils = config.utils;
+  _$jscoverage['/picker-xtpl.js'].lineData[9]++;
+  if (visit1_9_1(visit2_9_2(typeof module !== "undefined") && module.kissy)) {
+    _$jscoverage['/picker-xtpl.js'].lineData[10]++;
+    moduleWrap = module;
+  }
+  _$jscoverage['/picker-xtpl.js'].lineData[12]++;
+  var runBlockCommandUtil = utils.runBlockCommand, renderOutputUtil = utils.renderOutput, getPropertyUtil = utils.getProperty, runInlineCommandUtil = utils.runInlineCommand, getPropertyOrRunCommandUtil = utils.getPropertyOrRunCommand;
+  _$jscoverage['/picker-xtpl.js'].lineData[17]++;
+  buffer += '
id29'); -function visit17_86_1(result) { - _$jscoverage['/picker/decade-panel/decades-xtpl.js'].branchData['86'][1].ranCondition(result); +_$jscoverage['/picker/decade-panel/decades-xtpl.js'].branchData['88'][1].init(3109, 11, 'id28 > id29'); +function visit17_88_1(result) { + _$jscoverage['/picker/decade-panel/decades-xtpl.js'].branchData['88'][1].ranCondition(result); return result; -}_$jscoverage['/picker/decade-panel/decades-xtpl.js'].branchData['66'][1].init(2224, 11, 'id21 < id22'); -function visit16_66_1(result) { - _$jscoverage['/picker/decade-panel/decades-xtpl.js'].branchData['66'][1].ranCondition(result); +}_$jscoverage['/picker/decade-panel/decades-xtpl.js'].branchData['68'][1].init(2020, 11, 'id21 < id22'); +function visit16_68_1(result) { + _$jscoverage['/picker/decade-panel/decades-xtpl.js'].branchData['68'][1].ranCondition(result); return result; -}_$jscoverage['/picker/decade-panel/decades-xtpl.js'].branchData['46'][3].init(33, 12, 'id14 <= id15'); -function visit15_46_3(result) { - _$jscoverage['/picker/decade-panel/decades-xtpl.js'].branchData['46'][3].ranCondition(result); +}_$jscoverage['/picker/decade-panel/decades-xtpl.js'].branchData['48'][3].init(33, 12, 'id14 <= id15'); +function visit15_48_3(result) { + _$jscoverage['/picker/decade-panel/decades-xtpl.js'].branchData['48'][3].ranCondition(result); return result; -}_$jscoverage['/picker/decade-panel/decades-xtpl.js'].branchData['46'][2].init(15, 12, 'id12 <= id13'); -function visit14_46_2(result) { - _$jscoverage['/picker/decade-panel/decades-xtpl.js'].branchData['46'][2].ranCondition(result); +}_$jscoverage['/picker/decade-panel/decades-xtpl.js'].branchData['48'][2].init(15, 12, 'id12 <= id13'); +function visit14_48_2(result) { + _$jscoverage['/picker/decade-panel/decades-xtpl.js'].branchData['48'][2].ranCondition(result); return result; -}_$jscoverage['/picker/decade-panel/decades-xtpl.js'].branchData['46'][1].init(1049, 31, '(id12 <= id13) && (id14 <= id15)'); -function visit13_46_1(result) { - _$jscoverage['/picker/decade-panel/decades-xtpl.js'].branchData['46'][1].ranCondition(result); +}_$jscoverage['/picker/decade-panel/decades-xtpl.js'].branchData['48'][1].init(914, 31, '(id12 <= id13) && (id14 <= id15)'); +function visit13_48_1(result) { + _$jscoverage['/picker/decade-panel/decades-xtpl.js'].branchData['48'][1].ranCondition(result); return result; }_$jscoverage['/picker/decade-panel/decades-xtpl.js'].branchData['9'][2].init(165, 29, 'typeof module !== "undefined"'); function visit12_9_2(result) { @@ -405,222 +405,222 @@ KISSY.add(function(S, require, exports, module) { moduleWrap = module; } _$jscoverage['/picker/decade-panel/decades-xtpl.js'].lineData[12]++; - var runBlockCommandUtil = utils.runBlockCommand, getExpressionUtil = utils.getExpression, getPropertyOrRunCommandUtil = utils.getPropertyOrRunCommand; - _$jscoverage['/picker/decade-panel/decades-xtpl.js'].lineData[15]++; - buffer += ''; - _$jscoverage['/picker/decade-panel/decades-xtpl.js'].lineData[16]++; - var config0 = {}; + var runBlockCommandUtil = utils.runBlockCommand, renderOutputUtil = utils.renderOutput, getPropertyUtil = utils.getProperty, runInlineCommandUtil = utils.runInlineCommand, getPropertyOrRunCommandUtil = utils.getPropertyOrRunCommand; _$jscoverage['/picker/decade-panel/decades-xtpl.js'].lineData[17]++; - var params1 = []; + buffer += ''; _$jscoverage['/picker/decade-panel/decades-xtpl.js'].lineData[18]++; - var id2 = getPropertyOrRunCommandUtil(engine, scope, {}, "decades", 0, 1, undefined, true); + var config0 = {}; _$jscoverage['/picker/decade-panel/decades-xtpl.js'].lineData[19]++; - params1.push(id2); + var params1 = []; _$jscoverage['/picker/decade-panel/decades-xtpl.js'].lineData[20]++; - config0.params = params1; + var id2 = getPropertyUtil(engine, scope, "decades", 0, 1); _$jscoverage['/picker/decade-panel/decades-xtpl.js'].lineData[21]++; - config0.fn = function(scope) { - _$jscoverage['/picker/decade-panel/decades-xtpl.js'].functionData[2]++; + params1.push(id2); _$jscoverage['/picker/decade-panel/decades-xtpl.js'].lineData[22]++; - var buffer = ""; + config0.params = params1; _$jscoverage['/picker/decade-panel/decades-xtpl.js'].lineData[23]++; - buffer += '\n\n '; + config0.fn = function(scope) { + _$jscoverage['/picker/decade-panel/decades-xtpl.js'].functionData[2]++; _$jscoverage['/picker/decade-panel/decades-xtpl.js'].lineData[24]++; - var config3 = {}; + var buffer = ""; _$jscoverage['/picker/decade-panel/decades-xtpl.js'].lineData[25]++; - var params4 = []; + buffer += '\n\n '; _$jscoverage['/picker/decade-panel/decades-xtpl.js'].lineData[26]++; - var id6 = getPropertyOrRunCommandUtil(engine, scope, {}, "xindex", 0, 3, undefined, true); + var config3 = {}; _$jscoverage['/picker/decade-panel/decades-xtpl.js'].lineData[27]++; - var id5 = getPropertyOrRunCommandUtil(engine, scope, {}, "decades." + id6 + "", 0, 3, undefined, true); + var params4 = []; _$jscoverage['/picker/decade-panel/decades-xtpl.js'].lineData[28]++; - params4.push(id5); + var id6 = getPropertyUtil(engine, scope, "xindex", 0, 3); _$jscoverage['/picker/decade-panel/decades-xtpl.js'].lineData[29]++; - config3.params = params4; + var id5 = getPropertyUtil(engine, scope, "decades." + id6 + "", 0, 3); _$jscoverage['/picker/decade-panel/decades-xtpl.js'].lineData[30]++; - config3.fn = function(scope) { - _$jscoverage['/picker/decade-panel/decades-xtpl.js'].functionData[3]++; + params4.push(id5); _$jscoverage['/picker/decade-panel/decades-xtpl.js'].lineData[31]++; - var buffer = ""; + config3.params = params4; _$jscoverage['/picker/decade-panel/decades-xtpl.js'].lineData[32]++; - buffer += '\n id29)); + var id28 = getPropertyUtil(engine, scope, "endDecade", 0, 12); _$jscoverage['/picker/decade-panel/decades-xtpl.js'].lineData[87]++; - config26.params = params27; + var id29 = getPropertyUtil(engine, scope, "endYear", 0, 12); _$jscoverage['/picker/decade-panel/decades-xtpl.js'].lineData[88]++; - config26.fn = function(scope) { - _$jscoverage['/picker/decade-panel/decades-xtpl.js'].functionData[6]++; + params27.push(visit17_88_1(id28 > id29)); _$jscoverage['/picker/decade-panel/decades-xtpl.js'].lineData[89]++; - var buffer = ""; + config26.params = params27; _$jscoverage['/picker/decade-panel/decades-xtpl.js'].lineData[90]++; - buffer += '\n '; + config26.fn = function(scope) { + _$jscoverage['/picker/decade-panel/decades-xtpl.js'].functionData[6]++; _$jscoverage['/picker/decade-panel/decades-xtpl.js'].lineData[91]++; - var config31 = {}; + var buffer = ""; _$jscoverage['/picker/decade-panel/decades-xtpl.js'].lineData[92]++; - var params32 = []; + buffer += '\n '; _$jscoverage['/picker/decade-panel/decades-xtpl.js'].lineData[93]++; - params32.push('next-century-cell'); + var config31 = {}; _$jscoverage['/picker/decade-panel/decades-xtpl.js'].lineData[94]++; - config31.params = params32; + var params32 = []; _$jscoverage['/picker/decade-panel/decades-xtpl.js'].lineData[95]++; - var id30 = getPropertyOrRunCommandUtil(engine, scope, config31, "getBaseCssClasses", 0, 13, true, undefined); + params32.push('next-century-cell'); _$jscoverage['/picker/decade-panel/decades-xtpl.js'].lineData[96]++; - buffer += id30; + config31.params = params32; _$jscoverage['/picker/decade-panel/decades-xtpl.js'].lineData[97]++; - buffer += '\n '; + var id30 = runInlineCommandUtil(engine, scope, config31, "getBaseCssClasses", 13); _$jscoverage['/picker/decade-panel/decades-xtpl.js'].lineData[98]++; + buffer += renderOutputUtil(id30, true); + _$jscoverage['/picker/decade-panel/decades-xtpl.js'].lineData[99]++; + buffer += '\n '; + _$jscoverage['/picker/decade-panel/decades-xtpl.js'].lineData[100]++; return buffer; }; - _$jscoverage['/picker/decade-panel/decades-xtpl.js'].lineData[100]++; - buffer += runBlockCommandUtil(engine, scope, config26, "if", 12); - _$jscoverage['/picker/decade-panel/decades-xtpl.js'].lineData[101]++; - buffer += '\n ">\n 0) - paths++; - if (this.evalFalse > 0) - paths++; - return paths; - }; - - this.covered = function() { - return this.evalTrue > 0 && this.evalFalse > 0; - }; - - this.toJSON = function() { - return '{"position":' + this.position - + ',"nodeLength":' + this.nodeLength - + ',"src":' + jscoverage_quote(this.src) - + ',"evalFalse":' + this.evalFalse - + ',"evalTrue":' + this.evalTrue + '}'; - }; - - this.message = function() { - if (this.evalTrue === 0 && this.evalFalse === 0) - return 'Condition never evaluated :\t' + this.src; - else if (this.evalTrue === 0) - return 'Condition never evaluated to true :\t' + this.src; - else if (this.evalFalse === 0) - return 'Condition never evaluated to false:\t' + this.src; - else - return 'Condition covered'; - }; -} - -BranchData.fromJson = function(jsonString) { - var json = eval('(' + jsonString + ')'); - var branchData = new BranchData(); - branchData.init(json.position, json.nodeLength, json.src); - branchData.evalFalse = json.evalFalse; - branchData.evalTrue = json.evalTrue; - return branchData; -}; - -BranchData.fromJsonObject = function(json) { - var branchData = new BranchData(); - branchData.init(json.position, json.nodeLength, json.src); - branchData.evalFalse = json.evalFalse; - branchData.evalTrue = json.evalTrue; - return branchData; -}; - -function buildBranchMessage(conditions) { - var message = 'The following was not covered:'; - for (var i = 0; i < conditions.length; i++) { - if (conditions[i] !== undefined && conditions[i] !== null && !conditions[i].covered()) - message += '\n- '+ conditions[i].message(); - } - return message; -}; - -function convertBranchDataConditionArrayToJSON(branchDataConditionArray) { - var array = []; - var length = branchDataConditionArray.length; - for (var condition = 0; condition < length; condition++) { - var branchDataObject = branchDataConditionArray[condition]; - if (branchDataObject === undefined || branchDataObject === null) { - value = 'null'; - } else { - value = branchDataObject.toJSON(); - } - array.push(value); - } - return '[' + array.join(',') + ']'; -} - -function convertBranchDataLinesToJSON(branchData) { - if (branchData === undefined) { - return '{}' - } - var json = ''; - for (var line in branchData) { - if (json !== '') - json += ',' - json += '"' + line + '":' + convertBranchDataConditionArrayToJSON(branchData[line]); - } - return '{' + json + '}'; -} - -function convertBranchDataLinesFromJSON(jsonObject) { - if (jsonObject === undefined) { - return {}; - } - for (var line in jsonObject) { - var branchDataJSON = jsonObject[line]; - if (branchDataJSON !== null) { - for (var conditionIndex = 0; conditionIndex < branchDataJSON.length; conditionIndex ++) { - var condition = branchDataJSON[conditionIndex]; - if (condition !== null) { - branchDataJSON[conditionIndex] = BranchData.fromJsonObject(condition); - } - } - } - } - return jsonObject; -} -function jscoverage_quote(s) { - return '"' + s.replace(/[\u0000-\u001f"\\\u007f-\uffff]/g, function (c) { - switch (c) { - case '\b': - return '\\b'; - case '\f': - return '\\f'; - case '\n': - return '\\n'; - case '\r': - return '\\r'; - case '\t': - return '\\t'; - // IE doesn't support this - /* - case '\v': - return '\\v'; - */ - case '"': - return '\\"'; - case '\\': - return '\\\\'; - default: - return '\\u' + jscoverage_pad(c.charCodeAt(0).toString(16)); - } - }) + '"'; -} - -function getArrayJSON(coverage) { - var array = []; - if (coverage === undefined) - return array; - - var length = coverage.length; - for (var line = 0; line < length; line++) { - var value = coverage[line]; - if (value === undefined || value === null) { - value = 'null'; - } - array.push(value); - } - return array; -} - -function jscoverage_serializeCoverageToJSON() { - var json = []; - for (var file in _$jscoverage) { - var lineArray = getArrayJSON(_$jscoverage[file].lineData); - var fnArray = getArrayJSON(_$jscoverage[file].functionData); - - json.push(jscoverage_quote(file) + ':{"lineData":[' + lineArray.join(',') + '],"functionData":[' + fnArray.join(',') + '],"branchData":' + convertBranchDataLinesToJSON(_$jscoverage[file].branchData) + '}'); - } - return '{' + json.join(',') + '}'; -} - - -function jscoverage_pad(s) { - return '0000'.substr(s.length) + s; -} - -function jscoverage_html_escape(s) { - return s.replace(/[<>\&\"\']/g, function (c) { - return '&#' + c.charCodeAt(0) + ';'; - }); -} -try { - if (typeof top === 'object' && top !== null && typeof top.opener === 'object' && top.opener !== null) { - // this is a browser window that was opened from another window - - if (! top.opener._$jscoverage) { - top.opener._$jscoverage = {}; - } - } -} -catch (e) {} - -try { - if (typeof top === 'object' && top !== null) { - // this is a browser window - - try { - if (typeof top.opener === 'object' && top.opener !== null && top.opener._$jscoverage) { - top._$jscoverage = top.opener._$jscoverage; - } - } - catch (e) {} - - if (! top._$jscoverage) { - top._$jscoverage = {}; - } - } -} -catch (e) {} - -try { - if (typeof top === 'object' && top !== null && top._$jscoverage) { - this._$jscoverage = top._$jscoverage; - } -} -catch (e) {} -if (! this._$jscoverage) { - this._$jscoverage = {}; -} -if (! _$jscoverage['/picker/picker-xtpl.js']) { - _$jscoverage['/picker/picker-xtpl.js'] = {}; - _$jscoverage['/picker/picker-xtpl.js'].lineData = []; - _$jscoverage['/picker/picker-xtpl.js'].lineData[2] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[4] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[5] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[9] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[10] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[12] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[15] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[16] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[17] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[18] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[19] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[20] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[21] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[22] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[23] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[24] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[25] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[26] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[27] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[28] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[29] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[30] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[31] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[32] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[33] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[34] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[35] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[36] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[37] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[38] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[39] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[40] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[41] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[42] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[43] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[44] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[45] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[46] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[47] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[48] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[49] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[50] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[51] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[52] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[53] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[54] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[55] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[56] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[57] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[58] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[59] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[60] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[61] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[62] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[63] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[64] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[65] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[66] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[67] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[68] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[69] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[70] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[71] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[72] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[73] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[74] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[75] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[76] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[77] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[78] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[79] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[80] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[81] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[82] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[83] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[84] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[85] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[86] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[87] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[88] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[89] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[90] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[91] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[92] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[93] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[94] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[95] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[96] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[97] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[98] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[99] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[100] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[101] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[102] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[103] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[104] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[105] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[106] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[107] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[108] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[109] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[110] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[111] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[112] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[113] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[114] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[115] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[116] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[117] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[118] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[119] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[120] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[121] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[122] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[123] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[124] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[125] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[126] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[127] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[128] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[129] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[130] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[131] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[132] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[133] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[134] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[135] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[136] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[137] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[138] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[139] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[140] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[141] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[142] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[143] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[144] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[146] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[147] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[148] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[149] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[150] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[151] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[152] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[153] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[154] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[155] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[156] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[157] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[158] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[159] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[160] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[161] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[162] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[163] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[164] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[165] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[166] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[167] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[168] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[169] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[170] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[171] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[172] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[173] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[174] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[175] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[176] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[177] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[179] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[180] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[181] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[182] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[183] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[184] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[185] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[186] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[187] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[188] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[189] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[190] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[191] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[192] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[193] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[194] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[195] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[196] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[197] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[198] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[199] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[200] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[201] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[202] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[203] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[204] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[205] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[206] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[207] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[208] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[209] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[210] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[211] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[212] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[213] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[214] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[215] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[216] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[217] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[218] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[219] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[220] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[221] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[222] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[223] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[224] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[225] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[226] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[227] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[228] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[229] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[230] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[231] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[232] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[234] = 0; - _$jscoverage['/picker/picker-xtpl.js'].lineData[235] = 0; -} -if (! _$jscoverage['/picker/picker-xtpl.js'].functionData) { - _$jscoverage['/picker/picker-xtpl.js'].functionData = []; - _$jscoverage['/picker/picker-xtpl.js'].functionData[0] = 0; - _$jscoverage['/picker/picker-xtpl.js'].functionData[1] = 0; - _$jscoverage['/picker/picker-xtpl.js'].functionData[2] = 0; - _$jscoverage['/picker/picker-xtpl.js'].functionData[3] = 0; - _$jscoverage['/picker/picker-xtpl.js'].functionData[4] = 0; -} -if (! _$jscoverage['/picker/picker-xtpl.js'].branchData) { - _$jscoverage['/picker/picker-xtpl.js'].branchData = {}; - _$jscoverage['/picker/picker-xtpl.js'].branchData['9'] = []; - _$jscoverage['/picker/picker-xtpl.js'].branchData['9'][1] = new BranchData(); - _$jscoverage['/picker/picker-xtpl.js'].branchData['9'][2] = new BranchData(); - _$jscoverage['/picker/picker-xtpl.js'].branchData['191'] = []; - _$jscoverage['/picker/picker-xtpl.js'].branchData['191'][1] = new BranchData(); -} -_$jscoverage['/picker/picker-xtpl.js'].branchData['191'][1].init(11108, 12, 'id67 || id68'); -function visit30_191_1(result) { - _$jscoverage['/picker/picker-xtpl.js'].branchData['191'][1].ranCondition(result); - return result; -}_$jscoverage['/picker/picker-xtpl.js'].branchData['9'][2].init(165, 29, 'typeof module !== "undefined"'); -function visit29_9_2(result) { - _$jscoverage['/picker/picker-xtpl.js'].branchData['9'][2].ranCondition(result); - return result; -}_$jscoverage['/picker/picker-xtpl.js'].branchData['9'][1].init(165, 45, 'typeof module !== "undefined" && module.kissy'); -function visit28_9_1(result) { - _$jscoverage['/picker/picker-xtpl.js'].branchData['9'][1].ranCondition(result); - return result; -}_$jscoverage['/picker/picker-xtpl.js'].lineData[2]++; -KISSY.add(function(S, require, exports, module) { - _$jscoverage['/picker/picker-xtpl.js'].functionData[0]++; - _$jscoverage['/picker/picker-xtpl.js'].lineData[4]++; - return function(scope, S, undefined) { - _$jscoverage['/picker/picker-xtpl.js'].functionData[1]++; - _$jscoverage['/picker/picker-xtpl.js'].lineData[5]++; - var buffer = "", config = this.config, engine = this, moduleWrap, utils = config.utils; - _$jscoverage['/picker/picker-xtpl.js'].lineData[9]++; - if (visit28_9_1(visit29_9_2(typeof module !== "undefined") && module.kissy)) { - _$jscoverage['/picker/picker-xtpl.js'].lineData[10]++; - moduleWrap = module; - } - _$jscoverage['/picker/picker-xtpl.js'].lineData[12]++; - var runBlockCommandUtil = utils.runBlockCommand, getExpressionUtil = utils.getExpression, getPropertyOrRunCommandUtil = utils.getPropertyOrRunCommand; - _$jscoverage['/picker/picker-xtpl.js'].lineData[15]++; - buffer += '
today.getMonth()'); -function visit46_56_1(result) { +function visit43_56_1(result) { _$jscoverage['/picker/render.js'].branchData['56'][1].ranCondition(result); return result; }_$jscoverage['/picker/render.js'].branchData['55'][2].init(99, 37, 'current.getYear() === today.getYear()'); -function visit45_55_2(result) { +function visit42_55_2(result) { _$jscoverage['/picker/render.js'].branchData['55'][2].ranCondition(result); return result; }_$jscoverage['/picker/render.js'].branchData['55'][1].init(99, 90, 'current.getYear() === today.getYear() && current.getMonth() > today.getMonth()'); -function visit44_55_1(result) { +function visit41_55_1(result) { _$jscoverage['/picker/render.js'].branchData['55'][1].ranCondition(result); return result; }_$jscoverage['/picker/render.js'].branchData['52'][1].init(13, 35, 'current.getYear() > today.getYear()'); -function visit43_52_1(result) { +function visit40_52_1(result) { _$jscoverage['/picker/render.js'].branchData['52'][1].ranCondition(result); return result; }_$jscoverage['/picker/render.js'].branchData['48'][1].init(52, 37, 'current.getMonth() < today.getMonth()'); -function visit42_48_1(result) { +function visit39_48_1(result) { _$jscoverage['/picker/render.js'].branchData['48'][1].ranCondition(result); return result; }_$jscoverage['/picker/render.js'].branchData['47'][2].init(99, 37, 'current.getYear() === today.getYear()'); -function visit41_47_2(result) { +function visit38_47_2(result) { _$jscoverage['/picker/render.js'].branchData['47'][2].ranCondition(result); return result; }_$jscoverage['/picker/render.js'].branchData['47'][1].init(99, 90, 'current.getYear() === today.getYear() && current.getMonth() < today.getMonth()'); -function visit40_47_1(result) { +function visit37_47_1(result) { _$jscoverage['/picker/render.js'].branchData['47'][1].ranCondition(result); return result; }_$jscoverage['/picker/render.js'].branchData['44'][1].init(13, 35, 'current.getYear() < today.getYear()'); -function visit39_44_1(result) { +function visit36_44_1(result) { _$jscoverage['/picker/render.js'].branchData['44'][1].ranCondition(result); return result; }_$jscoverage['/picker/render.js'].branchData['40'][1].init(46, 33, 'one.getMonth() === two.getMonth()'); -function visit38_40_1(result) { +function visit35_40_1(result) { _$jscoverage['/picker/render.js'].branchData['40'][1].ranCondition(result); return result; }_$jscoverage['/picker/render.js'].branchData['39'][2].init(16, 31, 'one.getYear() === two.getYear()'); -function visit37_39_2(result) { +function visit34_39_2(result) { _$jscoverage['/picker/render.js'].branchData['39'][2].ranCondition(result); return result; }_$jscoverage['/picker/render.js'].branchData['39'][1].init(16, 80, 'one.getYear() === two.getYear() && one.getMonth() === two.getMonth()'); -function visit36_39_1(result) { +function visit33_39_1(result) { _$jscoverage['/picker/render.js'].branchData['39'][1].ranCondition(result); return result; }_$jscoverage['/picker/render.js'].branchData['35'][1].init(48, 43, 'one.getDayOfMonth() === two.getDayOfMonth()'); -function visit35_35_1(result) { +function visit32_35_1(result) { _$jscoverage['/picker/render.js'].branchData['35'][1].ranCondition(result); return result; }_$jscoverage['/picker/render.js'].branchData['34'][2].init(65, 33, 'one.getMonth() === two.getMonth()'); -function visit34_34_2(result) { +function visit31_34_2(result) { _$jscoverage['/picker/render.js'].branchData['34'][2].ranCondition(result); return result; }_$jscoverage['/picker/render.js'].branchData['34'][1].init(46, 92, 'one.getMonth() === two.getMonth() && one.getDayOfMonth() === two.getDayOfMonth()'); -function visit33_34_1(result) { +function visit30_34_1(result) { _$jscoverage['/picker/render.js'].branchData['34'][1].ranCondition(result); return result; }_$jscoverage['/picker/render.js'].branchData['33'][2].init(16, 31, 'one.getYear() === two.getYear()'); -function visit32_33_2(result) { +function visit29_33_2(result) { _$jscoverage['/picker/render.js'].branchData['33'][2].ranCondition(result); return result; }_$jscoverage['/picker/render.js'].branchData['33'][1].init(16, 139, 'one.getYear() === two.getYear() && one.getMonth() === two.getMonth() && one.getDayOfMonth() === two.getDayOfMonth()'); -function visit31_33_1(result) { +function visit28_33_1(result) { _$jscoverage['/picker/render.js'].branchData['33'][1].ranCondition(result); return result; }_$jscoverage['/picker/render.js'].lineData[6]++; KISSY.add(function(S, require) { _$jscoverage['/picker/render.js'].functionData[0]++; _$jscoverage['/picker/render.js'].lineData[7]++; - var DateTimeFormat = require('date/format'), PickerTpl = require('./picker-xtpl'), Control = require('component/control'); + var DateTimeFormat = require('date/format'), PickerTpl = require('date/picker-xtpl'), Control = require('component/control'); _$jscoverage['/picker/render.js'].lineData[10]++; var dateRowTplStart = ''; _$jscoverage['/picker/render.js'].lineData[11]++; @@ -611,35 +611,35 @@ KISSY.add(function(S, require) { function isSameDay(one, two) { _$jscoverage['/picker/render.js'].functionData[2]++; _$jscoverage['/picker/render.js'].lineData[33]++; - return visit31_33_1(visit32_33_2(one.getYear() === two.getYear()) && visit33_34_1(visit34_34_2(one.getMonth() === two.getMonth()) && visit35_35_1(one.getDayOfMonth() === two.getDayOfMonth()))); + return visit28_33_1(visit29_33_2(one.getYear() === two.getYear()) && visit30_34_1(visit31_34_2(one.getMonth() === two.getMonth()) && visit32_35_1(one.getDayOfMonth() === two.getDayOfMonth()))); } _$jscoverage['/picker/render.js'].lineData[38]++; function isSameMonth(one, two) { _$jscoverage['/picker/render.js'].functionData[3]++; _$jscoverage['/picker/render.js'].lineData[39]++; - return visit36_39_1(visit37_39_2(one.getYear() === two.getYear()) && visit38_40_1(one.getMonth() === two.getMonth())); + return visit33_39_1(visit34_39_2(one.getYear() === two.getYear()) && visit35_40_1(one.getMonth() === two.getMonth())); } _$jscoverage['/picker/render.js'].lineData[43]++; function beforeCurrentMonthYear(current, today) { _$jscoverage['/picker/render.js'].functionData[4]++; _$jscoverage['/picker/render.js'].lineData[44]++; - if (visit39_44_1(current.getYear() < today.getYear())) { + if (visit36_44_1(current.getYear() < today.getYear())) { _$jscoverage['/picker/render.js'].lineData[45]++; return 1; } _$jscoverage['/picker/render.js'].lineData[47]++; - return visit40_47_1(visit41_47_2(current.getYear() === today.getYear()) && visit42_48_1(current.getMonth() < today.getMonth())); + return visit37_47_1(visit38_47_2(current.getYear() === today.getYear()) && visit39_48_1(current.getMonth() < today.getMonth())); } _$jscoverage['/picker/render.js'].lineData[51]++; function afterCurrentMonthYear(current, today) { _$jscoverage['/picker/render.js'].functionData[5]++; _$jscoverage['/picker/render.js'].lineData[52]++; - if (visit43_52_1(current.getYear() > today.getYear())) { + if (visit40_52_1(current.getYear() > today.getYear())) { _$jscoverage['/picker/render.js'].lineData[53]++; return 1; } _$jscoverage['/picker/render.js'].lineData[55]++; - return visit44_55_1(visit45_55_2(current.getYear() === today.getYear()) && visit46_56_1(current.getMonth() > today.getMonth())); + return visit41_55_1(visit42_55_2(current.getYear() === today.getYear()) && visit43_56_1(current.getMonth() > today.getMonth())); } _$jscoverage['/picker/render.js'].lineData[59]++; function renderDatesCmd() { @@ -713,7 +713,7 @@ KISSY.add(function(S, require) { _$jscoverage['/picker/render.js'].lineData[103]++; var firstDayOfWeek = value.getFirstDayOfWeek(); _$jscoverage['/picker/render.js'].lineData[104]++; - for (var i = 0; visit47_104_1(i < DATE_COL_COUNT); i++) { + for (var i = 0; visit44_104_1(i < DATE_COL_COUNT); i++) { _$jscoverage['/picker/render.js'].lineData[105]++; var index = (firstDayOfWeek + i) % DATE_COL_COUNT; _$jscoverage['/picker/render.js'].lineData[106]++; @@ -758,13 +758,13 @@ KISSY.add(function(S, require) { _$jscoverage['/picker/render.js'].lineData[157]++; var passed = 0; _$jscoverage['/picker/render.js'].lineData[158]++; - for (i = 0; visit48_158_1(i < DATE_ROW_COUNT); i++) { + for (i = 0; visit45_158_1(i < DATE_ROW_COUNT); i++) { _$jscoverage['/picker/render.js'].lineData[159]++; - for (j = 0; visit49_159_1(j < DATE_COL_COUNT); j++) { + for (j = 0; visit46_159_1(j < DATE_COL_COUNT); j++) { _$jscoverage['/picker/render.js'].lineData[160]++; current = lastMonth1; _$jscoverage['/picker/render.js'].lineData[161]++; - if (visit50_161_1(passed)) { + if (visit47_161_1(passed)) { _$jscoverage['/picker/render.js'].lineData[162]++; current = current.clone(); _$jscoverage['/picker/render.js'].lineData[163]++; @@ -781,18 +781,18 @@ KISSY.add(function(S, require) { _$jscoverage['/picker/render.js'].lineData[170]++; passed = 0; _$jscoverage['/picker/render.js'].lineData[171]++; - for (i = 0; visit51_171_1(i < DATE_ROW_COUNT); i++) { + for (i = 0; visit48_171_1(i < DATE_ROW_COUNT); i++) { _$jscoverage['/picker/render.js'].lineData[172]++; var rowHtml = dateRowTplStart; _$jscoverage['/picker/render.js'].lineData[173]++; - if (visit52_173_1(showWeekNumber)) { + if (visit49_173_1(showWeekNumber)) { _$jscoverage['/picker/render.js'].lineData[174]++; rowHtml += S.substitute(weekNumberCellTpl, { cls: weekNumberCellClass, content: dateTable[passed].getWeekOfYear()}); } _$jscoverage['/picker/render.js'].lineData[179]++; - for (j = 0; visit53_179_1(j < DATE_COL_COUNT); j++) { + for (j = 0; visit50_179_1(j < DATE_COL_COUNT); j++) { _$jscoverage['/picker/render.js'].lineData[180]++; current = dateTable[passed]; _$jscoverage['/picker/render.js'].lineData[181]++; @@ -802,29 +802,29 @@ KISSY.add(function(S, require) { _$jscoverage['/picker/render.js'].lineData[183]++; var selected = false; _$jscoverage['/picker/render.js'].lineData[185]++; - if (visit54_185_1(isSameDay(current, today))) { + if (visit51_185_1(isSameDay(current, today))) { _$jscoverage['/picker/render.js'].lineData[186]++; cls += ' ' + todayClass; } _$jscoverage['/picker/render.js'].lineData[188]++; - if (visit55_188_1(!isClear && isSameDay(current, value))) { + if (visit52_188_1(!isClear && isSameDay(current, value))) { _$jscoverage['/picker/render.js'].lineData[189]++; cls += ' ' + selectedClass; _$jscoverage['/picker/render.js'].lineData[190]++; selected = true; } _$jscoverage['/picker/render.js'].lineData[192]++; - if (visit56_192_1(beforeCurrentMonthYear(current, value))) { + if (visit53_192_1(beforeCurrentMonthYear(current, value))) { _$jscoverage['/picker/render.js'].lineData[193]++; cls += ' ' + lastMonthDayClass; } _$jscoverage['/picker/render.js'].lineData[195]++; - if (visit57_195_1(afterCurrentMonthYear(current, value))) { + if (visit54_195_1(afterCurrentMonthYear(current, value))) { _$jscoverage['/picker/render.js'].lineData[196]++; cls += ' ' + nextMonthDayClass; } _$jscoverage['/picker/render.js'].lineData[198]++; - if (visit58_198_1(disabledDate && disabledDate(current, value))) { + if (visit55_198_1(disabledDate && disabledDate(current, value))) { _$jscoverage['/picker/render.js'].lineData[199]++; cls += ' ' + disabledClass; _$jscoverage['/picker/render.js'].lineData[200]++; @@ -833,7 +833,7 @@ KISSY.add(function(S, require) { _$jscoverage['/picker/render.js'].lineData[203]++; var dateHtml = ''; _$jscoverage['/picker/render.js'].lineData[204]++; - if (visit59_204_1(!(visit60_204_2(dateRender && (dateHtml = dateRender(current, value)))))) { + if (visit56_204_1(!(visit57_204_2(dateRender && (dateHtml = dateRender(current, value)))))) { _$jscoverage['/picker/render.js'].lineData[205]++; dateHtml = S.substitute(dateTpl, { cls: dateClass, @@ -877,7 +877,7 @@ KISSY.add(function(S, require) { _$jscoverage['/picker/render.js'].lineData[236]++; var currentA = this.$('#' + id); _$jscoverage['/picker/render.js'].lineData[237]++; - if (visit61_237_1(v)) { + if (visit58_237_1(v)) { _$jscoverage['/picker/render.js'].lineData[238]++; currentA.parent().removeClass(selectedCls); _$jscoverage['/picker/render.js'].lineData[239]++; @@ -900,7 +900,7 @@ KISSY.add(function(S, require) { _$jscoverage['/picker/render.js'].lineData[251]++; var preValue = e.prevVal; _$jscoverage['/picker/render.js'].lineData[252]++; - if (visit62_252_1(isSameMonth(preValue, value))) { + if (visit59_252_1(isSameMonth(preValue, value))) { _$jscoverage['/picker/render.js'].lineData[253]++; var disabledDate = control.get('disabledDate'); _$jscoverage['/picker/render.js'].lineData[254]++; @@ -912,7 +912,7 @@ KISSY.add(function(S, require) { _$jscoverage['/picker/render.js'].lineData[257]++; prevA.attr('aria-selected', false); _$jscoverage['/picker/render.js'].lineData[258]++; - if (visit63_258_1(!(visit64_258_2(disabledDate && disabledDate(value, value))))) { + if (visit60_258_1(!(visit61_258_2(disabledDate && disabledDate(value, value))))) { _$jscoverage['/picker/render.js'].lineData[259]++; var currentA = this.$('#' + getIdFromDate(value)); _$jscoverage['/picker/render.js'].lineData[260]++; diff --git a/src/date/picker/coverage/src/picker/year-panel/control.js b/src/date/picker/coverage/src/picker/year-panel/control.js index a13e2611d1..adcb4b9ee6 100644 --- a/src/date/picker/coverage/src/picker/year-panel/control.js +++ b/src/date/picker/coverage/src/picker/year-panel/control.js @@ -366,7 +366,7 @@ KISSY.add(function(S, require) { _$jscoverage['/picker/year-panel/control.js'].lineData[53]++; var decadePanel = new DecadePanel({ locale: this.get('locale'), - render: self.get('el')}); + render: self.get('render')}); _$jscoverage['/picker/year-panel/control.js'].lineData[57]++; decadePanel.on('select', onDecadePanelSelect, self); _$jscoverage['/picker/year-panel/control.js'].lineData[58]++; diff --git a/src/date/picker/coverage/src/picker/year-panel/render.js b/src/date/picker/coverage/src/picker/year-panel/render.js index f668f8c820..060c904bac 100644 --- a/src/date/picker/coverage/src/picker/year-panel/render.js +++ b/src/date/picker/coverage/src/picker/year-panel/render.js @@ -283,11 +283,11 @@ if (! _$jscoverage['/picker/year-panel/render.js'].branchData) { _$jscoverage['/picker/year-panel/render.js'].branchData['26'][1] = new BranchData(); } _$jscoverage['/picker/year-panel/render.js'].branchData['26'][1].init(56, 5, 'j < 4'); -function visit66_26_1(result) { +function visit63_26_1(result) { _$jscoverage['/picker/year-panel/render.js'].branchData['26'][1].ranCondition(result); return result; -}_$jscoverage['/picker/year-panel/render.js'].branchData['24'][1].init(488, 5, 'i < 3'); -function visit65_24_1(result) { +}_$jscoverage['/picker/year-panel/render.js'].branchData['24'][1].init(491, 5, 'i < 3'); +function visit62_24_1(result) { _$jscoverage['/picker/year-panel/render.js'].branchData['24'][1].ranCondition(result); return result; }_$jscoverage['/picker/year-panel/render.js'].lineData[6]++; @@ -303,7 +303,7 @@ KISSY.add(function(S, require) { _$jscoverage['/picker/year-panel/render.js'].lineData[14]++; var currentYear = value.getYear(); _$jscoverage['/picker/year-panel/render.js'].lineData[15]++; - var startYear = parseInt(currentYear / 10) * 10; + var startYear = parseInt(currentYear / 10, 10) * 10; _$jscoverage['/picker/year-panel/render.js'].lineData[16]++; var preYear = startYear - 1; _$jscoverage['/picker/year-panel/render.js'].lineData[17]++; @@ -321,11 +321,11 @@ KISSY.add(function(S, require) { _$jscoverage['/picker/year-panel/render.js'].lineData[23]++; var index = 0; _$jscoverage['/picker/year-panel/render.js'].lineData[24]++; - for (var i = 0; visit65_24_1(i < 3); i++) { + for (var i = 0; visit62_24_1(i < 3); i++) { _$jscoverage['/picker/year-panel/render.js'].lineData[25]++; years[i] = []; _$jscoverage['/picker/year-panel/render.js'].lineData[26]++; - for (var j = 0; visit66_26_1(j < 4); j++) { + for (var j = 0; visit63_26_1(j < 4); j++) { _$jscoverage['/picker/year-panel/render.js'].lineData[27]++; current.setYear(preYear + index); _$jscoverage['/picker/year-panel/render.js'].lineData[28]++; @@ -352,7 +352,7 @@ KISSY.add(function(S, require) { _$jscoverage['/picker/year-panel/render.js'].lineData[43]++; var currentYear = value.getYear(); _$jscoverage['/picker/year-panel/render.js'].lineData[44]++; - var startYear = parseInt(currentYear / 10) * 10; + var startYear = parseInt(currentYear / 10, 10) * 10; _$jscoverage['/picker/year-panel/render.js'].lineData[45]++; var endYear = startYear + 9; _$jscoverage['/picker/year-panel/render.js'].lineData[46]++; @@ -381,7 +381,7 @@ KISSY.add(function(S, require) { _$jscoverage['/picker/year-panel/render.js'].lineData[67]++; var currentYear = value.getYear(); _$jscoverage['/picker/year-panel/render.js'].lineData[68]++; - var startYear = parseInt(currentYear / 10) * 10; + var startYear = parseInt(currentYear / 10, 10) * 10; _$jscoverage['/picker/year-panel/render.js'].lineData[69]++; var endYear = startYear + 9; _$jscoverage['/picker/year-panel/render.js'].lineData[70]++; diff --git a/src/date/picker/coverage/src/picker/year-panel/year-panel-xtpl.js b/src/date/picker/coverage/src/picker/year-panel/year-panel-xtpl.js index 07ed946fb2..13ba7ad4b9 100644 --- a/src/date/picker/coverage/src/picker/year-panel/year-panel-xtpl.js +++ b/src/date/picker/coverage/src/picker/year-panel/year-panel-xtpl.js @@ -235,8 +235,6 @@ if (! _$jscoverage['/picker/year-panel/year-panel-xtpl.js']) { _$jscoverage['/picker/year-panel/year-panel-xtpl.js'].lineData[9] = 0; _$jscoverage['/picker/year-panel/year-panel-xtpl.js'].lineData[10] = 0; _$jscoverage['/picker/year-panel/year-panel-xtpl.js'].lineData[12] = 0; - _$jscoverage['/picker/year-panel/year-panel-xtpl.js'].lineData[15] = 0; - _$jscoverage['/picker/year-panel/year-panel-xtpl.js'].lineData[16] = 0; _$jscoverage['/picker/year-panel/year-panel-xtpl.js'].lineData[17] = 0; _$jscoverage['/picker/year-panel/year-panel-xtpl.js'].lineData[18] = 0; _$jscoverage['/picker/year-panel/year-panel-xtpl.js'].lineData[19] = 0; @@ -322,10 +320,12 @@ if (! _$jscoverage['/picker/year-panel/year-panel-xtpl.js']) { _$jscoverage['/picker/year-panel/year-panel-xtpl.js'].lineData[99] = 0; _$jscoverage['/picker/year-panel/year-panel-xtpl.js'].lineData[100] = 0; _$jscoverage['/picker/year-panel/year-panel-xtpl.js'].lineData[101] = 0; + _$jscoverage['/picker/year-panel/year-panel-xtpl.js'].lineData[102] = 0; _$jscoverage['/picker/year-panel/year-panel-xtpl.js'].lineData[103] = 0; - _$jscoverage['/picker/year-panel/year-panel-xtpl.js'].lineData[104] = 0; _$jscoverage['/picker/year-panel/year-panel-xtpl.js'].lineData[105] = 0; _$jscoverage['/picker/year-panel/year-panel-xtpl.js'].lineData[106] = 0; + _$jscoverage['/picker/year-panel/year-panel-xtpl.js'].lineData[107] = 0; + _$jscoverage['/picker/year-panel/year-panel-xtpl.js'].lineData[108] = 0; } if (! _$jscoverage['/picker/year-panel/year-panel-xtpl.js'].functionData) { _$jscoverage['/picker/year-panel/year-panel-xtpl.js'].functionData = []; @@ -337,19 +337,19 @@ if (! _$jscoverage['/picker/year-panel/year-panel-xtpl.js'].branchData) { _$jscoverage['/picker/year-panel/year-panel-xtpl.js'].branchData['9'] = []; _$jscoverage['/picker/year-panel/year-panel-xtpl.js'].branchData['9'][1] = new BranchData(); _$jscoverage['/picker/year-panel/year-panel-xtpl.js'].branchData['9'][2] = new BranchData(); - _$jscoverage['/picker/year-panel/year-panel-xtpl.js'].branchData['99'] = []; - _$jscoverage['/picker/year-panel/year-panel-xtpl.js'].branchData['99'][1] = new BranchData(); + _$jscoverage['/picker/year-panel/year-panel-xtpl.js'].branchData['101'] = []; + _$jscoverage['/picker/year-panel/year-panel-xtpl.js'].branchData['101'][1] = new BranchData(); } -_$jscoverage['/picker/year-panel/year-panel-xtpl.js'].branchData['99'][1].init(5541, 10, 'moduleWrap'); -function visit69_99_1(result) { - _$jscoverage['/picker/year-panel/year-panel-xtpl.js'].branchData['99'][1].ranCondition(result); +_$jscoverage['/picker/year-panel/year-panel-xtpl.js'].branchData['101'][1].init(5444, 10, 'moduleWrap'); +function visit66_101_1(result) { + _$jscoverage['/picker/year-panel/year-panel-xtpl.js'].branchData['101'][1].ranCondition(result); return result; }_$jscoverage['/picker/year-panel/year-panel-xtpl.js'].branchData['9'][2].init(165, 29, 'typeof module !== "undefined"'); -function visit68_9_2(result) { +function visit65_9_2(result) { _$jscoverage['/picker/year-panel/year-panel-xtpl.js'].branchData['9'][2].ranCondition(result); return result; }_$jscoverage['/picker/year-panel/year-panel-xtpl.js'].branchData['9'][1].init(165, 45, 'typeof module !== "undefined" && module.kissy'); -function visit67_9_1(result) { +function visit64_9_1(result) { _$jscoverage['/picker/year-panel/year-panel-xtpl.js'].branchData['9'][1].ranCondition(result); return result; }_$jscoverage['/picker/year-panel/year-panel-xtpl.js'].lineData[2]++; @@ -361,194 +361,194 @@ KISSY.add(function(S, require, exports, module) { _$jscoverage['/picker/year-panel/year-panel-xtpl.js'].lineData[5]++; var buffer = "", config = this.config, engine = this, moduleWrap, utils = config.utils; _$jscoverage['/picker/year-panel/year-panel-xtpl.js'].lineData[9]++; - if (visit67_9_1(visit68_9_2(typeof module !== "undefined") && module.kissy)) { + if (visit64_9_1(visit65_9_2(typeof module !== "undefined") && module.kissy)) { _$jscoverage['/picker/year-panel/year-panel-xtpl.js'].lineData[10]++; moduleWrap = module; } _$jscoverage['/picker/year-panel/year-panel-xtpl.js'].lineData[12]++; - var runBlockCommandUtil = utils.runBlockCommand, getExpressionUtil = utils.getExpression, getPropertyOrRunCommandUtil = utils.getPropertyOrRunCommand; - _$jscoverage['/picker/year-panel/year-panel-xtpl.js'].lineData[15]++; - buffer += '
id28'); -function visit74_87_1(result) { - _$jscoverage['/picker/year-panel/years-xtpl.js'].branchData['87'][1].ranCondition(result); +_$jscoverage['/picker/year-panel/years-xtpl.js'].branchData['89'][1].init(3130, 11, 'id27 > id28'); +function visit71_89_1(result) { + _$jscoverage['/picker/year-panel/years-xtpl.js'].branchData['89'][1].ranCondition(result); return result; -}_$jscoverage['/picker/year-panel/years-xtpl.js'].branchData['67'][1].init(2200, 11, 'id20 < id21'); -function visit73_67_1(result) { - _$jscoverage['/picker/year-panel/years-xtpl.js'].branchData['67'][1].ranCondition(result); +}_$jscoverage['/picker/year-panel/years-xtpl.js'].branchData['69'][1].init(2043, 11, 'id20 < id21'); +function visit70_69_1(result) { + _$jscoverage['/picker/year-panel/years-xtpl.js'].branchData['69'][1].ranCondition(result); return result; -}_$jscoverage['/picker/year-panel/years-xtpl.js'].branchData['47'][1].init(1045, 13, 'id13 === id14'); -function visit72_47_1(result) { - _$jscoverage['/picker/year-panel/years-xtpl.js'].branchData['47'][1].ranCondition(result); +}_$jscoverage['/picker/year-panel/years-xtpl.js'].branchData['49'][1].init(957, 13, 'id13 === id14'); +function visit69_49_1(result) { + _$jscoverage['/picker/year-panel/years-xtpl.js'].branchData['49'][1].ranCondition(result); return result; }_$jscoverage['/picker/year-panel/years-xtpl.js'].branchData['9'][2].init(165, 29, 'typeof module !== "undefined"'); -function visit71_9_2(result) { +function visit68_9_2(result) { _$jscoverage['/picker/year-panel/years-xtpl.js'].branchData['9'][2].ranCondition(result); return result; }_$jscoverage['/picker/year-panel/years-xtpl.js'].branchData['9'][1].init(165, 45, 'typeof module !== "undefined" && module.kissy'); -function visit70_9_1(result) { +function visit67_9_1(result) { _$jscoverage['/picker/year-panel/years-xtpl.js'].branchData['9'][1].ranCondition(result); return result; }_$jscoverage['/picker/year-panel/years-xtpl.js'].lineData[2]++; @@ -388,223 +388,223 @@ KISSY.add(function(S, require, exports, module) { _$jscoverage['/picker/year-panel/years-xtpl.js'].lineData[5]++; var buffer = "", config = this.config, engine = this, moduleWrap, utils = config.utils; _$jscoverage['/picker/year-panel/years-xtpl.js'].lineData[9]++; - if (visit70_9_1(visit71_9_2(typeof module !== "undefined") && module.kissy)) { + if (visit67_9_1(visit68_9_2(typeof module !== "undefined") && module.kissy)) { _$jscoverage['/picker/year-panel/years-xtpl.js'].lineData[10]++; moduleWrap = module; } _$jscoverage['/picker/year-panel/years-xtpl.js'].lineData[12]++; - var runBlockCommandUtil = utils.runBlockCommand, getExpressionUtil = utils.getExpression, getPropertyOrRunCommandUtil = utils.getPropertyOrRunCommand; - _$jscoverage['/picker/year-panel/years-xtpl.js'].lineData[15]++; - buffer += ''; - _$jscoverage['/picker/year-panel/years-xtpl.js'].lineData[16]++; - var config0 = {}; + var runBlockCommandUtil = utils.runBlockCommand, renderOutputUtil = utils.renderOutput, getPropertyUtil = utils.getProperty, runInlineCommandUtil = utils.runInlineCommand, getPropertyOrRunCommandUtil = utils.getPropertyOrRunCommand; _$jscoverage['/picker/year-panel/years-xtpl.js'].lineData[17]++; - var params1 = []; + buffer += ''; _$jscoverage['/picker/year-panel/years-xtpl.js'].lineData[18]++; - var id2 = getPropertyOrRunCommandUtil(engine, scope, {}, "years", 0, 1, undefined, true); + var config0 = {}; _$jscoverage['/picker/year-panel/years-xtpl.js'].lineData[19]++; - params1.push(id2); + var params1 = []; _$jscoverage['/picker/year-panel/years-xtpl.js'].lineData[20]++; - config0.params = params1; + var id2 = getPropertyUtil(engine, scope, "years", 0, 1); _$jscoverage['/picker/year-panel/years-xtpl.js'].lineData[21]++; - config0.fn = function(scope) { - _$jscoverage['/picker/year-panel/years-xtpl.js'].functionData[2]++; + params1.push(id2); _$jscoverage['/picker/year-panel/years-xtpl.js'].lineData[22]++; - var buffer = ""; + config0.params = params1; _$jscoverage['/picker/year-panel/years-xtpl.js'].lineData[23]++; - buffer += '\n\n '; + config0.fn = function(scope) { + _$jscoverage['/picker/year-panel/years-xtpl.js'].functionData[2]++; _$jscoverage['/picker/year-panel/years-xtpl.js'].lineData[24]++; - var config3 = {}; + var buffer = ""; _$jscoverage['/picker/year-panel/years-xtpl.js'].lineData[25]++; - var params4 = []; + buffer += '\n\n '; _$jscoverage['/picker/year-panel/years-xtpl.js'].lineData[26]++; - var id6 = getPropertyOrRunCommandUtil(engine, scope, {}, "xindex", 0, 3, undefined, true); + var config3 = {}; _$jscoverage['/picker/year-panel/years-xtpl.js'].lineData[27]++; - var id5 = getPropertyOrRunCommandUtil(engine, scope, {}, "years." + id6 + "", 0, 3, undefined, true); + var params4 = []; _$jscoverage['/picker/year-panel/years-xtpl.js'].lineData[28]++; - params4.push(id5); + var id6 = getPropertyUtil(engine, scope, "xindex", 0, 3); _$jscoverage['/picker/year-panel/years-xtpl.js'].lineData[29]++; - config3.params = params4; + var id5 = getPropertyUtil(engine, scope, "years." + id6 + "", 0, 3); _$jscoverage['/picker/year-panel/years-xtpl.js'].lineData[30]++; - config3.fn = function(scope) { - _$jscoverage['/picker/year-panel/years-xtpl.js'].functionData[3]++; + params4.push(id5); _$jscoverage['/picker/year-panel/years-xtpl.js'].lineData[31]++; - var buffer = ""; + config3.params = params4; _$jscoverage['/picker/year-panel/years-xtpl.js'].lineData[32]++; - buffer += '\n id28)); + var id27 = getPropertyUtil(engine, scope, "content", 0, 13); _$jscoverage['/picker/year-panel/years-xtpl.js'].lineData[88]++; - config25.params = params26; + var id28 = getPropertyUtil(engine, scope, "endYear", 0, 13); _$jscoverage['/picker/year-panel/years-xtpl.js'].lineData[89]++; - config25.fn = function(scope) { - _$jscoverage['/picker/year-panel/years-xtpl.js'].functionData[6]++; + params26.push(visit71_89_1(id27 > id28)); _$jscoverage['/picker/year-panel/years-xtpl.js'].lineData[90]++; - var buffer = ""; + config25.params = params26; _$jscoverage['/picker/year-panel/years-xtpl.js'].lineData[91]++; - buffer += '\n '; + config25.fn = function(scope) { + _$jscoverage['/picker/year-panel/years-xtpl.js'].functionData[6]++; _$jscoverage['/picker/year-panel/years-xtpl.js'].lineData[92]++; - var config30 = {}; + var buffer = ""; _$jscoverage['/picker/year-panel/years-xtpl.js'].lineData[93]++; - var params31 = []; + buffer += '\n '; _$jscoverage['/picker/year-panel/years-xtpl.js'].lineData[94]++; - params31.push('next-decade-cell'); + var config30 = {}; _$jscoverage['/picker/year-panel/years-xtpl.js'].lineData[95]++; - config30.params = params31; + var params31 = []; _$jscoverage['/picker/year-panel/years-xtpl.js'].lineData[96]++; - var id29 = getPropertyOrRunCommandUtil(engine, scope, config30, "getBaseCssClasses", 0, 14, true, undefined); + params31.push('next-decade-cell'); _$jscoverage['/picker/year-panel/years-xtpl.js'].lineData[97]++; - buffer += id29; + config30.params = params31; _$jscoverage['/picker/year-panel/years-xtpl.js'].lineData[98]++; - buffer += '\n '; + var id29 = runInlineCommandUtil(engine, scope, config30, "getBaseCssClasses", 14); _$jscoverage['/picker/year-panel/years-xtpl.js'].lineData[99]++; + buffer += renderOutputUtil(id29, true); + _$jscoverage['/picker/year-panel/years-xtpl.js'].lineData[100]++; + buffer += '\n '; + _$jscoverage['/picker/year-panel/years-xtpl.js'].lineData[101]++; return buffer; }; - _$jscoverage['/picker/year-panel/years-xtpl.js'].lineData[101]++; - buffer += runBlockCommandUtil(engine, scope, config25, "if", 13); - _$jscoverage['/picker/year-panel/years-xtpl.js'].lineData[102]++; - buffer += '\n ">\n id29); config26.params = params27; config26.fn = function (scope) { @@ -92,25 +94,25 @@ KISSY.add(function (S, require, exports, module) { var params32 = []; params32.push('next-century-cell'); config31.params = params32; - var id30 = getPropertyOrRunCommandUtil(engine, scope, config31, "getBaseCssClasses", 0, 13, true, undefined); - buffer += id30; + var id30 = runInlineCommandUtil(engine, scope, config31, "getBaseCssClasses", 13); + buffer += renderOutputUtil(id30, true); buffer += '\n '; return buffer; }; buffer += runBlockCommandUtil(engine, scope, config26, "if", 12); - buffer += '\n ">\n \n {{startDecade}}-{{endDecade}} diff --git a/src/date/picker/src/picker/decade-panel/render.js b/src/date/picker/src/picker/decade-panel/render.js index 2fae3f0823..e890d9d4ab 100644 --- a/src/date/picker/src/picker/decade-panel/render.js +++ b/src/date/picker/src/picker/decade-panel/render.js @@ -11,7 +11,7 @@ KISSY.add(function (S,require) { function prepareYears(control, view) { var value = control.get('value'); var currentYear = value.getYear(); - var startYear = parseInt(currentYear / 100) * 100; + var startYear = parseInt(currentYear / 100,10) * 100; var preYear = startYear - 10; var endYear = startYear + 99; var decades = []; diff --git a/src/date/picker/src/picker/month-panel/control.js b/src/date/picker/src/picker/month-panel/control.js index 1dcc7e993f..ad71c3b073 100644 --- a/src/date/picker/src/picker/month-panel/control.js +++ b/src/date/picker/src/picker/month-panel/control.js @@ -52,7 +52,7 @@ KISSY.add(function(S,require){ var self = this; var yearPanel = new YearPanel({ locale:this.get('locale'), - render: self.get('el') + render: self.get('render') }); yearPanel.on('select', onYearPanelSelect, self); return yearPanel; diff --git a/src/date/picker/src/picker/month-panel/month-panel-xtpl.js b/src/date/picker/src/picker/month-panel/month-panel-xtpl.js index e3222fdd34..75bfa2dc8c 100644 --- a/src/date/picker/src/picker/month-panel/month-panel-xtpl.js +++ b/src/date/picker/src/picker/month-panel/month-panel-xtpl.js @@ -1,6 +1,6 @@ /** Compiled By kissy-xtemplate */ KISSY.add(function (S, require, exports, module) { - /*jshint quotmark: false, unused:false, indent:false*/ + /*jshint quotmark:false, loopfunc:true, indent:false, asi:true, unused:false, boss:true*/ return function (scope, S, undefined) { var buffer = "", config = this.config, @@ -10,84 +10,86 @@ KISSY.add(function (S, require, exports, module) { moduleWrap = module; } var runBlockCommandUtil = utils.runBlockCommand, - getExpressionUtil = utils.getExpression, + renderOutputUtil = utils.renderOutput, + getPropertyUtil = utils.getProperty, + runInlineCommandUtil = utils.runInlineCommand, getPropertyOrRunCommandUtil = utils.getPropertyOrRunCommand; buffer += '
{{content}} diff --git a/src/date/picker/src/picker/render.js b/src/date/picker/src/picker/render.js index dc1a87f672..98b6f7d9e9 100644 --- a/src/date/picker/src/picker/render.js +++ b/src/date/picker/src/picker/render.js @@ -5,7 +5,7 @@ */ KISSY.add(function (S, require) { var DateTimeFormat = require('date/format'), - PickerTpl = require('./picker-xtpl'), + PickerTpl = require('date/picker-xtpl'), Control = require('component/control'); var dateRowTplStart = ''; var dateRowTplEnd = ''; diff --git a/src/date/picker/src/picker/year-panel/control.js b/src/date/picker/src/picker/year-panel/control.js index 5577cac6f4..a020674a1c 100644 --- a/src/date/picker/src/picker/year-panel/control.js +++ b/src/date/picker/src/picker/year-panel/control.js @@ -52,7 +52,7 @@ KISSY.add(function (S, require) { var self = this; var decadePanel = new DecadePanel({ locale: this.get('locale'), - render: self.get('el') + render: self.get('render') }); decadePanel.on('select', onDecadePanelSelect, self); return decadePanel; diff --git a/src/date/picker/src/picker/year-panel/render.js b/src/date/picker/src/picker/year-panel/render.js index 04918d9e97..27793c8065 100644 --- a/src/date/picker/src/picker/year-panel/render.js +++ b/src/date/picker/src/picker/year-panel/render.js @@ -12,7 +12,7 @@ KISSY.add(function (S, require) { function prepareYears(control) { var value = control.get('value'); var currentYear = value.getYear(); - var startYear = parseInt(currentYear / 10) * 10; + var startYear = parseInt(currentYear / 10,10) * 10; var preYear = startYear - 1; var current = value.clone(); var locale = control.get('locale'); @@ -41,7 +41,7 @@ KISSY.add(function (S, require) { var control = this.control; var value = control.get('value'); var currentYear = value.getYear(); - var startYear = parseInt(currentYear / 10) * 10; + var startYear = parseInt(currentYear / 10,10) * 10; var endYear = startYear + 9; var locale = control.get('locale'); S.mix(renderData, { @@ -65,7 +65,7 @@ KISSY.add(function (S, require) { _onSetValue: function (value) { var control = this.control; var currentYear = value.getYear(); - var startYear = parseInt(currentYear / 10) * 10; + var startYear = parseInt(currentYear / 10,10) * 10; var endYear = startYear + 9; S.mix(this.renderData, { startYear: startYear, diff --git a/src/date/picker/src/picker/year-panel/year-panel-xtpl.js b/src/date/picker/src/picker/year-panel/year-panel-xtpl.js index 5d4cbf8865..95feec6725 100644 --- a/src/date/picker/src/picker/year-panel/year-panel-xtpl.js +++ b/src/date/picker/src/picker/year-panel/year-panel-xtpl.js @@ -1,6 +1,6 @@ /** Compiled By kissy-xtemplate */ KISSY.add(function (S, require, exports, module) { - /*jshint quotmark: false, unused:false, indent:false*/ + /*jshint quotmark:false, loopfunc:true, indent:false, asi:true, unused:false, boss:true*/ return function (scope, S, undefined) { var buffer = "", config = this.config, @@ -10,87 +10,89 @@ KISSY.add(function (S, require, exports, module) { moduleWrap = module; } var runBlockCommandUtil = utils.runBlockCommand, - getExpressionUtil = utils.getExpression, + renderOutputUtil = utils.renderOutput, + getPropertyUtil = utils.getProperty, + runInlineCommandUtil = utils.runInlineCommand, getPropertyOrRunCommandUtil = utils.getPropertyOrRunCommand; buffer += '
id28); config25.params = params26; config25.fn = function (scope) { @@ -93,22 +95,22 @@ KISSY.add(function (S, require, exports, module) { var params31 = []; params31.push('next-decade-cell'); config30.params = params31; - var id29 = getPropertyOrRunCommandUtil(engine, scope, config30, "getBaseCssClasses", 0, 14, true, undefined); - buffer += id29; + var id29 = runInlineCommandUtil(engine, scope, config30, "getBaseCssClasses", 14); + buffer += renderOutputUtil(id29, true); buffer += '\n '; return buffer; }; buffer += runBlockCommandUtil(engine, scope, config25, "if", 13); - buffer += '\n ">\n \n {{content}} diff --git a/src/date/popup-picker/coverage/src/popup-picker/render-xtpl.js b/src/date/popup-picker/coverage/src/popup-picker/render-xtpl.js index 568b03e445..56568ba234 100644 --- a/src/date/popup-picker/coverage/src/popup-picker/render-xtpl.js +++ b/src/date/popup-picker/coverage/src/popup-picker/render-xtpl.js @@ -235,8 +235,6 @@ if (! _$jscoverage['/popup-picker/render-xtpl.js']) { _$jscoverage['/popup-picker/render-xtpl.js'].lineData[9] = 0; _$jscoverage['/popup-picker/render-xtpl.js'].lineData[10] = 0; _$jscoverage['/popup-picker/render-xtpl.js'].lineData[12] = 0; - _$jscoverage['/popup-picker/render-xtpl.js'].lineData[15] = 0; - _$jscoverage['/popup-picker/render-xtpl.js'].lineData[16] = 0; _$jscoverage['/popup-picker/render-xtpl.js'].lineData[17] = 0; _$jscoverage['/popup-picker/render-xtpl.js'].lineData[18] = 0; _$jscoverage['/popup-picker/render-xtpl.js'].lineData[19] = 0; @@ -250,10 +248,12 @@ if (! _$jscoverage['/popup-picker/render-xtpl.js']) { _$jscoverage['/popup-picker/render-xtpl.js'].lineData[27] = 0; _$jscoverage['/popup-picker/render-xtpl.js'].lineData[28] = 0; _$jscoverage['/popup-picker/render-xtpl.js'].lineData[29] = 0; + _$jscoverage['/popup-picker/render-xtpl.js'].lineData[30] = 0; _$jscoverage['/popup-picker/render-xtpl.js'].lineData[31] = 0; - _$jscoverage['/popup-picker/render-xtpl.js'].lineData[32] = 0; _$jscoverage['/popup-picker/render-xtpl.js'].lineData[33] = 0; _$jscoverage['/popup-picker/render-xtpl.js'].lineData[34] = 0; + _$jscoverage['/popup-picker/render-xtpl.js'].lineData[35] = 0; + _$jscoverage['/popup-picker/render-xtpl.js'].lineData[36] = 0; } if (! _$jscoverage['/popup-picker/render-xtpl.js'].functionData) { _$jscoverage['/popup-picker/render-xtpl.js'].functionData = []; @@ -265,12 +265,12 @@ if (! _$jscoverage['/popup-picker/render-xtpl.js'].branchData) { _$jscoverage['/popup-picker/render-xtpl.js'].branchData['9'] = []; _$jscoverage['/popup-picker/render-xtpl.js'].branchData['9'][1] = new BranchData(); _$jscoverage['/popup-picker/render-xtpl.js'].branchData['9'][2] = new BranchData(); - _$jscoverage['/popup-picker/render-xtpl.js'].branchData['27'] = []; - _$jscoverage['/popup-picker/render-xtpl.js'].branchData['27'][1] = new BranchData(); + _$jscoverage['/popup-picker/render-xtpl.js'].branchData['29'] = []; + _$jscoverage['/popup-picker/render-xtpl.js'].branchData['29'][1] = new BranchData(); } -_$jscoverage['/popup-picker/render-xtpl.js'].branchData['27'][1].init(980, 10, 'moduleWrap'); -function visit3_27_1(result) { - _$jscoverage['/popup-picker/render-xtpl.js'].branchData['27'][1].ranCondition(result); +_$jscoverage['/popup-picker/render-xtpl.js'].branchData['29'][1].init(1084, 10, 'moduleWrap'); +function visit3_29_1(result) { + _$jscoverage['/popup-picker/render-xtpl.js'].branchData['29'][1].ranCondition(result); return result; }_$jscoverage['/popup-picker/render-xtpl.js'].branchData['9'][2].init(165, 29, 'typeof module !== "undefined"'); function visit2_9_2(result) { @@ -294,45 +294,45 @@ KISSY.add(function(S, require, exports, module) { moduleWrap = module; } _$jscoverage['/popup-picker/render-xtpl.js'].lineData[12]++; - var runBlockCommandUtil = utils.runBlockCommand, getExpressionUtil = utils.getExpression, getPropertyOrRunCommandUtil = utils.getPropertyOrRunCommand; - _$jscoverage['/popup-picker/render-xtpl.js'].lineData[15]++; - buffer += '
- - - - +

date/popup-picker

diff --git a/src/date/popup-picker/meta/deps.js b/src/date/popup-picker/meta/deps.js index f6bc6d1525..c33c867577 100644 --- a/src/date/popup-picker/meta/deps.js +++ b/src/date/popup-picker/meta/deps.js @@ -1,4 +1,4 @@ /*Generated By KISSY Module Compiler*/ config({ -'date/popup-picker': {requires: ['date/picker/picker-xtpl','date/picker','component/extension/shim','component/extension/align']} +'date/popup-picker': {requires: ['date/picker-xtpl','date/picker','component/extension/shim','component/extension/align']} }); diff --git a/src/date/popup-picker/src/popup-picker/render-xtpl.js b/src/date/popup-picker/src/popup-picker/render-xtpl.js index a30d3fdb28..082c85db41 100644 --- a/src/date/popup-picker/src/popup-picker/render-xtpl.js +++ b/src/date/popup-picker/src/popup-picker/render-xtpl.js @@ -1,6 +1,6 @@ /** Compiled By kissy-xtemplate */ KISSY.add(function (S, require, exports, module) { - /*jshint quotmark: false, unused:false, indent:false*/ + /*jshint quotmark:false, loopfunc:true, indent:false, asi:true, unused:false, boss:true*/ return function (scope, S, undefined) { var buffer = "", config = this.config, @@ -10,26 +10,28 @@ KISSY.add(function (S, require, exports, module) { moduleWrap = module; } var runBlockCommandUtil = utils.runBlockCommand, - getExpressionUtil = utils.getExpression, + renderOutputUtil = utils.renderOutput, + getPropertyUtil = utils.getProperty, + runInlineCommandUtil = utils.runInlineCommand, getPropertyOrRunCommandUtil = utils.getPropertyOrRunCommand; buffer += '
- {{{include "date/picker/picker-xtpl"}}} + {{{include "date/picker-xtpl"}}}
\ No newline at end of file diff --git a/src/dom/sub-modules/base/coverage/src/base/class.js b/src/dom/sub-modules/base/coverage/src/base/class.js index 5e1f860b3d..37966dcc76 100644 --- a/src/dom/sub-modules/base/coverage/src/base/class.js +++ b/src/dom/sub-modules/base/coverage/src/base/class.js @@ -262,9 +262,15 @@ if (! _$jscoverage['/base/class.js']) { _$jscoverage['/base/class.js'].lineData[70] = 0; _$jscoverage['/base/class.js'].lineData[88] = 0; _$jscoverage['/base/class.js'].lineData[89] = 0; - _$jscoverage['/base/class.js'].lineData[103] = 0; - _$jscoverage['/base/class.js'].lineData[104] = 0; - _$jscoverage['/base/class.js'].lineData[140] = 0; + _$jscoverage['/base/class.js'].lineData[90] = 0; + _$jscoverage['/base/class.js'].lineData[91] = 0; + _$jscoverage['/base/class.js'].lineData[93] = 0; + _$jscoverage['/base/class.js'].lineData[94] = 0; + _$jscoverage['/base/class.js'].lineData[96] = 0; + _$jscoverage['/base/class.js'].lineData[98] = 0; + _$jscoverage['/base/class.js'].lineData[112] = 0; + _$jscoverage['/base/class.js'].lineData[113] = 0; + _$jscoverage['/base/class.js'].lineData[149] = 0; } if (! _$jscoverage['/base/class.js'].functionData) { _$jscoverage['/base/class.js'].functionData = []; @@ -278,6 +284,7 @@ if (! _$jscoverage['/base/class.js'].functionData) { _$jscoverage['/base/class.js'].functionData[7] = 0; _$jscoverage['/base/class.js'].functionData[8] = 0; _$jscoverage['/base/class.js'].functionData[9] = 0; + _$jscoverage['/base/class.js'].functionData[10] = 0; } if (! _$jscoverage['/base/class.js'].branchData) { _$jscoverage['/base/class.js'].branchData = {}; @@ -295,22 +302,17 @@ if (! _$jscoverage['/base/class.js'].branchData) { _$jscoverage['/base/class.js'].branchData['62'][1] = new BranchData(); _$jscoverage['/base/class.js'].branchData['64'] = []; _$jscoverage['/base/class.js'].branchData['64'][1] = new BranchData(); - _$jscoverage['/base/class.js'].branchData['89'] = []; - _$jscoverage['/base/class.js'].branchData['89'][1] = new BranchData(); - _$jscoverage['/base/class.js'].branchData['89'][2] = new BranchData(); - _$jscoverage['/base/class.js'].branchData['89'][3] = new BranchData(); + _$jscoverage['/base/class.js'].branchData['91'] = []; + _$jscoverage['/base/class.js'].branchData['91'][1] = new BranchData(); + _$jscoverage['/base/class.js'].branchData['91'][2] = new BranchData(); } -_$jscoverage['/base/class.js'].branchData['89'][3].init(78, 39, 'elem.nodeType === NodeType.ELEMENT_NODE'); -function visit110_89_3(result) { - _$jscoverage['/base/class.js'].branchData['89'][3].ranCondition(result); +_$jscoverage['/base/class.js'].branchData['91'][2].init(25, 39, 'elem.nodeType === NodeType.ELEMENT_NODE'); +function visit109_91_2(result) { + _$jscoverage['/base/class.js'].branchData['91'][2].ranCondition(result); return result; -}_$jscoverage['/base/class.js'].branchData['89'][2].init(78, 85, 'elem.nodeType === NodeType.ELEMENT_NODE && Dom._hasClass(elem, strToArray(className))'); -function visit109_89_2(result) { - _$jscoverage['/base/class.js'].branchData['89'][2].ranCondition(result); - return result; -}_$jscoverage['/base/class.js'].branchData['89'][1].init(70, 93, 'elem && elem.nodeType === NodeType.ELEMENT_NODE && Dom._hasClass(elem, strToArray(className))'); -function visit108_89_1(result) { - _$jscoverage['/base/class.js'].branchData['89'][1].ranCondition(result); +}_$jscoverage['/base/class.js'].branchData['91'][1].init(25, 97, 'elem.nodeType === NodeType.ELEMENT_NODE && Dom._hasClass(elem, className)'); +function visit108_91_1(result) { + _$jscoverage['/base/class.js'].branchData['91'][1].ranCondition(result); return result; }_$jscoverage['/base/class.js'].branchData['64'][1].init(80, 43, 'className && !classList.contains(className)'); function visit107_64_1(result) { @@ -432,20 +434,35 @@ KISSY.add(function(S, require) { hasClass: function(selector, className) { _$jscoverage['/base/class.js'].functionData[8]++; _$jscoverage['/base/class.js'].lineData[88]++; - var elem = Dom.get(selector); + var ret = false; _$jscoverage['/base/class.js'].lineData[89]++; - return visit108_89_1(elem && visit109_89_2(visit110_89_3(elem.nodeType === NodeType.ELEMENT_NODE) && Dom._hasClass(elem, strToArray(className)))); + className = strToArray(className); + _$jscoverage['/base/class.js'].lineData[90]++; + Dom.query(selector).each(function(elem) { + _$jscoverage['/base/class.js'].functionData[9]++; + _$jscoverage['/base/class.js'].lineData[91]++; + if (visit108_91_1(visit109_91_2(elem.nodeType === NodeType.ELEMENT_NODE) && Dom._hasClass(elem, className))) { + _$jscoverage['/base/class.js'].lineData[93]++; + ret = true; + _$jscoverage['/base/class.js'].lineData[94]++; + return false; + } + _$jscoverage['/base/class.js'].lineData[96]++; + return undefined; +}); + _$jscoverage['/base/class.js'].lineData[98]++; + return ret; }, replaceClass: function(selector, oldClassName, newClassName) { - _$jscoverage['/base/class.js'].functionData[9]++; - _$jscoverage['/base/class.js'].lineData[103]++; + _$jscoverage['/base/class.js'].functionData[10]++; + _$jscoverage['/base/class.js'].lineData[112]++; Dom.removeClass(selector, oldClassName); - _$jscoverage['/base/class.js'].lineData[104]++; + _$jscoverage['/base/class.js'].lineData[113]++; Dom.addClass(selector, newClassName); }, addClass: batchEls('_addClass'), removeClass: batchEls('_removeClass'), toggleClass: batchEls('_toggleClass')}); - _$jscoverage['/base/class.js'].lineData[140]++; + _$jscoverage['/base/class.js'].lineData[149]++; return Dom; }); diff --git a/src/dom/sub-modules/base/coverage/src/base/create.js b/src/dom/sub-modules/base/coverage/src/base/create.js index 8430072f78..8516ef0b5a 100644 --- a/src/dom/sub-modules/base/coverage/src/base/create.js +++ b/src/dom/sub-modules/base/coverage/src/base/create.js @@ -346,79 +346,82 @@ if (! _$jscoverage['/base/create.js']) { _$jscoverage['/base/create.js'].lineData[317] = 0; _$jscoverage['/base/create.js'].lineData[318] = 0; _$jscoverage['/base/create.js'].lineData[319] = 0; - _$jscoverage['/base/create.js'].lineData[327] = 0; - _$jscoverage['/base/create.js'].lineData[351] = 0; + _$jscoverage['/base/create.js'].lineData[320] = 0; + _$jscoverage['/base/create.js'].lineData[328] = 0; _$jscoverage['/base/create.js'].lineData[352] = 0; _$jscoverage['/base/create.js'].lineData[353] = 0; _$jscoverage['/base/create.js'].lineData[354] = 0; - _$jscoverage['/base/create.js'].lineData[357] = 0; - _$jscoverage['/base/create.js'].lineData[362] = 0; + _$jscoverage['/base/create.js'].lineData[355] = 0; + _$jscoverage['/base/create.js'].lineData[358] = 0; _$jscoverage['/base/create.js'].lineData[363] = 0; - _$jscoverage['/base/create.js'].lineData[366] = 0; - _$jscoverage['/base/create.js'].lineData[372] = 0; - _$jscoverage['/base/create.js'].lineData[376] = 0; - _$jscoverage['/base/create.js'].lineData[383] = 0; + _$jscoverage['/base/create.js'].lineData[364] = 0; + _$jscoverage['/base/create.js'].lineData[367] = 0; + _$jscoverage['/base/create.js'].lineData[373] = 0; + _$jscoverage['/base/create.js'].lineData[377] = 0; _$jscoverage['/base/create.js'].lineData[384] = 0; - _$jscoverage['/base/create.js'].lineData[387] = 0; + _$jscoverage['/base/create.js'].lineData[385] = 0; _$jscoverage['/base/create.js'].lineData[388] = 0; - _$jscoverage['/base/create.js'].lineData[392] = 0; + _$jscoverage['/base/create.js'].lineData[389] = 0; _$jscoverage['/base/create.js'].lineData[393] = 0; _$jscoverage['/base/create.js'].lineData[394] = 0; _$jscoverage['/base/create.js'].lineData[395] = 0; - _$jscoverage['/base/create.js'].lineData[398] = 0; - _$jscoverage['/base/create.js'].lineData[406] = 0; - _$jscoverage['/base/create.js'].lineData[408] = 0; + _$jscoverage['/base/create.js'].lineData[396] = 0; + _$jscoverage['/base/create.js'].lineData[399] = 0; + _$jscoverage['/base/create.js'].lineData[407] = 0; _$jscoverage['/base/create.js'].lineData[409] = 0; _$jscoverage['/base/create.js'].lineData[410] = 0; - _$jscoverage['/base/create.js'].lineData[418] = 0; - _$jscoverage['/base/create.js'].lineData[420] = 0; + _$jscoverage['/base/create.js'].lineData[411] = 0; + _$jscoverage['/base/create.js'].lineData[419] = 0; _$jscoverage['/base/create.js'].lineData[421] = 0; _$jscoverage['/base/create.js'].lineData[422] = 0; _$jscoverage['/base/create.js'].lineData[423] = 0; - _$jscoverage['/base/create.js'].lineData[426] = 0; + _$jscoverage['/base/create.js'].lineData[424] = 0; _$jscoverage['/base/create.js'].lineData[427] = 0; _$jscoverage['/base/create.js'].lineData[428] = 0; - _$jscoverage['/base/create.js'].lineData[430] = 0; - _$jscoverage['/base/create.js'].lineData[432] = 0; + _$jscoverage['/base/create.js'].lineData[429] = 0; + _$jscoverage['/base/create.js'].lineData[431] = 0; _$jscoverage['/base/create.js'].lineData[433] = 0; - _$jscoverage['/base/create.js'].lineData[436] = 0; + _$jscoverage['/base/create.js'].lineData[434] = 0; _$jscoverage['/base/create.js'].lineData[437] = 0; _$jscoverage['/base/create.js'].lineData[438] = 0; - _$jscoverage['/base/create.js'].lineData[440] = 0; - _$jscoverage['/base/create.js'].lineData[446] = 0; + _$jscoverage['/base/create.js'].lineData[439] = 0; + _$jscoverage['/base/create.js'].lineData[441] = 0; _$jscoverage['/base/create.js'].lineData[447] = 0; + _$jscoverage['/base/create.js'].lineData[448] = 0; _$jscoverage['/base/create.js'].lineData[451] = 0; _$jscoverage['/base/create.js'].lineData[452] = 0; - _$jscoverage['/base/create.js'].lineData[455] = 0; - _$jscoverage['/base/create.js'].lineData[458] = 0; + _$jscoverage['/base/create.js'].lineData[453] = 0; + _$jscoverage['/base/create.js'].lineData[456] = 0; _$jscoverage['/base/create.js'].lineData[459] = 0; - _$jscoverage['/base/create.js'].lineData[463] = 0; - _$jscoverage['/base/create.js'].lineData[465] = 0; - _$jscoverage['/base/create.js'].lineData[470] = 0; + _$jscoverage['/base/create.js'].lineData[460] = 0; + _$jscoverage['/base/create.js'].lineData[464] = 0; + _$jscoverage['/base/create.js'].lineData[466] = 0; _$jscoverage['/base/create.js'].lineData[471] = 0; _$jscoverage['/base/create.js'].lineData[472] = 0; _$jscoverage['/base/create.js'].lineData[473] = 0; - _$jscoverage['/base/create.js'].lineData[476] = 0; + _$jscoverage['/base/create.js'].lineData[474] = 0; _$jscoverage['/base/create.js'].lineData[477] = 0; - _$jscoverage['/base/create.js'].lineData[480] = 0; - _$jscoverage['/base/create.js'].lineData[484] = 0; + _$jscoverage['/base/create.js'].lineData[478] = 0; + _$jscoverage['/base/create.js'].lineData[481] = 0; _$jscoverage['/base/create.js'].lineData[485] = 0; - _$jscoverage['/base/create.js'].lineData[489] = 0; + _$jscoverage['/base/create.js'].lineData[486] = 0; _$jscoverage['/base/create.js'].lineData[490] = 0; _$jscoverage['/base/create.js'].lineData[491] = 0; _$jscoverage['/base/create.js'].lineData[492] = 0; _$jscoverage['/base/create.js'].lineData[493] = 0; _$jscoverage['/base/create.js'].lineData[494] = 0; - _$jscoverage['/base/create.js'].lineData[497] = 0; - _$jscoverage['/base/create.js'].lineData[499] = 0; - _$jscoverage['/base/create.js'].lineData[503] = 0; - _$jscoverage['/base/create.js'].lineData[519] = 0; - _$jscoverage['/base/create.js'].lineData[521] = 0; + _$jscoverage['/base/create.js'].lineData[495] = 0; + _$jscoverage['/base/create.js'].lineData[498] = 0; + _$jscoverage['/base/create.js'].lineData[500] = 0; + _$jscoverage['/base/create.js'].lineData[504] = 0; + _$jscoverage['/base/create.js'].lineData[520] = 0; _$jscoverage['/base/create.js'].lineData[522] = 0; _$jscoverage['/base/create.js'].lineData[523] = 0; - _$jscoverage['/base/create.js'].lineData[531] = 0; + _$jscoverage['/base/create.js'].lineData[524] = 0; _$jscoverage['/base/create.js'].lineData[532] = 0; + _$jscoverage['/base/create.js'].lineData[533] = 0; _$jscoverage['/base/create.js'].lineData[535] = 0; + _$jscoverage['/base/create.js'].lineData[536] = 0; } if (! _$jscoverage['/base/create.js'].functionData) { _$jscoverage['/base/create.js'].functionData = []; @@ -528,347 +531,359 @@ if (! _$jscoverage['/base/create.js'].branchData) { _$jscoverage['/base/create.js'].branchData['287'][1] = new BranchData(); _$jscoverage['/base/create.js'].branchData['312'] = []; _$jscoverage['/base/create.js'].branchData['312'][1] = new BranchData(); - _$jscoverage['/base/create.js'].branchData['314'] = []; - _$jscoverage['/base/create.js'].branchData['314'][1] = new BranchData(); - _$jscoverage['/base/create.js'].branchData['314'][2] = new BranchData(); - _$jscoverage['/base/create.js'].branchData['318'] = []; - _$jscoverage['/base/create.js'].branchData['318'][1] = new BranchData(); - _$jscoverage['/base/create.js'].branchData['351'] = []; - _$jscoverage['/base/create.js'].branchData['351'][1] = new BranchData(); - _$jscoverage['/base/create.js'].branchData['362'] = []; - _$jscoverage['/base/create.js'].branchData['362'][1] = new BranchData(); - _$jscoverage['/base/create.js'].branchData['376'] = []; - _$jscoverage['/base/create.js'].branchData['376'][1] = new BranchData(); - _$jscoverage['/base/create.js'].branchData['376'][2] = new BranchData(); + _$jscoverage['/base/create.js'].branchData['313'] = []; + _$jscoverage['/base/create.js'].branchData['313'][1] = new BranchData(); + _$jscoverage['/base/create.js'].branchData['315'] = []; + _$jscoverage['/base/create.js'].branchData['315'][1] = new BranchData(); + _$jscoverage['/base/create.js'].branchData['315'][2] = new BranchData(); + _$jscoverage['/base/create.js'].branchData['319'] = []; + _$jscoverage['/base/create.js'].branchData['319'][1] = new BranchData(); + _$jscoverage['/base/create.js'].branchData['352'] = []; + _$jscoverage['/base/create.js'].branchData['352'][1] = new BranchData(); + _$jscoverage['/base/create.js'].branchData['363'] = []; + _$jscoverage['/base/create.js'].branchData['363'][1] = new BranchData(); _$jscoverage['/base/create.js'].branchData['377'] = []; _$jscoverage['/base/create.js'].branchData['377'][1] = new BranchData(); - _$jscoverage['/base/create.js'].branchData['383'] = []; - _$jscoverage['/base/create.js'].branchData['383'][1] = new BranchData(); - _$jscoverage['/base/create.js'].branchData['383'][2] = new BranchData(); - _$jscoverage['/base/create.js'].branchData['387'] = []; - _$jscoverage['/base/create.js'].branchData['387'][1] = new BranchData(); - _$jscoverage['/base/create.js'].branchData['392'] = []; - _$jscoverage['/base/create.js'].branchData['392'][1] = new BranchData(); - _$jscoverage['/base/create.js'].branchData['394'] = []; - _$jscoverage['/base/create.js'].branchData['394'][1] = new BranchData(); - _$jscoverage['/base/create.js'].branchData['408'] = []; - _$jscoverage['/base/create.js'].branchData['408'][1] = new BranchData(); - _$jscoverage['/base/create.js'].branchData['422'] = []; - _$jscoverage['/base/create.js'].branchData['422'][1] = new BranchData(); - _$jscoverage['/base/create.js'].branchData['427'] = []; - _$jscoverage['/base/create.js'].branchData['427'][1] = new BranchData(); - _$jscoverage['/base/create.js'].branchData['432'] = []; - _$jscoverage['/base/create.js'].branchData['432'][1] = new BranchData(); - _$jscoverage['/base/create.js'].branchData['437'] = []; - _$jscoverage['/base/create.js'].branchData['437'][1] = new BranchData(); + _$jscoverage['/base/create.js'].branchData['377'][2] = new BranchData(); + _$jscoverage['/base/create.js'].branchData['378'] = []; + _$jscoverage['/base/create.js'].branchData['378'][1] = new BranchData(); + _$jscoverage['/base/create.js'].branchData['384'] = []; + _$jscoverage['/base/create.js'].branchData['384'][1] = new BranchData(); + _$jscoverage['/base/create.js'].branchData['384'][2] = new BranchData(); + _$jscoverage['/base/create.js'].branchData['388'] = []; + _$jscoverage['/base/create.js'].branchData['388'][1] = new BranchData(); + _$jscoverage['/base/create.js'].branchData['393'] = []; + _$jscoverage['/base/create.js'].branchData['393'][1] = new BranchData(); + _$jscoverage['/base/create.js'].branchData['395'] = []; + _$jscoverage['/base/create.js'].branchData['395'][1] = new BranchData(); + _$jscoverage['/base/create.js'].branchData['409'] = []; + _$jscoverage['/base/create.js'].branchData['409'][1] = new BranchData(); + _$jscoverage['/base/create.js'].branchData['423'] = []; + _$jscoverage['/base/create.js'].branchData['423'][1] = new BranchData(); + _$jscoverage['/base/create.js'].branchData['428'] = []; + _$jscoverage['/base/create.js'].branchData['428'][1] = new BranchData(); + _$jscoverage['/base/create.js'].branchData['433'] = []; + _$jscoverage['/base/create.js'].branchData['433'][1] = new BranchData(); + _$jscoverage['/base/create.js'].branchData['438'] = []; + _$jscoverage['/base/create.js'].branchData['438'][1] = new BranchData(); _$jscoverage['/base/create.js'].branchData['451'] = []; _$jscoverage['/base/create.js'].branchData['451'][1] = new BranchData(); - _$jscoverage['/base/create.js'].branchData['451'][2] = new BranchData(); - _$jscoverage['/base/create.js'].branchData['463'] = []; - _$jscoverage['/base/create.js'].branchData['463'][1] = new BranchData(); - _$jscoverage['/base/create.js'].branchData['471'] = []; - _$jscoverage['/base/create.js'].branchData['471'][1] = new BranchData(); + _$jscoverage['/base/create.js'].branchData['452'] = []; + _$jscoverage['/base/create.js'].branchData['452'][1] = new BranchData(); + _$jscoverage['/base/create.js'].branchData['452'][2] = new BranchData(); + _$jscoverage['/base/create.js'].branchData['464'] = []; + _$jscoverage['/base/create.js'].branchData['464'][1] = new BranchData(); _$jscoverage['/base/create.js'].branchData['472'] = []; _$jscoverage['/base/create.js'].branchData['472'][1] = new BranchData(); - _$jscoverage['/base/create.js'].branchData['476'] = []; - _$jscoverage['/base/create.js'].branchData['476'][1] = new BranchData(); - _$jscoverage['/base/create.js'].branchData['489'] = []; - _$jscoverage['/base/create.js'].branchData['489'][1] = new BranchData(); - _$jscoverage['/base/create.js'].branchData['489'][2] = new BranchData(); - _$jscoverage['/base/create.js'].branchData['489'][3] = new BranchData(); - _$jscoverage['/base/create.js'].branchData['493'] = []; - _$jscoverage['/base/create.js'].branchData['493'][1] = new BranchData(); + _$jscoverage['/base/create.js'].branchData['473'] = []; + _$jscoverage['/base/create.js'].branchData['473'][1] = new BranchData(); + _$jscoverage['/base/create.js'].branchData['477'] = []; + _$jscoverage['/base/create.js'].branchData['477'][1] = new BranchData(); + _$jscoverage['/base/create.js'].branchData['490'] = []; + _$jscoverage['/base/create.js'].branchData['490'][1] = new BranchData(); + _$jscoverage['/base/create.js'].branchData['490'][2] = new BranchData(); + _$jscoverage['/base/create.js'].branchData['490'][3] = new BranchData(); + _$jscoverage['/base/create.js'].branchData['494'] = []; + _$jscoverage['/base/create.js'].branchData['494'][1] = new BranchData(); } -_$jscoverage['/base/create.js'].branchData['493'][1].init(185, 7, 'i < len'); -function visit183_493_1(result) { - _$jscoverage['/base/create.js'].branchData['493'][1].ranCondition(result); +_$jscoverage['/base/create.js'].branchData['494'][1].init(185, 7, 'i < len'); +function visit184_494_1(result) { + _$jscoverage['/base/create.js'].branchData['494'][1].ranCondition(result); return result; -}_$jscoverage['/base/create.js'].branchData['489'][3].init(101, 24, 'nodes.push || nodes.item'); -function visit182_489_3(result) { - _$jscoverage['/base/create.js'].branchData['489'][3].ranCondition(result); +}_$jscoverage['/base/create.js'].branchData['490'][3].init(101, 24, 'nodes.push || nodes.item'); +function visit183_490_3(result) { + _$jscoverage['/base/create.js'].branchData['490'][3].ranCondition(result); return result; -}_$jscoverage['/base/create.js'].branchData['489'][2].init(101, 37, '(nodes.push || nodes.item) && nodes[0]'); -function visit181_489_2(result) { - _$jscoverage['/base/create.js'].branchData['489'][2].ranCondition(result); +}_$jscoverage['/base/create.js'].branchData['490'][2].init(101, 37, '(nodes.push || nodes.item) && nodes[0]'); +function visit182_490_2(result) { + _$jscoverage['/base/create.js'].branchData['490'][2].ranCondition(result); return result; -}_$jscoverage['/base/create.js'].branchData['489'][1].init(91, 47, 'nodes && (nodes.push || nodes.item) && nodes[0]'); -function visit180_489_1(result) { - _$jscoverage['/base/create.js'].branchData['489'][1].ranCondition(result); +}_$jscoverage['/base/create.js'].branchData['490'][1].init(91, 47, 'nodes && (nodes.push || nodes.item) && nodes[0]'); +function visit181_490_1(result) { + _$jscoverage['/base/create.js'].branchData['490'][1].ranCondition(result); return result; -}_$jscoverage['/base/create.js'].branchData['476'][1].init(174, 49, 'elem.nodeType === NodeType.DOCUMENT_FRAGMENT_NODE'); -function visit179_476_1(result) { - _$jscoverage['/base/create.js'].branchData['476'][1].ranCondition(result); +}_$jscoverage['/base/create.js'].branchData['477'][1].init(174, 49, 'elem.nodeType === NodeType.DOCUMENT_FRAGMENT_NODE'); +function visit180_477_1(result) { + _$jscoverage['/base/create.js'].branchData['477'][1].ranCondition(result); return result; -}_$jscoverage['/base/create.js'].branchData['472'][1].init(17, 39, 'elem.nodeType === NodeType.ELEMENT_NODE'); +}_$jscoverage['/base/create.js'].branchData['473'][1].init(17, 39, 'elem.nodeType === NodeType.ELEMENT_NODE'); +function visit179_473_1(result) { + _$jscoverage['/base/create.js'].branchData['473'][1].ranCondition(result); + return result; +}_$jscoverage['/base/create.js'].branchData['472'][1].init(13, 22, 'S.isPlainObject(props)'); function visit178_472_1(result) { _$jscoverage['/base/create.js'].branchData['472'][1].ranCondition(result); return result; -}_$jscoverage['/base/create.js'].branchData['471'][1].init(13, 22, 'S.isPlainObject(props)'); -function visit177_471_1(result) { - _$jscoverage['/base/create.js'].branchData['471'][1].ranCondition(result); +}_$jscoverage['/base/create.js'].branchData['464'][1].init(422, 26, 'DOMEvent && DOMEvent.clone'); +function visit177_464_1(result) { + _$jscoverage['/base/create.js'].branchData['464'][1].ranCondition(result); return result; -}_$jscoverage['/base/create.js'].branchData['463'][1].init(368, 8, 'DOMEvent'); -function visit176_463_1(result) { - _$jscoverage['/base/create.js'].branchData['463'][1].ranCondition(result); +}_$jscoverage['/base/create.js'].branchData['452'][2].init(151, 39, 'dest.nodeType === NodeType.ELEMENT_NODE'); +function visit176_452_2(result) { + _$jscoverage['/base/create.js'].branchData['452'][2].ranCondition(result); return result; -}_$jscoverage['/base/create.js'].branchData['451'][2].init(97, 39, 'dest.nodeType === NodeType.ELEMENT_NODE'); -function visit175_451_2(result) { - _$jscoverage['/base/create.js'].branchData['451'][2].ranCondition(result); +}_$jscoverage['/base/create.js'].branchData['452'][1].init(151, 60, 'dest.nodeType === NodeType.ELEMENT_NODE && !Dom.hasData(src)'); +function visit175_452_1(result) { + _$jscoverage['/base/create.js'].branchData['452'][1].ranCondition(result); return result; -}_$jscoverage['/base/create.js'].branchData['451'][1].init(97, 60, 'dest.nodeType === NodeType.ELEMENT_NODE && !Dom.hasData(src)'); +}_$jscoverage['/base/create.js'].branchData['451'][1].init(109, 28, 'DOMEvent && DOMEvent.exports'); function visit174_451_1(result) { _$jscoverage['/base/create.js'].branchData['451'][1].ranCondition(result); return result; -}_$jscoverage['/base/create.js'].branchData['437'][1].init(21, 21, 'cloneChildren[cIndex]'); -function visit173_437_1(result) { - _$jscoverage['/base/create.js'].branchData['437'][1].ranCondition(result); +}_$jscoverage['/base/create.js'].branchData['438'][1].init(21, 21, 'cloneChildren[cIndex]'); +function visit173_438_1(result) { + _$jscoverage['/base/create.js'].branchData['438'][1].ranCondition(result); return result; -}_$jscoverage['/base/create.js'].branchData['432'][1].init(435, 38, 'elemNodeType === NodeType.ELEMENT_NODE'); -function visit172_432_1(result) { - _$jscoverage['/base/create.js'].branchData['432'][1].ranCondition(result); +}_$jscoverage['/base/create.js'].branchData['433'][1].init(435, 38, 'elemNodeType === NodeType.ELEMENT_NODE'); +function visit172_433_1(result) { + _$jscoverage['/base/create.js'].branchData['433'][1].ranCondition(result); return result; -}_$jscoverage['/base/create.js'].branchData['427'][1].init(21, 15, 'cloneCs[fIndex]'); -function visit171_427_1(result) { - _$jscoverage['/base/create.js'].branchData['427'][1].ranCondition(result); +}_$jscoverage['/base/create.js'].branchData['428'][1].init(21, 15, 'cloneCs[fIndex]'); +function visit171_428_1(result) { + _$jscoverage['/base/create.js'].branchData['428'][1].ranCondition(result); return result; -}_$jscoverage['/base/create.js'].branchData['422'][1].init(55, 48, 'elemNodeType === NodeType.DOCUMENT_FRAGMENT_NODE'); -function visit170_422_1(result) { - _$jscoverage['/base/create.js'].branchData['422'][1].ranCondition(result); +}_$jscoverage['/base/create.js'].branchData['423'][1].init(55, 48, 'elemNodeType === NodeType.DOCUMENT_FRAGMENT_NODE'); +function visit170_423_1(result) { + _$jscoverage['/base/create.js'].branchData['423'][1].ranCondition(result); return result; -}_$jscoverage['/base/create.js'].branchData['408'][1].init(116, 6, 'i >= 0'); -function visit169_408_1(result) { - _$jscoverage['/base/create.js'].branchData['408'][1].ranCondition(result); +}_$jscoverage['/base/create.js'].branchData['409'][1].init(116, 6, 'i >= 0'); +function visit169_409_1(result) { + _$jscoverage['/base/create.js'].branchData['409'][1].ranCondition(result); return result; -}_$jscoverage['/base/create.js'].branchData['394'][1].init(81, 28, 'deep && deepWithDataAndEvent'); -function visit168_394_1(result) { - _$jscoverage['/base/create.js'].branchData['394'][1].ranCondition(result); +}_$jscoverage['/base/create.js'].branchData['395'][1].init(81, 28, 'deep && deepWithDataAndEvent'); +function visit168_395_1(result) { + _$jscoverage['/base/create.js'].branchData['395'][1].ranCondition(result); return result; -}_$jscoverage['/base/create.js'].branchData['392'][1].init(1730, 16, 'withDataAndEvent'); -function visit167_392_1(result) { - _$jscoverage['/base/create.js'].branchData['392'][1].ranCondition(result); +}_$jscoverage['/base/create.js'].branchData['393'][1].init(1730, 16, 'withDataAndEvent'); +function visit167_393_1(result) { + _$jscoverage['/base/create.js'].branchData['393'][1].ranCondition(result); return result; -}_$jscoverage['/base/create.js'].branchData['387'][1].init(575, 27, 'deep && _fixCloneAttributes'); -function visit166_387_1(result) { - _$jscoverage['/base/create.js'].branchData['387'][1].ranCondition(result); +}_$jscoverage['/base/create.js'].branchData['388'][1].init(575, 27, 'deep && _fixCloneAttributes'); +function visit166_388_1(result) { + _$jscoverage['/base/create.js'].branchData['388'][1].ranCondition(result); return result; -}_$jscoverage['/base/create.js'].branchData['383'][2].init(428, 38, 'elemNodeType === NodeType.ELEMENT_NODE'); -function visit165_383_2(result) { - _$jscoverage['/base/create.js'].branchData['383'][2].ranCondition(result); +}_$jscoverage['/base/create.js'].branchData['384'][2].init(428, 38, 'elemNodeType === NodeType.ELEMENT_NODE'); +function visit165_384_2(result) { + _$jscoverage['/base/create.js'].branchData['384'][2].ranCondition(result); return result; -}_$jscoverage['/base/create.js'].branchData['383'][1].init(405, 61, '_fixCloneAttributes && elemNodeType === NodeType.ELEMENT_NODE'); -function visit164_383_1(result) { - _$jscoverage['/base/create.js'].branchData['383'][1].ranCondition(result); +}_$jscoverage['/base/create.js'].branchData['384'][1].init(405, 61, '_fixCloneAttributes && elemNodeType === NodeType.ELEMENT_NODE'); +function visit164_384_1(result) { + _$jscoverage['/base/create.js'].branchData['384'][1].ranCondition(result); return result; -}_$jscoverage['/base/create.js'].branchData['377'][1].init(61, 48, 'elemNodeType === NodeType.DOCUMENT_FRAGMENT_NODE'); -function visit163_377_1(result) { - _$jscoverage['/base/create.js'].branchData['377'][1].ranCondition(result); +}_$jscoverage['/base/create.js'].branchData['378'][1].init(61, 48, 'elemNodeType === NodeType.DOCUMENT_FRAGMENT_NODE'); +function visit163_378_1(result) { + _$jscoverage['/base/create.js'].branchData['378'][1].ranCondition(result); return result; -}_$jscoverage['/base/create.js'].branchData['376'][2].init(847, 38, 'elemNodeType === NodeType.ELEMENT_NODE'); -function visit162_376_2(result) { - _$jscoverage['/base/create.js'].branchData['376'][2].ranCondition(result); +}_$jscoverage['/base/create.js'].branchData['377'][2].init(847, 38, 'elemNodeType === NodeType.ELEMENT_NODE'); +function visit162_377_2(result) { + _$jscoverage['/base/create.js'].branchData['377'][2].ranCondition(result); + return result; +}_$jscoverage['/base/create.js'].branchData['377'][1].init(847, 110, 'elemNodeType === NodeType.ELEMENT_NODE || elemNodeType === NodeType.DOCUMENT_FRAGMENT_NODE'); +function visit161_377_1(result) { + _$jscoverage['/base/create.js'].branchData['377'][1].ranCondition(result); return result; -}_$jscoverage['/base/create.js'].branchData['376'][1].init(847, 110, 'elemNodeType === NodeType.ELEMENT_NODE || elemNodeType === NodeType.DOCUMENT_FRAGMENT_NODE'); -function visit161_376_1(result) { - _$jscoverage['/base/create.js'].branchData['376'][1].ranCondition(result); +}_$jscoverage['/base/create.js'].branchData['363'][1].init(433, 5, '!elem'); +function visit160_363_1(result) { + _$jscoverage['/base/create.js'].branchData['363'][1].ranCondition(result); return result; -}_$jscoverage['/base/create.js'].branchData['362'][1].init(433, 5, '!elem'); -function visit160_362_1(result) { - _$jscoverage['/base/create.js'].branchData['362'][1].ranCondition(result); +}_$jscoverage['/base/create.js'].branchData['352'][1].init(21, 24, 'typeof deep === \'object\''); +function visit159_352_1(result) { + _$jscoverage['/base/create.js'].branchData['352'][1].ranCondition(result); return result; -}_$jscoverage['/base/create.js'].branchData['351'][1].init(21, 24, 'typeof deep === \'object\''); -function visit159_351_1(result) { - _$jscoverage['/base/create.js'].branchData['351'][1].ranCondition(result); +}_$jscoverage['/base/create.js'].branchData['319'][1].init(186, 27, 'DOMEvent && DOMEvent.detach'); +function visit158_319_1(result) { + _$jscoverage['/base/create.js'].branchData['319'][1].ranCondition(result); return result; -}_$jscoverage['/base/create.js'].branchData['318'][1].init(186, 8, 'DOMEvent'); -function visit158_318_1(result) { - _$jscoverage['/base/create.js'].branchData['318'][1].ranCondition(result); +}_$jscoverage['/base/create.js'].branchData['315'][2].init(71, 37, 'el.nodeType === NodeType.ELEMENT_NODE'); +function visit157_315_2(result) { + _$jscoverage['/base/create.js'].branchData['315'][2].ranCondition(result); return result; -}_$jscoverage['/base/create.js'].branchData['314'][2].init(71, 37, 'el.nodeType === NodeType.ELEMENT_NODE'); -function visit157_314_2(result) { - _$jscoverage['/base/create.js'].branchData['314'][2].ranCondition(result); +}_$jscoverage['/base/create.js'].branchData['315'][1].init(58, 50, '!keepData && el.nodeType === NodeType.ELEMENT_NODE'); +function visit156_315_1(result) { + _$jscoverage['/base/create.js'].branchData['315'][1].ranCondition(result); return result; -}_$jscoverage['/base/create.js'].branchData['314'][1].init(58, 50, '!keepData && el.nodeType === NodeType.ELEMENT_NODE'); -function visit156_314_1(result) { - _$jscoverage['/base/create.js'].branchData['314'][1].ranCondition(result); +}_$jscoverage['/base/create.js'].branchData['313'][1].init(279, 6, 'i >= 0'); +function visit155_313_1(result) { + _$jscoverage['/base/create.js'].branchData['313'][1].ranCondition(result); return result; -}_$jscoverage['/base/create.js'].branchData['312'][1].init(216, 6, 'i >= 0'); -function visit155_312_1(result) { +}_$jscoverage['/base/create.js'].branchData['312'][1].init(208, 28, 'DOMEvent && DOMEvent.exports'); +function visit154_312_1(result) { _$jscoverage['/base/create.js'].branchData['312'][1].ranCondition(result); return result; }_$jscoverage['/base/create.js'].branchData['287'][1].init(74, 37, 'el.nodeType === NodeType.ELEMENT_NODE'); -function visit154_287_1(result) { +function visit153_287_1(result) { _$jscoverage['/base/create.js'].branchData['287'][1].ranCondition(result); return result; }_$jscoverage['/base/create.js'].branchData['285'][1].init(46, 6, 'i >= 0'); -function visit153_285_1(result) { +function visit152_285_1(result) { _$jscoverage['/base/create.js'].branchData['285'][1].ranCondition(result); return result; }_$jscoverage['/base/create.js'].branchData['284'][1].init(63, 64, '!htmlString.match(/<(?:script|style|link)/i) && supportOuterHTML'); -function visit152_284_1(result) { +function visit151_284_1(result) { _$jscoverage['/base/create.js'].branchData['284'][1].ranCondition(result); return result; }_$jscoverage['/base/create.js'].branchData['275'][2].init(45, 42, 'el.nodeType !== Dom.DOCUMENT_FRAGMENT_NODE'); -function visit151_275_2(result) { +function visit150_275_2(result) { _$jscoverage['/base/create.js'].branchData['275'][2].ranCondition(result); return result; }_$jscoverage['/base/create.js'].branchData['275'][1].init(25, 62, 'supportOuterHTML && el.nodeType !== Dom.DOCUMENT_FRAGMENT_NODE'); -function visit150_275_1(result) { +function visit149_275_1(result) { _$jscoverage['/base/create.js'].branchData['275'][1].ranCondition(result); return result; }_$jscoverage['/base/create.js'].branchData['274'][1].init(326, 24, 'htmlString === undefined'); -function visit149_274_1(result) { +function visit148_274_1(result) { _$jscoverage['/base/create.js'].branchData['274'][1].ranCondition(result); return result; }_$jscoverage['/base/create.js'].branchData['270'][1].init(222, 3, '!el'); -function visit148_270_1(result) { +function visit147_270_1(result) { _$jscoverage['/base/create.js'].branchData['270'][1].ranCondition(result); return result; }_$jscoverage['/base/create.js'].branchData['246'][1].init(1090, 8, '!success'); -function visit147_246_1(result) { +function visit146_246_1(result) { _$jscoverage['/base/create.js'].branchData['246'][1].ranCondition(result); return result; }_$jscoverage['/base/create.js'].branchData['233'][1].init(84, 39, 'elem.nodeType === NodeType.ELEMENT_NODE'); -function visit146_233_1(result) { +function visit145_233_1(result) { _$jscoverage['/base/create.js'].branchData['233'][1].ranCondition(result); return result; }_$jscoverage['/base/create.js'].branchData['231'][1].init(54, 6, 'i >= 0'); -function visit145_231_1(result) { +function visit144_231_1(result) { _$jscoverage['/base/create.js'].branchData['231'][1].ranCondition(result); return result; }_$jscoverage['/base/create.js'].branchData['228'][3].init(341, 36, 'htmlString.match(RE_TAG) || [\'\', \'\']'); -function visit144_228_3(result) { +function visit143_228_3(result) { _$jscoverage['/base/create.js'].branchData['228'][3].ranCondition(result); return result; }_$jscoverage['/base/create.js'].branchData['228'][2].init(252, 69, '!lostLeadingTailWhitespace || !htmlString.match(R_LEADING_WHITESPACE)'); -function visit143_228_2(result) { +function visit142_228_2(result) { _$jscoverage['/base/create.js'].branchData['228'][2].ranCondition(result); return result; }_$jscoverage['/base/create.js'].branchData['228'][1].init(72, 145, '(!lostLeadingTailWhitespace || !htmlString.match(R_LEADING_WHITESPACE)) && !creatorsMap[(htmlString.match(RE_TAG) || [\'\', \'\'])[1].toLowerCase()]'); -function visit142_228_1(result) { +function visit141_228_1(result) { _$jscoverage['/base/create.js'].branchData['228'][1].ranCondition(result); return result; }_$jscoverage['/base/create.js'].branchData['227'][1].init(177, 218, '!htmlString.match(/<(?:script|style|link)/i) && (!lostLeadingTailWhitespace || !htmlString.match(R_LEADING_WHITESPACE)) && !creatorsMap[(htmlString.match(RE_TAG) || [\'\', \'\'])[1].toLowerCase()]'); -function visit141_227_1(result) { +function visit140_227_1(result) { _$jscoverage['/base/create.js'].branchData['227'][1].ranCondition(result); return result; }_$jscoverage['/base/create.js'].branchData['213'][1].init(212, 47, 'el.nodeType === NodeType.DOCUMENT_FRAGMENT_NODE'); -function visit140_213_1(result) { +function visit139_213_1(result) { _$jscoverage['/base/create.js'].branchData['213'][1].ranCondition(result); return result; }_$jscoverage['/base/create.js'].branchData['211'][1].init(94, 37, 'el.nodeType === NodeType.ELEMENT_NODE'); -function visit139_211_1(result) { +function visit138_211_1(result) { _$jscoverage['/base/create.js'].branchData['211'][1].ranCondition(result); return result; }_$jscoverage['/base/create.js'].branchData['209'][1].init(355, 24, 'htmlString === undefined'); -function visit138_209_1(result) { +function visit137_209_1(result) { _$jscoverage['/base/create.js'].branchData['209'][1].ranCondition(result); return result; }_$jscoverage['/base/create.js'].branchData['205'][1].init(251, 3, '!el'); -function visit137_205_1(result) { +function visit136_205_1(result) { _$jscoverage['/base/create.js'].branchData['205'][1].ranCondition(result); return result; }_$jscoverage['/base/create.js'].branchData['178'][1].init(95, 32, 'Dom.nodeName(src) === \'textarea\''); -function visit136_178_1(result) { +function visit135_178_1(result) { _$jscoverage['/base/create.js'].branchData['178'][1].ranCondition(result); return result; }_$jscoverage['/base/create.js'].branchData['165'][1].init(1224, 12, 'nodes.length'); -function visit135_165_1(result) { +function visit134_165_1(result) { _$jscoverage['/base/create.js'].branchData['165'][1].ranCondition(result); return result; }_$jscoverage['/base/create.js'].branchData['162'][1].init(1008, 18, 'nodes.length === 1'); -function visit134_162_1(result) { +function visit133_162_1(result) { _$jscoverage['/base/create.js'].branchData['162'][1].ranCondition(result); return result; }_$jscoverage['/base/create.js'].branchData['155'][2].init(729, 92, '/\\S/.test(html) && (whitespaceMatch = html.match(R_TAIL_WHITESPACE))'); -function visit133_155_2(result) { +function visit132_155_2(result) { _$jscoverage['/base/create.js'].branchData['155'][2].ranCondition(result); return result; }_$jscoverage['/base/create.js'].branchData['155'][1].init(700, 121, 'lostLeadingTailWhitespace && /\\S/.test(html) && (whitespaceMatch = html.match(R_TAIL_WHITESPACE))'); -function visit132_155_1(result) { +function visit131_155_1(result) { _$jscoverage['/base/create.js'].branchData['155'][1].ranCondition(result); return result; }_$jscoverage['/base/create.js'].branchData['150'][1].init(409, 105, 'lostLeadingTailWhitespace && (whitespaceMatch = html.match(R_LEADING_WHITESPACE))'); -function visit131_150_1(result) { +function visit130_150_1(result) { _$jscoverage['/base/create.js'].branchData['150'][1].ranCondition(result); return result; }_$jscoverage['/base/create.js'].branchData['148'][1].init(301, 31, 'creators[tag] || defaultCreator'); -function visit130_148_1(result) { +function visit129_148_1(result) { _$jscoverage['/base/create.js'].branchData['148'][1].ranCondition(result); return result; }_$jscoverage['/base/create.js'].branchData['144'][1].init(161, 36, '(m = RE_TAG.exec(html)) && (k = m[1])'); -function visit129_144_1(result) { +function visit128_144_1(result) { _$jscoverage['/base/create.js'].branchData['144'][1].ranCondition(result); return result; }_$jscoverage['/base/create.js'].branchData['132'][1].init(782, 18, '!R_HTML.test(html)'); -function visit128_132_1(result) { +function visit127_132_1(result) { _$jscoverage['/base/create.js'].branchData['132'][1].ranCondition(result); return result; }_$jscoverage['/base/create.js'].branchData['126'][1].init(124, 15, 'ownerDoc || doc'); -function visit127_126_1(result) { +function visit126_126_1(result) { _$jscoverage['/base/create.js'].branchData['126'][1].ranCondition(result); return result; }_$jscoverage['/base/create.js'].branchData['119'][1].init(430, 5, '_trim'); -function visit126_119_1(result) { +function visit125_119_1(result) { _$jscoverage['/base/create.js'].branchData['119'][1].ranCondition(result); return result; }_$jscoverage['/base/create.js'].branchData['115'][1].init(334, 19, '_trim === undefined'); -function visit125_115_1(result) { +function visit124_115_1(result) { _$jscoverage['/base/create.js'].branchData['115'][1].ranCondition(result); return result; }_$jscoverage['/base/create.js'].branchData['111'][1].init(235, 24, 'typeof html !== \'string\''); -function visit124_111_1(result) { +function visit123_111_1(result) { _$jscoverage['/base/create.js'].branchData['111'][1].ranCondition(result); return result; }_$jscoverage['/base/create.js'].branchData['106'][1].init(134, 13, 'html.nodeType'); -function visit123_106_1(result) { +function visit122_106_1(result) { _$jscoverage['/base/create.js'].branchData['106'][1].ranCondition(result); return result; }_$jscoverage['/base/create.js'].branchData['102'][1].init(54, 5, '!html'); -function visit122_102_1(result) { +function visit121_102_1(result) { _$jscoverage['/base/create.js'].branchData['102'][1].ranCondition(result); return result; }_$jscoverage['/base/create.js'].branchData['72'][1].init(135, 15, 'node.firstChild'); -function visit121_72_1(result) { +function visit120_72_1(result) { _$jscoverage['/base/create.js'].branchData['72'][1].ranCondition(result); return result; }_$jscoverage['/base/create.js'].branchData['70'][2].init(516, 46, 'parent.canHaveChildren && \'removeNode\' in node'); -function visit120_70_2(result) { +function visit119_70_2(result) { _$jscoverage['/base/create.js'].branchData['70'][2].ranCondition(result); return result; }_$jscoverage['/base/create.js'].branchData['70'][1].init(507, 55, 'oldIE && parent.canHaveChildren && \'removeNode\' in node'); -function visit119_70_1(result) { +function visit118_70_1(result) { _$jscoverage['/base/create.js'].branchData['70'][1].ranCondition(result); return result; }_$jscoverage['/base/create.js'].branchData['65'][1].init(13, 6, 'parent'); -function visit118_65_1(result) { +function visit117_65_1(result) { _$jscoverage['/base/create.js'].branchData['65'][1].ranCondition(result); return result; }_$jscoverage['/base/create.js'].branchData['36'][1].init(132, 22, 'holder === DEFAULT_DIV'); -function visit117_36_1(result) { +function visit116_36_1(result) { _$jscoverage['/base/create.js'].branchData['36'][1].ranCondition(result); return result; }_$jscoverage['/base/create.js'].branchData['33'][2].init(34, 16, 'ownerDoc !== doc'); -function visit116_33_2(result) { +function visit115_33_2(result) { _$jscoverage['/base/create.js'].branchData['33'][2].ranCondition(result); return result; }_$jscoverage['/base/create.js'].branchData['33'][1].init(22, 28, 'ownerDoc && ownerDoc !== doc'); -function visit115_33_1(result) { +function visit114_33_1(result) { _$jscoverage['/base/create.js'].branchData['33'][1].ranCondition(result); return result; }_$jscoverage['/base/create.js'].branchData['24'][1].init(553, 41, 'doc && \'outerHTML\' in doc.documentElement'); -function visit114_24_1(result) { +function visit113_24_1(result) { _$jscoverage['/base/create.js'].branchData['24'][1].ranCondition(result); return result; }_$jscoverage['/base/create.js'].branchData['21'][2].init(444, 6, 'ie < 9'); -function visit113_21_2(result) { +function visit112_21_2(result) { _$jscoverage['/base/create.js'].branchData['21'][2].ranCondition(result); return result; }_$jscoverage['/base/create.js'].branchData['21'][1].init(438, 12, 'ie && ie < 9'); -function visit112_21_1(result) { +function visit111_21_1(result) { _$jscoverage['/base/create.js'].branchData['21'][1].ranCondition(result); return result; }_$jscoverage['/base/create.js'].branchData['16'][1].init(186, 29, 'doc && doc.createElement(DIV)'); -function visit111_16_1(result) { +function visit110_16_1(result) { _$jscoverage['/base/create.js'].branchData['16'][1].ranCondition(result); return result; }_$jscoverage['/base/create.js'].lineData[6]++; @@ -879,7 +894,7 @@ KISSY.add(function(S, require) { _$jscoverage['/base/create.js'].lineData[8]++; var logger = S.getLogger('s/dom'); _$jscoverage['/base/create.js'].lineData[9]++; - var doc = S.Env.host.document, NodeType = Dom.NodeType, UA = S.UA, ie = UA.ieMode, DIV = 'div', PARENT_NODE = 'parentNode', DEFAULT_DIV = visit111_16_1(doc && doc.createElement(DIV)), R_XHTML_TAG = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig, RE_TAG = /<([\w:]+)/, R_LEADING_WHITESPACE = /^\s+/, R_TAIL_WHITESPACE = /\s+$/, oldIE = !!(visit112_21_1(ie && visit113_21_2(ie < 9))), lostLeadingTailWhitespace = oldIE, R_HTML = /<|&#?\w+;/, supportOuterHTML = visit114_24_1(doc && 'outerHTML' in doc.documentElement), RE_SIMPLE_TAG = /^<(\w+)\s*\/?>(?:<\/\1>)?$/; + var doc = S.Env.host.document, NodeType = Dom.NodeType, UA = S.UA, ie = UA.ieMode, DIV = 'div', PARENT_NODE = 'parentNode', DEFAULT_DIV = visit110_16_1(doc && doc.createElement(DIV)), R_XHTML_TAG = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig, RE_TAG = /<([\w:]+)/, R_LEADING_WHITESPACE = /^\s+/, R_TAIL_WHITESPACE = /\s+$/, oldIE = !!(visit111_21_1(ie && visit112_21_2(ie < 9))), lostLeadingTailWhitespace = oldIE, R_HTML = /<|&#?\w+;/, supportOuterHTML = visit113_24_1(doc && 'outerHTML' in doc.documentElement), RE_SIMPLE_TAG = /^<(\w+)\s*\/?>(?:<\/\1>)?$/; _$jscoverage['/base/create.js'].lineData[28]++; function getElementsByTagName(el, tag) { _$jscoverage['/base/create.js'].functionData[1]++; @@ -890,9 +905,9 @@ KISSY.add(function(S, require) { function getHolderDiv(ownerDoc) { _$jscoverage['/base/create.js'].functionData[2]++; _$jscoverage['/base/create.js'].lineData[33]++; - var holder = visit115_33_1(ownerDoc && visit116_33_2(ownerDoc !== doc)) ? ownerDoc.createElement(DIV) : DEFAULT_DIV; + var holder = visit114_33_1(ownerDoc && visit115_33_2(ownerDoc !== doc)) ? ownerDoc.createElement(DIV) : DEFAULT_DIV; _$jscoverage['/base/create.js'].lineData[36]++; - if (visit117_36_1(holder === DEFAULT_DIV)) { + if (visit116_36_1(holder === DEFAULT_DIV)) { _$jscoverage['/base/create.js'].lineData[37]++; holder.innerHTML = ''; } @@ -930,11 +945,11 @@ KISSY.add(function(S, require) { function _destroy(node, parent) { _$jscoverage['/base/create.js'].functionData[5]++; _$jscoverage['/base/create.js'].lineData[65]++; - if (visit118_65_1(parent)) { + if (visit117_65_1(parent)) { _$jscoverage['/base/create.js'].lineData[70]++; - if (visit119_70_1(oldIE && visit120_70_2(parent.canHaveChildren && 'removeNode' in node))) { + if (visit118_70_1(oldIE && visit119_70_2(parent.canHaveChildren && 'removeNode' in node))) { _$jscoverage['/base/create.js'].lineData[72]++; - if (visit121_72_1(node.firstChild)) { + if (visit120_72_1(node.firstChild)) { _$jscoverage['/base/create.js'].lineData[73]++; _empty(node); } @@ -953,34 +968,34 @@ KISSY.add(function(S, require) { _$jscoverage['/base/create.js'].lineData[100]++; var ret = null; _$jscoverage['/base/create.js'].lineData[102]++; - if (visit122_102_1(!html)) { + if (visit121_102_1(!html)) { _$jscoverage['/base/create.js'].lineData[103]++; return ret; } _$jscoverage['/base/create.js'].lineData[106]++; - if (visit123_106_1(html.nodeType)) { + if (visit122_106_1(html.nodeType)) { _$jscoverage['/base/create.js'].lineData[107]++; return Dom.clone(html); } _$jscoverage['/base/create.js'].lineData[111]++; - if (visit124_111_1(typeof html !== 'string')) { + if (visit123_111_1(typeof html !== 'string')) { _$jscoverage['/base/create.js'].lineData[112]++; return ret; } _$jscoverage['/base/create.js'].lineData[115]++; - if (visit125_115_1(_trim === undefined)) { + if (visit124_115_1(_trim === undefined)) { _$jscoverage['/base/create.js'].lineData[116]++; _trim = true; } _$jscoverage['/base/create.js'].lineData[119]++; - if (visit126_119_1(_trim)) { + if (visit125_119_1(_trim)) { _$jscoverage['/base/create.js'].lineData[120]++; html = S.trim(html); } _$jscoverage['/base/create.js'].lineData[123]++; - var creators = Dom._creators, holder, whitespaceMatch, context = visit127_126_1(ownerDoc || doc), m, tag = DIV, k, nodes; + var creators = Dom._creators, holder, whitespaceMatch, context = visit126_126_1(ownerDoc || doc), m, tag = DIV, k, nodes; _$jscoverage['/base/create.js'].lineData[132]++; - if (visit128_132_1(!R_HTML.test(html))) { + if (visit127_132_1(!R_HTML.test(html))) { _$jscoverage['/base/create.js'].lineData[133]++; ret = context.createTextNode(html); } else { @@ -992,31 +1007,31 @@ KISSY.add(function(S, require) { _$jscoverage['/base/create.js'].lineData[142]++; html = html.replace(R_XHTML_TAG, '<$1><' + '/$2>'); _$jscoverage['/base/create.js'].lineData[144]++; - if (visit129_144_1((m = RE_TAG.exec(html)) && (k = m[1]))) { + if (visit128_144_1((m = RE_TAG.exec(html)) && (k = m[1]))) { _$jscoverage['/base/create.js'].lineData[145]++; tag = k.toLowerCase(); } _$jscoverage['/base/create.js'].lineData[148]++; - holder = (visit130_148_1(creators[tag] || defaultCreator))(html, context); + holder = (visit129_148_1(creators[tag] || defaultCreator))(html, context); _$jscoverage['/base/create.js'].lineData[150]++; - if (visit131_150_1(lostLeadingTailWhitespace && (whitespaceMatch = html.match(R_LEADING_WHITESPACE)))) { + if (visit130_150_1(lostLeadingTailWhitespace && (whitespaceMatch = html.match(R_LEADING_WHITESPACE)))) { _$jscoverage['/base/create.js'].lineData[152]++; holder.insertBefore(context.createTextNode(whitespaceMatch[0]), holder.firstChild); } _$jscoverage['/base/create.js'].lineData[155]++; - if (visit132_155_1(lostLeadingTailWhitespace && visit133_155_2(/\S/.test(html) && (whitespaceMatch = html.match(R_TAIL_WHITESPACE))))) { + if (visit131_155_1(lostLeadingTailWhitespace && visit132_155_2(/\S/.test(html) && (whitespaceMatch = html.match(R_TAIL_WHITESPACE))))) { _$jscoverage['/base/create.js'].lineData[157]++; holder.appendChild(context.createTextNode(whitespaceMatch[0])); } _$jscoverage['/base/create.js'].lineData[160]++; nodes = holder.childNodes; _$jscoverage['/base/create.js'].lineData[162]++; - if (visit134_162_1(nodes.length === 1)) { + if (visit133_162_1(nodes.length === 1)) { _$jscoverage['/base/create.js'].lineData[164]++; ret = nodes[0][PARENT_NODE].removeChild(nodes[0]); } else { _$jscoverage['/base/create.js'].lineData[165]++; - if (visit135_165_1(nodes.length)) { + if (visit134_165_1(nodes.length)) { _$jscoverage['/base/create.js'].lineData[167]++; ret = nodeListToFragment(nodes); } else { @@ -1032,7 +1047,7 @@ KISSY.add(function(S, require) { _fixCloneAttributes: function(src, dest) { _$jscoverage['/base/create.js'].functionData[7]++; _$jscoverage['/base/create.js'].lineData[178]++; - if (visit136_178_1(Dom.nodeName(src) === 'textarea')) { + if (visit135_178_1(Dom.nodeName(src) === 'textarea')) { _$jscoverage['/base/create.js'].lineData[179]++; dest.defaultValue = src.defaultValue; _$jscoverage['/base/create.js'].lineData[180]++; @@ -1047,19 +1062,19 @@ KISSY.add(function(S, require) { _$jscoverage['/base/create.js'].lineData[200]++; var els = Dom.query(selector), el = els[0], success = false, valNode, i, elem; _$jscoverage['/base/create.js'].lineData[205]++; - if (visit137_205_1(!el)) { + if (visit136_205_1(!el)) { _$jscoverage['/base/create.js'].lineData[206]++; return null; } _$jscoverage['/base/create.js'].lineData[209]++; - if (visit138_209_1(htmlString === undefined)) { + if (visit137_209_1(htmlString === undefined)) { _$jscoverage['/base/create.js'].lineData[211]++; - if (visit139_211_1(el.nodeType === NodeType.ELEMENT_NODE)) { + if (visit138_211_1(el.nodeType === NodeType.ELEMENT_NODE)) { _$jscoverage['/base/create.js'].lineData[212]++; return el.innerHTML; } else { _$jscoverage['/base/create.js'].lineData[213]++; - if (visit140_213_1(el.nodeType === NodeType.DOCUMENT_FRAGMENT_NODE)) { + if (visit139_213_1(el.nodeType === NodeType.DOCUMENT_FRAGMENT_NODE)) { _$jscoverage['/base/create.js'].lineData[214]++; var holder = getHolderDiv(el.ownerDocument); _$jscoverage['/base/create.js'].lineData[215]++; @@ -1075,15 +1090,15 @@ KISSY.add(function(S, require) { _$jscoverage['/base/create.js'].lineData[223]++; htmlString += ''; _$jscoverage['/base/create.js'].lineData[227]++; - if (visit141_227_1(!htmlString.match(/<(?:script|style|link)/i) && visit142_228_1((visit143_228_2(!lostLeadingTailWhitespace || !htmlString.match(R_LEADING_WHITESPACE))) && !creatorsMap[(visit144_228_3(htmlString.match(RE_TAG) || ['', '']))[1].toLowerCase()]))) { + if (visit140_227_1(!htmlString.match(/<(?:script|style|link)/i) && visit141_228_1((visit142_228_2(!lostLeadingTailWhitespace || !htmlString.match(R_LEADING_WHITESPACE))) && !creatorsMap[(visit143_228_3(htmlString.match(RE_TAG) || ['', '']))[1].toLowerCase()]))) { _$jscoverage['/base/create.js'].lineData[230]++; try { _$jscoverage['/base/create.js'].lineData[231]++; - for (i = els.length - 1; visit145_231_1(i >= 0); i--) { + for (i = els.length - 1; visit144_231_1(i >= 0); i--) { _$jscoverage['/base/create.js'].lineData[232]++; elem = els[i]; _$jscoverage['/base/create.js'].lineData[233]++; - if (visit146_233_1(elem.nodeType === NodeType.ELEMENT_NODE)) { + if (visit145_233_1(elem.nodeType === NodeType.ELEMENT_NODE)) { _$jscoverage['/base/create.js'].lineData[234]++; Dom.cleanData(getElementsByTagName(elem, '*')); _$jscoverage['/base/create.js'].lineData[235]++; @@ -1096,7 +1111,7 @@ KISSY.add(function(S, require) { } } _$jscoverage['/base/create.js'].lineData[246]++; - if (visit147_246_1(!success)) { + if (visit146_246_1(!success)) { _$jscoverage['/base/create.js'].lineData[247]++; valNode = Dom.create(htmlString, 0, el.ownerDocument, 0); _$jscoverage['/base/create.js'].lineData[248]++; @@ -1113,14 +1128,14 @@ KISSY.add(function(S, require) { _$jscoverage['/base/create.js'].lineData[264]++; var els = Dom.query(selector), holder, i, valNode, length = els.length, el = els[0]; _$jscoverage['/base/create.js'].lineData[270]++; - if (visit148_270_1(!el)) { + if (visit147_270_1(!el)) { _$jscoverage['/base/create.js'].lineData[271]++; return null; } _$jscoverage['/base/create.js'].lineData[274]++; - if (visit149_274_1(htmlString === undefined)) { + if (visit148_274_1(htmlString === undefined)) { _$jscoverage['/base/create.js'].lineData[275]++; - if (visit150_275_1(supportOuterHTML && visit151_275_2(el.nodeType !== Dom.DOCUMENT_FRAGMENT_NODE))) { + if (visit149_275_1(supportOuterHTML && visit150_275_2(el.nodeType !== Dom.DOCUMENT_FRAGMENT_NODE))) { _$jscoverage['/base/create.js'].lineData[276]++; return el.outerHTML; } else { @@ -1135,13 +1150,13 @@ KISSY.add(function(S, require) { _$jscoverage['/base/create.js'].lineData[283]++; htmlString += ''; _$jscoverage['/base/create.js'].lineData[284]++; - if (visit152_284_1(!htmlString.match(/<(?:script|style|link)/i) && supportOuterHTML)) { + if (visit151_284_1(!htmlString.match(/<(?:script|style|link)/i) && supportOuterHTML)) { _$jscoverage['/base/create.js'].lineData[285]++; - for (i = length - 1; visit153_285_1(i >= 0); i--) { + for (i = length - 1; visit152_285_1(i >= 0); i--) { _$jscoverage['/base/create.js'].lineData[286]++; el = els[i]; _$jscoverage['/base/create.js'].lineData[287]++; - if (visit154_287_1(el.nodeType === NodeType.ELEMENT_NODE)) { + if (visit153_287_1(el.nodeType === NodeType.ELEMENT_NODE)) { _$jscoverage['/base/create.js'].lineData[288]++; Dom.cleanData(el, 1); _$jscoverage['/base/create.js'].lineData[289]++; @@ -1163,198 +1178,202 @@ KISSY.add(function(S, require) { remove: function(selector, keepData) { _$jscoverage['/base/create.js'].functionData[10]++; _$jscoverage['/base/create.js'].lineData[307]++; - var el, els = Dom.query(selector), all, DOMEvent = S.require('event/dom'), i; + var el, els = Dom.query(selector), all, DOMEvent = S.Env.mods['event/dom/base'], i; _$jscoverage['/base/create.js'].lineData[312]++; - for (i = els.length - 1; visit155_312_1(i >= 0); i--) { - _$jscoverage['/base/create.js'].lineData[313]++; - el = els[i]; + DOMEvent = visit154_312_1(DOMEvent && DOMEvent.exports); + _$jscoverage['/base/create.js'].lineData[313]++; + for (i = els.length - 1; visit155_313_1(i >= 0); i--) { _$jscoverage['/base/create.js'].lineData[314]++; - if (visit156_314_1(!keepData && visit157_314_2(el.nodeType === NodeType.ELEMENT_NODE))) { - _$jscoverage['/base/create.js'].lineData[315]++; - all = S.makeArray(getElementsByTagName(el, '*')); + el = els[i]; + _$jscoverage['/base/create.js'].lineData[315]++; + if (visit156_315_1(!keepData && visit157_315_2(el.nodeType === NodeType.ELEMENT_NODE))) { _$jscoverage['/base/create.js'].lineData[316]++; - all.push(el); + all = S.makeArray(getElementsByTagName(el, '*')); _$jscoverage['/base/create.js'].lineData[317]++; - Dom.removeData(all); + all.push(el); _$jscoverage['/base/create.js'].lineData[318]++; - if (visit158_318_1(DOMEvent)) { - _$jscoverage['/base/create.js'].lineData[319]++; + Dom.removeData(all); + _$jscoverage['/base/create.js'].lineData[319]++; + if (visit158_319_1(DOMEvent && DOMEvent.detach)) { + _$jscoverage['/base/create.js'].lineData[320]++; DOMEvent.detach(all); } } - _$jscoverage['/base/create.js'].lineData[327]++; + _$jscoverage['/base/create.js'].lineData[328]++; _destroy(el, el.parentNode); } }, clone: function(selector, deep, withDataAndEvent, deepWithDataAndEvent) { _$jscoverage['/base/create.js'].functionData[11]++; - _$jscoverage['/base/create.js'].lineData[351]++; - if (visit159_351_1(typeof deep === 'object')) { - _$jscoverage['/base/create.js'].lineData[352]++; - deepWithDataAndEvent = deep.deepWithDataAndEvent; + _$jscoverage['/base/create.js'].lineData[352]++; + if (visit159_352_1(typeof deep === 'object')) { _$jscoverage['/base/create.js'].lineData[353]++; - withDataAndEvent = deep.withDataAndEvent; + deepWithDataAndEvent = deep.deepWithDataAndEvent; _$jscoverage['/base/create.js'].lineData[354]++; + withDataAndEvent = deep.withDataAndEvent; + _$jscoverage['/base/create.js'].lineData[355]++; deep = deep.deep; } - _$jscoverage['/base/create.js'].lineData[357]++; + _$jscoverage['/base/create.js'].lineData[358]++; var elem = Dom.get(selector), clone, _fixCloneAttributes = Dom._fixCloneAttributes, elemNodeType; - _$jscoverage['/base/create.js'].lineData[362]++; - if (visit160_362_1(!elem)) { - _$jscoverage['/base/create.js'].lineData[363]++; + _$jscoverage['/base/create.js'].lineData[363]++; + if (visit160_363_1(!elem)) { + _$jscoverage['/base/create.js'].lineData[364]++; return null; } - _$jscoverage['/base/create.js'].lineData[366]++; + _$jscoverage['/base/create.js'].lineData[367]++; elemNodeType = elem.nodeType; - _$jscoverage['/base/create.js'].lineData[372]++; + _$jscoverage['/base/create.js'].lineData[373]++; clone = elem.cloneNode(deep); - _$jscoverage['/base/create.js'].lineData[376]++; - if (visit161_376_1(visit162_376_2(elemNodeType === NodeType.ELEMENT_NODE) || visit163_377_1(elemNodeType === NodeType.DOCUMENT_FRAGMENT_NODE))) { - _$jscoverage['/base/create.js'].lineData[383]++; - if (visit164_383_1(_fixCloneAttributes && visit165_383_2(elemNodeType === NodeType.ELEMENT_NODE))) { - _$jscoverage['/base/create.js'].lineData[384]++; + _$jscoverage['/base/create.js'].lineData[377]++; + if (visit161_377_1(visit162_377_2(elemNodeType === NodeType.ELEMENT_NODE) || visit163_378_1(elemNodeType === NodeType.DOCUMENT_FRAGMENT_NODE))) { + _$jscoverage['/base/create.js'].lineData[384]++; + if (visit164_384_1(_fixCloneAttributes && visit165_384_2(elemNodeType === NodeType.ELEMENT_NODE))) { + _$jscoverage['/base/create.js'].lineData[385]++; _fixCloneAttributes(elem, clone); } - _$jscoverage['/base/create.js'].lineData[387]++; - if (visit166_387_1(deep && _fixCloneAttributes)) { - _$jscoverage['/base/create.js'].lineData[388]++; + _$jscoverage['/base/create.js'].lineData[388]++; + if (visit166_388_1(deep && _fixCloneAttributes)) { + _$jscoverage['/base/create.js'].lineData[389]++; processAll(_fixCloneAttributes, elem, clone); } } - _$jscoverage['/base/create.js'].lineData[392]++; - if (visit167_392_1(withDataAndEvent)) { - _$jscoverage['/base/create.js'].lineData[393]++; - cloneWithDataAndEvent(elem, clone); + _$jscoverage['/base/create.js'].lineData[393]++; + if (visit167_393_1(withDataAndEvent)) { _$jscoverage['/base/create.js'].lineData[394]++; - if (visit168_394_1(deep && deepWithDataAndEvent)) { - _$jscoverage['/base/create.js'].lineData[395]++; + cloneWithDataAndEvent(elem, clone); + _$jscoverage['/base/create.js'].lineData[395]++; + if (visit168_395_1(deep && deepWithDataAndEvent)) { + _$jscoverage['/base/create.js'].lineData[396]++; processAll(cloneWithDataAndEvent, elem, clone); } } - _$jscoverage['/base/create.js'].lineData[398]++; + _$jscoverage['/base/create.js'].lineData[399]++; return clone; }, empty: function(selector) { _$jscoverage['/base/create.js'].functionData[12]++; - _$jscoverage['/base/create.js'].lineData[406]++; + _$jscoverage['/base/create.js'].lineData[407]++; var els = Dom.query(selector), el, i; - _$jscoverage['/base/create.js'].lineData[408]++; - for (i = els.length - 1; visit169_408_1(i >= 0); i--) { - _$jscoverage['/base/create.js'].lineData[409]++; - el = els[i]; + _$jscoverage['/base/create.js'].lineData[409]++; + for (i = els.length - 1; visit169_409_1(i >= 0); i--) { _$jscoverage['/base/create.js'].lineData[410]++; + el = els[i]; + _$jscoverage['/base/create.js'].lineData[411]++; Dom.remove(el.childNodes); } }, _nodeListToFragment: nodeListToFragment}); - _$jscoverage['/base/create.js'].lineData[418]++; + _$jscoverage['/base/create.js'].lineData[419]++; Dom.outerHTML = Dom.outerHtml; - _$jscoverage['/base/create.js'].lineData[420]++; + _$jscoverage['/base/create.js'].lineData[421]++; function processAll(fn, elem, clone) { _$jscoverage['/base/create.js'].functionData[13]++; - _$jscoverage['/base/create.js'].lineData[421]++; - var elemNodeType = elem.nodeType; _$jscoverage['/base/create.js'].lineData[422]++; - if (visit170_422_1(elemNodeType === NodeType.DOCUMENT_FRAGMENT_NODE)) { - _$jscoverage['/base/create.js'].lineData[423]++; + var elemNodeType = elem.nodeType; + _$jscoverage['/base/create.js'].lineData[423]++; + if (visit170_423_1(elemNodeType === NodeType.DOCUMENT_FRAGMENT_NODE)) { + _$jscoverage['/base/create.js'].lineData[424]++; var eCs = elem.childNodes, cloneCs = clone.childNodes, fIndex = 0; - _$jscoverage['/base/create.js'].lineData[426]++; + _$jscoverage['/base/create.js'].lineData[427]++; while (eCs[fIndex]) { - _$jscoverage['/base/create.js'].lineData[427]++; - if (visit171_427_1(cloneCs[fIndex])) { - _$jscoverage['/base/create.js'].lineData[428]++; + _$jscoverage['/base/create.js'].lineData[428]++; + if (visit171_428_1(cloneCs[fIndex])) { + _$jscoverage['/base/create.js'].lineData[429]++; processAll(fn, eCs[fIndex], cloneCs[fIndex]); } - _$jscoverage['/base/create.js'].lineData[430]++; + _$jscoverage['/base/create.js'].lineData[431]++; fIndex++; } } else { - _$jscoverage['/base/create.js'].lineData[432]++; - if (visit172_432_1(elemNodeType === NodeType.ELEMENT_NODE)) { - _$jscoverage['/base/create.js'].lineData[433]++; + _$jscoverage['/base/create.js'].lineData[433]++; + if (visit172_433_1(elemNodeType === NodeType.ELEMENT_NODE)) { + _$jscoverage['/base/create.js'].lineData[434]++; var elemChildren = getElementsByTagName(elem, '*'), cloneChildren = getElementsByTagName(clone, '*'), cIndex = 0; - _$jscoverage['/base/create.js'].lineData[436]++; + _$jscoverage['/base/create.js'].lineData[437]++; while (elemChildren[cIndex]) { - _$jscoverage['/base/create.js'].lineData[437]++; - if (visit173_437_1(cloneChildren[cIndex])) { - _$jscoverage['/base/create.js'].lineData[438]++; + _$jscoverage['/base/create.js'].lineData[438]++; + if (visit173_438_1(cloneChildren[cIndex])) { + _$jscoverage['/base/create.js'].lineData[439]++; fn(elemChildren[cIndex], cloneChildren[cIndex]); } - _$jscoverage['/base/create.js'].lineData[440]++; + _$jscoverage['/base/create.js'].lineData[441]++; cIndex++; } } } } - _$jscoverage['/base/create.js'].lineData[446]++; + _$jscoverage['/base/create.js'].lineData[447]++; function cloneWithDataAndEvent(src, dest) { _$jscoverage['/base/create.js'].functionData[14]++; - _$jscoverage['/base/create.js'].lineData[447]++; - var DOMEvent = S.require('event/dom'), srcData, d; + _$jscoverage['/base/create.js'].lineData[448]++; + var DOMEvent = S.Env.mods['event/dom/base'], srcData, d; _$jscoverage['/base/create.js'].lineData[451]++; - if (visit174_451_1(visit175_451_2(dest.nodeType === NodeType.ELEMENT_NODE) && !Dom.hasData(src))) { - _$jscoverage['/base/create.js'].lineData[452]++; + DOMEvent = visit174_451_1(DOMEvent && DOMEvent.exports); + _$jscoverage['/base/create.js'].lineData[452]++; + if (visit175_452_1(visit176_452_2(dest.nodeType === NodeType.ELEMENT_NODE) && !Dom.hasData(src))) { + _$jscoverage['/base/create.js'].lineData[453]++; return; } - _$jscoverage['/base/create.js'].lineData[455]++; + _$jscoverage['/base/create.js'].lineData[456]++; srcData = Dom.data(src); - _$jscoverage['/base/create.js'].lineData[458]++; + _$jscoverage['/base/create.js'].lineData[459]++; for (d in srcData) { - _$jscoverage['/base/create.js'].lineData[459]++; + _$jscoverage['/base/create.js'].lineData[460]++; Dom.data(dest, d, srcData[d]); } - _$jscoverage['/base/create.js'].lineData[463]++; - if (visit176_463_1(DOMEvent)) { - _$jscoverage['/base/create.js'].lineData[465]++; + _$jscoverage['/base/create.js'].lineData[464]++; + if (visit177_464_1(DOMEvent && DOMEvent.clone)) { + _$jscoverage['/base/create.js'].lineData[466]++; DOMEvent.clone(src, dest); } } - _$jscoverage['/base/create.js'].lineData[470]++; + _$jscoverage['/base/create.js'].lineData[471]++; function attachProps(elem, props) { _$jscoverage['/base/create.js'].functionData[15]++; - _$jscoverage['/base/create.js'].lineData[471]++; - if (visit177_471_1(S.isPlainObject(props))) { - _$jscoverage['/base/create.js'].lineData[472]++; - if (visit178_472_1(elem.nodeType === NodeType.ELEMENT_NODE)) { - _$jscoverage['/base/create.js'].lineData[473]++; + _$jscoverage['/base/create.js'].lineData[472]++; + if (visit178_472_1(S.isPlainObject(props))) { + _$jscoverage['/base/create.js'].lineData[473]++; + if (visit179_473_1(elem.nodeType === NodeType.ELEMENT_NODE)) { + _$jscoverage['/base/create.js'].lineData[474]++; Dom.attr(elem, props, true); } else { - _$jscoverage['/base/create.js'].lineData[476]++; - if (visit179_476_1(elem.nodeType === NodeType.DOCUMENT_FRAGMENT_NODE)) { - _$jscoverage['/base/create.js'].lineData[477]++; + _$jscoverage['/base/create.js'].lineData[477]++; + if (visit180_477_1(elem.nodeType === NodeType.DOCUMENT_FRAGMENT_NODE)) { + _$jscoverage['/base/create.js'].lineData[478]++; Dom.attr(elem.childNodes, props, true); } } } - _$jscoverage['/base/create.js'].lineData[480]++; + _$jscoverage['/base/create.js'].lineData[481]++; return elem; } - _$jscoverage['/base/create.js'].lineData[484]++; + _$jscoverage['/base/create.js'].lineData[485]++; function nodeListToFragment(nodes) { _$jscoverage['/base/create.js'].functionData[16]++; - _$jscoverage['/base/create.js'].lineData[485]++; + _$jscoverage['/base/create.js'].lineData[486]++; var ret = null, i, ownerDoc, len; - _$jscoverage['/base/create.js'].lineData[489]++; - if (visit180_489_1(nodes && visit181_489_2((visit182_489_3(nodes.push || nodes.item)) && nodes[0]))) { - _$jscoverage['/base/create.js'].lineData[490]++; - ownerDoc = nodes[0].ownerDocument; + _$jscoverage['/base/create.js'].lineData[490]++; + if (visit181_490_1(nodes && visit182_490_2((visit183_490_3(nodes.push || nodes.item)) && nodes[0]))) { _$jscoverage['/base/create.js'].lineData[491]++; - ret = ownerDoc.createDocumentFragment(); + ownerDoc = nodes[0].ownerDocument; _$jscoverage['/base/create.js'].lineData[492]++; - nodes = S.makeArray(nodes); + ret = ownerDoc.createDocumentFragment(); _$jscoverage['/base/create.js'].lineData[493]++; - for (i = 0 , len = nodes.length; visit183_493_1(i < len); i++) { - _$jscoverage['/base/create.js'].lineData[494]++; + nodes = S.makeArray(nodes); + _$jscoverage['/base/create.js'].lineData[494]++; + for (i = 0 , len = nodes.length; visit184_494_1(i < len); i++) { + _$jscoverage['/base/create.js'].lineData[495]++; ret.appendChild(nodes[i]); } } else { - _$jscoverage['/base/create.js'].lineData[497]++; + _$jscoverage['/base/create.js'].lineData[498]++; logger.error('Unable to convert ' + nodes + ' to fragment.'); } - _$jscoverage['/base/create.js'].lineData[499]++; + _$jscoverage['/base/create.js'].lineData[500]++; return ret; } - _$jscoverage['/base/create.js'].lineData[503]++; + _$jscoverage['/base/create.js'].lineData[504]++; var creators = Dom._creators, create = Dom.create, creatorsMap = { area: 'map', thead: 'table', @@ -1367,25 +1386,27 @@ KISSY.add(function(S, require) { colgroup: 'table', col: 'colgroup', legend: 'fieldset'}, p; - _$jscoverage['/base/create.js'].lineData[519]++; + _$jscoverage['/base/create.js'].lineData[520]++; for (p in creatorsMap) { - _$jscoverage['/base/create.js'].lineData[521]++; + _$jscoverage['/base/create.js'].lineData[522]++; (function(tag) { _$jscoverage['/base/create.js'].functionData[17]++; - _$jscoverage['/base/create.js'].lineData[522]++; + _$jscoverage['/base/create.js'].lineData[523]++; creators[p] = function(html, ownerDoc) { _$jscoverage['/base/create.js'].functionData[18]++; - _$jscoverage['/base/create.js'].lineData[523]++; + _$jscoverage['/base/create.js'].lineData[524]++; return create('<' + tag + '>' + html + '<' + '/' + tag + '>', undefined, ownerDoc); }; })(creatorsMap[p]); } - _$jscoverage['/base/create.js'].lineData[531]++; - creatorsMap.option = creatorsMap.optgroup = function(html, ownerDoc) { - _$jscoverage['/base/create.js'].functionData[19]++; _$jscoverage['/base/create.js'].lineData[532]++; + creators.option = creators.optgroup = function(html, ownerDoc) { + _$jscoverage['/base/create.js'].functionData[19]++; + _$jscoverage['/base/create.js'].lineData[533]++; return create('', undefined, ownerDoc); }; _$jscoverage['/base/create.js'].lineData[535]++; + creatorsMap.option = creatorsMap.optgroup = 1; + _$jscoverage['/base/create.js'].lineData[536]++; return Dom; }); diff --git a/src/dom/sub-modules/base/coverage/src/base/data.js b/src/dom/sub-modules/base/coverage/src/base/data.js index 17ba86ea25..9242254101 100644 --- a/src/dom/sub-modules/base/coverage/src/base/data.js +++ b/src/dom/sub-modules/base/coverage/src/base/data.js @@ -230,110 +230,108 @@ if (! _$jscoverage['/base/data.js']) { _$jscoverage['/base/data.js'] = {}; _$jscoverage['/base/data.js'].lineData = []; _$jscoverage['/base/data.js'].lineData[6] = 0; - _$jscoverage['/base/data.js'].lineData[7] = 0; - _$jscoverage['/base/data.js'].lineData[8] = 0; - _$jscoverage['/base/data.js'].lineData[19] = 0; + _$jscoverage['/base/data.js'].lineData[9] = 0; + _$jscoverage['/base/data.js'].lineData[10] = 0; _$jscoverage['/base/data.js'].lineData[21] = 0; - _$jscoverage['/base/data.js'].lineData[22] = 0; _$jscoverage['/base/data.js'].lineData[23] = 0; _$jscoverage['/base/data.js'].lineData[24] = 0; + _$jscoverage['/base/data.js'].lineData[25] = 0; _$jscoverage['/base/data.js'].lineData[26] = 0; - _$jscoverage['/base/data.js'].lineData[27] = 0; - _$jscoverage['/base/data.js'].lineData[30] = 0; - _$jscoverage['/base/data.js'].lineData[34] = 0; - _$jscoverage['/base/data.js'].lineData[37] = 0; - _$jscoverage['/base/data.js'].lineData[38] = 0; - _$jscoverage['/base/data.js'].lineData[41] = 0; - _$jscoverage['/base/data.js'].lineData[42] = 0; - _$jscoverage['/base/data.js'].lineData[46] = 0; - _$jscoverage['/base/data.js'].lineData[47] = 0; + _$jscoverage['/base/data.js'].lineData[28] = 0; + _$jscoverage['/base/data.js'].lineData[29] = 0; + _$jscoverage['/base/data.js'].lineData[32] = 0; + _$jscoverage['/base/data.js'].lineData[36] = 0; + _$jscoverage['/base/data.js'].lineData[39] = 0; + _$jscoverage['/base/data.js'].lineData[40] = 0; + _$jscoverage['/base/data.js'].lineData[43] = 0; + _$jscoverage['/base/data.js'].lineData[44] = 0; + _$jscoverage['/base/data.js'].lineData[48] = 0; _$jscoverage['/base/data.js'].lineData[49] = 0; - _$jscoverage['/base/data.js'].lineData[50] = 0; _$jscoverage['/base/data.js'].lineData[51] = 0; _$jscoverage['/base/data.js'].lineData[52] = 0; + _$jscoverage['/base/data.js'].lineData[53] = 0; _$jscoverage['/base/data.js'].lineData[54] = 0; - _$jscoverage['/base/data.js'].lineData[55] = 0; + _$jscoverage['/base/data.js'].lineData[56] = 0; _$jscoverage['/base/data.js'].lineData[57] = 0; - _$jscoverage['/base/data.js'].lineData[58] = 0; - _$jscoverage['/base/data.js'].lineData[63] = 0; - _$jscoverage['/base/data.js'].lineData[64] = 0; + _$jscoverage['/base/data.js'].lineData[59] = 0; + _$jscoverage['/base/data.js'].lineData[60] = 0; + _$jscoverage['/base/data.js'].lineData[65] = 0; _$jscoverage['/base/data.js'].lineData[66] = 0; - _$jscoverage['/base/data.js'].lineData[67] = 0; _$jscoverage['/base/data.js'].lineData[68] = 0; _$jscoverage['/base/data.js'].lineData[69] = 0; _$jscoverage['/base/data.js'].lineData[70] = 0; - _$jscoverage['/base/data.js'].lineData[73] = 0; - _$jscoverage['/base/data.js'].lineData[76] = 0; + _$jscoverage['/base/data.js'].lineData[71] = 0; + _$jscoverage['/base/data.js'].lineData[72] = 0; + _$jscoverage['/base/data.js'].lineData[75] = 0; _$jscoverage['/base/data.js'].lineData[78] = 0; - _$jscoverage['/base/data.js'].lineData[84] = 0; + _$jscoverage['/base/data.js'].lineData[80] = 0; _$jscoverage['/base/data.js'].lineData[86] = 0; - _$jscoverage['/base/data.js'].lineData[87] = 0; _$jscoverage['/base/data.js'].lineData[88] = 0; + _$jscoverage['/base/data.js'].lineData[89] = 0; _$jscoverage['/base/data.js'].lineData[90] = 0; - _$jscoverage['/base/data.js'].lineData[91] = 0; - _$jscoverage['/base/data.js'].lineData[95] = 0; - _$jscoverage['/base/data.js'].lineData[96] = 0; + _$jscoverage['/base/data.js'].lineData[92] = 0; + _$jscoverage['/base/data.js'].lineData[93] = 0; + _$jscoverage['/base/data.js'].lineData[97] = 0; _$jscoverage['/base/data.js'].lineData[98] = 0; - _$jscoverage['/base/data.js'].lineData[99] = 0; + _$jscoverage['/base/data.js'].lineData[100] = 0; _$jscoverage['/base/data.js'].lineData[101] = 0; _$jscoverage['/base/data.js'].lineData[103] = 0; - _$jscoverage['/base/data.js'].lineData[106] = 0; + _$jscoverage['/base/data.js'].lineData[105] = 0; _$jscoverage['/base/data.js'].lineData[108] = 0; - _$jscoverage['/base/data.js'].lineData[109] = 0; + _$jscoverage['/base/data.js'].lineData[110] = 0; _$jscoverage['/base/data.js'].lineData[111] = 0; - _$jscoverage['/base/data.js'].lineData[112] = 0; + _$jscoverage['/base/data.js'].lineData[113] = 0; _$jscoverage['/base/data.js'].lineData[114] = 0; - _$jscoverage['/base/data.js'].lineData[115] = 0; - _$jscoverage['/base/data.js'].lineData[118] = 0; - _$jscoverage['/base/data.js'].lineData[119] = 0; - _$jscoverage['/base/data.js'].lineData[125] = 0; - _$jscoverage['/base/data.js'].lineData[126] = 0; + _$jscoverage['/base/data.js'].lineData[116] = 0; + _$jscoverage['/base/data.js'].lineData[117] = 0; + _$jscoverage['/base/data.js'].lineData[120] = 0; + _$jscoverage['/base/data.js'].lineData[121] = 0; _$jscoverage['/base/data.js'].lineData[127] = 0; + _$jscoverage['/base/data.js'].lineData[128] = 0; _$jscoverage['/base/data.js'].lineData[129] = 0; - _$jscoverage['/base/data.js'].lineData[130] = 0; _$jscoverage['/base/data.js'].lineData[131] = 0; _$jscoverage['/base/data.js'].lineData[132] = 0; _$jscoverage['/base/data.js'].lineData[133] = 0; - _$jscoverage['/base/data.js'].lineData[136] = 0; - _$jscoverage['/base/data.js'].lineData[137] = 0; + _$jscoverage['/base/data.js'].lineData[134] = 0; + _$jscoverage['/base/data.js'].lineData[135] = 0; _$jscoverage['/base/data.js'].lineData[138] = 0; + _$jscoverage['/base/data.js'].lineData[139] = 0; _$jscoverage['/base/data.js'].lineData[140] = 0; _$jscoverage['/base/data.js'].lineData[142] = 0; - _$jscoverage['/base/data.js'].lineData[143] = 0; - _$jscoverage['/base/data.js'].lineData[150] = 0; - _$jscoverage['/base/data.js'].lineData[167] = 0; + _$jscoverage['/base/data.js'].lineData[144] = 0; + _$jscoverage['/base/data.js'].lineData[145] = 0; + _$jscoverage['/base/data.js'].lineData[152] = 0; _$jscoverage['/base/data.js'].lineData[169] = 0; - _$jscoverage['/base/data.js'].lineData[170] = 0; _$jscoverage['/base/data.js'].lineData[171] = 0; _$jscoverage['/base/data.js'].lineData[172] = 0; - _$jscoverage['/base/data.js'].lineData[175] = 0; + _$jscoverage['/base/data.js'].lineData[173] = 0; + _$jscoverage['/base/data.js'].lineData[174] = 0; _$jscoverage['/base/data.js'].lineData[177] = 0; - _$jscoverage['/base/data.js'].lineData[178] = 0; - _$jscoverage['/base/data.js'].lineData[181] = 0; - _$jscoverage['/base/data.js'].lineData[196] = 0; - _$jscoverage['/base/data.js'].lineData[199] = 0; - _$jscoverage['/base/data.js'].lineData[200] = 0; + _$jscoverage['/base/data.js'].lineData[179] = 0; + _$jscoverage['/base/data.js'].lineData[180] = 0; + _$jscoverage['/base/data.js'].lineData[183] = 0; + _$jscoverage['/base/data.js'].lineData[198] = 0; _$jscoverage['/base/data.js'].lineData[201] = 0; + _$jscoverage['/base/data.js'].lineData[202] = 0; _$jscoverage['/base/data.js'].lineData[203] = 0; - _$jscoverage['/base/data.js'].lineData[207] = 0; - _$jscoverage['/base/data.js'].lineData[208] = 0; + _$jscoverage['/base/data.js'].lineData[205] = 0; _$jscoverage['/base/data.js'].lineData[209] = 0; _$jscoverage['/base/data.js'].lineData[210] = 0; - _$jscoverage['/base/data.js'].lineData[213] = 0; - _$jscoverage['/base/data.js'].lineData[219] = 0; - _$jscoverage['/base/data.js'].lineData[220] = 0; + _$jscoverage['/base/data.js'].lineData[211] = 0; + _$jscoverage['/base/data.js'].lineData[212] = 0; + _$jscoverage['/base/data.js'].lineData[215] = 0; _$jscoverage['/base/data.js'].lineData[221] = 0; _$jscoverage['/base/data.js'].lineData[222] = 0; - _$jscoverage['/base/data.js'].lineData[225] = 0; - _$jscoverage['/base/data.js'].lineData[229] = 0; - _$jscoverage['/base/data.js'].lineData[240] = 0; - _$jscoverage['/base/data.js'].lineData[241] = 0; + _$jscoverage['/base/data.js'].lineData[223] = 0; + _$jscoverage['/base/data.js'].lineData[224] = 0; + _$jscoverage['/base/data.js'].lineData[227] = 0; + _$jscoverage['/base/data.js'].lineData[231] = 0; _$jscoverage['/base/data.js'].lineData[242] = 0; _$jscoverage['/base/data.js'].lineData[243] = 0; _$jscoverage['/base/data.js'].lineData[244] = 0; - _$jscoverage['/base/data.js'].lineData[247] = 0; - _$jscoverage['/base/data.js'].lineData[257] = 0; - _$jscoverage['/base/data.js'].lineData[258] = 0; + _$jscoverage['/base/data.js'].lineData[245] = 0; + _$jscoverage['/base/data.js'].lineData[246] = 0; + _$jscoverage['/base/data.js'].lineData[249] = 0; _$jscoverage['/base/data.js'].lineData[259] = 0; _$jscoverage['/base/data.js'].lineData[260] = 0; _$jscoverage['/base/data.js'].lineData[261] = 0; @@ -341,10 +339,13 @@ if (! _$jscoverage['/base/data.js']) { _$jscoverage['/base/data.js'].lineData[263] = 0; _$jscoverage['/base/data.js'].lineData[264] = 0; _$jscoverage['/base/data.js'].lineData[265] = 0; + _$jscoverage['/base/data.js'].lineData[266] = 0; _$jscoverage['/base/data.js'].lineData[267] = 0; _$jscoverage['/base/data.js'].lineData[268] = 0; - _$jscoverage['/base/data.js'].lineData[272] = 0; - _$jscoverage['/base/data.js'].lineData[278] = 0; + _$jscoverage['/base/data.js'].lineData[270] = 0; + _$jscoverage['/base/data.js'].lineData[271] = 0; + _$jscoverage['/base/data.js'].lineData[275] = 0; + _$jscoverage['/base/data.js'].lineData[281] = 0; } if (! _$jscoverage['/base/data.js'].functionData) { _$jscoverage['/base/data.js'].functionData = []; @@ -363,603 +364,611 @@ if (! _$jscoverage['/base/data.js'].functionData) { } if (! _$jscoverage['/base/data.js'].branchData) { _$jscoverage['/base/data.js'].branchData = {}; - _$jscoverage['/base/data.js'].branchData['21'] = []; - _$jscoverage['/base/data.js'].branchData['21'][1] = new BranchData(); - _$jscoverage['/base/data.js'].branchData['22'] = []; - _$jscoverage['/base/data.js'].branchData['22'][1] = new BranchData(); _$jscoverage['/base/data.js'].branchData['23'] = []; _$jscoverage['/base/data.js'].branchData['23'][1] = new BranchData(); - _$jscoverage['/base/data.js'].branchData['26'] = []; - _$jscoverage['/base/data.js'].branchData['26'][1] = new BranchData(); - _$jscoverage['/base/data.js'].branchData['37'] = []; - _$jscoverage['/base/data.js'].branchData['37'][1] = new BranchData(); - _$jscoverage['/base/data.js'].branchData['46'] = []; - _$jscoverage['/base/data.js'].branchData['46'][1] = new BranchData(); - _$jscoverage['/base/data.js'].branchData['50'] = []; - _$jscoverage['/base/data.js'].branchData['50'][1] = new BranchData(); - _$jscoverage['/base/data.js'].branchData['51'] = []; - _$jscoverage['/base/data.js'].branchData['51'][1] = new BranchData(); - _$jscoverage['/base/data.js'].branchData['54'] = []; - _$jscoverage['/base/data.js'].branchData['54'][1] = new BranchData(); - _$jscoverage['/base/data.js'].branchData['55'] = []; - _$jscoverage['/base/data.js'].branchData['55'][1] = new BranchData(); + _$jscoverage['/base/data.js'].branchData['24'] = []; + _$jscoverage['/base/data.js'].branchData['24'][1] = new BranchData(); + _$jscoverage['/base/data.js'].branchData['25'] = []; + _$jscoverage['/base/data.js'].branchData['25'][1] = new BranchData(); + _$jscoverage['/base/data.js'].branchData['28'] = []; + _$jscoverage['/base/data.js'].branchData['28'][1] = new BranchData(); + _$jscoverage['/base/data.js'].branchData['39'] = []; + _$jscoverage['/base/data.js'].branchData['39'][1] = new BranchData(); + _$jscoverage['/base/data.js'].branchData['48'] = []; + _$jscoverage['/base/data.js'].branchData['48'][1] = new BranchData(); + _$jscoverage['/base/data.js'].branchData['52'] = []; + _$jscoverage['/base/data.js'].branchData['52'][1] = new BranchData(); + _$jscoverage['/base/data.js'].branchData['53'] = []; + _$jscoverage['/base/data.js'].branchData['53'][1] = new BranchData(); + _$jscoverage['/base/data.js'].branchData['56'] = []; + _$jscoverage['/base/data.js'].branchData['56'][1] = new BranchData(); _$jscoverage['/base/data.js'].branchData['57'] = []; _$jscoverage['/base/data.js'].branchData['57'][1] = new BranchData(); - _$jscoverage['/base/data.js'].branchData['63'] = []; - _$jscoverage['/base/data.js'].branchData['63'][1] = new BranchData(); - _$jscoverage['/base/data.js'].branchData['67'] = []; - _$jscoverage['/base/data.js'].branchData['67'][1] = new BranchData(); + _$jscoverage['/base/data.js'].branchData['59'] = []; + _$jscoverage['/base/data.js'].branchData['59'][1] = new BranchData(); + _$jscoverage['/base/data.js'].branchData['65'] = []; + _$jscoverage['/base/data.js'].branchData['65'][1] = new BranchData(); _$jscoverage['/base/data.js'].branchData['69'] = []; _$jscoverage['/base/data.js'].branchData['69'][1] = new BranchData(); - _$jscoverage['/base/data.js'].branchData['87'] = []; - _$jscoverage['/base/data.js'].branchData['87'][1] = new BranchData(); - _$jscoverage['/base/data.js'].branchData['95'] = []; - _$jscoverage['/base/data.js'].branchData['95'][1] = new BranchData(); - _$jscoverage['/base/data.js'].branchData['99'] = []; - _$jscoverage['/base/data.js'].branchData['99'][1] = new BranchData(); + _$jscoverage['/base/data.js'].branchData['71'] = []; + _$jscoverage['/base/data.js'].branchData['71'][1] = new BranchData(); + _$jscoverage['/base/data.js'].branchData['89'] = []; + _$jscoverage['/base/data.js'].branchData['89'][1] = new BranchData(); + _$jscoverage['/base/data.js'].branchData['97'] = []; + _$jscoverage['/base/data.js'].branchData['97'][1] = new BranchData(); _$jscoverage['/base/data.js'].branchData['101'] = []; _$jscoverage['/base/data.js'].branchData['101'][1] = new BranchData(); - _$jscoverage['/base/data.js'].branchData['101'][2] = new BranchData(); - _$jscoverage['/base/data.js'].branchData['102'] = []; - _$jscoverage['/base/data.js'].branchData['102'][1] = new BranchData(); - _$jscoverage['/base/data.js'].branchData['109'] = []; - _$jscoverage['/base/data.js'].branchData['109'][1] = new BranchData(); + _$jscoverage['/base/data.js'].branchData['103'] = []; + _$jscoverage['/base/data.js'].branchData['103'][1] = new BranchData(); + _$jscoverage['/base/data.js'].branchData['103'][2] = new BranchData(); + _$jscoverage['/base/data.js'].branchData['104'] = []; + _$jscoverage['/base/data.js'].branchData['104'][1] = new BranchData(); _$jscoverage['/base/data.js'].branchData['111'] = []; _$jscoverage['/base/data.js'].branchData['111'][1] = new BranchData(); - _$jscoverage['/base/data.js'].branchData['114'] = []; - _$jscoverage['/base/data.js'].branchData['114'][1] = new BranchData(); - _$jscoverage['/base/data.js'].branchData['115'] = []; - _$jscoverage['/base/data.js'].branchData['115'][1] = new BranchData(); - _$jscoverage['/base/data.js'].branchData['118'] = []; - _$jscoverage['/base/data.js'].branchData['118'][1] = new BranchData(); - _$jscoverage['/base/data.js'].branchData['126'] = []; - _$jscoverage['/base/data.js'].branchData['126'][1] = new BranchData(); - _$jscoverage['/base/data.js'].branchData['130'] = []; - _$jscoverage['/base/data.js'].branchData['130'][1] = new BranchData(); + _$jscoverage['/base/data.js'].branchData['113'] = []; + _$jscoverage['/base/data.js'].branchData['113'][1] = new BranchData(); + _$jscoverage['/base/data.js'].branchData['116'] = []; + _$jscoverage['/base/data.js'].branchData['116'][1] = new BranchData(); + _$jscoverage['/base/data.js'].branchData['117'] = []; + _$jscoverage['/base/data.js'].branchData['117'][1] = new BranchData(); + _$jscoverage['/base/data.js'].branchData['120'] = []; + _$jscoverage['/base/data.js'].branchData['120'][1] = new BranchData(); + _$jscoverage['/base/data.js'].branchData['128'] = []; + _$jscoverage['/base/data.js'].branchData['128'][1] = new BranchData(); _$jscoverage['/base/data.js'].branchData['132'] = []; _$jscoverage['/base/data.js'].branchData['132'][1] = new BranchData(); - _$jscoverage['/base/data.js'].branchData['142'] = []; - _$jscoverage['/base/data.js'].branchData['142'][1] = new BranchData(); - _$jscoverage['/base/data.js'].branchData['169'] = []; - _$jscoverage['/base/data.js'].branchData['169'][1] = new BranchData(); + _$jscoverage['/base/data.js'].branchData['134'] = []; + _$jscoverage['/base/data.js'].branchData['134'][1] = new BranchData(); + _$jscoverage['/base/data.js'].branchData['144'] = []; + _$jscoverage['/base/data.js'].branchData['144'][1] = new BranchData(); _$jscoverage['/base/data.js'].branchData['171'] = []; _$jscoverage['/base/data.js'].branchData['171'][1] = new BranchData(); - _$jscoverage['/base/data.js'].branchData['177'] = []; - _$jscoverage['/base/data.js'].branchData['177'][1] = new BranchData(); - _$jscoverage['/base/data.js'].branchData['199'] = []; - _$jscoverage['/base/data.js'].branchData['199'][1] = new BranchData(); - _$jscoverage['/base/data.js'].branchData['207'] = []; - _$jscoverage['/base/data.js'].branchData['207'][1] = new BranchData(); - _$jscoverage['/base/data.js'].branchData['208'] = []; - _$jscoverage['/base/data.js'].branchData['208'][1] = new BranchData(); + _$jscoverage['/base/data.js'].branchData['173'] = []; + _$jscoverage['/base/data.js'].branchData['173'][1] = new BranchData(); + _$jscoverage['/base/data.js'].branchData['179'] = []; + _$jscoverage['/base/data.js'].branchData['179'][1] = new BranchData(); + _$jscoverage['/base/data.js'].branchData['201'] = []; + _$jscoverage['/base/data.js'].branchData['201'][1] = new BranchData(); _$jscoverage['/base/data.js'].branchData['209'] = []; _$jscoverage['/base/data.js'].branchData['209'][1] = new BranchData(); - _$jscoverage['/base/data.js'].branchData['219'] = []; - _$jscoverage['/base/data.js'].branchData['219'][1] = new BranchData(); + _$jscoverage['/base/data.js'].branchData['210'] = []; + _$jscoverage['/base/data.js'].branchData['210'][1] = new BranchData(); + _$jscoverage['/base/data.js'].branchData['211'] = []; + _$jscoverage['/base/data.js'].branchData['211'][1] = new BranchData(); _$jscoverage['/base/data.js'].branchData['221'] = []; _$jscoverage['/base/data.js'].branchData['221'][1] = new BranchData(); - _$jscoverage['/base/data.js'].branchData['241'] = []; - _$jscoverage['/base/data.js'].branchData['241'][1] = new BranchData(); + _$jscoverage['/base/data.js'].branchData['223'] = []; + _$jscoverage['/base/data.js'].branchData['223'][1] = new BranchData(); _$jscoverage['/base/data.js'].branchData['243'] = []; _$jscoverage['/base/data.js'].branchData['243'][1] = new BranchData(); - _$jscoverage['/base/data.js'].branchData['259'] = []; - _$jscoverage['/base/data.js'].branchData['259'][1] = new BranchData(); + _$jscoverage['/base/data.js'].branchData['245'] = []; + _$jscoverage['/base/data.js'].branchData['245'][1] = new BranchData(); _$jscoverage['/base/data.js'].branchData['261'] = []; _$jscoverage['/base/data.js'].branchData['261'][1] = new BranchData(); _$jscoverage['/base/data.js'].branchData['262'] = []; _$jscoverage['/base/data.js'].branchData['262'][1] = new BranchData(); - _$jscoverage['/base/data.js'].branchData['262'][2] = new BranchData(); _$jscoverage['/base/data.js'].branchData['264'] = []; _$jscoverage['/base/data.js'].branchData['264'][1] = new BranchData(); + _$jscoverage['/base/data.js'].branchData['265'] = []; + _$jscoverage['/base/data.js'].branchData['265'][1] = new BranchData(); + _$jscoverage['/base/data.js'].branchData['265'][2] = new BranchData(); _$jscoverage['/base/data.js'].branchData['267'] = []; _$jscoverage['/base/data.js'].branchData['267'][1] = new BranchData(); + _$jscoverage['/base/data.js'].branchData['270'] = []; + _$jscoverage['/base/data.js'].branchData['270'][1] = new BranchData(); } -_$jscoverage['/base/data.js'].branchData['267'][1].init(349, 8, 'DOMEvent'); -function visit229_267_1(result) { +_$jscoverage['/base/data.js'].branchData['270'][1].init(349, 27, 'DOMEvent && DOMEvent.detach'); +function visit231_270_1(result) { + _$jscoverage['/base/data.js'].branchData['270'][1].ranCondition(result); + return result; +}_$jscoverage['/base/data.js'].branchData['267'][1].init(216, 7, 'j < len'); +function visit230_267_1(result) { _$jscoverage['/base/data.js'].branchData['267'][1].ranCondition(result); return result; -}_$jscoverage['/base/data.js'].branchData['264'][1].init(216, 7, 'j < len'); -function visit228_264_1(result) { - _$jscoverage['/base/data.js'].branchData['264'][1].ranCondition(result); +}_$jscoverage['/base/data.js'].branchData['265'][2].init(43, 51, 'deep && S.makeArray(elem.getElementsByTagName(\'*\'))'); +function visit229_265_2(result) { + _$jscoverage['/base/data.js'].branchData['265'][2].ranCondition(result); return result; -}_$jscoverage['/base/data.js'].branchData['262'][2].init(43, 51, 'deep && S.makeArray(elem.getElementsByTagName(\'*\'))'); -function visit227_262_2(result) { - _$jscoverage['/base/data.js'].branchData['262'][2].ranCondition(result); +}_$jscoverage['/base/data.js'].branchData['265'][1].init(43, 57, 'deep && S.makeArray(elem.getElementsByTagName(\'*\')) || []'); +function visit228_265_1(result) { + _$jscoverage['/base/data.js'].branchData['265'][1].ranCondition(result); + return result; +}_$jscoverage['/base/data.js'].branchData['264'][1].init(60, 13, 'elem.nodeType'); +function visit227_264_1(result) { + _$jscoverage['/base/data.js'].branchData['264'][1].ranCondition(result); return result; -}_$jscoverage['/base/data.js'].branchData['262'][1].init(43, 57, 'deep && S.makeArray(elem.getElementsByTagName(\'*\')) || []'); +}_$jscoverage['/base/data.js'].branchData['262'][1].init(216, 6, 'i >= 0'); function visit226_262_1(result) { _$jscoverage['/base/data.js'].branchData['262'][1].ranCondition(result); return result; -}_$jscoverage['/base/data.js'].branchData['261'][1].init(60, 13, 'elem.nodeType'); +}_$jscoverage['/base/data.js'].branchData['261'][1].init(145, 28, 'DOMEvent && DOMEvent.exports'); function visit225_261_1(result) { _$jscoverage['/base/data.js'].branchData['261'][1].ranCondition(result); return result; -}_$jscoverage['/base/data.js'].branchData['259'][1].init(153, 6, 'i >= 0'); -function visit224_259_1(result) { - _$jscoverage['/base/data.js'].branchData['259'][1].ranCondition(result); +}_$jscoverage['/base/data.js'].branchData['245'][1].init(60, 13, 'elem.nodeType'); +function visit224_245_1(result) { + _$jscoverage['/base/data.js'].branchData['245'][1].ranCondition(result); return result; -}_$jscoverage['/base/data.js'].branchData['243'][1].init(60, 13, 'elem.nodeType'); +}_$jscoverage['/base/data.js'].branchData['243'][1].init(98, 6, 'i >= 0'); function visit223_243_1(result) { _$jscoverage['/base/data.js'].branchData['243'][1].ranCondition(result); return result; -}_$jscoverage['/base/data.js'].branchData['241'][1].init(98, 6, 'i >= 0'); -function visit222_241_1(result) { - _$jscoverage['/base/data.js'].branchData['241'][1].ranCondition(result); +}_$jscoverage['/base/data.js'].branchData['223'][1].init(70, 13, 'elem.nodeType'); +function visit222_223_1(result) { + _$jscoverage['/base/data.js'].branchData['223'][1].ranCondition(result); return result; -}_$jscoverage['/base/data.js'].branchData['221'][1].init(70, 13, 'elem.nodeType'); +}_$jscoverage['/base/data.js'].branchData['221'][1].init(52, 6, 'i >= 0'); function visit221_221_1(result) { _$jscoverage['/base/data.js'].branchData['221'][1].ranCondition(result); return result; -}_$jscoverage['/base/data.js'].branchData['219'][1].init(52, 6, 'i >= 0'); -function visit220_219_1(result) { - _$jscoverage['/base/data.js'].branchData['219'][1].ranCondition(result); +}_$jscoverage['/base/data.js'].branchData['211'][1].init(29, 13, 'elem.nodeType'); +function visit220_211_1(result) { + _$jscoverage['/base/data.js'].branchData['211'][1].ranCondition(result); return result; -}_$jscoverage['/base/data.js'].branchData['209'][1].init(29, 13, 'elem.nodeType'); -function visit219_209_1(result) { - _$jscoverage['/base/data.js'].branchData['209'][1].ranCondition(result); +}_$jscoverage['/base/data.js'].branchData['210'][1].init(25, 4, 'elem'); +function visit219_210_1(result) { + _$jscoverage['/base/data.js'].branchData['210'][1].ranCondition(result); return result; -}_$jscoverage['/base/data.js'].branchData['208'][1].init(25, 4, 'elem'); -function visit218_208_1(result) { - _$jscoverage['/base/data.js'].branchData['208'][1].ranCondition(result); +}_$jscoverage['/base/data.js'].branchData['209'][1].init(366, 18, 'data === undefined'); +function visit218_209_1(result) { + _$jscoverage['/base/data.js'].branchData['209'][1].ranCondition(result); return result; -}_$jscoverage['/base/data.js'].branchData['207'][1].init(366, 18, 'data === undefined'); -function visit217_207_1(result) { - _$jscoverage['/base/data.js'].branchData['207'][1].ranCondition(result); +}_$jscoverage['/base/data.js'].branchData['201'][1].init(121, 21, 'S.isPlainObject(name)'); +function visit217_201_1(result) { + _$jscoverage['/base/data.js'].branchData['201'][1].ranCondition(result); return result; -}_$jscoverage['/base/data.js'].branchData['199'][1].init(121, 21, 'S.isPlainObject(name)'); -function visit216_199_1(result) { - _$jscoverage['/base/data.js'].branchData['199'][1].ranCondition(result); +}_$jscoverage['/base/data.js'].branchData['179'][1].init(311, 3, 'ret'); +function visit216_179_1(result) { + _$jscoverage['/base/data.js'].branchData['179'][1].ranCondition(result); return result; -}_$jscoverage['/base/data.js'].branchData['177'][1].init(311, 3, 'ret'); -function visit215_177_1(result) { - _$jscoverage['/base/data.js'].branchData['177'][1].ranCondition(result); +}_$jscoverage['/base/data.js'].branchData['173'][1].init(66, 13, 'elem.nodeType'); +function visit215_173_1(result) { + _$jscoverage['/base/data.js'].branchData['173'][1].ranCondition(result); return result; -}_$jscoverage['/base/data.js'].branchData['171'][1].init(66, 13, 'elem.nodeType'); +}_$jscoverage['/base/data.js'].branchData['171'][1].init(115, 16, 'i < elems.length'); function visit214_171_1(result) { _$jscoverage['/base/data.js'].branchData['171'][1].ranCondition(result); return result; -}_$jscoverage['/base/data.js'].branchData['169'][1].init(115, 16, 'i < elems.length'); -function visit213_169_1(result) { - _$jscoverage['/base/data.js'].branchData['169'][1].ranCondition(result); +}_$jscoverage['/base/data.js'].branchData['144'][1].init(219, 20, 'elem.removeAttribute'); +function visit213_144_1(result) { + _$jscoverage['/base/data.js'].branchData['144'][1].ranCondition(result); return result; -}_$jscoverage['/base/data.js'].branchData['142'][1].init(219, 20, 'elem.removeAttribute'); -function visit212_142_1(result) { - _$jscoverage['/base/data.js'].branchData['142'][1].ranCondition(result); +}_$jscoverage['/base/data.js'].branchData['134'][1].init(57, 22, 'S.isEmptyObject(cache)'); +function visit212_134_1(result) { + _$jscoverage['/base/data.js'].branchData['134'][1].ranCondition(result); return result; -}_$jscoverage['/base/data.js'].branchData['132'][1].init(57, 22, 'S.isEmptyObject(cache)'); +}_$jscoverage['/base/data.js'].branchData['132'][1].init(159, 18, 'name !== undefined'); function visit211_132_1(result) { _$jscoverage['/base/data.js'].branchData['132'][1].ranCondition(result); return result; -}_$jscoverage['/base/data.js'].branchData['130'][1].init(159, 18, 'name !== undefined'); -function visit210_130_1(result) { - _$jscoverage['/base/data.js'].branchData['130'][1].ranCondition(result); +}_$jscoverage['/base/data.js'].branchData['128'][1].init(61, 4, '!key'); +function visit210_128_1(result) { + _$jscoverage['/base/data.js'].branchData['128'][1].ranCondition(result); return result; -}_$jscoverage['/base/data.js'].branchData['126'][1].init(61, 4, '!key'); -function visit209_126_1(result) { - _$jscoverage['/base/data.js'].branchData['126'][1].ranCondition(result); +}_$jscoverage['/base/data.js'].branchData['120'][1].init(74, 20, 'dataCache[key] || {}'); +function visit209_120_1(result) { + _$jscoverage['/base/data.js'].branchData['120'][1].ranCondition(result); return result; -}_$jscoverage['/base/data.js'].branchData['118'][1].init(74, 20, 'dataCache[key] || {}'); -function visit208_118_1(result) { - _$jscoverage['/base/data.js'].branchData['118'][1].ranCondition(result); +}_$jscoverage['/base/data.js'].branchData['117'][1].init(28, 20, 'cache && cache[name]'); +function visit208_117_1(result) { + _$jscoverage['/base/data.js'].branchData['117'][1].ranCondition(result); return result; -}_$jscoverage['/base/data.js'].branchData['115'][1].init(28, 20, 'cache && cache[name]'); -function visit207_115_1(result) { - _$jscoverage['/base/data.js'].branchData['115'][1].ranCondition(result); +}_$jscoverage['/base/data.js'].branchData['116'][1].init(21, 18, 'name !== undefined'); +function visit207_116_1(result) { + _$jscoverage['/base/data.js'].branchData['116'][1].ranCondition(result); return result; -}_$jscoverage['/base/data.js'].branchData['114'][1].init(21, 18, 'name !== undefined'); -function visit206_114_1(result) { - _$jscoverage['/base/data.js'].branchData['114'][1].ranCondition(result); +}_$jscoverage['/base/data.js'].branchData['113'][1].init(66, 20, 'dataCache[key] || {}'); +function visit206_113_1(result) { + _$jscoverage['/base/data.js'].branchData['113'][1].ranCondition(result); return result; -}_$jscoverage['/base/data.js'].branchData['111'][1].init(66, 20, 'dataCache[key] || {}'); +}_$jscoverage['/base/data.js'].branchData['111'][1].init(485, 19, 'value !== undefined'); function visit205_111_1(result) { _$jscoverage['/base/data.js'].branchData['111'][1].ranCondition(result); return result; -}_$jscoverage['/base/data.js'].branchData['109'][1].init(485, 19, 'value !== undefined'); -function visit204_109_1(result) { - _$jscoverage['/base/data.js'].branchData['109'][1].ranCondition(result); +}_$jscoverage['/base/data.js'].branchData['104'][1].init(41, 19, 'value === undefined'); +function visit204_104_1(result) { + _$jscoverage['/base/data.js'].branchData['104'][1].ranCondition(result); return result; -}_$jscoverage['/base/data.js'].branchData['102'][1].init(41, 19, 'value === undefined'); -function visit203_102_1(result) { - _$jscoverage['/base/data.js'].branchData['102'][1].ranCondition(result); +}_$jscoverage['/base/data.js'].branchData['103'][2].init(49, 18, 'name !== undefined'); +function visit203_103_2(result) { + _$jscoverage['/base/data.js'].branchData['103'][2].ranCondition(result); return result; -}_$jscoverage['/base/data.js'].branchData['101'][2].init(49, 18, 'name !== undefined'); -function visit202_101_2(result) { - _$jscoverage['/base/data.js'].branchData['101'][2].ranCondition(result); +}_$jscoverage['/base/data.js'].branchData['103'][1].init(49, 61, 'name !== undefined && value === undefined'); +function visit202_103_1(result) { + _$jscoverage['/base/data.js'].branchData['103'][1].ranCondition(result); return result; -}_$jscoverage['/base/data.js'].branchData['101'][1].init(49, 61, 'name !== undefined && value === undefined'); +}_$jscoverage['/base/data.js'].branchData['101'][1].init(164, 4, '!key'); function visit201_101_1(result) { _$jscoverage['/base/data.js'].branchData['101'][1].ranCondition(result); return result; -}_$jscoverage['/base/data.js'].branchData['99'][1].init(164, 4, '!key'); -function visit200_99_1(result) { - _$jscoverage['/base/data.js'].branchData['99'][1].ranCondition(result); +}_$jscoverage['/base/data.js'].branchData['97'][1].init(17, 35, 'noData[elem.nodeName.toLowerCase()]'); +function visit200_97_1(result) { + _$jscoverage['/base/data.js'].branchData['97'][1].ranCondition(result); return result; -}_$jscoverage['/base/data.js'].branchData['95'][1].init(17, 35, 'noData[elem.nodeName.toLowerCase()]'); -function visit199_95_1(result) { - _$jscoverage['/base/data.js'].branchData['95'][1].ranCondition(result); +}_$jscoverage['/base/data.js'].branchData['89'][1].init(54, 4, '!key'); +function visit199_89_1(result) { + _$jscoverage['/base/data.js'].branchData['89'][1].ranCondition(result); return result; -}_$jscoverage['/base/data.js'].branchData['87'][1].init(54, 4, '!key'); -function visit198_87_1(result) { - _$jscoverage['/base/data.js'].branchData['87'][1].ranCondition(result); +}_$jscoverage['/base/data.js'].branchData['71'][1].init(57, 22, 'S.isEmptyObject(cache)'); +function visit198_71_1(result) { + _$jscoverage['/base/data.js'].branchData['71'][1].ranCondition(result); return result; -}_$jscoverage['/base/data.js'].branchData['69'][1].init(57, 22, 'S.isEmptyObject(cache)'); +}_$jscoverage['/base/data.js'].branchData['69'][1].init(162, 18, 'name !== undefined'); function visit197_69_1(result) { _$jscoverage['/base/data.js'].branchData['69'][1].ranCondition(result); return result; -}_$jscoverage['/base/data.js'].branchData['67'][1].init(163, 18, 'name !== undefined'); -function visit196_67_1(result) { - _$jscoverage['/base/data.js'].branchData['67'][1].ranCondition(result); +}_$jscoverage['/base/data.js'].branchData['65'][1].init(17, 9, 'ob == win'); +function visit196_65_1(result) { + _$jscoverage['/base/data.js'].branchData['65'][1].ranCondition(result); return result; -}_$jscoverage['/base/data.js'].branchData['63'][1].init(17, 10, 'ob === win'); -function visit195_63_1(result) { - _$jscoverage['/base/data.js'].branchData['63'][1].ranCondition(result); +}_$jscoverage['/base/data.js'].branchData['59'][1].init(43, 17, 'ob[EXPANDO] || {}'); +function visit195_59_1(result) { + _$jscoverage['/base/data.js'].branchData['59'][1].ranCondition(result); return result; -}_$jscoverage['/base/data.js'].branchData['57'][1].init(43, 17, 'ob[EXPANDO] || {}'); +}_$jscoverage['/base/data.js'].branchData['57'][1].init(28, 20, 'cache && cache[name]'); function visit194_57_1(result) { _$jscoverage['/base/data.js'].branchData['57'][1].ranCondition(result); return result; -}_$jscoverage['/base/data.js'].branchData['55'][1].init(28, 20, 'cache && cache[name]'); -function visit193_55_1(result) { - _$jscoverage['/base/data.js'].branchData['55'][1].ranCondition(result); - return result; -}_$jscoverage['/base/data.js'].branchData['54'][1].init(21, 18, 'name !== undefined'); -function visit192_54_1(result) { - _$jscoverage['/base/data.js'].branchData['54'][1].ranCondition(result); +}_$jscoverage['/base/data.js'].branchData['56'][1].init(21, 18, 'name !== undefined'); +function visit193_56_1(result) { + _$jscoverage['/base/data.js'].branchData['56'][1].ranCondition(result); return result; -}_$jscoverage['/base/data.js'].branchData['51'][1].init(39, 17, 'ob[EXPANDO] || {}'); -function visit191_51_1(result) { - _$jscoverage['/base/data.js'].branchData['51'][1].ranCondition(result); +}_$jscoverage['/base/data.js'].branchData['53'][1].init(39, 17, 'ob[EXPANDO] || {}'); +function visit192_53_1(result) { + _$jscoverage['/base/data.js'].branchData['53'][1].ranCondition(result); return result; -}_$jscoverage['/base/data.js'].branchData['50'][1].init(164, 19, 'value !== undefined'); -function visit190_50_1(result) { - _$jscoverage['/base/data.js'].branchData['50'][1].ranCondition(result); +}_$jscoverage['/base/data.js'].branchData['52'][1].init(163, 19, 'value !== undefined'); +function visit191_52_1(result) { + _$jscoverage['/base/data.js'].branchData['52'][1].ranCondition(result); return result; -}_$jscoverage['/base/data.js'].branchData['46'][1].init(17, 10, 'ob === win'); -function visit189_46_1(result) { - _$jscoverage['/base/data.js'].branchData['46'][1].ranCondition(result); +}_$jscoverage['/base/data.js'].branchData['48'][1].init(17, 9, 'ob == win'); +function visit190_48_1(result) { + _$jscoverage['/base/data.js'].branchData['48'][1].ranCondition(result); return result; -}_$jscoverage['/base/data.js'].branchData['37'][1].init(61, 10, 'ob === win'); -function visit188_37_1(result) { - _$jscoverage['/base/data.js'].branchData['37'][1].ranCondition(result); +}_$jscoverage['/base/data.js'].branchData['39'][1].init(61, 9, 'ob == win'); +function visit189_39_1(result) { + _$jscoverage['/base/data.js'].branchData['39'][1].ranCondition(result); return result; -}_$jscoverage['/base/data.js'].branchData['26'][1].init(171, 23, '!S.isEmptyObject(cache)'); -function visit187_26_1(result) { - _$jscoverage['/base/data.js'].branchData['26'][1].ranCondition(result); +}_$jscoverage['/base/data.js'].branchData['28'][1].init(171, 23, '!S.isEmptyObject(cache)'); +function visit188_28_1(result) { + _$jscoverage['/base/data.js'].branchData['28'][1].ranCondition(result); return result; -}_$jscoverage['/base/data.js'].branchData['23'][1].init(25, 13, 'name in cache'); -function visit186_23_1(result) { - _$jscoverage['/base/data.js'].branchData['23'][1].ranCondition(result); +}_$jscoverage['/base/data.js'].branchData['25'][1].init(25, 13, 'name in cache'); +function visit187_25_1(result) { + _$jscoverage['/base/data.js'].branchData['25'][1].ranCondition(result); return result; -}_$jscoverage['/base/data.js'].branchData['22'][1].init(21, 18, 'name !== undefined'); -function visit185_22_1(result) { - _$jscoverage['/base/data.js'].branchData['22'][1].ranCondition(result); +}_$jscoverage['/base/data.js'].branchData['24'][1].init(21, 18, 'name !== undefined'); +function visit186_24_1(result) { + _$jscoverage['/base/data.js'].branchData['24'][1].ranCondition(result); return result; -}_$jscoverage['/base/data.js'].branchData['21'][1].init(17, 5, 'cache'); -function visit184_21_1(result) { - _$jscoverage['/base/data.js'].branchData['21'][1].ranCondition(result); +}_$jscoverage['/base/data.js'].branchData['23'][1].init(17, 5, 'cache'); +function visit185_23_1(result) { + _$jscoverage['/base/data.js'].branchData['23'][1].ranCondition(result); return result; }_$jscoverage['/base/data.js'].lineData[6]++; KISSY.add(function(S, require) { _$jscoverage['/base/data.js'].functionData[0]++; - _$jscoverage['/base/data.js'].lineData[7]++; + _$jscoverage['/base/data.js'].lineData[9]++; var Dom = require('./api'); - _$jscoverage['/base/data.js'].lineData[8]++; + _$jscoverage['/base/data.js'].lineData[10]++; var win = S.Env.host, EXPANDO = '_ks_data_' + S.now(), dataCache = {}, winDataCache = {}, noData = { applet: 1, object: 1, embed: 1}; - _$jscoverage['/base/data.js'].lineData[19]++; + _$jscoverage['/base/data.js'].lineData[21]++; var commonOps = { hasData: function(cache, name) { _$jscoverage['/base/data.js'].functionData[1]++; - _$jscoverage['/base/data.js'].lineData[21]++; - if (visit184_21_1(cache)) { - _$jscoverage['/base/data.js'].lineData[22]++; - if (visit185_22_1(name !== undefined)) { - _$jscoverage['/base/data.js'].lineData[23]++; - if (visit186_23_1(name in cache)) { - _$jscoverage['/base/data.js'].lineData[24]++; + _$jscoverage['/base/data.js'].lineData[23]++; + if (visit185_23_1(cache)) { + _$jscoverage['/base/data.js'].lineData[24]++; + if (visit186_24_1(name !== undefined)) { + _$jscoverage['/base/data.js'].lineData[25]++; + if (visit187_25_1(name in cache)) { + _$jscoverage['/base/data.js'].lineData[26]++; return true; } } else { - _$jscoverage['/base/data.js'].lineData[26]++; - if (visit187_26_1(!S.isEmptyObject(cache))) { - _$jscoverage['/base/data.js'].lineData[27]++; + _$jscoverage['/base/data.js'].lineData[28]++; + if (visit188_28_1(!S.isEmptyObject(cache))) { + _$jscoverage['/base/data.js'].lineData[29]++; return true; } } } - _$jscoverage['/base/data.js'].lineData[30]++; + _$jscoverage['/base/data.js'].lineData[32]++; return false; }}; - _$jscoverage['/base/data.js'].lineData[34]++; + _$jscoverage['/base/data.js'].lineData[36]++; var objectOps = { hasData: function(ob, name) { _$jscoverage['/base/data.js'].functionData[2]++; - _$jscoverage['/base/data.js'].lineData[37]++; - if (visit188_37_1(ob === win)) { - _$jscoverage['/base/data.js'].lineData[38]++; + _$jscoverage['/base/data.js'].lineData[39]++; + if (visit189_39_1(ob == win)) { + _$jscoverage['/base/data.js'].lineData[40]++; return objectOps.hasData(winDataCache, name); } - _$jscoverage['/base/data.js'].lineData[41]++; + _$jscoverage['/base/data.js'].lineData[43]++; var thisCache = ob[EXPANDO]; - _$jscoverage['/base/data.js'].lineData[42]++; + _$jscoverage['/base/data.js'].lineData[44]++; return commonOps.hasData(thisCache, name); }, data: function(ob, name, value) { _$jscoverage['/base/data.js'].functionData[3]++; - _$jscoverage['/base/data.js'].lineData[46]++; - if (visit189_46_1(ob === win)) { - _$jscoverage['/base/data.js'].lineData[47]++; + _$jscoverage['/base/data.js'].lineData[48]++; + if (visit190_48_1(ob == win)) { + _$jscoverage['/base/data.js'].lineData[49]++; return objectOps.data(winDataCache, name, value); } - _$jscoverage['/base/data.js'].lineData[49]++; + _$jscoverage['/base/data.js'].lineData[51]++; var cache = ob[EXPANDO]; - _$jscoverage['/base/data.js'].lineData[50]++; - if (visit190_50_1(value !== undefined)) { - _$jscoverage['/base/data.js'].lineData[51]++; - cache = ob[EXPANDO] = visit191_51_1(ob[EXPANDO] || {}); - _$jscoverage['/base/data.js'].lineData[52]++; + _$jscoverage['/base/data.js'].lineData[52]++; + if (visit191_52_1(value !== undefined)) { + _$jscoverage['/base/data.js'].lineData[53]++; + cache = ob[EXPANDO] = visit192_53_1(ob[EXPANDO] || {}); + _$jscoverage['/base/data.js'].lineData[54]++; cache[name] = value; } else { - _$jscoverage['/base/data.js'].lineData[54]++; - if (visit192_54_1(name !== undefined)) { - _$jscoverage['/base/data.js'].lineData[55]++; - return visit193_55_1(cache && cache[name]); - } else { + _$jscoverage['/base/data.js'].lineData[56]++; + if (visit193_56_1(name !== undefined)) { _$jscoverage['/base/data.js'].lineData[57]++; - cache = ob[EXPANDO] = visit194_57_1(ob[EXPANDO] || {}); - _$jscoverage['/base/data.js'].lineData[58]++; + return visit194_57_1(cache && cache[name]); + } else { + _$jscoverage['/base/data.js'].lineData[59]++; + cache = ob[EXPANDO] = visit195_59_1(ob[EXPANDO] || {}); + _$jscoverage['/base/data.js'].lineData[60]++; return cache; } } }, removeData: function(ob, name) { _$jscoverage['/base/data.js'].functionData[4]++; - _$jscoverage['/base/data.js'].lineData[63]++; - if (visit195_63_1(ob === win)) { - _$jscoverage['/base/data.js'].lineData[64]++; + _$jscoverage['/base/data.js'].lineData[65]++; + if (visit196_65_1(ob == win)) { + _$jscoverage['/base/data.js'].lineData[66]++; return objectOps.removeData(winDataCache, name); } - _$jscoverage['/base/data.js'].lineData[66]++; + _$jscoverage['/base/data.js'].lineData[68]++; var cache = ob[EXPANDO]; - _$jscoverage['/base/data.js'].lineData[67]++; - if (visit196_67_1(name !== undefined)) { - _$jscoverage['/base/data.js'].lineData[68]++; + _$jscoverage['/base/data.js'].lineData[69]++; + if (visit197_69_1(name !== undefined)) { + _$jscoverage['/base/data.js'].lineData[70]++; delete cache[name]; - _$jscoverage['/base/data.js'].lineData[69]++; - if (visit197_69_1(S.isEmptyObject(cache))) { - _$jscoverage['/base/data.js'].lineData[70]++; + _$jscoverage['/base/data.js'].lineData[71]++; + if (visit198_71_1(S.isEmptyObject(cache))) { + _$jscoverage['/base/data.js'].lineData[72]++; objectOps.removeData(ob); } } else { - _$jscoverage['/base/data.js'].lineData[73]++; + _$jscoverage['/base/data.js'].lineData[75]++; try { - _$jscoverage['/base/data.js'].lineData[76]++; + _$jscoverage['/base/data.js'].lineData[78]++; delete ob[EXPANDO]; } catch (e) { - _$jscoverage['/base/data.js'].lineData[78]++; + _$jscoverage['/base/data.js'].lineData[80]++; ob[EXPANDO] = undefined; } } }}; - _$jscoverage['/base/data.js'].lineData[84]++; + _$jscoverage['/base/data.js'].lineData[86]++; var domOps = { hasData: function(elem, name) { _$jscoverage['/base/data.js'].functionData[5]++; - _$jscoverage['/base/data.js'].lineData[86]++; + _$jscoverage['/base/data.js'].lineData[88]++; var key = elem[EXPANDO]; - _$jscoverage['/base/data.js'].lineData[87]++; - if (visit198_87_1(!key)) { - _$jscoverage['/base/data.js'].lineData[88]++; + _$jscoverage['/base/data.js'].lineData[89]++; + if (visit199_89_1(!key)) { + _$jscoverage['/base/data.js'].lineData[90]++; return false; } - _$jscoverage['/base/data.js'].lineData[90]++; + _$jscoverage['/base/data.js'].lineData[92]++; var thisCache = dataCache[key]; - _$jscoverage['/base/data.js'].lineData[91]++; + _$jscoverage['/base/data.js'].lineData[93]++; return commonOps.hasData(thisCache, name); }, data: function(elem, name, value) { _$jscoverage['/base/data.js'].functionData[6]++; - _$jscoverage['/base/data.js'].lineData[95]++; - if (visit199_95_1(noData[elem.nodeName.toLowerCase()])) { - _$jscoverage['/base/data.js'].lineData[96]++; + _$jscoverage['/base/data.js'].lineData[97]++; + if (visit200_97_1(noData[elem.nodeName.toLowerCase()])) { + _$jscoverage['/base/data.js'].lineData[98]++; return undefined; } - _$jscoverage['/base/data.js'].lineData[98]++; + _$jscoverage['/base/data.js'].lineData[100]++; var key = elem[EXPANDO], cache; - _$jscoverage['/base/data.js'].lineData[99]++; - if (visit200_99_1(!key)) { - _$jscoverage['/base/data.js'].lineData[101]++; - if (visit201_101_1(visit202_101_2(name !== undefined) && visit203_102_1(value === undefined))) { - _$jscoverage['/base/data.js'].lineData[103]++; + _$jscoverage['/base/data.js'].lineData[101]++; + if (visit201_101_1(!key)) { + _$jscoverage['/base/data.js'].lineData[103]++; + if (visit202_103_1(visit203_103_2(name !== undefined) && visit204_104_1(value === undefined))) { + _$jscoverage['/base/data.js'].lineData[105]++; return undefined; } - _$jscoverage['/base/data.js'].lineData[106]++; + _$jscoverage['/base/data.js'].lineData[108]++; key = elem[EXPANDO] = S.guid(); } - _$jscoverage['/base/data.js'].lineData[108]++; + _$jscoverage['/base/data.js'].lineData[110]++; cache = dataCache[key]; - _$jscoverage['/base/data.js'].lineData[109]++; - if (visit204_109_1(value !== undefined)) { - _$jscoverage['/base/data.js'].lineData[111]++; - cache = dataCache[key] = visit205_111_1(dataCache[key] || {}); - _$jscoverage['/base/data.js'].lineData[112]++; + _$jscoverage['/base/data.js'].lineData[111]++; + if (visit205_111_1(value !== undefined)) { + _$jscoverage['/base/data.js'].lineData[113]++; + cache = dataCache[key] = visit206_113_1(dataCache[key] || {}); + _$jscoverage['/base/data.js'].lineData[114]++; cache[name] = value; } else { - _$jscoverage['/base/data.js'].lineData[114]++; - if (visit206_114_1(name !== undefined)) { - _$jscoverage['/base/data.js'].lineData[115]++; - return visit207_115_1(cache && cache[name]); + _$jscoverage['/base/data.js'].lineData[116]++; + if (visit207_116_1(name !== undefined)) { + _$jscoverage['/base/data.js'].lineData[117]++; + return visit208_117_1(cache && cache[name]); } else { - _$jscoverage['/base/data.js'].lineData[118]++; - cache = dataCache[key] = visit208_118_1(dataCache[key] || {}); - _$jscoverage['/base/data.js'].lineData[119]++; + _$jscoverage['/base/data.js'].lineData[120]++; + cache = dataCache[key] = visit209_120_1(dataCache[key] || {}); + _$jscoverage['/base/data.js'].lineData[121]++; return cache; } } }, removeData: function(elem, name) { _$jscoverage['/base/data.js'].functionData[7]++; - _$jscoverage['/base/data.js'].lineData[125]++; + _$jscoverage['/base/data.js'].lineData[127]++; var key = elem[EXPANDO], cache; - _$jscoverage['/base/data.js'].lineData[126]++; - if (visit209_126_1(!key)) { - _$jscoverage['/base/data.js'].lineData[127]++; + _$jscoverage['/base/data.js'].lineData[128]++; + if (visit210_128_1(!key)) { + _$jscoverage['/base/data.js'].lineData[129]++; return; } - _$jscoverage['/base/data.js'].lineData[129]++; + _$jscoverage['/base/data.js'].lineData[131]++; cache = dataCache[key]; - _$jscoverage['/base/data.js'].lineData[130]++; - if (visit210_130_1(name !== undefined)) { - _$jscoverage['/base/data.js'].lineData[131]++; + _$jscoverage['/base/data.js'].lineData[132]++; + if (visit211_132_1(name !== undefined)) { + _$jscoverage['/base/data.js'].lineData[133]++; delete cache[name]; - _$jscoverage['/base/data.js'].lineData[132]++; - if (visit211_132_1(S.isEmptyObject(cache))) { - _$jscoverage['/base/data.js'].lineData[133]++; + _$jscoverage['/base/data.js'].lineData[134]++; + if (visit212_134_1(S.isEmptyObject(cache))) { + _$jscoverage['/base/data.js'].lineData[135]++; domOps.removeData(elem); } } else { - _$jscoverage['/base/data.js'].lineData[136]++; + _$jscoverage['/base/data.js'].lineData[138]++; delete dataCache[key]; - _$jscoverage['/base/data.js'].lineData[137]++; + _$jscoverage['/base/data.js'].lineData[139]++; try { - _$jscoverage['/base/data.js'].lineData[138]++; + _$jscoverage['/base/data.js'].lineData[140]++; delete elem[EXPANDO]; } catch (e) { - _$jscoverage['/base/data.js'].lineData[140]++; + _$jscoverage['/base/data.js'].lineData[142]++; elem[EXPANDO] = undefined; } - _$jscoverage['/base/data.js'].lineData[142]++; - if (visit212_142_1(elem.removeAttribute)) { - _$jscoverage['/base/data.js'].lineData[143]++; + _$jscoverage['/base/data.js'].lineData[144]++; + if (visit213_144_1(elem.removeAttribute)) { + _$jscoverage['/base/data.js'].lineData[145]++; elem.removeAttribute(EXPANDO); } } }}; - _$jscoverage['/base/data.js'].lineData[150]++; + _$jscoverage['/base/data.js'].lineData[152]++; S.mix(Dom, { __EXPANDO: EXPANDO, hasData: function(selector, name) { _$jscoverage['/base/data.js'].functionData[8]++; - _$jscoverage['/base/data.js'].lineData[167]++; - var ret = false, elems = Dom.query(selector); _$jscoverage['/base/data.js'].lineData[169]++; - for (var i = 0; visit213_169_1(i < elems.length); i++) { - _$jscoverage['/base/data.js'].lineData[170]++; + var ret = false, elems = Dom.query(selector); + _$jscoverage['/base/data.js'].lineData[171]++; + for (var i = 0; visit214_171_1(i < elems.length); i++) { + _$jscoverage['/base/data.js'].lineData[172]++; var elem = elems[i]; - _$jscoverage['/base/data.js'].lineData[171]++; - if (visit214_171_1(elem.nodeType)) { - _$jscoverage['/base/data.js'].lineData[172]++; + _$jscoverage['/base/data.js'].lineData[173]++; + if (visit215_173_1(elem.nodeType)) { + _$jscoverage['/base/data.js'].lineData[174]++; ret = domOps.hasData(elem, name); } else { - _$jscoverage['/base/data.js'].lineData[175]++; + _$jscoverage['/base/data.js'].lineData[177]++; ret = objectOps.hasData(elem, name); } - _$jscoverage['/base/data.js'].lineData[177]++; - if (visit215_177_1(ret)) { - _$jscoverage['/base/data.js'].lineData[178]++; + _$jscoverage['/base/data.js'].lineData[179]++; + if (visit216_179_1(ret)) { + _$jscoverage['/base/data.js'].lineData[180]++; return ret; } } - _$jscoverage['/base/data.js'].lineData[181]++; + _$jscoverage['/base/data.js'].lineData[183]++; return ret; }, data: function(selector, name, data) { _$jscoverage['/base/data.js'].functionData[9]++; - _$jscoverage['/base/data.js'].lineData[196]++; + _$jscoverage['/base/data.js'].lineData[198]++; var elems = Dom.query(selector), elem = elems[0]; - _$jscoverage['/base/data.js'].lineData[199]++; - if (visit216_199_1(S.isPlainObject(name))) { - _$jscoverage['/base/data.js'].lineData[200]++; + _$jscoverage['/base/data.js'].lineData[201]++; + if (visit217_201_1(S.isPlainObject(name))) { + _$jscoverage['/base/data.js'].lineData[202]++; for (var k in name) { - _$jscoverage['/base/data.js'].lineData[201]++; + _$jscoverage['/base/data.js'].lineData[203]++; Dom.data(elems, k, name[k]); } - _$jscoverage['/base/data.js'].lineData[203]++; + _$jscoverage['/base/data.js'].lineData[205]++; return undefined; } - _$jscoverage['/base/data.js'].lineData[207]++; - if (visit217_207_1(data === undefined)) { - _$jscoverage['/base/data.js'].lineData[208]++; - if (visit218_208_1(elem)) { - _$jscoverage['/base/data.js'].lineData[209]++; - if (visit219_209_1(elem.nodeType)) { - _$jscoverage['/base/data.js'].lineData[210]++; + _$jscoverage['/base/data.js'].lineData[209]++; + if (visit218_209_1(data === undefined)) { + _$jscoverage['/base/data.js'].lineData[210]++; + if (visit219_210_1(elem)) { + _$jscoverage['/base/data.js'].lineData[211]++; + if (visit220_211_1(elem.nodeType)) { + _$jscoverage['/base/data.js'].lineData[212]++; return domOps.data(elem, name); } else { - _$jscoverage['/base/data.js'].lineData[213]++; + _$jscoverage['/base/data.js'].lineData[215]++; return objectOps.data(elem, name); } } } else { - _$jscoverage['/base/data.js'].lineData[219]++; - for (var i = elems.length - 1; visit220_219_1(i >= 0); i--) { - _$jscoverage['/base/data.js'].lineData[220]++; + _$jscoverage['/base/data.js'].lineData[221]++; + for (var i = elems.length - 1; visit221_221_1(i >= 0); i--) { + _$jscoverage['/base/data.js'].lineData[222]++; elem = elems[i]; - _$jscoverage['/base/data.js'].lineData[221]++; - if (visit221_221_1(elem.nodeType)) { - _$jscoverage['/base/data.js'].lineData[222]++; + _$jscoverage['/base/data.js'].lineData[223]++; + if (visit222_223_1(elem.nodeType)) { + _$jscoverage['/base/data.js'].lineData[224]++; domOps.data(elem, name, data); } else { - _$jscoverage['/base/data.js'].lineData[225]++; + _$jscoverage['/base/data.js'].lineData[227]++; objectOps.data(elem, name, data); } } } - _$jscoverage['/base/data.js'].lineData[229]++; + _$jscoverage['/base/data.js'].lineData[231]++; return undefined; }, removeData: function(selector, name) { _$jscoverage['/base/data.js'].functionData[10]++; - _$jscoverage['/base/data.js'].lineData[240]++; + _$jscoverage['/base/data.js'].lineData[242]++; var els = Dom.query(selector), elem, i; - _$jscoverage['/base/data.js'].lineData[241]++; - for (i = els.length - 1; visit222_241_1(i >= 0); i--) { - _$jscoverage['/base/data.js'].lineData[242]++; + _$jscoverage['/base/data.js'].lineData[243]++; + for (i = els.length - 1; visit223_243_1(i >= 0); i--) { + _$jscoverage['/base/data.js'].lineData[244]++; elem = els[i]; - _$jscoverage['/base/data.js'].lineData[243]++; - if (visit223_243_1(elem.nodeType)) { - _$jscoverage['/base/data.js'].lineData[244]++; + _$jscoverage['/base/data.js'].lineData[245]++; + if (visit224_245_1(elem.nodeType)) { + _$jscoverage['/base/data.js'].lineData[246]++; domOps.removeData(elem, name); } else { - _$jscoverage['/base/data.js'].lineData[247]++; + _$jscoverage['/base/data.js'].lineData[249]++; objectOps.removeData(elem, name); } } }, cleanData: function(selector, deep) { _$jscoverage['/base/data.js'].functionData[11]++; - _$jscoverage['/base/data.js'].lineData[257]++; - var els = Dom.query(selector), elem, i; - _$jscoverage['/base/data.js'].lineData[258]++; - var DOMEvent = S.require('event/dom'); _$jscoverage['/base/data.js'].lineData[259]++; - for (i = els.length - 1; visit224_259_1(i >= 0); i--) { - _$jscoverage['/base/data.js'].lineData[260]++; + var els = Dom.query(selector), elem, i; + _$jscoverage['/base/data.js'].lineData[260]++; + var DOMEvent = S.Env.mods['event/dom/base']; + _$jscoverage['/base/data.js'].lineData[261]++; + DOMEvent = visit225_261_1(DOMEvent && DOMEvent.exports); + _$jscoverage['/base/data.js'].lineData[262]++; + for (i = els.length - 1; visit226_262_1(i >= 0); i--) { + _$jscoverage['/base/data.js'].lineData[263]++; elem = els[i]; - _$jscoverage['/base/data.js'].lineData[261]++; - if (visit225_261_1(elem.nodeType)) { - _$jscoverage['/base/data.js'].lineData[262]++; - var descendants = visit226_262_1(visit227_262_2(deep && S.makeArray(elem.getElementsByTagName('*'))) || []); - _$jscoverage['/base/data.js'].lineData[263]++; + _$jscoverage['/base/data.js'].lineData[264]++; + if (visit227_264_1(elem.nodeType)) { + _$jscoverage['/base/data.js'].lineData[265]++; + var descendants = visit228_265_1(visit229_265_2(deep && S.makeArray(elem.getElementsByTagName('*'))) || []); + _$jscoverage['/base/data.js'].lineData[266]++; descendants.push(elem); - _$jscoverage['/base/data.js'].lineData[264]++; - for (var j = 0, len = descendants.length; visit228_264_1(j < len); j++) { - _$jscoverage['/base/data.js'].lineData[265]++; - domOps.removeData(descendants[j]); - } _$jscoverage['/base/data.js'].lineData[267]++; - if (visit229_267_1(DOMEvent)) { + for (var j = 0, len = descendants.length; visit230_267_1(j < len); j++) { _$jscoverage['/base/data.js'].lineData[268]++; + domOps.removeData(descendants[j]); + } + _$jscoverage['/base/data.js'].lineData[270]++; + if (visit231_270_1(DOMEvent && DOMEvent.detach)) { + _$jscoverage['/base/data.js'].lineData[271]++; DOMEvent.detach(descendants); } } else { - _$jscoverage['/base/data.js'].lineData[272]++; + _$jscoverage['/base/data.js'].lineData[275]++; objectOps.removeData(elem); } } }}); - _$jscoverage['/base/data.js'].lineData[278]++; + _$jscoverage['/base/data.js'].lineData[281]++; return Dom; }); diff --git a/src/dom/sub-modules/base/coverage/src/base/insertion.js b/src/dom/sub-modules/base/coverage/src/base/insertion.js index cc1f4cc577..4e06b5a505 100644 --- a/src/dom/sub-modules/base/coverage/src/base/insertion.js +++ b/src/dom/sub-modules/base/coverage/src/base/insertion.js @@ -410,127 +410,127 @@ if (! _$jscoverage['/base/insertion.js'].branchData) { _$jscoverage['/base/insertion.js'].branchData['230'][1] = new BranchData(); } _$jscoverage['/base/insertion.js'].branchData['230'][1].init(74, 15, 'contents.length'); -function visit260_230_1(result) { +function visit262_230_1(result) { _$jscoverage['/base/insertion.js'].branchData['230'][1].ranCondition(result); return result; }_$jscoverage['/base/insertion.js'].branchData['201'][2].init(370, 16, 'c.nodeType === 1'); -function visit259_201_2(result) { +function visit261_201_2(result) { _$jscoverage['/base/insertion.js'].branchData['201'][2].ranCondition(result); return result; }_$jscoverage['/base/insertion.js'].branchData['201'][1].init(339, 47, '(c = wrapperNode.firstChild) && c.nodeType === 1'); -function visit258_201_1(result) { +function visit260_201_1(result) { _$jscoverage['/base/insertion.js'].branchData['201'][1].ranCondition(result); return result; }_$jscoverage['/base/insertion.js'].branchData['197'][1].init(176, 26, 'wrappedNodes[0].parentNode'); -function visit257_197_1(result) { +function visit259_197_1(result) { _$jscoverage['/base/insertion.js'].branchData['197'][1].ranCondition(result); return result; }_$jscoverage['/base/insertion.js'].branchData['158'][1].init(25, 20, 'refNode[PARENT_NODE]'); -function visit256_158_1(result) { +function visit258_158_1(result) { _$jscoverage['/base/insertion.js'].branchData['158'][1].ranCondition(result); return result; }_$jscoverage['/base/insertion.js'].branchData['144'][1].init(25, 20, 'refNode[PARENT_NODE]'); -function visit255_144_1(result) { +function visit257_144_1(result) { _$jscoverage['/base/insertion.js'].branchData['144'][1].ranCondition(result); return result; }_$jscoverage['/base/insertion.js'].branchData['119'][1].init(236, 25, 'scripts && scripts.length'); -function visit254_119_1(result) { +function visit256_119_1(result) { _$jscoverage['/base/insertion.js'].branchData['119'][1].ranCondition(result); return result; }_$jscoverage['/base/insertion.js'].branchData['116'][1].init(62, 5, 'i > 0'); -function visit253_116_1(result) { +function visit255_116_1(result) { _$jscoverage['/base/insertion.js'].branchData['116'][1].ranCondition(result); return result; }_$jscoverage['/base/insertion.js'].branchData['114'][1].init(52, 7, 'newNode'); -function visit252_114_1(result) { +function visit254_114_1(result) { _$jscoverage['/base/insertion.js'].branchData['114'][1].ranCondition(result); return result; }_$jscoverage['/base/insertion.js'].branchData['112'][1].init(1177, 18, 'i < refNodesLength'); -function visit251_112_1(result) { +function visit253_112_1(result) { _$jscoverage['/base/insertion.js'].branchData['112'][1].ranCondition(result); return result; }_$jscoverage['/base/insertion.js'].branchData['107'][1].init(1027, 18, 'refNodesLength > 1'); -function visit250_107_1(result) { +function visit252_107_1(result) { _$jscoverage['/base/insertion.js'].branchData['107'][1].ranCondition(result); return result; }_$jscoverage['/base/insertion.js'].branchData['98'][3].init(705, 27, '!scripts || !scripts.length'); -function visit249_98_3(result) { +function visit251_98_3(result) { _$jscoverage['/base/insertion.js'].branchData['98'][3].ranCondition(result); return result; }_$jscoverage['/base/insertion.js'].branchData['98'][2].init(685, 48, '!newNodesLength && (!scripts || !scripts.length)'); -function visit248_98_2(result) { +function visit250_98_2(result) { _$jscoverage['/base/insertion.js'].branchData['98'][2].ranCondition(result); return result; }_$jscoverage['/base/insertion.js'].branchData['98'][1].init(685, 68, '(!newNodesLength && (!scripts || !scripts.length)) || !refNodesLength'); -function visit247_98_1(result) { +function visit249_98_1(result) { _$jscoverage['/base/insertion.js'].branchData['98'][1].ranCondition(result); return result; }_$jscoverage['/base/insertion.js'].branchData['84'][1].init(352, 24, 'Dom._fixInsertionChecked'); -function visit246_84_1(result) { +function visit248_84_1(result) { _$jscoverage['/base/insertion.js'].branchData['84'][1].ranCondition(result); return result; }_$jscoverage['/base/insertion.js'].branchData['75'][1].init(54, 7, 'scripts'); -function visit245_75_1(result) { +function visit247_75_1(result) { _$jscoverage['/base/insertion.js'].branchData['75'][1].ranCondition(result); return result; }_$jscoverage['/base/insertion.js'].branchData['65'][1].init(97, 4, 'code'); -function visit244_65_1(result) { +function visit246_65_1(result) { _$jscoverage['/base/insertion.js'].branchData['65'][1].ranCondition(result); return result; }_$jscoverage['/base/insertion.js'].branchData['64'][3].init(43, 18, 'el.innerHTML || \'\''); -function visit243_64_3(result) { +function visit245_64_3(result) { _$jscoverage['/base/insertion.js'].branchData['64'][3].ranCondition(result); return result; }_$jscoverage['/base/insertion.js'].branchData['64'][2].init(25, 36, 'el.textContent || el.innerHTML || \'\''); -function visit242_64_2(result) { +function visit244_64_2(result) { _$jscoverage['/base/insertion.js'].branchData['64'][2].ranCondition(result); return result; }_$jscoverage['/base/insertion.js'].branchData['64'][1].init(31, 47, 'el.text || el.textContent || el.innerHTML || \'\''); -function visit241_64_1(result) { +function visit243_64_1(result) { _$jscoverage['/base/insertion.js'].branchData['64'][1].ranCondition(result); return result; }_$jscoverage['/base/insertion.js'].branchData['61'][1].init(13, 6, 'el.src'); -function visit240_61_1(result) { +function visit242_61_1(result) { _$jscoverage['/base/insertion.js'].branchData['61'][1].ranCondition(result); return result; }_$jscoverage['/base/insertion.js'].branchData['47'][1].init(64, 7, 'isJs(s)'); -function visit239_47_1(result) { +function visit241_47_1(result) { _$jscoverage['/base/insertion.js'].branchData['47'][1].ranCondition(result); return result; }_$jscoverage['/base/insertion.js'].branchData['45'][1].init(185, 13, 'j < ss.length'); -function visit238_45_1(result) { +function visit240_45_1(result) { _$jscoverage['/base/insertion.js'].branchData['45'][1].ranCondition(result); return result; }_$jscoverage['/base/insertion.js'].branchData['38'][2].init(21, 37, 'el.nodeType === NodeType.ELEMENT_NODE'); -function visit237_38_2(result) { +function visit239_38_2(result) { _$jscoverage['/base/insertion.js'].branchData['38'][2].ranCondition(result); return result; }_$jscoverage['/base/insertion.js'].branchData['38'][1].init(21, 158, 'el.nodeType === NodeType.ELEMENT_NODE && !RE_FORM_EL.test(nodeName)'); -function visit236_38_1(result) { +function visit238_38_1(result) { _$jscoverage['/base/insertion.js'].branchData['38'][1].ranCondition(result); return result; }_$jscoverage['/base/insertion.js'].branchData['34'][1].init(205, 7, 'scripts'); -function visit235_34_1(result) { +function visit237_34_1(result) { _$jscoverage['/base/insertion.js'].branchData['34'][1].ranCondition(result); return result; }_$jscoverage['/base/insertion.js'].branchData['31'][1].init(99, 13, 'el.parentNode'); -function visit234_31_1(result) { +function visit236_31_1(result) { _$jscoverage['/base/insertion.js'].branchData['31'][1].ranCondition(result); return result; }_$jscoverage['/base/insertion.js'].branchData['29'][2].init(246, 21, 'nodeName === \'script\''); -function visit233_29_2(result) { +function visit235_29_2(result) { _$jscoverage['/base/insertion.js'].branchData['29'][2].ranCondition(result); return result; }_$jscoverage['/base/insertion.js'].branchData['29'][1].init(246, 33, 'nodeName === \'script\' && isJs(el)'); -function visit232_29_1(result) { +function visit234_29_1(result) { _$jscoverage['/base/insertion.js'].branchData['29'][1].ranCondition(result); return result; }_$jscoverage['/base/insertion.js'].branchData['27'][1].init(84, 47, 'el.nodeType === NodeType.DOCUMENT_FRAGMENT_NODE'); -function visit231_27_1(result) { +function visit233_27_1(result) { _$jscoverage['/base/insertion.js'].branchData['27'][1].ranCondition(result); return result; }_$jscoverage['/base/insertion.js'].branchData['18'][1].init(16, 39, '!el.type || R_SCRIPT_TYPE.test(el.type)'); -function visit230_18_1(result) { +function visit232_18_1(result) { _$jscoverage['/base/insertion.js'].branchData['18'][1].ranCondition(result); return result; }_$jscoverage['/base/insertion.js'].lineData[6]++; @@ -544,7 +544,7 @@ KISSY.add(function(S, require) { function isJs(el) { _$jscoverage['/base/insertion.js'].functionData[1]++; _$jscoverage['/base/insertion.js'].lineData[18]++; - return visit230_18_1(!el.type || R_SCRIPT_TYPE.test(el.type)); + return visit232_18_1(!el.type || R_SCRIPT_TYPE.test(el.type)); } _$jscoverage['/base/insertion.js'].lineData[22]++; function filterScripts(nodes, scripts) { @@ -558,33 +558,33 @@ KISSY.add(function(S, require) { _$jscoverage['/base/insertion.js'].lineData[26]++; nodeName = getNodeName(el); _$jscoverage['/base/insertion.js'].lineData[27]++; - if (visit231_27_1(el.nodeType === NodeType.DOCUMENT_FRAGMENT_NODE)) { + if (visit233_27_1(el.nodeType === NodeType.DOCUMENT_FRAGMENT_NODE)) { _$jscoverage['/base/insertion.js'].lineData[28]++; ret.push.apply(ret, filterScripts(makeArray(el.childNodes), scripts)); } else { _$jscoverage['/base/insertion.js'].lineData[29]++; - if (visit232_29_1(visit233_29_2(nodeName === 'script') && isJs(el))) { + if (visit234_29_1(visit235_29_2(nodeName === 'script') && isJs(el))) { _$jscoverage['/base/insertion.js'].lineData[31]++; - if (visit234_31_1(el.parentNode)) { + if (visit236_31_1(el.parentNode)) { _$jscoverage['/base/insertion.js'].lineData[32]++; el.parentNode.removeChild(el); } _$jscoverage['/base/insertion.js'].lineData[34]++; - if (visit235_34_1(scripts)) { + if (visit237_34_1(scripts)) { _$jscoverage['/base/insertion.js'].lineData[35]++; scripts.push(el); } } else { _$jscoverage['/base/insertion.js'].lineData[38]++; - if (visit236_38_1(visit237_38_2(el.nodeType === NodeType.ELEMENT_NODE) && !RE_FORM_EL.test(nodeName))) { + if (visit238_38_1(visit239_38_2(el.nodeType === NodeType.ELEMENT_NODE) && !RE_FORM_EL.test(nodeName))) { _$jscoverage['/base/insertion.js'].lineData[41]++; var tmp = [], s, j, ss = el.getElementsByTagName('script'); _$jscoverage['/base/insertion.js'].lineData[45]++; - for (j = 0; visit238_45_1(j < ss.length); j++) { + for (j = 0; visit240_45_1(j < ss.length); j++) { _$jscoverage['/base/insertion.js'].lineData[46]++; s = ss[j]; _$jscoverage['/base/insertion.js'].lineData[47]++; - if (visit239_47_1(isJs(s))) { + if (visit241_47_1(isJs(s))) { _$jscoverage['/base/insertion.js'].lineData[48]++; tmp.push(s); } @@ -604,14 +604,14 @@ KISSY.add(function(S, require) { function evalScript(el) { _$jscoverage['/base/insertion.js'].functionData[3]++; _$jscoverage['/base/insertion.js'].lineData[61]++; - if (visit240_61_1(el.src)) { + if (visit242_61_1(el.src)) { _$jscoverage['/base/insertion.js'].lineData[62]++; S.getScript(el.src); } else { _$jscoverage['/base/insertion.js'].lineData[64]++; - var code = S.trim(visit241_64_1(el.text || visit242_64_2(el.textContent || visit243_64_3(el.innerHTML || '')))); + var code = S.trim(visit243_64_1(el.text || visit244_64_2(el.textContent || visit245_64_3(el.innerHTML || '')))); _$jscoverage['/base/insertion.js'].lineData[65]++; - if (visit244_65_1(code)) { + if (visit246_65_1(code)) { _$jscoverage['/base/insertion.js'].lineData[66]++; S.globalEval(code); } @@ -623,14 +623,14 @@ KISSY.add(function(S, require) { _$jscoverage['/base/insertion.js'].lineData[73]++; newNodes = Dom.query(newNodes); _$jscoverage['/base/insertion.js'].lineData[75]++; - if (visit245_75_1(scripts)) { + if (visit247_75_1(scripts)) { _$jscoverage['/base/insertion.js'].lineData[76]++; scripts = []; } _$jscoverage['/base/insertion.js'].lineData[80]++; newNodes = filterScripts(newNodes, scripts); _$jscoverage['/base/insertion.js'].lineData[84]++; - if (visit246_84_1(Dom._fixInsertionChecked)) { + if (visit248_84_1(Dom._fixInsertionChecked)) { _$jscoverage['/base/insertion.js'].lineData[85]++; Dom._fixInsertionChecked(newNodes); } @@ -639,32 +639,32 @@ KISSY.add(function(S, require) { _$jscoverage['/base/insertion.js'].lineData[90]++; var newNodesLength = newNodes.length, newNode, i, refNode, node, clonedNode, refNodesLength = refNodes.length; _$jscoverage['/base/insertion.js'].lineData[98]++; - if (visit247_98_1((visit248_98_2(!newNodesLength && (visit249_98_3(!scripts || !scripts.length)))) || !refNodesLength)) { + if (visit249_98_1((visit250_98_2(!newNodesLength && (visit251_98_3(!scripts || !scripts.length)))) || !refNodesLength)) { _$jscoverage['/base/insertion.js'].lineData[99]++; return; } _$jscoverage['/base/insertion.js'].lineData[105]++; newNode = Dom._nodeListToFragment(newNodes); _$jscoverage['/base/insertion.js'].lineData[107]++; - if (visit250_107_1(refNodesLength > 1)) { + if (visit252_107_1(refNodesLength > 1)) { _$jscoverage['/base/insertion.js'].lineData[108]++; clonedNode = Dom.clone(newNode, true); _$jscoverage['/base/insertion.js'].lineData[109]++; refNodes = S.makeArray(refNodes); } _$jscoverage['/base/insertion.js'].lineData[112]++; - for (i = 0; visit251_112_1(i < refNodesLength); i++) { + for (i = 0; visit253_112_1(i < refNodesLength); i++) { _$jscoverage['/base/insertion.js'].lineData[113]++; refNode = refNodes[i]; _$jscoverage['/base/insertion.js'].lineData[114]++; - if (visit252_114_1(newNode)) { + if (visit254_114_1(newNode)) { _$jscoverage['/base/insertion.js'].lineData[116]++; - node = visit253_116_1(i > 0) ? Dom.clone(clonedNode, true) : newNode; + node = visit255_116_1(i > 0) ? Dom.clone(clonedNode, true) : newNode; _$jscoverage['/base/insertion.js'].lineData[117]++; fn(node, refNode); } _$jscoverage['/base/insertion.js'].lineData[119]++; - if (visit254_119_1(scripts && scripts.length)) { + if (visit256_119_1(scripts && scripts.length)) { _$jscoverage['/base/insertion.js'].lineData[120]++; S.each(scripts, evalScript); } @@ -679,7 +679,7 @@ KISSY.add(function(S, require) { insertion(newNodes, refNodes, function(newNode, refNode) { _$jscoverage['/base/insertion.js'].functionData[6]++; _$jscoverage['/base/insertion.js'].lineData[144]++; - if (visit255_144_1(refNode[PARENT_NODE])) { + if (visit257_144_1(refNode[PARENT_NODE])) { _$jscoverage['/base/insertion.js'].lineData[145]++; refNode[PARENT_NODE].insertBefore(newNode, refNode); } @@ -691,7 +691,7 @@ KISSY.add(function(S, require) { insertion(newNodes, refNodes, function(newNode, refNode) { _$jscoverage['/base/insertion.js'].functionData[8]++; _$jscoverage['/base/insertion.js'].lineData[158]++; - if (visit256_158_1(refNode[PARENT_NODE])) { + if (visit258_158_1(refNode[PARENT_NODE])) { _$jscoverage['/base/insertion.js'].lineData[159]++; refNode[PARENT_NODE].insertBefore(newNode, refNode[NEXT_SIBLING]); } @@ -722,14 +722,14 @@ KISSY.add(function(S, require) { _$jscoverage['/base/insertion.js'].lineData[196]++; wrappedNodes = Dom.query(wrappedNodes); _$jscoverage['/base/insertion.js'].lineData[197]++; - if (visit257_197_1(wrappedNodes[0].parentNode)) { + if (visit259_197_1(wrappedNodes[0].parentNode)) { _$jscoverage['/base/insertion.js'].lineData[198]++; Dom.insertBefore(wrapperNode, wrappedNodes[0]); } _$jscoverage['/base/insertion.js'].lineData[200]++; var c; _$jscoverage['/base/insertion.js'].lineData[201]++; - while (visit258_201_1((c = wrapperNode.firstChild) && visit259_201_2(c.nodeType === 1))) { + while (visit260_201_1((c = wrapperNode.firstChild) && visit261_201_2(c.nodeType === 1))) { _$jscoverage['/base/insertion.js'].lineData[202]++; wrapperNode = c; } @@ -761,7 +761,7 @@ KISSY.add(function(S, require) { _$jscoverage['/base/insertion.js'].lineData[229]++; var contents = w.childNodes; _$jscoverage['/base/insertion.js'].lineData[230]++; - if (visit260_230_1(contents.length)) { + if (visit262_230_1(contents.length)) { _$jscoverage['/base/insertion.js'].lineData[231]++; Dom.wrapAll(contents, wrapperNode); } else { diff --git a/src/dom/sub-modules/base/coverage/src/base/offset.js b/src/dom/sub-modules/base/coverage/src/base/offset.js index 9720c52858..58c622c694 100644 --- a/src/dom/sub-modules/base/coverage/src/base/offset.js +++ b/src/dom/sub-modules/base/coverage/src/base/offset.js @@ -357,19 +357,19 @@ if (! _$jscoverage['/base/offset.js']) { _$jscoverage['/base/offset.js'].lineData[417] = 0; _$jscoverage['/base/offset.js'].lineData[424] = 0; _$jscoverage['/base/offset.js'].lineData[426] = 0; - _$jscoverage['/base/offset.js'].lineData[431] = 0; - _$jscoverage['/base/offset.js'].lineData[434] = 0; - _$jscoverage['/base/offset.js'].lineData[435] = 0; - _$jscoverage['/base/offset.js'].lineData[441] = 0; - _$jscoverage['/base/offset.js'].lineData[445] = 0; + _$jscoverage['/base/offset.js'].lineData[433] = 0; + _$jscoverage['/base/offset.js'].lineData[436] = 0; + _$jscoverage['/base/offset.js'].lineData[437] = 0; + _$jscoverage['/base/offset.js'].lineData[443] = 0; _$jscoverage['/base/offset.js'].lineData[447] = 0; - _$jscoverage['/base/offset.js'].lineData[448] = 0; - _$jscoverage['/base/offset.js'].lineData[451] = 0; - _$jscoverage['/base/offset.js'].lineData[455] = 0; - _$jscoverage['/base/offset.js'].lineData[456] = 0; + _$jscoverage['/base/offset.js'].lineData[449] = 0; + _$jscoverage['/base/offset.js'].lineData[450] = 0; + _$jscoverage['/base/offset.js'].lineData[453] = 0; _$jscoverage['/base/offset.js'].lineData[457] = 0; + _$jscoverage['/base/offset.js'].lineData[458] = 0; _$jscoverage['/base/offset.js'].lineData[459] = 0; - _$jscoverage['/base/offset.js'].lineData[462] = 0; + _$jscoverage['/base/offset.js'].lineData[461] = 0; + _$jscoverage['/base/offset.js'].lineData[464] = 0; } if (! _$jscoverage['/base/offset.js'].functionData) { _$jscoverage['/base/offset.js'].functionData = []; @@ -488,266 +488,266 @@ if (! _$jscoverage['/base/offset.js'].branchData) { _$jscoverage['/base/offset.js'].branchData['401'][2] = new BranchData(); _$jscoverage['/base/offset.js'].branchData['424'] = []; _$jscoverage['/base/offset.js'].branchData['424'][1] = new BranchData(); - _$jscoverage['/base/offset.js'].branchData['431'] = []; - _$jscoverage['/base/offset.js'].branchData['431'][1] = new BranchData(); - _$jscoverage['/base/offset.js'].branchData['436'] = []; - _$jscoverage['/base/offset.js'].branchData['436'][1] = new BranchData(); - _$jscoverage['/base/offset.js'].branchData['437'] = []; - _$jscoverage['/base/offset.js'].branchData['437'][1] = new BranchData(); - _$jscoverage['/base/offset.js'].branchData['437'][2] = new BranchData(); + _$jscoverage['/base/offset.js'].branchData['433'] = []; + _$jscoverage['/base/offset.js'].branchData['433'][1] = new BranchData(); _$jscoverage['/base/offset.js'].branchData['438'] = []; _$jscoverage['/base/offset.js'].branchData['438'][1] = new BranchData(); - _$jscoverage['/base/offset.js'].branchData['447'] = []; - _$jscoverage['/base/offset.js'].branchData['447'][1] = new BranchData(); - _$jscoverage['/base/offset.js'].branchData['456'] = []; - _$jscoverage['/base/offset.js'].branchData['456'][1] = new BranchData(); + _$jscoverage['/base/offset.js'].branchData['439'] = []; + _$jscoverage['/base/offset.js'].branchData['439'][1] = new BranchData(); + _$jscoverage['/base/offset.js'].branchData['439'][2] = new BranchData(); + _$jscoverage['/base/offset.js'].branchData['440'] = []; + _$jscoverage['/base/offset.js'].branchData['440'][1] = new BranchData(); + _$jscoverage['/base/offset.js'].branchData['449'] = []; + _$jscoverage['/base/offset.js'].branchData['449'][1] = new BranchData(); + _$jscoverage['/base/offset.js'].branchData['458'] = []; + _$jscoverage['/base/offset.js'].branchData['458'][1] = new BranchData(); } -_$jscoverage['/base/offset.js'].branchData['456'][1].init(23, 35, 'parseFloat(Dom.css(elem, key)) || 0'); -function visit322_456_1(result) { - _$jscoverage['/base/offset.js'].branchData['456'][1].ranCondition(result); +_$jscoverage['/base/offset.js'].branchData['458'][1].init(23, 35, 'parseFloat(Dom.css(elem, key)) || 0'); +function visit324_458_1(result) { + _$jscoverage['/base/offset.js'].branchData['458'][1].ranCondition(result); return result; -}_$jscoverage['/base/offset.js'].branchData['447'][1].init(89, 36, 'Dom.css(elem, POSITION) === \'static\''); -function visit321_447_1(result) { - _$jscoverage['/base/offset.js'].branchData['447'][1].ranCondition(result); +}_$jscoverage['/base/offset.js'].branchData['449'][1].init(89, 36, 'Dom.css(elem, POSITION) === \'static\''); +function visit323_449_1(result) { + _$jscoverage['/base/offset.js'].branchData['449'][1].ranCondition(result); return result; -}_$jscoverage['/base/offset.js'].branchData['438'][1].init(42, 84, '(currentEl = currentWin.frameElement) && (currentWin = currentWin.parent)'); -function visit320_438_1(result) { - _$jscoverage['/base/offset.js'].branchData['438'][1].ranCondition(result); +}_$jscoverage['/base/offset.js'].branchData['440'][1].init(41, 84, '(currentEl = currentWin.frameElement) && (currentWin = currentWin.parent)'); +function visit322_440_1(result) { + _$jscoverage['/base/offset.js'].branchData['440'][1].ranCondition(result); return result; -}_$jscoverage['/base/offset.js'].branchData['437'][2].init(868, 26, 'currentWin !== relativeWin'); -function visit319_437_2(result) { - _$jscoverage['/base/offset.js'].branchData['437'][2].ranCondition(result); +}_$jscoverage['/base/offset.js'].branchData['439'][2].init(938, 25, 'currentWin != relativeWin'); +function visit321_439_2(result) { + _$jscoverage['/base/offset.js'].branchData['439'][2].ranCondition(result); return result; -}_$jscoverage['/base/offset.js'].branchData['437'][1].init(25, 127, 'currentWin !== relativeWin && (currentEl = currentWin.frameElement) && (currentWin = currentWin.parent)'); -function visit318_437_1(result) { - _$jscoverage['/base/offset.js'].branchData['437'][1].ranCondition(result); +}_$jscoverage['/base/offset.js'].branchData['439'][1].init(25, 126, 'currentWin != relativeWin && (currentEl = currentWin.frameElement) && (currentWin = currentWin.parent)'); +function visit320_439_1(result) { + _$jscoverage['/base/offset.js'].branchData['439'][1].ranCondition(result); return result; -}_$jscoverage['/base/offset.js'].branchData['436'][1].init(514, 153, 'currentWin && currentWin !== relativeWin && (currentEl = currentWin.frameElement) && (currentWin = currentWin.parent)'); -function visit317_436_1(result) { - _$jscoverage['/base/offset.js'].branchData['436'][1].ranCondition(result); +}_$jscoverage['/base/offset.js'].branchData['438'][1].init(584, 152, 'currentWin && currentWin != relativeWin && (currentEl = currentWin.frameElement) && (currentWin = currentWin.parent)'); +function visit319_438_1(result) { + _$jscoverage['/base/offset.js'].branchData['438'][1].ranCondition(result); return result; -}_$jscoverage['/base/offset.js'].branchData['431'][1].init(294, 26, 'currentWin === relativeWin'); -function visit316_431_1(result) { - _$jscoverage['/base/offset.js'].branchData['431'][1].ranCondition(result); +}_$jscoverage['/base/offset.js'].branchData['433'][1].init(365, 25, 'currentWin == relativeWin'); +function visit318_433_1(result) { + _$jscoverage['/base/offset.js'].branchData['433'][1].ranCondition(result); return result; }_$jscoverage['/base/offset.js'].branchData['424'][1].init(289, 25, 'relativeWin || currentWin'); -function visit315_424_1(result) { +function visit317_424_1(result) { _$jscoverage['/base/offset.js'].branchData['424'][1].ranCondition(result); return result; }_$jscoverage['/base/offset.js'].branchData['401'][2].init(1794, 19, 'body.clientTop || 0'); -function visit314_401_2(result) { +function visit316_401_2(result) { _$jscoverage['/base/offset.js'].branchData['401'][2].ranCondition(result); return result; }_$jscoverage['/base/offset.js'].branchData['401'][1].init(1773, 40, 'docElem.clientTop || body.clientTop || 0'); -function visit313_401_1(result) { +function visit315_401_1(result) { _$jscoverage['/base/offset.js'].branchData['401'][1].ranCondition(result); return result; }_$jscoverage['/base/offset.js'].branchData['400'][2].init(1738, 20, 'body.clientLeft || 0'); -function visit312_400_2(result) { +function visit314_400_2(result) { _$jscoverage['/base/offset.js'].branchData['400'][2].ranCondition(result); return result; }_$jscoverage['/base/offset.js'].branchData['400'][1].init(1716, 42, 'docElem.clientLeft || body.clientLeft || 0'); -function visit311_400_1(result) { +function visit313_400_1(result) { _$jscoverage['/base/offset.js'].branchData['400'][1].ranCondition(result); return result; }_$jscoverage['/base/offset.js'].branchData['363'][1].init(106, 27, '!elem.getBoundingClientRect'); -function visit310_363_1(result) { +function visit312_363_1(result) { _$jscoverage['/base/offset.js'].branchData['363'][1].ranCondition(result); return result; }_$jscoverage['/base/offset.js'].branchData['354'][2].init(716, 20, 'body && body[prop]'); -function visit309_354_2(result) { +function visit311_354_2(result) { _$jscoverage['/base/offset.js'].branchData['354'][2].ranCondition(result); return result; }_$jscoverage['/base/offset.js'].branchData['354'][1].init(72, 43, 'body && body[prop] || documentElementProp'); -function visit308_354_1(result) { +function visit310_354_1(result) { _$jscoverage['/base/offset.js'].branchData['354'][1].ranCondition(result); return result; }_$jscoverage['/base/offset.js'].branchData['353'][3].init(641, 30, 'doc[compatMode] === CSS1Compat'); -function visit307_353_3(result) { +function visit309_353_3(result) { _$jscoverage['/base/offset.js'].branchData['353'][3].ranCondition(result); return result; }_$jscoverage['/base/offset.js'].branchData['353'][2].init(641, 53, 'doc[compatMode] === CSS1Compat && documentElementProp'); -function visit306_353_2(result) { +function visit308_353_2(result) { _$jscoverage['/base/offset.js'].branchData['353'][2].ranCondition(result); return result; }_$jscoverage['/base/offset.js'].branchData['353'][1].init(641, 116, 'doc[compatMode] === CSS1Compat && documentElementProp || body && body[prop] || documentElementProp'); -function visit305_353_1(result) { +function visit307_353_1(result) { _$jscoverage['/base/offset.js'].branchData['353'][1].ranCondition(result); return result; }_$jscoverage['/base/offset.js'].branchData['342'][1].init(202, 16, 'UA.mobile && ret'); -function visit304_342_1(result) { +function visit306_342_1(result) { _$jscoverage['/base/offset.js'].branchData['342'][1].ranCondition(result); return result; }_$jscoverage['/base/offset.js'].branchData['312'][1].init(172, 23, 'typeof ret !== \'number\''); -function visit303_312_1(result) { +function visit305_312_1(result) { _$jscoverage['/base/offset.js'].branchData['312'][1].ranCondition(result); return result; }_$jscoverage['/base/offset.js'].branchData['308'][1].init(229, 23, 'typeof ret !== \'number\''); -function visit302_308_1(result) { +function visit304_308_1(result) { _$jscoverage['/base/offset.js'].branchData['308'][1].ranCondition(result); return result; }_$jscoverage['/base/offset.js'].branchData['301'][1].init(181, 14, 'name === \'Top\''); -function visit301_301_1(result) { +function visit303_301_1(result) { _$jscoverage['/base/offset.js'].branchData['301'][1].ranCondition(result); return result; }_$jscoverage['/base/offset.js'].branchData['300'][1].init(114, 15, 'name === \'Left\''); -function visit300_300_1(result) { +function visit302_300_1(result) { _$jscoverage['/base/offset.js'].branchData['300'][1].ranCondition(result); return result; }_$jscoverage['/base/offset.js'].branchData['297'][1].init(58, 15, 'v !== undefined'); -function visit299_297_1(result) { +function visit301_297_1(result) { _$jscoverage['/base/offset.js'].branchData['297'][1].ranCondition(result); return result; }_$jscoverage['/base/offset.js'].branchData['290'][1].init(21, 15, 'v !== undefined'); -function visit298_290_1(result) { +function visit300_290_1(result) { _$jscoverage['/base/offset.js'].branchData['290'][1].ranCondition(result); return result; }_$jscoverage['/base/offset.js'].branchData['289'][2].init(311, 39, 'elem.nodeType === NodeType.ELEMENT_NODE'); -function visit297_289_2(result) { +function visit299_289_2(result) { _$jscoverage['/base/offset.js'].branchData['289'][2].ranCondition(result); return result; }_$jscoverage['/base/offset.js'].branchData['289'][1].init(303, 47, 'elem && elem.nodeType === NodeType.ELEMENT_NODE'); -function visit296_289_1(result) { +function visit298_289_1(result) { _$jscoverage['/base/offset.js'].branchData['289'][1].ranCondition(result); return result; }_$jscoverage['/base/offset.js'].branchData['279'][1].init(17, 24, 'typeof elem === \'number\''); -function visit295_279_1(result) { +function visit297_279_1(result) { _$jscoverage['/base/offset.js'].branchData['279'][1].ranCondition(result); return result; }_$jscoverage['/base/offset.js'].branchData['219'][1].init(120, 12, 'alignWithTop'); -function visit294_219_1(result) { +function visit296_219_1(result) { _$jscoverage['/base/offset.js'].branchData['219'][1].ranCondition(result); return result; }_$jscoverage['/base/offset.js'].branchData['218'][1].init(40, 26, 'alignWithTop === undefined'); -function visit293_218_1(result) { +function visit295_218_1(result) { _$jscoverage['/base/offset.js'].branchData['218'][1].ranCondition(result); return result; }_$jscoverage['/base/offset.js'].branchData['210'][1].init(77, 16, 'diffTop.left < 0'); -function visit292_210_1(result) { +function visit294_210_1(result) { _$jscoverage['/base/offset.js'].branchData['210'][1].ranCondition(result); return result; }_$jscoverage['/base/offset.js'].branchData['206'][1].init(230, 22, 'alignWithTop === false'); -function visit291_206_1(result) { +function visit293_206_1(result) { _$jscoverage['/base/offset.js'].branchData['206'][1].ranCondition(result); return result; }_$jscoverage['/base/offset.js'].branchData['204'][1].init(69, 21, 'alignWithTop === true'); -function visit290_204_1(result) { +function visit292_204_1(result) { _$jscoverage['/base/offset.js'].branchData['204'][1].ranCondition(result); return result; }_$jscoverage['/base/offset.js'].branchData['202'][3].init(49, 19, 'diffBottom.left > 0'); -function visit289_202_3(result) { +function visit291_202_3(result) { _$jscoverage['/base/offset.js'].branchData['202'][3].ranCondition(result); return result; }_$jscoverage['/base/offset.js'].branchData['202'][2].init(29, 16, 'diffTop.left < 0'); -function visit288_202_2(result) { +function visit290_202_2(result) { _$jscoverage['/base/offset.js'].branchData['202'][2].ranCondition(result); return result; }_$jscoverage['/base/offset.js'].branchData['202'][1].init(29, 39, 'diffTop.left < 0 || diffBottom.left > 0'); -function visit287_202_1(result) { +function visit289_202_1(result) { _$jscoverage['/base/offset.js'].branchData['202'][1].ranCondition(result); return result; }_$jscoverage['/base/offset.js'].branchData['201'][1].init(25, 18, 'onlyScrollIfNeeded'); -function visit286_201_1(result) { +function visit288_201_1(result) { _$jscoverage['/base/offset.js'].branchData['201'][1].ranCondition(result); return result; }_$jscoverage['/base/offset.js'].branchData['200'][1].init(4829, 21, 'allowHorizontalScroll'); -function visit285_200_1(result) { +function visit287_200_1(result) { _$jscoverage['/base/offset.js'].branchData['200'][1].ranCondition(result); return result; }_$jscoverage['/base/offset.js'].branchData['193'][1].init(112, 12, 'alignWithTop'); -function visit284_193_1(result) { +function visit286_193_1(result) { _$jscoverage['/base/offset.js'].branchData['193'][1].ranCondition(result); return result; }_$jscoverage['/base/offset.js'].branchData['192'][1].init(36, 26, 'alignWithTop === undefined'); -function visit283_192_1(result) { +function visit285_192_1(result) { _$jscoverage['/base/offset.js'].branchData['192'][1].ranCondition(result); return result; }_$jscoverage['/base/offset.js'].branchData['184'][1].init(69, 15, 'diffTop.top < 0'); -function visit282_184_1(result) { +function visit284_184_1(result) { _$jscoverage['/base/offset.js'].branchData['184'][1].ranCondition(result); return result; }_$jscoverage['/base/offset.js'].branchData['180'][1].init(211, 22, 'alignWithTop === false'); -function visit281_180_1(result) { +function visit283_180_1(result) { _$jscoverage['/base/offset.js'].branchData['180'][1].ranCondition(result); return result; }_$jscoverage['/base/offset.js'].branchData['178'][1].init(61, 21, 'alignWithTop === true'); -function visit280_178_1(result) { +function visit282_178_1(result) { _$jscoverage['/base/offset.js'].branchData['178'][1].ranCondition(result); return result; }_$jscoverage['/base/offset.js'].branchData['176'][3].init(44, 18, 'diffBottom.top > 0'); -function visit279_176_3(result) { +function visit281_176_3(result) { _$jscoverage['/base/offset.js'].branchData['176'][3].ranCondition(result); return result; }_$jscoverage['/base/offset.js'].branchData['176'][2].init(25, 15, 'diffTop.top < 0'); -function visit278_176_2(result) { +function visit280_176_2(result) { _$jscoverage['/base/offset.js'].branchData['176'][2].ranCondition(result); return result; }_$jscoverage['/base/offset.js'].branchData['176'][1].init(25, 37, 'diffTop.top < 0 || diffBottom.top > 0'); -function visit277_176_1(result) { +function visit279_176_1(result) { _$jscoverage['/base/offset.js'].branchData['176'][1].ranCondition(result); return result; }_$jscoverage['/base/offset.js'].branchData['175'][1].init(3576, 18, 'onlyScrollIfNeeded'); -function visit276_175_1(result) { +function visit278_175_1(result) { _$jscoverage['/base/offset.js'].branchData['175'][1].ranCondition(result); return result; }_$jscoverage['/base/offset.js'].branchData['171'][1].init(60, 56, 'parseFloat(Dom.css(container, \'borderBottomWidth\')) || 0'); -function visit275_171_1(result) { +function visit277_171_1(result) { _$jscoverage['/base/offset.js'].branchData['171'][1].ranCondition(result); return result; }_$jscoverage['/base/offset.js'].branchData['168'][1].init(61, 55, 'parseFloat(Dom.css(container, \'borderRightWidth\')) || 0'); -function visit274_168_1(result) { +function visit276_168_1(result) { _$jscoverage['/base/offset.js'].branchData['168'][1].ranCondition(result); return result; }_$jscoverage['/base/offset.js'].branchData['163'][1].init(51, 53, 'parseFloat(Dom.css(container, \'borderTopWidth\')) || 0'); -function visit273_163_1(result) { +function visit275_163_1(result) { _$jscoverage['/base/offset.js'].branchData['163'][1].ranCondition(result); return result; }_$jscoverage['/base/offset.js'].branchData['161'][1].init(52, 54, 'parseFloat(Dom.css(container, \'borderLeftWidth\')) || 0'); -function visit272_161_1(result) { +function visit274_161_1(result) { _$jscoverage['/base/offset.js'].branchData['161'][1].ranCondition(result); return result; }_$jscoverage['/base/offset.js'].branchData['130'][1].init(1459, 5, 'isWin'); -function visit271_130_1(result) { +function visit273_130_1(result) { _$jscoverage['/base/offset.js'].branchData['130'][1].ranCondition(result); return result; }_$jscoverage['/base/offset.js'].branchData['113'][1].init(885, 35, 'allowHorizontalScroll === undefined'); -function visit270_113_1(result) { +function visit272_113_1(result) { _$jscoverage['/base/offset.js'].branchData['113'][1].ranCondition(result); return result; }_$jscoverage['/base/offset.js'].branchData['107'][1].init(577, 29, 'S.isPlainObject(alignWithTop)'); -function visit269_107_1(result) { +function visit271_107_1(result) { _$jscoverage['/base/offset.js'].branchData['107'][1].ranCondition(result); return result; }_$jscoverage['/base/offset.js'].branchData['103'][1].init(435, 45, 'container.nodeType === NodeType.DOCUMENT_NODE'); -function visit268_103_1(result) { +function visit270_103_1(result) { _$jscoverage['/base/offset.js'].branchData['103'][1].ranCondition(result); return result; }_$jscoverage['/base/offset.js'].branchData['98'][1].init(290, 10, '!container'); -function visit267_98_1(result) { +function visit269_98_1(result) { _$jscoverage['/base/offset.js'].branchData['98'][1].ranCondition(result); return result; }_$jscoverage['/base/offset.js'].branchData['94'][1].init(186, 9, 'container'); -function visit266_94_1(result) { +function visit268_94_1(result) { _$jscoverage['/base/offset.js'].branchData['94'][1].ranCondition(result); return result; }_$jscoverage['/base/offset.js'].branchData['90'][1].init(88, 27, '!(elem = Dom.get(selector))'); -function visit265_90_1(result) { +function visit267_90_1(result) { _$jscoverage['/base/offset.js'].branchData['90'][1].ranCondition(result); return result; }_$jscoverage['/base/offset.js'].branchData['65'][1].init(458, 6, 'i >= 0'); -function visit264_65_1(result) { +function visit266_65_1(result) { _$jscoverage['/base/offset.js'].branchData['65'][1].ranCondition(result); return result; }_$jscoverage['/base/offset.js'].branchData['58'][1].init(100, 4, 'elem'); -function visit263_58_1(result) { +function visit265_58_1(result) { _$jscoverage['/base/offset.js'].branchData['58'][1].ranCondition(result); return result; }_$jscoverage['/base/offset.js'].branchData['55'][1].init(73, 25, 'coordinates === undefined'); -function visit262_55_1(result) { +function visit264_55_1(result) { _$jscoverage['/base/offset.js'].branchData['55'][1].ranCondition(result); return result; }_$jscoverage['/base/offset.js'].branchData['12'][1].init(119, 26, 'doc && doc.documentElement'); -function visit261_12_1(result) { +function visit263_12_1(result) { _$jscoverage['/base/offset.js'].branchData['12'][1].ranCondition(result); return result; }_$jscoverage['/base/offset.js'].lineData[6]++; @@ -756,7 +756,7 @@ KISSY.add(function(S, require) { _$jscoverage['/base/offset.js'].lineData[7]++; var Dom = require('./api'); _$jscoverage['/base/offset.js'].lineData[8]++; - var win = S.Env.host, UA = S.UA, doc = win.document, NodeType = Dom.NodeType, docElem = visit261_12_1(doc && doc.documentElement), getWindow = Dom.getWindow, CSS1Compat = 'CSS1Compat', compatMode = 'compatMode', MAX = Math.max, POSITION = 'position', RELATIVE = 'relative', DOCUMENT = 'document', BODY = 'body', DOC_ELEMENT = 'documentElement', VIEWPORT = 'viewport', SCROLL = 'scroll', CLIENT = 'client', LEFT = 'left', TOP = 'top', SCROLL_LEFT = SCROLL + 'Left', SCROLL_TOP = SCROLL + 'Top'; + var win = S.Env.host, UA = S.UA, doc = win.document, NodeType = Dom.NodeType, docElem = visit263_12_1(doc && doc.documentElement), getWindow = Dom.getWindow, CSS1Compat = 'CSS1Compat', compatMode = 'compatMode', MAX = Math.max, POSITION = 'position', RELATIVE = 'relative', DOCUMENT = 'document', BODY = 'body', DOC_ELEMENT = 'documentElement', VIEWPORT = 'viewport', SCROLL = 'scroll', CLIENT = 'client', LEFT = 'left', TOP = 'top', SCROLL_LEFT = SCROLL + 'Left', SCROLL_TOP = SCROLL + 'Top'; _$jscoverage['/base/offset.js'].lineData[30]++; S.mix(Dom, { offset: function(selector, coordinates, relativeWin) { @@ -764,13 +764,13 @@ KISSY.add(function(S, require) { _$jscoverage['/base/offset.js'].lineData[53]++; var elem; _$jscoverage['/base/offset.js'].lineData[55]++; - if (visit262_55_1(coordinates === undefined)) { + if (visit264_55_1(coordinates === undefined)) { _$jscoverage['/base/offset.js'].lineData[56]++; elem = Dom.get(selector); _$jscoverage['/base/offset.js'].lineData[57]++; var ret; _$jscoverage['/base/offset.js'].lineData[58]++; - if (visit263_58_1(elem)) { + if (visit265_58_1(elem)) { _$jscoverage['/base/offset.js'].lineData[59]++; ret = getOffset(elem, relativeWin); } @@ -780,7 +780,7 @@ KISSY.add(function(S, require) { _$jscoverage['/base/offset.js'].lineData[64]++; var els = Dom.query(selector), i; _$jscoverage['/base/offset.js'].lineData[65]++; - for (i = els.length - 1; visit264_65_1(i >= 0); i--) { + for (i = els.length - 1; visit266_65_1(i >= 0); i--) { _$jscoverage['/base/offset.js'].lineData[66]++; elem = els[i]; _$jscoverage['/base/offset.js'].lineData[67]++; @@ -794,27 +794,27 @@ KISSY.add(function(S, require) { _$jscoverage['/base/offset.js'].lineData[87]++; var elem, onlyScrollIfNeeded; _$jscoverage['/base/offset.js'].lineData[90]++; - if (visit265_90_1(!(elem = Dom.get(selector)))) { + if (visit267_90_1(!(elem = Dom.get(selector)))) { _$jscoverage['/base/offset.js'].lineData[91]++; return; } _$jscoverage['/base/offset.js'].lineData[94]++; - if (visit266_94_1(container)) { + if (visit268_94_1(container)) { _$jscoverage['/base/offset.js'].lineData[95]++; container = Dom.get(container); } _$jscoverage['/base/offset.js'].lineData[98]++; - if (visit267_98_1(!container)) { + if (visit269_98_1(!container)) { _$jscoverage['/base/offset.js'].lineData[99]++; container = elem.ownerDocument; } _$jscoverage['/base/offset.js'].lineData[103]++; - if (visit268_103_1(container.nodeType === NodeType.DOCUMENT_NODE)) { + if (visit270_103_1(container.nodeType === NodeType.DOCUMENT_NODE)) { _$jscoverage['/base/offset.js'].lineData[104]++; container = getWindow(container); } _$jscoverage['/base/offset.js'].lineData[107]++; - if (visit269_107_1(S.isPlainObject(alignWithTop))) { + if (visit271_107_1(S.isPlainObject(alignWithTop))) { _$jscoverage['/base/offset.js'].lineData[108]++; allowHorizontalScroll = alignWithTop.allowHorizontalScroll; _$jscoverage['/base/offset.js'].lineData[109]++; @@ -823,11 +823,11 @@ KISSY.add(function(S, require) { alignWithTop = alignWithTop.alignWithTop; } _$jscoverage['/base/offset.js'].lineData[113]++; - allowHorizontalScroll = visit270_113_1(allowHorizontalScroll === undefined) ? true : allowHorizontalScroll; + allowHorizontalScroll = visit272_113_1(allowHorizontalScroll === undefined) ? true : allowHorizontalScroll; _$jscoverage['/base/offset.js'].lineData[115]++; var isWin = S.isWindow(container), elemOffset = Dom.offset(elem), eh = Dom.outerHeight(elem), ew = Dom.outerWidth(elem), containerOffset, ch, cw, containerScroll, diffTop, diffBottom, win, winScroll, ww, wh; _$jscoverage['/base/offset.js'].lineData[130]++; - if (visit271_130_1(isWin)) { + if (visit273_130_1(isWin)) { _$jscoverage['/base/offset.js'].lineData[131]++; win = container; _$jscoverage['/base/offset.js'].lineData[132]++; @@ -861,29 +861,29 @@ KISSY.add(function(S, require) { top: Dom.scrollTop(container)}; _$jscoverage['/base/offset.js'].lineData[159]++; diffTop = { - left: elemOffset[LEFT] - (containerOffset[LEFT] + (visit272_161_1(parseFloat(Dom.css(container, 'borderLeftWidth')) || 0))), - top: elemOffset[TOP] - (containerOffset[TOP] + (visit273_163_1(parseFloat(Dom.css(container, 'borderTopWidth')) || 0)))}; + left: elemOffset[LEFT] - (containerOffset[LEFT] + (visit274_161_1(parseFloat(Dom.css(container, 'borderLeftWidth')) || 0))), + top: elemOffset[TOP] - (containerOffset[TOP] + (visit275_163_1(parseFloat(Dom.css(container, 'borderTopWidth')) || 0)))}; _$jscoverage['/base/offset.js'].lineData[165]++; diffBottom = { - left: elemOffset[LEFT] + ew - (containerOffset[LEFT] + cw + (visit274_168_1(parseFloat(Dom.css(container, 'borderRightWidth')) || 0))), - top: elemOffset[TOP] + eh - (containerOffset[TOP] + ch + (visit275_171_1(parseFloat(Dom.css(container, 'borderBottomWidth')) || 0)))}; + left: elemOffset[LEFT] + ew - (containerOffset[LEFT] + cw + (visit276_168_1(parseFloat(Dom.css(container, 'borderRightWidth')) || 0))), + top: elemOffset[TOP] + eh - (containerOffset[TOP] + ch + (visit277_171_1(parseFloat(Dom.css(container, 'borderBottomWidth')) || 0)))}; } _$jscoverage['/base/offset.js'].lineData[175]++; - if (visit276_175_1(onlyScrollIfNeeded)) { + if (visit278_175_1(onlyScrollIfNeeded)) { _$jscoverage['/base/offset.js'].lineData[176]++; - if (visit277_176_1(visit278_176_2(diffTop.top < 0) || visit279_176_3(diffBottom.top > 0))) { + if (visit279_176_1(visit280_176_2(diffTop.top < 0) || visit281_176_3(diffBottom.top > 0))) { _$jscoverage['/base/offset.js'].lineData[178]++; - if (visit280_178_1(alignWithTop === true)) { + if (visit282_178_1(alignWithTop === true)) { _$jscoverage['/base/offset.js'].lineData[179]++; Dom.scrollTop(container, containerScroll.top + diffTop.top); } else { _$jscoverage['/base/offset.js'].lineData[180]++; - if (visit281_180_1(alignWithTop === false)) { + if (visit283_180_1(alignWithTop === false)) { _$jscoverage['/base/offset.js'].lineData[181]++; Dom.scrollTop(container, containerScroll.top + diffBottom.top); } else { _$jscoverage['/base/offset.js'].lineData[184]++; - if (visit282_184_1(diffTop.top < 0)) { + if (visit284_184_1(diffTop.top < 0)) { _$jscoverage['/base/offset.js'].lineData[185]++; Dom.scrollTop(container, containerScroll.top + diffTop.top); } else { @@ -895,9 +895,9 @@ KISSY.add(function(S, require) { } } else { _$jscoverage['/base/offset.js'].lineData[192]++; - alignWithTop = visit283_192_1(alignWithTop === undefined) ? true : !!alignWithTop; + alignWithTop = visit285_192_1(alignWithTop === undefined) ? true : !!alignWithTop; _$jscoverage['/base/offset.js'].lineData[193]++; - if (visit284_193_1(alignWithTop)) { + if (visit286_193_1(alignWithTop)) { _$jscoverage['/base/offset.js'].lineData[194]++; Dom.scrollTop(container, containerScroll.top + diffTop.top); } else { @@ -906,23 +906,23 @@ KISSY.add(function(S, require) { } } _$jscoverage['/base/offset.js'].lineData[200]++; - if (visit285_200_1(allowHorizontalScroll)) { + if (visit287_200_1(allowHorizontalScroll)) { _$jscoverage['/base/offset.js'].lineData[201]++; - if (visit286_201_1(onlyScrollIfNeeded)) { + if (visit288_201_1(onlyScrollIfNeeded)) { _$jscoverage['/base/offset.js'].lineData[202]++; - if (visit287_202_1(visit288_202_2(diffTop.left < 0) || visit289_202_3(diffBottom.left > 0))) { + if (visit289_202_1(visit290_202_2(diffTop.left < 0) || visit291_202_3(diffBottom.left > 0))) { _$jscoverage['/base/offset.js'].lineData[204]++; - if (visit290_204_1(alignWithTop === true)) { + if (visit292_204_1(alignWithTop === true)) { _$jscoverage['/base/offset.js'].lineData[205]++; Dom.scrollLeft(container, containerScroll.left + diffTop.left); } else { _$jscoverage['/base/offset.js'].lineData[206]++; - if (visit291_206_1(alignWithTop === false)) { + if (visit293_206_1(alignWithTop === false)) { _$jscoverage['/base/offset.js'].lineData[207]++; Dom.scrollLeft(container, containerScroll.left + diffBottom.left); } else { _$jscoverage['/base/offset.js'].lineData[210]++; - if (visit292_210_1(diffTop.left < 0)) { + if (visit294_210_1(diffTop.left < 0)) { _$jscoverage['/base/offset.js'].lineData[211]++; Dom.scrollLeft(container, containerScroll.left + diffTop.left); } else { @@ -934,9 +934,9 @@ KISSY.add(function(S, require) { } } else { _$jscoverage['/base/offset.js'].lineData[218]++; - alignWithTop = visit293_218_1(alignWithTop === undefined) ? true : !!alignWithTop; + alignWithTop = visit295_218_1(alignWithTop === undefined) ? true : !!alignWithTop; _$jscoverage['/base/offset.js'].lineData[219]++; - if (visit294_219_1(alignWithTop)) { + if (visit296_219_1(alignWithTop)) { _$jscoverage['/base/offset.js'].lineData[220]++; Dom.scrollLeft(container, containerScroll.left + diffTop.left); } else { @@ -961,7 +961,7 @@ KISSY.add(function(S, require) { Dom[method] = function(elem, v) { _$jscoverage['/base/offset.js'].functionData[4]++; _$jscoverage['/base/offset.js'].lineData[279]++; - if (visit295_279_1(typeof elem === 'number')) { + if (visit297_279_1(typeof elem === 'number')) { _$jscoverage['/base/offset.js'].lineData[281]++; return arguments.callee(win, elem); } @@ -970,9 +970,9 @@ KISSY.add(function(S, require) { _$jscoverage['/base/offset.js'].lineData[284]++; var ret, left, top, w, d; _$jscoverage['/base/offset.js'].lineData[289]++; - if (visit296_289_1(elem && visit297_289_2(elem.nodeType === NodeType.ELEMENT_NODE))) { + if (visit298_289_1(elem && visit299_289_2(elem.nodeType === NodeType.ELEMENT_NODE))) { _$jscoverage['/base/offset.js'].lineData[290]++; - if (visit298_290_1(v !== undefined)) { + if (visit300_290_1(v !== undefined)) { _$jscoverage['/base/offset.js'].lineData[291]++; elem[method] = parseFloat(v); } else { @@ -983,26 +983,26 @@ KISSY.add(function(S, require) { _$jscoverage['/base/offset.js'].lineData[296]++; w = getWindow(elem); _$jscoverage['/base/offset.js'].lineData[297]++; - if (visit299_297_1(v !== undefined)) { + if (visit301_297_1(v !== undefined)) { _$jscoverage['/base/offset.js'].lineData[298]++; v = parseFloat(v); _$jscoverage['/base/offset.js'].lineData[300]++; - left = visit300_300_1(name === 'Left') ? v : Dom.scrollLeft(w); + left = visit302_300_1(name === 'Left') ? v : Dom.scrollLeft(w); _$jscoverage['/base/offset.js'].lineData[301]++; - top = visit301_301_1(name === 'Top') ? v : Dom.scrollTop(w); + top = visit303_301_1(name === 'Top') ? v : Dom.scrollTop(w); _$jscoverage['/base/offset.js'].lineData[302]++; w.scrollTo(left, top); } else { _$jscoverage['/base/offset.js'].lineData[307]++; ret = w['page' + (i ? 'Y' : 'X') + 'Offset']; _$jscoverage['/base/offset.js'].lineData[308]++; - if (visit302_308_1(typeof ret !== 'number')) { + if (visit304_308_1(typeof ret !== 'number')) { _$jscoverage['/base/offset.js'].lineData[309]++; d = w[DOCUMENT]; _$jscoverage['/base/offset.js'].lineData[311]++; ret = d[DOC_ELEMENT][method]; _$jscoverage['/base/offset.js'].lineData[312]++; - if (visit303_312_1(typeof ret !== 'number')) { + if (visit305_312_1(typeof ret !== 'number')) { _$jscoverage['/base/offset.js'].lineData[314]++; ret = d[BODY][method]; } @@ -1036,14 +1036,14 @@ KISSY.add(function(S, require) { _$jscoverage['/base/offset.js'].lineData[340]++; var ret = win['inner' + name]; _$jscoverage['/base/offset.js'].lineData[342]++; - if (visit304_342_1(UA.mobile && ret)) { + if (visit306_342_1(UA.mobile && ret)) { _$jscoverage['/base/offset.js'].lineData[343]++; return ret; } _$jscoverage['/base/offset.js'].lineData[346]++; var prop = CLIENT + name, doc = win[DOCUMENT], body = doc[BODY], documentElement = doc[DOC_ELEMENT], documentElementProp = documentElement[prop]; _$jscoverage['/base/offset.js'].lineData[353]++; - return visit305_353_1(visit306_353_2(visit307_353_3(doc[compatMode] === CSS1Compat) && documentElementProp) || visit308_354_1(visit309_354_2(body && body[prop]) || documentElementProp)); + return visit307_353_1(visit308_353_2(visit309_353_3(doc[compatMode] === CSS1Compat) && documentElementProp) || visit310_354_1(visit311_354_2(body && body[prop]) || documentElementProp)); }; }); _$jscoverage['/base/offset.js'].lineData[358]++; @@ -1052,7 +1052,7 @@ KISSY.add(function(S, require) { _$jscoverage['/base/offset.js'].lineData[359]++; var box, x, y, doc = elem.ownerDocument, body = doc.body; _$jscoverage['/base/offset.js'].lineData[363]++; - if (visit310_363_1(!elem.getBoundingClientRect)) { + if (visit312_363_1(!elem.getBoundingClientRect)) { _$jscoverage['/base/offset.js'].lineData[364]++; return { left: 0, @@ -1065,9 +1065,9 @@ KISSY.add(function(S, require) { _$jscoverage['/base/offset.js'].lineData[378]++; y = box[TOP]; _$jscoverage['/base/offset.js'].lineData[400]++; - x -= visit311_400_1(docElem.clientLeft || visit312_400_2(body.clientLeft || 0)); + x -= visit313_400_1(docElem.clientLeft || visit314_400_2(body.clientLeft || 0)); _$jscoverage['/base/offset.js'].lineData[401]++; - y -= visit313_401_1(docElem.clientTop || visit314_401_2(body.clientTop || 0)); + y -= visit315_401_1(docElem.clientTop || visit316_401_2(body.clientTop || 0)); _$jscoverage['/base/offset.js'].lineData[403]++; return { left: x, @@ -1093,39 +1093,39 @@ KISSY.add(function(S, require) { left: 0, top: 0}, currentWin = getWindow(el), offset, currentEl = el; _$jscoverage['/base/offset.js'].lineData[424]++; - relativeWin = visit315_424_1(relativeWin || currentWin); + relativeWin = visit317_424_1(relativeWin || currentWin); _$jscoverage['/base/offset.js'].lineData[426]++; do { - _$jscoverage['/base/offset.js'].lineData[431]++; - offset = visit316_431_1(currentWin === relativeWin) ? getPageOffset(currentEl) : getClientPosition(currentEl); - _$jscoverage['/base/offset.js'].lineData[434]++; + _$jscoverage['/base/offset.js'].lineData[433]++; + offset = visit318_433_1(currentWin == relativeWin) ? getPageOffset(currentEl) : getClientPosition(currentEl); + _$jscoverage['/base/offset.js'].lineData[436]++; position.left += offset.left; - _$jscoverage['/base/offset.js'].lineData[435]++; + _$jscoverage['/base/offset.js'].lineData[437]++; position.top += offset.top; - } while (visit317_436_1(currentWin && visit318_437_1(visit319_437_2(currentWin !== relativeWin) && visit320_438_1((currentEl = currentWin.frameElement) && (currentWin = currentWin.parent))))); - _$jscoverage['/base/offset.js'].lineData[441]++; + } while (visit319_438_1(currentWin && visit320_439_1(visit321_439_2(currentWin != relativeWin) && visit322_440_1((currentEl = currentWin.frameElement) && (currentWin = currentWin.parent))))); + _$jscoverage['/base/offset.js'].lineData[443]++; return position; } - _$jscoverage['/base/offset.js'].lineData[445]++; + _$jscoverage['/base/offset.js'].lineData[447]++; function setOffset(elem, offset) { _$jscoverage['/base/offset.js'].functionData[11]++; - _$jscoverage['/base/offset.js'].lineData[447]++; - if (visit321_447_1(Dom.css(elem, POSITION) === 'static')) { - _$jscoverage['/base/offset.js'].lineData[448]++; + _$jscoverage['/base/offset.js'].lineData[449]++; + if (visit323_449_1(Dom.css(elem, POSITION) === 'static')) { + _$jscoverage['/base/offset.js'].lineData[450]++; elem.style[POSITION] = RELATIVE; } - _$jscoverage['/base/offset.js'].lineData[451]++; + _$jscoverage['/base/offset.js'].lineData[453]++; var old = getOffset(elem), ret = {}, current, key; - _$jscoverage['/base/offset.js'].lineData[455]++; + _$jscoverage['/base/offset.js'].lineData[457]++; for (key in offset) { - _$jscoverage['/base/offset.js'].lineData[456]++; - current = visit322_456_1(parseFloat(Dom.css(elem, key)) || 0); - _$jscoverage['/base/offset.js'].lineData[457]++; + _$jscoverage['/base/offset.js'].lineData[458]++; + current = visit324_458_1(parseFloat(Dom.css(elem, key)) || 0); + _$jscoverage['/base/offset.js'].lineData[459]++; ret[key] = current + offset[key] - old[key]; } - _$jscoverage['/base/offset.js'].lineData[459]++; + _$jscoverage['/base/offset.js'].lineData[461]++; Dom.css(elem, ret); } - _$jscoverage['/base/offset.js'].lineData[462]++; + _$jscoverage['/base/offset.js'].lineData[464]++; return Dom; }); diff --git a/src/dom/sub-modules/base/coverage/src/base/selector.js b/src/dom/sub-modules/base/coverage/src/base/selector.js index 815958c18c..0e521ca9d5 100644 --- a/src/dom/sub-modules/base/coverage/src/base/selector.js +++ b/src/dom/sub-modules/base/coverage/src/base/selector.js @@ -232,161 +232,172 @@ if (! _$jscoverage['/base/selector.js']) { _$jscoverage['/base/selector.js'].lineData[6] = 0; _$jscoverage['/base/selector.js'].lineData[7] = 0; _$jscoverage['/base/selector.js'].lineData[8] = 0; - _$jscoverage['/base/selector.js'].lineData[28] = 0; _$jscoverage['/base/selector.js'].lineData[29] = 0; - _$jscoverage['/base/selector.js'].lineData[32] = 0; - _$jscoverage['/base/selector.js'].lineData[33] = 0; + _$jscoverage['/base/selector.js'].lineData[30] = 0; + _$jscoverage['/base/selector.js'].lineData[31] = 0; _$jscoverage['/base/selector.js'].lineData[34] = 0; - _$jscoverage['/base/selector.js'].lineData[39] = 0; - _$jscoverage['/base/selector.js'].lineData[40] = 0; + _$jscoverage['/base/selector.js'].lineData[35] = 0; + _$jscoverage['/base/selector.js'].lineData[36] = 0; + _$jscoverage['/base/selector.js'].lineData[37] = 0; + _$jscoverage['/base/selector.js'].lineData[38] = 0; _$jscoverage['/base/selector.js'].lineData[41] = 0; - _$jscoverage['/base/selector.js'].lineData[42] = 0; _$jscoverage['/base/selector.js'].lineData[44] = 0; - _$jscoverage['/base/selector.js'].lineData[47] = 0; - _$jscoverage['/base/selector.js'].lineData[48] = 0; + _$jscoverage['/base/selector.js'].lineData[45] = 0; _$jscoverage['/base/selector.js'].lineData[49] = 0; _$jscoverage['/base/selector.js'].lineData[50] = 0; - _$jscoverage['/base/selector.js'].lineData[51] = 0; - _$jscoverage['/base/selector.js'].lineData[52] = 0; + _$jscoverage['/base/selector.js'].lineData[53] = 0; _$jscoverage['/base/selector.js'].lineData[54] = 0; - _$jscoverage['/base/selector.js'].lineData[58] = 0; - _$jscoverage['/base/selector.js'].lineData[59] = 0; + _$jscoverage['/base/selector.js'].lineData[55] = 0; _$jscoverage['/base/selector.js'].lineData[60] = 0; _$jscoverage['/base/selector.js'].lineData[61] = 0; + _$jscoverage['/base/selector.js'].lineData[62] = 0; + _$jscoverage['/base/selector.js'].lineData[63] = 0; _$jscoverage['/base/selector.js'].lineData[65] = 0; - _$jscoverage['/base/selector.js'].lineData[66] = 0; - _$jscoverage['/base/selector.js'].lineData[67] = 0; + _$jscoverage['/base/selector.js'].lineData[68] = 0; + _$jscoverage['/base/selector.js'].lineData[69] = 0; + _$jscoverage['/base/selector.js'].lineData[70] = 0; _$jscoverage['/base/selector.js'].lineData[71] = 0; _$jscoverage['/base/selector.js'].lineData[72] = 0; _$jscoverage['/base/selector.js'].lineData[73] = 0; - _$jscoverage['/base/selector.js'].lineData[78] = 0; + _$jscoverage['/base/selector.js'].lineData[75] = 0; _$jscoverage['/base/selector.js'].lineData[79] = 0; _$jscoverage['/base/selector.js'].lineData[80] = 0; - _$jscoverage['/base/selector.js'].lineData[83] = 0; - _$jscoverage['/base/selector.js'].lineData[84] = 0; + _$jscoverage['/base/selector.js'].lineData[81] = 0; + _$jscoverage['/base/selector.js'].lineData[82] = 0; + _$jscoverage['/base/selector.js'].lineData[86] = 0; + _$jscoverage['/base/selector.js'].lineData[87] = 0; + _$jscoverage['/base/selector.js'].lineData[88] = 0; + _$jscoverage['/base/selector.js'].lineData[92] = 0; _$jscoverage['/base/selector.js'].lineData[93] = 0; _$jscoverage['/base/selector.js'].lineData[94] = 0; - _$jscoverage['/base/selector.js'].lineData[95] = 0; - _$jscoverage['/base/selector.js'].lineData[96] = 0; - _$jscoverage['/base/selector.js'].lineData[98] = 0; + _$jscoverage['/base/selector.js'].lineData[99] = 0; _$jscoverage['/base/selector.js'].lineData[100] = 0; _$jscoverage['/base/selector.js'].lineData[101] = 0; _$jscoverage['/base/selector.js'].lineData[104] = 0; _$jscoverage['/base/selector.js'].lineData[105] = 0; - _$jscoverage['/base/selector.js'].lineData[108] = 0; - _$jscoverage['/base/selector.js'].lineData[109] = 0; - _$jscoverage['/base/selector.js'].lineData[110] = 0; - _$jscoverage['/base/selector.js'].lineData[113] = 0; _$jscoverage['/base/selector.js'].lineData[114] = 0; _$jscoverage['/base/selector.js'].lineData[115] = 0; - _$jscoverage['/base/selector.js'].lineData[118] = 0; + _$jscoverage['/base/selector.js'].lineData[116] = 0; + _$jscoverage['/base/selector.js'].lineData[117] = 0; _$jscoverage['/base/selector.js'].lineData[119] = 0; + _$jscoverage['/base/selector.js'].lineData[121] = 0; _$jscoverage['/base/selector.js'].lineData[122] = 0; _$jscoverage['/base/selector.js'].lineData[123] = 0; + _$jscoverage['/base/selector.js'].lineData[125] = 0; + _$jscoverage['/base/selector.js'].lineData[126] = 0; + _$jscoverage['/base/selector.js'].lineData[128] = 0; _$jscoverage['/base/selector.js'].lineData[129] = 0; _$jscoverage['/base/selector.js'].lineData[130] = 0; + _$jscoverage['/base/selector.js'].lineData[132] = 0; _$jscoverage['/base/selector.js'].lineData[133] = 0; _$jscoverage['/base/selector.js'].lineData[134] = 0; - _$jscoverage['/base/selector.js'].lineData[138] = 0; - _$jscoverage['/base/selector.js'].lineData[141] = 0; - _$jscoverage['/base/selector.js'].lineData[142] = 0; + _$jscoverage['/base/selector.js'].lineData[136] = 0; + _$jscoverage['/base/selector.js'].lineData[137] = 0; + _$jscoverage['/base/selector.js'].lineData[139] = 0; _$jscoverage['/base/selector.js'].lineData[145] = 0; _$jscoverage['/base/selector.js'].lineData[146] = 0; - _$jscoverage['/base/selector.js'].lineData[147] = 0; + _$jscoverage['/base/selector.js'].lineData[149] = 0; _$jscoverage['/base/selector.js'].lineData[150] = 0; _$jscoverage['/base/selector.js'].lineData[154] = 0; - _$jscoverage['/base/selector.js'].lineData[155] = 0; - _$jscoverage['/base/selector.js'].lineData[156] = 0; _$jscoverage['/base/selector.js'].lineData[157] = 0; - _$jscoverage['/base/selector.js'].lineData[160] = 0; + _$jscoverage['/base/selector.js'].lineData[158] = 0; _$jscoverage['/base/selector.js'].lineData[161] = 0; - _$jscoverage['/base/selector.js'].lineData[169] = 0; + _$jscoverage['/base/selector.js'].lineData[162] = 0; + _$jscoverage['/base/selector.js'].lineData[163] = 0; + _$jscoverage['/base/selector.js'].lineData[166] = 0; _$jscoverage['/base/selector.js'].lineData[170] = 0; + _$jscoverage['/base/selector.js'].lineData[171] = 0; + _$jscoverage['/base/selector.js'].lineData[172] = 0; _$jscoverage['/base/selector.js'].lineData[173] = 0; - _$jscoverage['/base/selector.js'].lineData[174] = 0; - _$jscoverage['/base/selector.js'].lineData[179] = 0; - _$jscoverage['/base/selector.js'].lineData[180] = 0; + _$jscoverage['/base/selector.js'].lineData[176] = 0; + _$jscoverage['/base/selector.js'].lineData[177] = 0; + _$jscoverage['/base/selector.js'].lineData[185] = 0; + _$jscoverage['/base/selector.js'].lineData[186] = 0; _$jscoverage['/base/selector.js'].lineData[187] = 0; - _$jscoverage['/base/selector.js'].lineData[188] = 0; + _$jscoverage['/base/selector.js'].lineData[189] = 0; _$jscoverage['/base/selector.js'].lineData[190] = 0; - _$jscoverage['/base/selector.js'].lineData[193] = 0; _$jscoverage['/base/selector.js'].lineData[194] = 0; - _$jscoverage['/base/selector.js'].lineData[197] = 0; - _$jscoverage['/base/selector.js'].lineData[198] = 0; - _$jscoverage['/base/selector.js'].lineData[199] = 0; - _$jscoverage['/base/selector.js'].lineData[200] = 0; + _$jscoverage['/base/selector.js'].lineData[195] = 0; _$jscoverage['/base/selector.js'].lineData[201] = 0; - _$jscoverage['/base/selector.js'].lineData[202] = 0; + _$jscoverage['/base/selector.js'].lineData[203] = 0; + _$jscoverage['/base/selector.js'].lineData[206] = 0; + _$jscoverage['/base/selector.js'].lineData[207] = 0; _$jscoverage['/base/selector.js'].lineData[210] = 0; + _$jscoverage['/base/selector.js'].lineData[211] = 0; _$jscoverage['/base/selector.js'].lineData[212] = 0; + _$jscoverage['/base/selector.js'].lineData[213] = 0; + _$jscoverage['/base/selector.js'].lineData[214] = 0; _$jscoverage['/base/selector.js'].lineData[215] = 0; - _$jscoverage['/base/selector.js'].lineData[217] = 0; - _$jscoverage['/base/selector.js'].lineData[218] = 0; _$jscoverage['/base/selector.js'].lineData[223] = 0; - _$jscoverage['/base/selector.js'].lineData[224] = 0; _$jscoverage['/base/selector.js'].lineData[225] = 0; - _$jscoverage['/base/selector.js'].lineData[226] = 0; _$jscoverage['/base/selector.js'].lineData[228] = 0; _$jscoverage['/base/selector.js'].lineData[231] = 0; _$jscoverage['/base/selector.js'].lineData[232] = 0; - _$jscoverage['/base/selector.js'].lineData[235] = 0; - _$jscoverage['/base/selector.js'].lineData[243] = 0; + _$jscoverage['/base/selector.js'].lineData[236] = 0; + _$jscoverage['/base/selector.js'].lineData[237] = 0; + _$jscoverage['/base/selector.js'].lineData[238] = 0; + _$jscoverage['/base/selector.js'].lineData[239] = 0; + _$jscoverage['/base/selector.js'].lineData[241] = 0; _$jscoverage['/base/selector.js'].lineData[244] = 0; - _$jscoverage['/base/selector.js'].lineData[246] = 0; - _$jscoverage['/base/selector.js'].lineData[247] = 0; - _$jscoverage['/base/selector.js'].lineData[252] = 0; + _$jscoverage['/base/selector.js'].lineData[245] = 0; + _$jscoverage['/base/selector.js'].lineData[248] = 0; _$jscoverage['/base/selector.js'].lineData[256] = 0; - _$jscoverage['/base/selector.js'].lineData[266] = 0; - _$jscoverage['/base/selector.js'].lineData[270] = 0; - _$jscoverage['/base/selector.js'].lineData[271] = 0; - _$jscoverage['/base/selector.js'].lineData[272] = 0; - _$jscoverage['/base/selector.js'].lineData[273] = 0; - _$jscoverage['/base/selector.js'].lineData[276] = 0; - _$jscoverage['/base/selector.js'].lineData[280] = 0; - _$jscoverage['/base/selector.js'].lineData[305] = 0; - _$jscoverage['/base/selector.js'].lineData[317] = 0; - _$jscoverage['/base/selector.js'].lineData[324] = 0; - _$jscoverage['/base/selector.js'].lineData[325] = 0; - _$jscoverage['/base/selector.js'].lineData[326] = 0; - _$jscoverage['/base/selector.js'].lineData[329] = 0; - _$jscoverage['/base/selector.js'].lineData[330] = 0; + _$jscoverage['/base/selector.js'].lineData[257] = 0; + _$jscoverage['/base/selector.js'].lineData[259] = 0; + _$jscoverage['/base/selector.js'].lineData[260] = 0; + _$jscoverage['/base/selector.js'].lineData[265] = 0; + _$jscoverage['/base/selector.js'].lineData[269] = 0; + _$jscoverage['/base/selector.js'].lineData[279] = 0; + _$jscoverage['/base/selector.js'].lineData[283] = 0; + _$jscoverage['/base/selector.js'].lineData[284] = 0; + _$jscoverage['/base/selector.js'].lineData[285] = 0; + _$jscoverage['/base/selector.js'].lineData[286] = 0; + _$jscoverage['/base/selector.js'].lineData[289] = 0; + _$jscoverage['/base/selector.js'].lineData[293] = 0; + _$jscoverage['/base/selector.js'].lineData[319] = 0; _$jscoverage['/base/selector.js'].lineData[331] = 0; - _$jscoverage['/base/selector.js'].lineData[332] = 0; - _$jscoverage['/base/selector.js'].lineData[335] = 0; + _$jscoverage['/base/selector.js'].lineData[338] = 0; _$jscoverage['/base/selector.js'].lineData[339] = 0; - _$jscoverage['/base/selector.js'].lineData[341] = 0; - _$jscoverage['/base/selector.js'].lineData[342] = 0; + _$jscoverage['/base/selector.js'].lineData[340] = 0; + _$jscoverage['/base/selector.js'].lineData[343] = 0; _$jscoverage['/base/selector.js'].lineData[344] = 0; _$jscoverage['/base/selector.js'].lineData[345] = 0; _$jscoverage['/base/selector.js'].lineData[346] = 0; - _$jscoverage['/base/selector.js'].lineData[347] = 0; - _$jscoverage['/base/selector.js'].lineData[348] = 0; _$jscoverage['/base/selector.js'].lineData[349] = 0; - _$jscoverage['/base/selector.js'].lineData[351] = 0; + _$jscoverage['/base/selector.js'].lineData[353] = 0; + _$jscoverage['/base/selector.js'].lineData[355] = 0; _$jscoverage['/base/selector.js'].lineData[356] = 0; - _$jscoverage['/base/selector.js'].lineData[369] = 0; - _$jscoverage['/base/selector.js'].lineData[376] = 0; - _$jscoverage['/base/selector.js'].lineData[379] = 0; - _$jscoverage['/base/selector.js'].lineData[380] = 0; - _$jscoverage['/base/selector.js'].lineData[381] = 0; - _$jscoverage['/base/selector.js'].lineData[382] = 0; + _$jscoverage['/base/selector.js'].lineData[358] = 0; + _$jscoverage['/base/selector.js'].lineData[359] = 0; + _$jscoverage['/base/selector.js'].lineData[360] = 0; + _$jscoverage['/base/selector.js'].lineData[361] = 0; + _$jscoverage['/base/selector.js'].lineData[362] = 0; + _$jscoverage['/base/selector.js'].lineData[363] = 0; + _$jscoverage['/base/selector.js'].lineData[365] = 0; + _$jscoverage['/base/selector.js'].lineData[370] = 0; _$jscoverage['/base/selector.js'].lineData[383] = 0; - _$jscoverage['/base/selector.js'].lineData[384] = 0; - _$jscoverage['/base/selector.js'].lineData[388] = 0; - _$jscoverage['/base/selector.js'].lineData[389] = 0; + _$jscoverage['/base/selector.js'].lineData[390] = 0; _$jscoverage['/base/selector.js'].lineData[393] = 0; _$jscoverage['/base/selector.js'].lineData[394] = 0; + _$jscoverage['/base/selector.js'].lineData[395] = 0; + _$jscoverage['/base/selector.js'].lineData[396] = 0; _$jscoverage['/base/selector.js'].lineData[397] = 0; - _$jscoverage['/base/selector.js'].lineData[399] = 0; - _$jscoverage['/base/selector.js'].lineData[400] = 0; - _$jscoverage['/base/selector.js'].lineData[401] = 0; - _$jscoverage['/base/selector.js'].lineData[406] = 0; + _$jscoverage['/base/selector.js'].lineData[398] = 0; + _$jscoverage['/base/selector.js'].lineData[402] = 0; + _$jscoverage['/base/selector.js'].lineData[403] = 0; _$jscoverage['/base/selector.js'].lineData[407] = 0; - _$jscoverage['/base/selector.js'].lineData[409] = 0; - _$jscoverage['/base/selector.js'].lineData[412] = 0; - _$jscoverage['/base/selector.js'].lineData[424] = 0; - _$jscoverage['/base/selector.js'].lineData[425] = 0; - _$jscoverage['/base/selector.js'].lineData[429] = 0; + _$jscoverage['/base/selector.js'].lineData[408] = 0; + _$jscoverage['/base/selector.js'].lineData[411] = 0; + _$jscoverage['/base/selector.js'].lineData[413] = 0; + _$jscoverage['/base/selector.js'].lineData[414] = 0; + _$jscoverage['/base/selector.js'].lineData[415] = 0; + _$jscoverage['/base/selector.js'].lineData[420] = 0; + _$jscoverage['/base/selector.js'].lineData[421] = 0; + _$jscoverage['/base/selector.js'].lineData[423] = 0; + _$jscoverage['/base/selector.js'].lineData[426] = 0; + _$jscoverage['/base/selector.js'].lineData[438] = 0; + _$jscoverage['/base/selector.js'].lineData[439] = 0; + _$jscoverage['/base/selector.js'].lineData[443] = 0; } if (! _$jscoverage['/base/selector.js'].functionData) { _$jscoverage['/base/selector.js'].functionData = []; @@ -419,6 +430,8 @@ if (! _$jscoverage['/base/selector.js'].functionData) { _$jscoverage['/base/selector.js'].functionData[26] = 0; _$jscoverage['/base/selector.js'].functionData[27] = 0; _$jscoverage['/base/selector.js'].functionData[28] = 0; + _$jscoverage['/base/selector.js'].functionData[29] = 0; + _$jscoverage['/base/selector.js'].functionData[30] = 0; } if (! _$jscoverage['/base/selector.js'].branchData) { _$jscoverage['/base/selector.js'].branchData = {}; @@ -430,430 +443,447 @@ if (! _$jscoverage['/base/selector.js'].branchData) { _$jscoverage['/base/selector.js'].branchData['12'][1] = new BranchData(); _$jscoverage['/base/selector.js'].branchData['13'] = []; _$jscoverage['/base/selector.js'].branchData['13'][1] = new BranchData(); - _$jscoverage['/base/selector.js'].branchData['32'] = []; - _$jscoverage['/base/selector.js'].branchData['32'][1] = new BranchData(); - _$jscoverage['/base/selector.js'].branchData['33'] = []; - _$jscoverage['/base/selector.js'].branchData['33'][1] = new BranchData(); - _$jscoverage['/base/selector.js'].branchData['41'] = []; - _$jscoverage['/base/selector.js'].branchData['41'][1] = new BranchData(); - _$jscoverage['/base/selector.js'].branchData['49'] = []; - _$jscoverage['/base/selector.js'].branchData['49'][1] = new BranchData(); - _$jscoverage['/base/selector.js'].branchData['51'] = []; - _$jscoverage['/base/selector.js'].branchData['51'][1] = new BranchData(); - _$jscoverage['/base/selector.js'].branchData['61'] = []; - _$jscoverage['/base/selector.js'].branchData['61'][1] = new BranchData(); - _$jscoverage['/base/selector.js'].branchData['88'] = []; - _$jscoverage['/base/selector.js'].branchData['88'][1] = new BranchData(); - _$jscoverage['/base/selector.js'].branchData['89'] = []; - _$jscoverage['/base/selector.js'].branchData['89'][1] = new BranchData(); - _$jscoverage['/base/selector.js'].branchData['89'][2] = new BranchData(); - _$jscoverage['/base/selector.js'].branchData['93'] = []; - _$jscoverage['/base/selector.js'].branchData['93'][1] = new BranchData(); - _$jscoverage['/base/selector.js'].branchData['95'] = []; - _$jscoverage['/base/selector.js'].branchData['95'][1] = new BranchData(); - _$jscoverage['/base/selector.js'].branchData['98'] = []; - _$jscoverage['/base/selector.js'].branchData['98'][1] = new BranchData(); - _$jscoverage['/base/selector.js'].branchData['100'] = []; - _$jscoverage['/base/selector.js'].branchData['100'][1] = new BranchData(); - _$jscoverage['/base/selector.js'].branchData['104'] = []; - _$jscoverage['/base/selector.js'].branchData['104'][1] = new BranchData(); - _$jscoverage['/base/selector.js'].branchData['108'] = []; - _$jscoverage['/base/selector.js'].branchData['108'][1] = new BranchData(); + _$jscoverage['/base/selector.js'].branchData['29'] = []; + _$jscoverage['/base/selector.js'].branchData['29'][1] = new BranchData(); + _$jscoverage['/base/selector.js'].branchData['35'] = []; + _$jscoverage['/base/selector.js'].branchData['35'][1] = new BranchData(); + _$jscoverage['/base/selector.js'].branchData['37'] = []; + _$jscoverage['/base/selector.js'].branchData['37'][1] = new BranchData(); + _$jscoverage['/base/selector.js'].branchData['37'][2] = new BranchData(); + _$jscoverage['/base/selector.js'].branchData['53'] = []; + _$jscoverage['/base/selector.js'].branchData['53'][1] = new BranchData(); + _$jscoverage['/base/selector.js'].branchData['54'] = []; + _$jscoverage['/base/selector.js'].branchData['54'][1] = new BranchData(); + _$jscoverage['/base/selector.js'].branchData['62'] = []; + _$jscoverage['/base/selector.js'].branchData['62'][1] = new BranchData(); + _$jscoverage['/base/selector.js'].branchData['70'] = []; + _$jscoverage['/base/selector.js'].branchData['70'][1] = new BranchData(); + _$jscoverage['/base/selector.js'].branchData['72'] = []; + _$jscoverage['/base/selector.js'].branchData['72'][1] = new BranchData(); + _$jscoverage['/base/selector.js'].branchData['82'] = []; + _$jscoverage['/base/selector.js'].branchData['82'][1] = new BranchData(); + _$jscoverage['/base/selector.js'].branchData['109'] = []; + _$jscoverage['/base/selector.js'].branchData['109'][1] = new BranchData(); _$jscoverage['/base/selector.js'].branchData['110'] = []; _$jscoverage['/base/selector.js'].branchData['110'][1] = new BranchData(); _$jscoverage['/base/selector.js'].branchData['110'][2] = new BranchData(); - _$jscoverage['/base/selector.js'].branchData['113'] = []; - _$jscoverage['/base/selector.js'].branchData['113'][1] = new BranchData(); - _$jscoverage['/base/selector.js'].branchData['118'] = []; - _$jscoverage['/base/selector.js'].branchData['118'][1] = new BranchData(); - _$jscoverage['/base/selector.js'].branchData['122'] = []; - _$jscoverage['/base/selector.js'].branchData['122'][1] = new BranchData(); + _$jscoverage['/base/selector.js'].branchData['114'] = []; + _$jscoverage['/base/selector.js'].branchData['114'][1] = new BranchData(); + _$jscoverage['/base/selector.js'].branchData['116'] = []; + _$jscoverage['/base/selector.js'].branchData['116'][1] = new BranchData(); + _$jscoverage['/base/selector.js'].branchData['119'] = []; + _$jscoverage['/base/selector.js'].branchData['119'][1] = new BranchData(); + _$jscoverage['/base/selector.js'].branchData['121'] = []; + _$jscoverage['/base/selector.js'].branchData['121'][1] = new BranchData(); + _$jscoverage['/base/selector.js'].branchData['123'] = []; + _$jscoverage['/base/selector.js'].branchData['123'][1] = new BranchData(); + _$jscoverage['/base/selector.js'].branchData['126'] = []; + _$jscoverage['/base/selector.js'].branchData['126'][1] = new BranchData(); _$jscoverage['/base/selector.js'].branchData['129'] = []; _$jscoverage['/base/selector.js'].branchData['129'][1] = new BranchData(); - _$jscoverage['/base/selector.js'].branchData['133'] = []; - _$jscoverage['/base/selector.js'].branchData['133'][1] = new BranchData(); - _$jscoverage['/base/selector.js'].branchData['139'] = []; - _$jscoverage['/base/selector.js'].branchData['139'][1] = new BranchData(); - _$jscoverage['/base/selector.js'].branchData['146'] = []; - _$jscoverage['/base/selector.js'].branchData['146'][1] = new BranchData(); - _$jscoverage['/base/selector.js'].branchData['150'] = []; - _$jscoverage['/base/selector.js'].branchData['150'][1] = new BranchData(); - _$jscoverage['/base/selector.js'].branchData['150'][2] = new BranchData(); - _$jscoverage['/base/selector.js'].branchData['154'] = []; - _$jscoverage['/base/selector.js'].branchData['154'][1] = new BranchData(); - _$jscoverage['/base/selector.js'].branchData['156'] = []; - _$jscoverage['/base/selector.js'].branchData['156'][1] = new BranchData(); - _$jscoverage['/base/selector.js'].branchData['160'] = []; - _$jscoverage['/base/selector.js'].branchData['160'][1] = new BranchData(); - _$jscoverage['/base/selector.js'].branchData['160'][2] = new BranchData(); - _$jscoverage['/base/selector.js'].branchData['160'][3] = new BranchData(); - _$jscoverage['/base/selector.js'].branchData['169'] = []; - _$jscoverage['/base/selector.js'].branchData['169'][1] = new BranchData(); - _$jscoverage['/base/selector.js'].branchData['173'] = []; - _$jscoverage['/base/selector.js'].branchData['173'][1] = new BranchData(); - _$jscoverage['/base/selector.js'].branchData['179'] = []; - _$jscoverage['/base/selector.js'].branchData['179'][1] = new BranchData(); + _$jscoverage['/base/selector.js'].branchData['129'][2] = new BranchData(); + _$jscoverage['/base/selector.js'].branchData['130'] = []; + _$jscoverage['/base/selector.js'].branchData['130'][1] = new BranchData(); + _$jscoverage['/base/selector.js'].branchData['134'] = []; + _$jscoverage['/base/selector.js'].branchData['134'][1] = new BranchData(); + _$jscoverage['/base/selector.js'].branchData['137'] = []; + _$jscoverage['/base/selector.js'].branchData['137'][1] = new BranchData(); + _$jscoverage['/base/selector.js'].branchData['145'] = []; + _$jscoverage['/base/selector.js'].branchData['145'][1] = new BranchData(); + _$jscoverage['/base/selector.js'].branchData['149'] = []; + _$jscoverage['/base/selector.js'].branchData['149'][1] = new BranchData(); + _$jscoverage['/base/selector.js'].branchData['155'] = []; + _$jscoverage['/base/selector.js'].branchData['155'][1] = new BranchData(); + _$jscoverage['/base/selector.js'].branchData['162'] = []; + _$jscoverage['/base/selector.js'].branchData['162'][1] = new BranchData(); + _$jscoverage['/base/selector.js'].branchData['166'] = []; + _$jscoverage['/base/selector.js'].branchData['166'][1] = new BranchData(); + _$jscoverage['/base/selector.js'].branchData['166'][2] = new BranchData(); + _$jscoverage['/base/selector.js'].branchData['170'] = []; + _$jscoverage['/base/selector.js'].branchData['170'][1] = new BranchData(); + _$jscoverage['/base/selector.js'].branchData['172'] = []; + _$jscoverage['/base/selector.js'].branchData['172'][1] = new BranchData(); + _$jscoverage['/base/selector.js'].branchData['176'] = []; + _$jscoverage['/base/selector.js'].branchData['176'][1] = new BranchData(); + _$jscoverage['/base/selector.js'].branchData['176'][2] = new BranchData(); + _$jscoverage['/base/selector.js'].branchData['176'][3] = new BranchData(); + _$jscoverage['/base/selector.js'].branchData['185'] = []; + _$jscoverage['/base/selector.js'].branchData['185'][1] = new BranchData(); _$jscoverage['/base/selector.js'].branchData['187'] = []; _$jscoverage['/base/selector.js'].branchData['187'][1] = new BranchData(); - _$jscoverage['/base/selector.js'].branchData['193'] = []; - _$jscoverage['/base/selector.js'].branchData['193'][1] = new BranchData(); - _$jscoverage['/base/selector.js'].branchData['198'] = []; - _$jscoverage['/base/selector.js'].branchData['198'][1] = new BranchData(); - _$jscoverage['/base/selector.js'].branchData['199'] = []; - _$jscoverage['/base/selector.js'].branchData['199'][1] = new BranchData(); - _$jscoverage['/base/selector.js'].branchData['200'] = []; - _$jscoverage['/base/selector.js'].branchData['200'][1] = new BranchData(); - _$jscoverage['/base/selector.js'].branchData['217'] = []; - _$jscoverage['/base/selector.js'].branchData['217'][1] = new BranchData(); - _$jscoverage['/base/selector.js'].branchData['217'][2] = new BranchData(); - _$jscoverage['/base/selector.js'].branchData['218'] = []; - _$jscoverage['/base/selector.js'].branchData['218'][1] = new BranchData(); - _$jscoverage['/base/selector.js'].branchData['219'] = []; - _$jscoverage['/base/selector.js'].branchData['219'][1] = new BranchData(); - _$jscoverage['/base/selector.js'].branchData['220'] = []; - _$jscoverage['/base/selector.js'].branchData['220'][1] = new BranchData(); - _$jscoverage['/base/selector.js'].branchData['224'] = []; - _$jscoverage['/base/selector.js'].branchData['224'][1] = new BranchData(); - _$jscoverage['/base/selector.js'].branchData['225'] = []; - _$jscoverage['/base/selector.js'].branchData['225'][1] = new BranchData(); + _$jscoverage['/base/selector.js'].branchData['190'] = []; + _$jscoverage['/base/selector.js'].branchData['190'][1] = new BranchData(); + _$jscoverage['/base/selector.js'].branchData['195'] = []; + _$jscoverage['/base/selector.js'].branchData['195'][1] = new BranchData(); + _$jscoverage['/base/selector.js'].branchData['206'] = []; + _$jscoverage['/base/selector.js'].branchData['206'][1] = new BranchData(); + _$jscoverage['/base/selector.js'].branchData['211'] = []; + _$jscoverage['/base/selector.js'].branchData['211'][1] = new BranchData(); + _$jscoverage['/base/selector.js'].branchData['212'] = []; + _$jscoverage['/base/selector.js'].branchData['212'][1] = new BranchData(); + _$jscoverage['/base/selector.js'].branchData['213'] = []; + _$jscoverage['/base/selector.js'].branchData['213'][1] = new BranchData(); + _$jscoverage['/base/selector.js'].branchData['231'] = []; + _$jscoverage['/base/selector.js'].branchData['231'][1] = new BranchData(); _$jscoverage['/base/selector.js'].branchData['232'] = []; _$jscoverage['/base/selector.js'].branchData['232'][1] = new BranchData(); _$jscoverage['/base/selector.js'].branchData['232'][2] = new BranchData(); - _$jscoverage['/base/selector.js'].branchData['232'][3] = new BranchData(); - _$jscoverage['/base/selector.js'].branchData['243'] = []; - _$jscoverage['/base/selector.js'].branchData['243'][1] = new BranchData(); - _$jscoverage['/base/selector.js'].branchData['270'] = []; - _$jscoverage['/base/selector.js'].branchData['270'][1] = new BranchData(); - _$jscoverage['/base/selector.js'].branchData['272'] = []; - _$jscoverage['/base/selector.js'].branchData['272'][1] = new BranchData(); - _$jscoverage['/base/selector.js'].branchData['305'] = []; - _$jscoverage['/base/selector.js'].branchData['305'][1] = new BranchData(); - _$jscoverage['/base/selector.js'].branchData['330'] = []; - _$jscoverage['/base/selector.js'].branchData['330'][1] = new BranchData(); + _$jscoverage['/base/selector.js'].branchData['233'] = []; + _$jscoverage['/base/selector.js'].branchData['233'][1] = new BranchData(); + _$jscoverage['/base/selector.js'].branchData['237'] = []; + _$jscoverage['/base/selector.js'].branchData['237'][1] = new BranchData(); + _$jscoverage['/base/selector.js'].branchData['238'] = []; + _$jscoverage['/base/selector.js'].branchData['238'][1] = new BranchData(); + _$jscoverage['/base/selector.js'].branchData['245'] = []; + _$jscoverage['/base/selector.js'].branchData['245'][1] = new BranchData(); + _$jscoverage['/base/selector.js'].branchData['245'][2] = new BranchData(); + _$jscoverage['/base/selector.js'].branchData['245'][3] = new BranchData(); + _$jscoverage['/base/selector.js'].branchData['256'] = []; + _$jscoverage['/base/selector.js'].branchData['256'][1] = new BranchData(); + _$jscoverage['/base/selector.js'].branchData['283'] = []; + _$jscoverage['/base/selector.js'].branchData['283'][1] = new BranchData(); + _$jscoverage['/base/selector.js'].branchData['285'] = []; + _$jscoverage['/base/selector.js'].branchData['285'][1] = new BranchData(); + _$jscoverage['/base/selector.js'].branchData['319'] = []; + _$jscoverage['/base/selector.js'].branchData['319'][1] = new BranchData(); _$jscoverage['/base/selector.js'].branchData['344'] = []; _$jscoverage['/base/selector.js'].branchData['344'][1] = new BranchData(); - _$jscoverage['/base/selector.js'].branchData['346'] = []; - _$jscoverage['/base/selector.js'].branchData['346'][1] = new BranchData(); - _$jscoverage['/base/selector.js'].branchData['347'] = []; - _$jscoverage['/base/selector.js'].branchData['347'][1] = new BranchData(); - _$jscoverage['/base/selector.js'].branchData['376'] = []; - _$jscoverage['/base/selector.js'].branchData['376'][1] = new BranchData(); - _$jscoverage['/base/selector.js'].branchData['376'][2] = new BranchData(); - _$jscoverage['/base/selector.js'].branchData['377'] = []; - _$jscoverage['/base/selector.js'].branchData['377'][1] = new BranchData(); - _$jscoverage['/base/selector.js'].branchData['382'] = []; - _$jscoverage['/base/selector.js'].branchData['382'][1] = new BranchData(); - _$jscoverage['/base/selector.js'].branchData['388'] = []; - _$jscoverage['/base/selector.js'].branchData['388'][1] = new BranchData(); - _$jscoverage['/base/selector.js'].branchData['393'] = []; - _$jscoverage['/base/selector.js'].branchData['393'][1] = new BranchData(); - _$jscoverage['/base/selector.js'].branchData['397'] = []; - _$jscoverage['/base/selector.js'].branchData['397'][1] = new BranchData(); - _$jscoverage['/base/selector.js'].branchData['399'] = []; - _$jscoverage['/base/selector.js'].branchData['399'][1] = new BranchData(); - _$jscoverage['/base/selector.js'].branchData['399'][2] = new BranchData(); - _$jscoverage['/base/selector.js'].branchData['401'] = []; - _$jscoverage['/base/selector.js'].branchData['401'][1] = new BranchData(); - _$jscoverage['/base/selector.js'].branchData['406'] = []; - _$jscoverage['/base/selector.js'].branchData['406'][1] = new BranchData(); - _$jscoverage['/base/selector.js'].branchData['425'] = []; - _$jscoverage['/base/selector.js'].branchData['425'][1] = new BranchData(); - _$jscoverage['/base/selector.js'].branchData['425'][2] = new BranchData(); + _$jscoverage['/base/selector.js'].branchData['358'] = []; + _$jscoverage['/base/selector.js'].branchData['358'][1] = new BranchData(); + _$jscoverage['/base/selector.js'].branchData['360'] = []; + _$jscoverage['/base/selector.js'].branchData['360'][1] = new BranchData(); + _$jscoverage['/base/selector.js'].branchData['361'] = []; + _$jscoverage['/base/selector.js'].branchData['361'][1] = new BranchData(); + _$jscoverage['/base/selector.js'].branchData['390'] = []; + _$jscoverage['/base/selector.js'].branchData['390'][1] = new BranchData(); + _$jscoverage['/base/selector.js'].branchData['390'][2] = new BranchData(); + _$jscoverage['/base/selector.js'].branchData['391'] = []; + _$jscoverage['/base/selector.js'].branchData['391'][1] = new BranchData(); + _$jscoverage['/base/selector.js'].branchData['396'] = []; + _$jscoverage['/base/selector.js'].branchData['396'][1] = new BranchData(); + _$jscoverage['/base/selector.js'].branchData['402'] = []; + _$jscoverage['/base/selector.js'].branchData['402'][1] = new BranchData(); + _$jscoverage['/base/selector.js'].branchData['407'] = []; + _$jscoverage['/base/selector.js'].branchData['407'][1] = new BranchData(); + _$jscoverage['/base/selector.js'].branchData['411'] = []; + _$jscoverage['/base/selector.js'].branchData['411'][1] = new BranchData(); + _$jscoverage['/base/selector.js'].branchData['413'] = []; + _$jscoverage['/base/selector.js'].branchData['413'][1] = new BranchData(); + _$jscoverage['/base/selector.js'].branchData['413'][2] = new BranchData(); + _$jscoverage['/base/selector.js'].branchData['415'] = []; + _$jscoverage['/base/selector.js'].branchData['415'][1] = new BranchData(); + _$jscoverage['/base/selector.js'].branchData['420'] = []; + _$jscoverage['/base/selector.js'].branchData['420'][1] = new BranchData(); + _$jscoverage['/base/selector.js'].branchData['439'] = []; + _$jscoverage['/base/selector.js'].branchData['439'][1] = new BranchData(); + _$jscoverage['/base/selector.js'].branchData['439'][2] = new BranchData(); } -_$jscoverage['/base/selector.js'].branchData['425'][2].init(101, 64, 'Dom.filter(elements, filter, context).length === elements.length'); -function visit396_425_2(result) { - _$jscoverage['/base/selector.js'].branchData['425'][2].ranCondition(result); +_$jscoverage['/base/selector.js'].branchData['439'][2].init(103, 64, 'Dom.filter(elements, filter, context).length === elements.length'); +function visit401_439_2(result) { + _$jscoverage['/base/selector.js'].branchData['439'][2].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['425'][1].init(81, 85, 'elements.length && (Dom.filter(elements, filter, context).length === elements.length)'); -function visit395_425_1(result) { - _$jscoverage['/base/selector.js'].branchData['425'][1].ranCondition(result); +}_$jscoverage['/base/selector.js'].branchData['439'][1].init(83, 85, 'elements.length && (Dom.filter(elements, filter, context).length === elements.length)'); +function visit400_439_1(result) { + _$jscoverage['/base/selector.js'].branchData['439'][1].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['406'][1].init(1314, 28, 'typeof filter === \'function\''); -function visit394_406_1(result) { - _$jscoverage['/base/selector.js'].branchData['406'][1].ranCondition(result); +}_$jscoverage['/base/selector.js'].branchData['420'][1].init(1352, 28, 'typeof filter === \'function\''); +function visit399_420_1(result) { + _$jscoverage['/base/selector.js'].branchData['420'][1].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['401'][1].init(36, 26, 'getAttr(elem, \'id\') === id'); -function visit393_401_1(result) { - _$jscoverage['/base/selector.js'].branchData['401'][1].ranCondition(result); +}_$jscoverage['/base/selector.js'].branchData['415'][1].init(37, 26, 'getAttr(elem, \'id\') === id'); +function visit398_415_1(result) { + _$jscoverage['/base/selector.js'].branchData['415'][1].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['399'][2].init(752, 12, '!tag && !cls'); -function visit392_399_2(result) { - _$jscoverage['/base/selector.js'].branchData['399'][2].ranCondition(result); +}_$jscoverage['/base/selector.js'].branchData['413'][2].init(773, 12, '!tag && !cls'); +function visit397_413_2(result) { + _$jscoverage['/base/selector.js'].branchData['413'][2].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['399'][1].init(746, 18, 'id && !tag && !cls'); -function visit391_399_1(result) { - _$jscoverage['/base/selector.js'].branchData['399'][1].ranCondition(result); +}_$jscoverage['/base/selector.js'].branchData['413'][1].init(767, 18, 'id && !tag && !cls'); +function visit396_413_1(result) { + _$jscoverage['/base/selector.js'].branchData['413'][1].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['397'][1].init(482, 14, 'clsRe && tagRe'); -function visit390_397_1(result) { - _$jscoverage['/base/selector.js'].branchData['397'][1].ranCondition(result); +}_$jscoverage['/base/selector.js'].branchData['411'][1].init(496, 14, 'clsRe && tagRe'); +function visit395_411_1(result) { + _$jscoverage['/base/selector.js'].branchData['411'][1].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['393'][1].init(342, 3, 'cls'); -function visit389_393_1(result) { - _$jscoverage['/base/selector.js'].branchData['393'][1].ranCondition(result); +}_$jscoverage['/base/selector.js'].branchData['407'][1].init(352, 3, 'cls'); +function visit394_407_1(result) { + _$jscoverage['/base/selector.js'].branchData['407'][1].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['388'][1].init(170, 3, 'tag'); -function visit388_388_1(result) { - _$jscoverage['/base/selector.js'].branchData['388'][1].ranCondition(result); +}_$jscoverage['/base/selector.js'].branchData['402'][1].init(175, 3, 'tag'); +function visit393_402_1(result) { + _$jscoverage['/base/selector.js'].branchData['402'][1].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['382'][1].init(132, 3, '!id'); -function visit387_382_1(result) { - _$jscoverage['/base/selector.js'].branchData['382'][1].ranCondition(result); +}_$jscoverage['/base/selector.js'].branchData['396'][1].init(136, 3, '!id'); +function visit392_396_1(result) { + _$jscoverage['/base/selector.js'].branchData['396'][1].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['377'][1].init(50, 84, '(filter = trim(filter)) && (match = rSimpleSelector.exec(filter))'); -function visit386_377_1(result) { - _$jscoverage['/base/selector.js'].branchData['377'][1].ranCondition(result); +}_$jscoverage['/base/selector.js'].branchData['391'][1].init(51, 85, '(filter = trim(filter)) && (match = rSimpleSelector.exec(filter))'); +function visit391_391_1(result) { + _$jscoverage['/base/selector.js'].branchData['391'][1].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['376'][2].init(207, 26, 'typeof filter === \'string\''); -function visit385_376_2(result) { - _$jscoverage['/base/selector.js'].branchData['376'][2].ranCondition(result); +}_$jscoverage['/base/selector.js'].branchData['390'][2].init(215, 26, 'typeof filter === \'string\''); +function visit390_390_2(result) { + _$jscoverage['/base/selector.js'].branchData['390'][2].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['376'][1].init(207, 135, 'typeof filter === \'string\' && (filter = trim(filter)) && (match = rSimpleSelector.exec(filter))'); -function visit384_376_1(result) { - _$jscoverage['/base/selector.js'].branchData['376'][1].ranCondition(result); +}_$jscoverage['/base/selector.js'].branchData['390'][1].init(215, 137, 'typeof filter === \'string\' && (filter = trim(filter)) && (match = rSimpleSelector.exec(filter))'); +function visit389_390_1(result) { + _$jscoverage['/base/selector.js'].branchData['390'][1].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['347'][1].init(33, 33, 'elements[i] === elements[i - 1]'); -function visit383_347_1(result) { - _$jscoverage['/base/selector.js'].branchData['347'][1].ranCondition(result); +}_$jscoverage['/base/selector.js'].branchData['361'][1].init(34, 33, 'elements[i] === elements[i - 1]'); +function visit388_361_1(result) { + _$jscoverage['/base/selector.js'].branchData['361'][1].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['346'][1].init(90, 7, 'i < len'); -function visit382_346_1(result) { - _$jscoverage['/base/selector.js'].branchData['346'][1].ranCondition(result); +}_$jscoverage['/base/selector.js'].branchData['360'][1].init(92, 7, 'i < len'); +function visit387_360_1(result) { + _$jscoverage['/base/selector.js'].branchData['360'][1].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['344'][1].init(126, 12, 'hasDuplicate'); -function visit381_344_1(result) { +}_$jscoverage['/base/selector.js'].branchData['358'][1].init(131, 12, 'hasDuplicate'); +function visit386_358_1(result) { + _$jscoverage['/base/selector.js'].branchData['358'][1].ranCondition(result); + return result; +}_$jscoverage['/base/selector.js'].branchData['344'][1].init(26, 7, 'a === b'); +function visit385_344_1(result) { _$jscoverage['/base/selector.js'].branchData['344'][1].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['330'][1].init(25, 7, 'a === b'); -function visit380_330_1(result) { - _$jscoverage['/base/selector.js'].branchData['330'][1].ranCondition(result); +}_$jscoverage['/base/selector.js'].branchData['319'][1].init(25, 35, 'query(selector, context)[0] || null'); +function visit384_319_1(result) { + _$jscoverage['/base/selector.js'].branchData['319'][1].ranCondition(result); + return result; +}_$jscoverage['/base/selector.js'].branchData['285'][1].init(61, 20, 'matches.call(n, str)'); +function visit383_285_1(result) { + _$jscoverage['/base/selector.js'].branchData['285'][1].ranCondition(result); + return result; +}_$jscoverage['/base/selector.js'].branchData['283'][1].init(149, 7, 'i < len'); +function visit382_283_1(result) { + _$jscoverage['/base/selector.js'].branchData['283'][1].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['305'][1].init(24, 35, 'query(selector, context)[0] || null'); -function visit379_305_1(result) { - _$jscoverage['/base/selector.js'].branchData['305'][1].ranCondition(result); +}_$jscoverage['/base/selector.js'].branchData['256'][1].init(22, 56, '!a.compareDocumentPosition || !b.compareDocumentPosition'); +function visit381_256_1(result) { + _$jscoverage['/base/selector.js'].branchData['256'][1].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['272'][1].init(59, 20, 'matches.call(n, str)'); -function visit378_272_1(result) { - _$jscoverage['/base/selector.js'].branchData['272'][1].ranCondition(result); +}_$jscoverage['/base/selector.js'].branchData['245'][3].init(34, 49, 'el.nodeName.toLowerCase() === value.toLowerCase()'); +function visit380_245_3(result) { + _$jscoverage['/base/selector.js'].branchData['245'][3].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['270'][1].init(144, 7, 'i < len'); -function visit377_270_1(result) { - _$jscoverage['/base/selector.js'].branchData['270'][1].ranCondition(result); +}_$jscoverage['/base/selector.js'].branchData['245'][2].init(17, 13, 'value === \'*\''); +function visit379_245_2(result) { + _$jscoverage['/base/selector.js'].branchData['245'][2].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['243'][1].init(21, 56, '!a.compareDocumentPosition || !b.compareDocumentPosition'); -function visit376_243_1(result) { - _$jscoverage['/base/selector.js'].branchData['243'][1].ranCondition(result); +}_$jscoverage['/base/selector.js'].branchData['245'][1].init(17, 66, 'value === \'*\' || el.nodeName.toLowerCase() === value.toLowerCase()'); +function visit378_245_1(result) { + _$jscoverage['/base/selector.js'].branchData['245'][1].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['232'][3].init(33, 49, 'el.nodeName.toLowerCase() === value.toLowerCase()'); -function visit375_232_3(result) { - _$jscoverage['/base/selector.js'].branchData['232'][3].ranCondition(result); +}_$jscoverage['/base/selector.js'].branchData['238'][1].init(66, 20, 'ret && ret.specified'); +function visit377_238_1(result) { + _$jscoverage['/base/selector.js'].branchData['238'][1].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['232'][2].init(16, 13, 'value === \'*\''); +}_$jscoverage['/base/selector.js'].branchData['237'][1].init(20, 31, 'el && el.getAttributeNode(name)'); +function visit376_237_1(result) { + _$jscoverage['/base/selector.js'].branchData['237'][1].ranCondition(result); + return result; +}_$jscoverage['/base/selector.js'].branchData['233'][1].init(67, 60, '(SPACE + className + SPACE).indexOf(SPACE + cls + SPACE) > -1'); +function visit375_233_1(result) { + _$jscoverage['/base/selector.js'].branchData['233'][1].ranCondition(result); + return result; +}_$jscoverage['/base/selector.js'].branchData['232'][2].init(167, 128, '(className = className.replace(/[\\r\\t\\n]/g, SPACE)) && (SPACE + className + SPACE).indexOf(SPACE + cls + SPACE) > -1'); function visit374_232_2(result) { _$jscoverage['/base/selector.js'].branchData['232'][2].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['232'][1].init(16, 66, 'value === \'*\' || el.nodeName.toLowerCase() === value.toLowerCase()'); +}_$jscoverage['/base/selector.js'].branchData['232'][1].init(153, 142, 'className && (className = className.replace(/[\\r\\t\\n]/g, SPACE)) && (SPACE + className + SPACE).indexOf(SPACE + cls + SPACE) > -1'); function visit373_232_1(result) { _$jscoverage['/base/selector.js'].branchData['232'][1].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['225'][1].init(64, 20, 'ret && ret.specified'); -function visit372_225_1(result) { - _$jscoverage['/base/selector.js'].branchData['225'][1].ranCondition(result); - return result; -}_$jscoverage['/base/selector.js'].branchData['224'][1].init(19, 31, 'el && el.getAttributeNode(name)'); -function visit371_224_1(result) { - _$jscoverage['/base/selector.js'].branchData['224'][1].ranCondition(result); +}_$jscoverage['/base/selector.js'].branchData['231'][1].init(109, 26, 'el && getAttr(el, \'class\')'); +function visit372_231_1(result) { + _$jscoverage['/base/selector.js'].branchData['231'][1].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['220'][1].init(66, 60, '(SPACE + className + SPACE).indexOf(SPACE + cls + SPACE) > -1'); -function visit370_220_1(result) { - _$jscoverage['/base/selector.js'].branchData['220'][1].ranCondition(result); +}_$jscoverage['/base/selector.js'].branchData['213'][1].init(30, 35, 'Dom._contains(contexts[ci], tmp[i])'); +function visit371_213_1(result) { + _$jscoverage['/base/selector.js'].branchData['213'][1].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['219'][1].init(25, 127, '(className = className.replace(/[\\r\\t\\n]/g, SPACE)) && (SPACE + className + SPACE).indexOf(SPACE + cls + SPACE) > -1'); -function visit369_219_1(result) { - _$jscoverage['/base/selector.js'].branchData['219'][1].ranCondition(result); +}_$jscoverage['/base/selector.js'].branchData['212'][1].init(35, 16, 'ci < contextsLen'); +function visit370_212_1(result) { + _$jscoverage['/base/selector.js'].branchData['212'][1].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['218'][1].init(110, 153, 'className && (className = className.replace(/[\\r\\t\\n]/g, SPACE)) && (SPACE + className + SPACE).indexOf(SPACE + cls + SPACE) > -1'); -function visit368_218_1(result) { - _$jscoverage['/base/selector.js'].branchData['218'][1].ranCondition(result); +}_$jscoverage['/base/selector.js'].branchData['211'][1].init(153, 7, 'i < len'); +function visit369_211_1(result) { + _$jscoverage['/base/selector.js'].branchData['211'][1].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['217'][2].init(56, 36, 'el.className || getAttr(el, \'class\')'); -function visit367_217_2(result) { - _$jscoverage['/base/selector.js'].branchData['217'][2].ranCondition(result); +}_$jscoverage['/base/selector.js'].branchData['206'][1].init(1049, 14, '!simpleContext'); +function visit368_206_1(result) { + _$jscoverage['/base/selector.js'].branchData['206'][1].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['217'][1].init(49, 44, 'el && (el.className || getAttr(el, \'class\'))'); -function visit366_217_1(result) { - _$jscoverage['/base/selector.js'].branchData['217'][1].ranCondition(result); +}_$jscoverage['/base/selector.js'].branchData['195'][1].init(651, 23, 'isDomNodeList(selector)'); +function visit367_195_1(result) { + _$jscoverage['/base/selector.js'].branchData['195'][1].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['200'][1].init(29, 35, 'Dom._contains(contexts[ci], tmp[i])'); -function visit365_200_1(result) { - _$jscoverage['/base/selector.js'].branchData['200'][1].ranCondition(result); +}_$jscoverage['/base/selector.js'].branchData['190'][1].init(455, 17, 'isArray(selector)'); +function visit366_190_1(result) { + _$jscoverage['/base/selector.js'].branchData['190'][1].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['199'][1].init(34, 16, 'ci < contextsLen'); -function visit364_199_1(result) { - _$jscoverage['/base/selector.js'].branchData['199'][1].ranCondition(result); +}_$jscoverage['/base/selector.js'].branchData['187'][1].init(309, 20, 'selector.getDOMNodes'); +function visit365_187_1(result) { + _$jscoverage['/base/selector.js'].branchData['187'][1].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['198'][1].init(148, 7, 'i < len'); -function visit363_198_1(result) { - _$jscoverage['/base/selector.js'].branchData['198'][1].ranCondition(result); +}_$jscoverage['/base/selector.js'].branchData['185'][1].init(204, 41, 'selector.nodeType || S.isWindow(selector)'); +function visit364_185_1(result) { + _$jscoverage['/base/selector.js'].branchData['185'][1].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['193'][1].init(923, 14, '!simpleContext'); -function visit362_193_1(result) { - _$jscoverage['/base/selector.js'].branchData['193'][1].ranCondition(result); +}_$jscoverage['/base/selector.js'].branchData['176'][3].init(266, 15, 'contextsLen > 1'); +function visit363_176_3(result) { + _$jscoverage['/base/selector.js'].branchData['176'][3].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['187'][1].init(768, 23, 'isDomNodeList(selector)'); -function visit361_187_1(result) { - _$jscoverage['/base/selector.js'].branchData['187'][1].ranCondition(result); +}_$jscoverage['/base/selector.js'].branchData['176'][2].init(248, 14, 'ret.length > 1'); +function visit362_176_2(result) { + _$jscoverage['/base/selector.js'].branchData['176'][2].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['179'][1].init(465, 17, 'isArray(selector)'); -function visit360_179_1(result) { - _$jscoverage['/base/selector.js'].branchData['179'][1].ranCondition(result); +}_$jscoverage['/base/selector.js'].branchData['176'][1].init(248, 33, 'ret.length > 1 && contextsLen > 1'); +function visit361_176_1(result) { + _$jscoverage['/base/selector.js'].branchData['176'][1].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['173'][1].init(257, 20, 'selector.getDOMNodes'); -function visit359_173_1(result) { - _$jscoverage['/base/selector.js'].branchData['173'][1].ranCondition(result); +}_$jscoverage['/base/selector.js'].branchData['172'][1].init(57, 15, 'i < contextsLen'); +function visit360_172_1(result) { + _$jscoverage['/base/selector.js'].branchData['172'][1].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['169'][1].init(98, 40, 'selector.nodeType || selector.setTimeout'); -function visit358_169_1(result) { - _$jscoverage['/base/selector.js'].branchData['169'][1].ranCondition(result); +}_$jscoverage['/base/selector.js'].branchData['170'][1].init(2331, 4, '!ret'); +function visit359_170_1(result) { + _$jscoverage['/base/selector.js'].branchData['170'][1].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['160'][3].init(260, 15, 'contextsLen > 1'); -function visit357_160_3(result) { - _$jscoverage['/base/selector.js'].branchData['160'][3].ranCondition(result); +}_$jscoverage['/base/selector.js'].branchData['166'][2].init(1209, 18, 'parents.length > 1'); +function visit358_166_2(result) { + _$jscoverage['/base/selector.js'].branchData['166'][2].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['160'][2].init(242, 14, 'ret.length > 1'); -function visit356_160_2(result) { - _$jscoverage['/base/selector.js'].branchData['160'][2].ranCondition(result); +}_$jscoverage['/base/selector.js'].branchData['166'][1].init(1198, 29, 'parents && parents.length > 1'); +function visit357_166_1(result) { + _$jscoverage['/base/selector.js'].branchData['166'][1].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['160'][1].init(242, 33, 'ret.length > 1 && contextsLen > 1'); -function visit355_160_1(result) { - _$jscoverage['/base/selector.js'].branchData['160'][1].ranCondition(result); +}_$jscoverage['/base/selector.js'].branchData['162'][1].init(568, 15, '!parents.length'); +function visit356_162_1(result) { + _$jscoverage['/base/selector.js'].branchData['162'][1].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['156'][1].init(55, 15, 'i < contextsLen'); -function visit354_156_1(result) { - _$jscoverage['/base/selector.js'].branchData['156'][1].ranCondition(result); +}_$jscoverage['/base/selector.js'].branchData['155'][1].init(80, 24, 'parentIndex < parentsLen'); +function visit355_155_1(result) { + _$jscoverage['/base/selector.js'].branchData['155'][1].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['154'][1].init(2385, 4, '!ret'); -function visit353_154_1(result) { - _$jscoverage['/base/selector.js'].branchData['154'][1].ranCondition(result); +}_$jscoverage['/base/selector.js'].branchData['149'][1].init(478, 12, 'i < partsLen'); +function visit354_149_1(result) { + _$jscoverage['/base/selector.js'].branchData['149'][1].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['150'][2].init(1139, 18, 'parents.length > 1'); -function visit352_150_2(result) { - _$jscoverage['/base/selector.js'].branchData['150'][2].ranCondition(result); +}_$jscoverage['/base/selector.js'].branchData['145'][1].init(317, 12, 'i < partsLen'); +function visit353_145_1(result) { + _$jscoverage['/base/selector.js'].branchData['145'][1].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['150'][1].init(1128, 29, 'parents && parents.length > 1'); -function visit351_150_1(result) { - _$jscoverage['/base/selector.js'].branchData['150'][1].ranCondition(result); +}_$jscoverage['/base/selector.js'].branchData['137'][1].init(917, 26, 'isSimpleSelector(selector)'); +function visit352_137_1(result) { + _$jscoverage['/base/selector.js'].branchData['137'][1].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['146'][1].init(558, 15, '!parents.length'); -function visit350_146_1(result) { - _$jscoverage['/base/selector.js'].branchData['146'][1].ranCondition(result); +}_$jscoverage['/base/selector.js'].branchData['134'][1].init(755, 27, 'rTagSelector.test(selector)'); +function visit351_134_1(result) { + _$jscoverage['/base/selector.js'].branchData['134'][1].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['139'][1].init(79, 24, 'parentIndex < parentsLen'); -function visit349_139_1(result) { - _$jscoverage['/base/selector.js'].branchData['139'][1].ranCondition(result); +}_$jscoverage['/base/selector.js'].branchData['130'][1].init(553, 26, 'rIdSelector.test(selector)'); +function visit350_130_1(result) { + _$jscoverage['/base/selector.js'].branchData['130'][1].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['133'][1].init(422, 12, 'i < partsLen'); -function visit348_133_1(result) { - _$jscoverage['/base/selector.js'].branchData['133'][1].ranCondition(result); +}_$jscoverage['/base/selector.js'].branchData['129'][2].init(128, 39, 'el.nodeName.toLowerCase() === RegExp.$1'); +function visit349_129_2(result) { + _$jscoverage['/base/selector.js'].branchData['129'][2].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['129'][1].init(265, 12, 'i < partsLen'); -function visit347_129_1(result) { +}_$jscoverage['/base/selector.js'].branchData['129'][1].init(122, 45, 'el && el.nodeName.toLowerCase() === RegExp.$1'); +function visit348_129_1(result) { _$jscoverage['/base/selector.js'].branchData['129'][1].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['122'][1].init(1015, 59, 'isSimpleSelector(selector) && supportGetElementsByClassName'); -function visit346_122_1(result) { - _$jscoverage['/base/selector.js'].branchData['122'][1].ranCondition(result); +}_$jscoverage['/base/selector.js'].branchData['126'][1].init(311, 29, 'rTagIdSelector.test(selector)'); +function visit347_126_1(result) { + _$jscoverage['/base/selector.js'].branchData['126'][1].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['118'][1].init(838, 27, 'rTagSelector.test(selector)'); -function visit345_118_1(result) { - _$jscoverage['/base/selector.js'].branchData['118'][1].ranCondition(result); +}_$jscoverage['/base/selector.js'].branchData['123'][1].init(142, 29, 'rClassSelector.test(selector)'); +function visit346_123_1(result) { + _$jscoverage['/base/selector.js'].branchData['123'][1].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['113'][1].init(628, 26, 'rIdSelector.test(selector)'); -function visit344_113_1(result) { - _$jscoverage['/base/selector.js'].branchData['113'][1].ranCondition(result); +}_$jscoverage['/base/selector.js'].branchData['121'][1].init(51, 19, 'selector === \'body\''); +function visit345_121_1(result) { + _$jscoverage['/base/selector.js'].branchData['121'][1].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['110'][2].init(95, 39, 'el.nodeName.toLowerCase() === RegExp.$1'); -function visit343_110_2(result) { - _$jscoverage['/base/selector.js'].branchData['110'][2].ranCondition(result); - return result; -}_$jscoverage['/base/selector.js'].branchData['110'][1].init(89, 45, 'el && el.nodeName.toLowerCase() === RegExp.$1'); -function visit342_110_1(result) { - _$jscoverage['/base/selector.js'].branchData['110'][1].ranCondition(result); +}_$jscoverage['/base/selector.js'].branchData['119'][1].init(60, 13, 'simpleContext'); +function visit344_119_1(result) { + _$jscoverage['/base/selector.js'].branchData['119'][1].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['108'][1].init(381, 29, 'rTagIdSelector.test(selector)'); -function visit341_108_1(result) { - _$jscoverage['/base/selector.js'].branchData['108'][1].ranCondition(result); +}_$jscoverage['/base/selector.js'].branchData['116'][1].init(370, 16, 'isSelectorString'); +function visit343_116_1(result) { + _$jscoverage['/base/selector.js'].branchData['116'][1].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['104'][1].init(180, 62, 'rClassSelector.test(selector) && supportGetElementsByClassName'); -function visit340_104_1(result) { - _$jscoverage['/base/selector.js'].branchData['104'][1].ranCondition(result); +}_$jscoverage['/base/selector.js'].branchData['114'][1].init(313, 9, '!selector'); +function visit342_114_1(result) { + _$jscoverage['/base/selector.js'].branchData['114'][1].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['100'][1].init(49, 19, 'selector === \'body\''); -function visit339_100_1(result) { - _$jscoverage['/base/selector.js'].branchData['100'][1].ranCondition(result); +}_$jscoverage['/base/selector.js'].branchData['110'][2].init(197, 27, '(simpleContext = 1) && [doc]'); +function visit341_110_2(result) { + _$jscoverage['/base/selector.js'].branchData['110'][2].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['98'][1].init(57, 13, 'simpleContext'); -function visit338_98_1(result) { - _$jscoverage['/base/selector.js'].branchData['98'][1].ranCondition(result); +}_$jscoverage['/base/selector.js'].branchData['110'][1].init(155, 21, 'context !== undefined'); +function visit340_110_1(result) { + _$jscoverage['/base/selector.js'].branchData['110'][1].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['95'][1].init(358, 16, 'isSelectorString'); -function visit337_95_1(result) { - _$jscoverage['/base/selector.js'].branchData['95'][1].ranCondition(result); +}_$jscoverage['/base/selector.js'].branchData['109'][1].init(101, 28, 'typeof selector === \'string\''); +function visit339_109_1(result) { + _$jscoverage['/base/selector.js'].branchData['109'][1].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['93'][1].init(303, 9, '!selector'); -function visit336_93_1(result) { - _$jscoverage['/base/selector.js'].branchData['93'][1].ranCondition(result); +}_$jscoverage['/base/selector.js'].branchData['82'][1].init(76, 35, 'match && Dom._contains(elem, match)'); +function visit338_82_1(result) { + _$jscoverage['/base/selector.js'].branchData['82'][1].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['89'][2].init(192, 27, '(simpleContext = 1) && [doc]'); -function visit335_89_2(result) { - _$jscoverage['/base/selector.js'].branchData['89'][2].ranCondition(result); +}_$jscoverage['/base/selector.js'].branchData['72'][1].init(152, 9, 's === \'.\''); +function visit337_72_1(result) { + _$jscoverage['/base/selector.js'].branchData['72'][1].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['89'][1].init(150, 21, 'context !== undefined'); -function visit334_89_1(result) { - _$jscoverage['/base/selector.js'].branchData['89'][1].ranCondition(result); +}_$jscoverage['/base/selector.js'].branchData['70'][1].init(51, 9, 's === \'#\''); +function visit336_70_1(result) { + _$jscoverage['/base/selector.js'].branchData['70'][1].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['88'][1].init(97, 28, 'typeof selector === \'string\''); -function visit333_88_1(result) { - _$jscoverage['/base/selector.js'].branchData['88'][1].ranCondition(result); +}_$jscoverage['/base/selector.js'].branchData['62'][1].init(54, 5, '!name'); +function visit335_62_1(result) { + _$jscoverage['/base/selector.js'].branchData['62'][1].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['61'][1].init(74, 35, 'match && Dom._contains(elem, match)'); -function visit332_61_1(result) { - _$jscoverage['/base/selector.js'].branchData['61'][1].ranCondition(result); +}_$jscoverage['/base/selector.js'].branchData['54'][1].init(18, 23, 'f(self[i], i) === false'); +function visit334_54_1(result) { + _$jscoverage['/base/selector.js'].branchData['54'][1].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['51'][1].init(148, 9, 's === \'.\''); -function visit331_51_1(result) { - _$jscoverage['/base/selector.js'].branchData['51'][1].ranCondition(result); +}_$jscoverage['/base/selector.js'].branchData['53'][1].init(94, 5, 'i < l'); +function visit333_53_1(result) { + _$jscoverage['/base/selector.js'].branchData['53'][1].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['49'][1].init(49, 9, 's === \'#\''); -function visit330_49_1(result) { - _$jscoverage['/base/selector.js'].branchData['49'][1].ranCondition(result); +}_$jscoverage['/base/selector.js'].branchData['37'][2].init(67, 44, 'elem.className || elem.getAttribute(\'class\')'); +function visit332_37_2(result) { + _$jscoverage['/base/selector.js'].branchData['37'][2].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['41'][1].init(52, 5, '!name'); -function visit329_41_1(result) { - _$jscoverage['/base/selector.js'].branchData['41'][1].ranCondition(result); +}_$jscoverage['/base/selector.js'].branchData['37'][1].init(60, 79, '(\' \' + (elem.className || elem.getAttribute(\'class\')) + \' \').indexOf(match) > -1'); +function visit331_37_1(result) { + _$jscoverage['/base/selector.js'].branchData['37'][1].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['33'][1].init(17, 22, 'f(els[i], i) === false'); -function visit328_33_1(result) { - _$jscoverage['/base/selector.js'].branchData['33'][1].ranCondition(result); +}_$jscoverage['/base/selector.js'].branchData['35'][1].init(180, 19, 'i < elements.length'); +function visit330_35_1(result) { + _$jscoverage['/base/selector.js'].branchData['35'][1].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['32'][1].init(88, 5, 'i < l'); -function visit327_32_1(result) { - _$jscoverage['/base/selector.js'].branchData['32'][1].ranCondition(result); +}_$jscoverage['/base/selector.js'].branchData['29'][1].init(869, 30, '!supportGetElementsByClassName'); +function visit329_29_1(result) { + _$jscoverage['/base/selector.js'].branchData['29'][1].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['13'][1].init(41, 65, 'docElem.oMatchesSelector || docElem.msMatchesSelector'); -function visit326_13_1(result) { +}_$jscoverage['/base/selector.js'].branchData['13'][1].init(42, 66, 'docElem.oMatchesSelector || docElem.msMatchesSelector'); +function visit328_13_1(result) { _$jscoverage['/base/selector.js'].branchData['13'][1].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['12'][1].init(44, 107, 'docElem.mozMatchesSelector || docElem.oMatchesSelector || docElem.msMatchesSelector'); -function visit325_12_1(result) { +}_$jscoverage['/base/selector.js'].branchData['12'][1].init(45, 109, 'docElem.mozMatchesSelector || docElem.oMatchesSelector || docElem.msMatchesSelector'); +function visit327_12_1(result) { _$jscoverage['/base/selector.js'].branchData['12'][1].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['11'][1].init(30, 152, 'docElem.webkitMatchesSelector || docElem.mozMatchesSelector || docElem.oMatchesSelector || docElem.msMatchesSelector'); -function visit324_11_1(result) { +}_$jscoverage['/base/selector.js'].branchData['11'][1].init(31, 155, 'docElem.webkitMatchesSelector || docElem.mozMatchesSelector || docElem.oMatchesSelector || docElem.msMatchesSelector'); +function visit326_11_1(result) { _$jscoverage['/base/selector.js'].branchData['11'][1].ranCondition(result); return result; -}_$jscoverage['/base/selector.js'].branchData['10'][1].init(87, 183, 'docElem.matches || docElem.webkitMatchesSelector || docElem.mozMatchesSelector || docElem.oMatchesSelector || docElem.msMatchesSelector'); -function visit323_10_1(result) { +}_$jscoverage['/base/selector.js'].branchData['10'][1].init(89, 187, 'docElem.matches || docElem.webkitMatchesSelector || docElem.mozMatchesSelector || docElem.oMatchesSelector || docElem.msMatchesSelector'); +function visit325_10_1(result) { _$jscoverage['/base/selector.js'].branchData['10'][1].ranCondition(result); return result; }_$jscoverage['/base/selector.js'].lineData[6]++; @@ -862,169 +892,199 @@ KISSY.add(function(S, require) { _$jscoverage['/base/selector.js'].lineData[7]++; var Dom = require('./api'); _$jscoverage['/base/selector.js'].lineData[8]++; - var doc = S.Env.host.document, docElem = doc.documentElement, matches = visit323_10_1(docElem.matches || visit324_11_1(docElem.webkitMatchesSelector || visit325_12_1(docElem.mozMatchesSelector || visit326_13_1(docElem.oMatchesSelector || docElem.msMatchesSelector)))), supportGetElementsByClassName = 'getElementsByClassName' in doc, isArray = S.isArray, makeArray = S.makeArray, isDomNodeList = Dom.isDomNodeList, SPACE = ' ', push = Array.prototype.push, rClassSelector = /^\.([\w-]+)$/, rIdSelector = /^#([\w-]+)$/, rTagSelector = /^([\w-])+$/, rTagIdSelector = /^([\w-]+)#([\w-]+)$/, rSimpleSelector = /^(?:#([\w-]+))?\s*([\w-]+|\*)?\.?([\w-]+)?$/, trim = S.trim; - _$jscoverage['/base/selector.js'].lineData[28]++; + var doc = S.Env.host.document, docElem = doc.documentElement, matches = visit325_10_1(docElem.matches || visit326_11_1(docElem.webkitMatchesSelector || visit327_12_1(docElem.mozMatchesSelector || visit328_13_1(docElem.oMatchesSelector || docElem.msMatchesSelector)))), supportGetElementsByClassName = 'getElementsByClassName' in doc, getElementsByClassName, isArray = S.isArray, makeArray = S.makeArray, isDomNodeList = Dom.isDomNodeList, SPACE = ' ', push = Array.prototype.push, rClassSelector = /^\.([\w-]+)$/, rIdSelector = /^#([\w-]+)$/, rTagSelector = /^([\w-])+$/, rTagIdSelector = /^([\w-]+)#([\w-]+)$/, rSimpleSelector = /^(?:#([\w-]+))?\s*([\w-]+|\*)?\.?([\w-]+)?$/, trim = S.trim; + _$jscoverage['/base/selector.js'].lineData[29]++; + if (visit329_29_1(!supportGetElementsByClassName)) { + _$jscoverage['/base/selector.js'].lineData[30]++; + getElementsByClassName = function(el, match) { + _$jscoverage['/base/selector.js'].functionData[1]++; + _$jscoverage['/base/selector.js'].lineData[31]++; + var result = [], elements = el.getElementsByTagName('*'), i, elem; + _$jscoverage['/base/selector.js'].lineData[34]++; + match = ' ' + match + ' '; + _$jscoverage['/base/selector.js'].lineData[35]++; + for (i = 0; visit330_35_1(i < elements.length); i++) { + _$jscoverage['/base/selector.js'].lineData[36]++; + elem = elements[i]; + _$jscoverage['/base/selector.js'].lineData[37]++; + if (visit331_37_1((' ' + (visit332_37_2(elem.className || elem.getAttribute('class'))) + ' ').indexOf(match) > -1)) { + _$jscoverage['/base/selector.js'].lineData[38]++; + result.push(elem); + } + } + _$jscoverage['/base/selector.js'].lineData[41]++; + return result; +}; + } else { + _$jscoverage['/base/selector.js'].lineData[44]++; + getElementsByClassName = function(el, match) { + _$jscoverage['/base/selector.js'].functionData[2]++; + _$jscoverage['/base/selector.js'].lineData[45]++; + return el.getElementsByClassName(match); +}; + } + _$jscoverage['/base/selector.js'].lineData[49]++; function queryEach(f) { - _$jscoverage['/base/selector.js'].functionData[1]++; - _$jscoverage['/base/selector.js'].lineData[29]++; - var els = this, l = els.length, i; - _$jscoverage['/base/selector.js'].lineData[32]++; - for (i = 0; visit327_32_1(i < l); i++) { - _$jscoverage['/base/selector.js'].lineData[33]++; - if (visit328_33_1(f(els[i], i) === false)) { - _$jscoverage['/base/selector.js'].lineData[34]++; + _$jscoverage['/base/selector.js'].functionData[3]++; + _$jscoverage['/base/selector.js'].lineData[50]++; + var self = this, l = self.length, i; + _$jscoverage['/base/selector.js'].lineData[53]++; + for (i = 0; visit333_53_1(i < l); i++) { + _$jscoverage['/base/selector.js'].lineData[54]++; + if (visit334_54_1(f(self[i], i) === false)) { + _$jscoverage['/base/selector.js'].lineData[55]++; break; } } } - _$jscoverage['/base/selector.js'].lineData[39]++; + _$jscoverage['/base/selector.js'].lineData[60]++; function checkSelectorAndReturn(selector) { - _$jscoverage['/base/selector.js'].functionData[2]++; - _$jscoverage['/base/selector.js'].lineData[40]++; + _$jscoverage['/base/selector.js'].functionData[4]++; + _$jscoverage['/base/selector.js'].lineData[61]++; var name = selector.substr(1); - _$jscoverage['/base/selector.js'].lineData[41]++; - if (visit329_41_1(!name)) { - _$jscoverage['/base/selector.js'].lineData[42]++; + _$jscoverage['/base/selector.js'].lineData[62]++; + if (visit335_62_1(!name)) { + _$jscoverage['/base/selector.js'].lineData[63]++; throw new Error('An invalid or illegal string was specified for selector.'); } - _$jscoverage['/base/selector.js'].lineData[44]++; + _$jscoverage['/base/selector.js'].lineData[65]++; return name; } - _$jscoverage['/base/selector.js'].lineData[47]++; + _$jscoverage['/base/selector.js'].lineData[68]++; function makeMatch(selector) { - _$jscoverage['/base/selector.js'].functionData[3]++; - _$jscoverage['/base/selector.js'].lineData[48]++; + _$jscoverage['/base/selector.js'].functionData[5]++; + _$jscoverage['/base/selector.js'].lineData[69]++; var s = selector.charAt(0); - _$jscoverage['/base/selector.js'].lineData[49]++; - if (visit330_49_1(s === '#')) { - _$jscoverage['/base/selector.js'].lineData[50]++; + _$jscoverage['/base/selector.js'].lineData[70]++; + if (visit336_70_1(s === '#')) { + _$jscoverage['/base/selector.js'].lineData[71]++; return makeIdMatch(checkSelectorAndReturn(selector)); } else { - _$jscoverage['/base/selector.js'].lineData[51]++; - if (visit331_51_1(s === '.')) { - _$jscoverage['/base/selector.js'].lineData[52]++; + _$jscoverage['/base/selector.js'].lineData[72]++; + if (visit337_72_1(s === '.')) { + _$jscoverage['/base/selector.js'].lineData[73]++; return makeClassMatch(checkSelectorAndReturn(selector)); } else { - _$jscoverage['/base/selector.js'].lineData[54]++; + _$jscoverage['/base/selector.js'].lineData[75]++; return makeTagMatch(selector); } } } - _$jscoverage['/base/selector.js'].lineData[58]++; + _$jscoverage['/base/selector.js'].lineData[79]++; function makeIdMatch(id) { - _$jscoverage['/base/selector.js'].functionData[4]++; - _$jscoverage['/base/selector.js'].lineData[59]++; + _$jscoverage['/base/selector.js'].functionData[6]++; + _$jscoverage['/base/selector.js'].lineData[80]++; return function(elem) { - _$jscoverage['/base/selector.js'].functionData[5]++; - _$jscoverage['/base/selector.js'].lineData[60]++; + _$jscoverage['/base/selector.js'].functionData[7]++; + _$jscoverage['/base/selector.js'].lineData[81]++; var match = Dom._getElementById(id, doc); - _$jscoverage['/base/selector.js'].lineData[61]++; - return visit332_61_1(match && Dom._contains(elem, match)) ? [match] : []; + _$jscoverage['/base/selector.js'].lineData[82]++; + return visit338_82_1(match && Dom._contains(elem, match)) ? [match] : []; }; } - _$jscoverage['/base/selector.js'].lineData[65]++; + _$jscoverage['/base/selector.js'].lineData[86]++; function makeClassMatch(className) { - _$jscoverage['/base/selector.js'].functionData[6]++; - _$jscoverage['/base/selector.js'].lineData[66]++; + _$jscoverage['/base/selector.js'].functionData[8]++; + _$jscoverage['/base/selector.js'].lineData[87]++; return function(elem) { - _$jscoverage['/base/selector.js'].functionData[7]++; - _$jscoverage['/base/selector.js'].lineData[67]++; - return elem.getElementsByClassName(className); + _$jscoverage['/base/selector.js'].functionData[9]++; + _$jscoverage['/base/selector.js'].lineData[88]++; + return getElementsByClassName(elem, className); }; } - _$jscoverage['/base/selector.js'].lineData[71]++; + _$jscoverage['/base/selector.js'].lineData[92]++; function makeTagMatch(tagName) { - _$jscoverage['/base/selector.js'].functionData[8]++; - _$jscoverage['/base/selector.js'].lineData[72]++; + _$jscoverage['/base/selector.js'].functionData[10]++; + _$jscoverage['/base/selector.js'].lineData[93]++; return function(elem) { - _$jscoverage['/base/selector.js'].functionData[9]++; - _$jscoverage['/base/selector.js'].lineData[73]++; + _$jscoverage['/base/selector.js'].functionData[11]++; + _$jscoverage['/base/selector.js'].lineData[94]++; return elem.getElementsByTagName(tagName); }; } - _$jscoverage['/base/selector.js'].lineData[78]++; + _$jscoverage['/base/selector.js'].lineData[99]++; function isSimpleSelector(selector) { - _$jscoverage['/base/selector.js'].functionData[10]++; - _$jscoverage['/base/selector.js'].lineData[79]++; + _$jscoverage['/base/selector.js'].functionData[12]++; + _$jscoverage['/base/selector.js'].lineData[100]++; var complexReg = /,|\+|=|~|\[|\]|:|>|\||\$|\^|\*|\(|\)|[\w-]+\.[\w-]+|[\w-]+#[\w-]+/; - _$jscoverage['/base/selector.js'].lineData[80]++; + _$jscoverage['/base/selector.js'].lineData[101]++; return !selector.match(complexReg); } - _$jscoverage['/base/selector.js'].lineData[83]++; + _$jscoverage['/base/selector.js'].lineData[104]++; function query(selector, context) { - _$jscoverage['/base/selector.js'].functionData[11]++; - _$jscoverage['/base/selector.js'].lineData[84]++; - var ret, i, el, simpleContext, isSelectorString = visit333_88_1(typeof selector === 'string'), contexts = visit334_89_1(context !== undefined) ? query(context) : visit335_89_2((simpleContext = 1) && [doc]), contextsLen = contexts.length; - _$jscoverage['/base/selector.js'].lineData[93]++; - if (visit336_93_1(!selector)) { - _$jscoverage['/base/selector.js'].lineData[94]++; + _$jscoverage['/base/selector.js'].functionData[13]++; + _$jscoverage['/base/selector.js'].lineData[105]++; + var ret, i, el, simpleContext, isSelectorString = visit339_109_1(typeof selector === 'string'), contexts = visit340_110_1(context !== undefined) ? query(context) : visit341_110_2((simpleContext = 1) && [doc]), contextsLen = contexts.length; + _$jscoverage['/base/selector.js'].lineData[114]++; + if (visit342_114_1(!selector)) { + _$jscoverage['/base/selector.js'].lineData[115]++; ret = []; } else { - _$jscoverage['/base/selector.js'].lineData[95]++; - if (visit337_95_1(isSelectorString)) { - _$jscoverage['/base/selector.js'].lineData[96]++; + _$jscoverage['/base/selector.js'].lineData[116]++; + if (visit343_116_1(isSelectorString)) { + _$jscoverage['/base/selector.js'].lineData[117]++; selector = trim(selector); - _$jscoverage['/base/selector.js'].lineData[98]++; - if (visit338_98_1(simpleContext)) { - _$jscoverage['/base/selector.js'].lineData[100]++; - if (visit339_100_1(selector === 'body')) { - _$jscoverage['/base/selector.js'].lineData[101]++; + _$jscoverage['/base/selector.js'].lineData[119]++; + if (visit344_119_1(simpleContext)) { + _$jscoverage['/base/selector.js'].lineData[121]++; + if (visit345_121_1(selector === 'body')) { + _$jscoverage['/base/selector.js'].lineData[122]++; ret = [doc.body]; } else { - _$jscoverage['/base/selector.js'].lineData[104]++; - if (visit340_104_1(rClassSelector.test(selector) && supportGetElementsByClassName)) { - _$jscoverage['/base/selector.js'].lineData[105]++; - ret = doc.getElementsByClassName(RegExp.$1); + _$jscoverage['/base/selector.js'].lineData[123]++; + if (visit346_123_1(rClassSelector.test(selector))) { + _$jscoverage['/base/selector.js'].lineData[125]++; + ret = makeArray(getElementsByClassName(doc, RegExp.$1)); } else { - _$jscoverage['/base/selector.js'].lineData[108]++; - if (visit341_108_1(rTagIdSelector.test(selector))) { - _$jscoverage['/base/selector.js'].lineData[109]++; + _$jscoverage['/base/selector.js'].lineData[126]++; + if (visit347_126_1(rTagIdSelector.test(selector))) { + _$jscoverage['/base/selector.js'].lineData[128]++; el = Dom._getElementById(RegExp.$2, doc); - _$jscoverage['/base/selector.js'].lineData[110]++; - ret = visit342_110_1(el && visit343_110_2(el.nodeName.toLowerCase() === RegExp.$1)) ? [el] : []; + _$jscoverage['/base/selector.js'].lineData[129]++; + ret = visit348_129_1(el && visit349_129_2(el.nodeName.toLowerCase() === RegExp.$1)) ? [el] : []; } else { - _$jscoverage['/base/selector.js'].lineData[113]++; - if (visit344_113_1(rIdSelector.test(selector))) { - _$jscoverage['/base/selector.js'].lineData[114]++; + _$jscoverage['/base/selector.js'].lineData[130]++; + if (visit350_130_1(rIdSelector.test(selector))) { + _$jscoverage['/base/selector.js'].lineData[132]++; el = Dom._getElementById(selector.substr(1), doc); - _$jscoverage['/base/selector.js'].lineData[115]++; + _$jscoverage['/base/selector.js'].lineData[133]++; ret = el ? [el] : []; } else { - _$jscoverage['/base/selector.js'].lineData[118]++; - if (visit345_118_1(rTagSelector.test(selector))) { - _$jscoverage['/base/selector.js'].lineData[119]++; - ret = doc.getElementsByTagName(selector); + _$jscoverage['/base/selector.js'].lineData[134]++; + if (visit351_134_1(rTagSelector.test(selector))) { + _$jscoverage['/base/selector.js'].lineData[136]++; + ret = makeArray(doc.getElementsByTagName(selector)); } else { - _$jscoverage['/base/selector.js'].lineData[122]++; - if (visit346_122_1(isSimpleSelector(selector) && supportGetElementsByClassName)) { - _$jscoverage['/base/selector.js'].lineData[123]++; + _$jscoverage['/base/selector.js'].lineData[137]++; + if (visit352_137_1(isSimpleSelector(selector))) { + _$jscoverage['/base/selector.js'].lineData[139]++; var parts = selector.split(/\s+/), partsLen, parents = contexts, parentIndex, parentsLen; - _$jscoverage['/base/selector.js'].lineData[129]++; - for (i = 0 , partsLen = parts.length; visit347_129_1(i < partsLen); i++) { - _$jscoverage['/base/selector.js'].lineData[130]++; + _$jscoverage['/base/selector.js'].lineData[145]++; + for (i = 0 , partsLen = parts.length; visit353_145_1(i < partsLen); i++) { + _$jscoverage['/base/selector.js'].lineData[146]++; parts[i] = makeMatch(parts[i]); } - _$jscoverage['/base/selector.js'].lineData[133]++; - for (i = 0 , partsLen = parts.length; visit348_133_1(i < partsLen); i++) { - _$jscoverage['/base/selector.js'].lineData[134]++; + _$jscoverage['/base/selector.js'].lineData[149]++; + for (i = 0 , partsLen = parts.length; visit354_149_1(i < partsLen); i++) { + _$jscoverage['/base/selector.js'].lineData[150]++; var part = parts[i], newParents = [], matches; - _$jscoverage['/base/selector.js'].lineData[138]++; - for (parentIndex = 0 , parentsLen = parents.length; visit349_139_1(parentIndex < parentsLen); parentIndex++) { - _$jscoverage['/base/selector.js'].lineData[141]++; + _$jscoverage['/base/selector.js'].lineData[154]++; + for (parentIndex = 0 , parentsLen = parents.length; visit355_155_1(parentIndex < parentsLen); parentIndex++) { + _$jscoverage['/base/selector.js'].lineData[157]++; matches = part(parents[parentIndex]); - _$jscoverage['/base/selector.js'].lineData[142]++; - newParents.push.apply(newParents, S.makeArray(matches)); + _$jscoverage['/base/selector.js'].lineData[158]++; + newParents.push.apply(newParents, makeArray(matches)); } - _$jscoverage['/base/selector.js'].lineData[145]++; + _$jscoverage['/base/selector.js'].lineData[161]++; parents = newParents; - _$jscoverage['/base/selector.js'].lineData[146]++; - if (visit350_146_1(!parents.length)) { - _$jscoverage['/base/selector.js'].lineData[147]++; + _$jscoverage['/base/selector.js'].lineData[162]++; + if (visit356_162_1(!parents.length)) { + _$jscoverage['/base/selector.js'].lineData[163]++; break; } } - _$jscoverage['/base/selector.js'].lineData[150]++; - ret = visit351_150_1(parents && visit352_150_2(parents.length > 1)) ? Dom.unique(parents) : parents; + _$jscoverage['/base/selector.js'].lineData[166]++; + ret = visit357_166_1(parents && visit358_166_2(parents.length > 1)) ? Dom.unique(parents) : parents; } } } @@ -1032,63 +1092,63 @@ KISSY.add(function(S, require) { } } } - _$jscoverage['/base/selector.js'].lineData[154]++; - if (visit353_154_1(!ret)) { - _$jscoverage['/base/selector.js'].lineData[155]++; + _$jscoverage['/base/selector.js'].lineData[170]++; + if (visit359_170_1(!ret)) { + _$jscoverage['/base/selector.js'].lineData[171]++; ret = []; - _$jscoverage['/base/selector.js'].lineData[156]++; - for (i = 0; visit354_156_1(i < contextsLen); i++) { - _$jscoverage['/base/selector.js'].lineData[157]++; + _$jscoverage['/base/selector.js'].lineData[172]++; + for (i = 0; visit360_172_1(i < contextsLen); i++) { + _$jscoverage['/base/selector.js'].lineData[173]++; push.apply(ret, Dom._selectInternal(selector, contexts[i])); } - _$jscoverage['/base/selector.js'].lineData[160]++; - if (visit355_160_1(visit356_160_2(ret.length > 1) && visit357_160_3(contextsLen > 1))) { - _$jscoverage['/base/selector.js'].lineData[161]++; + _$jscoverage['/base/selector.js'].lineData[176]++; + if (visit361_176_1(visit362_176_2(ret.length > 1) && visit363_176_3(contextsLen > 1))) { + _$jscoverage['/base/selector.js'].lineData[177]++; Dom.unique(ret); } } } else { - _$jscoverage['/base/selector.js'].lineData[169]++; - if (visit358_169_1(selector.nodeType || selector.setTimeout)) { - _$jscoverage['/base/selector.js'].lineData[170]++; + _$jscoverage['/base/selector.js'].lineData[185]++; + if (visit364_185_1(selector.nodeType || S.isWindow(selector))) { + _$jscoverage['/base/selector.js'].lineData[186]++; ret = [selector]; } else { - _$jscoverage['/base/selector.js'].lineData[173]++; - if (visit359_173_1(selector.getDOMNodes)) { - _$jscoverage['/base/selector.js'].lineData[174]++; + _$jscoverage['/base/selector.js'].lineData[187]++; + if (visit365_187_1(selector.getDOMNodes)) { + _$jscoverage['/base/selector.js'].lineData[189]++; ret = selector.getDOMNodes(); } else { - _$jscoverage['/base/selector.js'].lineData[179]++; - if (visit360_179_1(isArray(selector))) { - _$jscoverage['/base/selector.js'].lineData[180]++; + _$jscoverage['/base/selector.js'].lineData[190]++; + if (visit366_190_1(isArray(selector))) { + _$jscoverage['/base/selector.js'].lineData[194]++; ret = selector; } else { - _$jscoverage['/base/selector.js'].lineData[187]++; - if (visit361_187_1(isDomNodeList(selector))) { - _$jscoverage['/base/selector.js'].lineData[188]++; + _$jscoverage['/base/selector.js'].lineData[195]++; + if (visit367_195_1(isDomNodeList(selector))) { + _$jscoverage['/base/selector.js'].lineData[201]++; ret = makeArray(selector); } else { - _$jscoverage['/base/selector.js'].lineData[190]++; + _$jscoverage['/base/selector.js'].lineData[203]++; ret = [selector]; } } } } - _$jscoverage['/base/selector.js'].lineData[193]++; - if (visit362_193_1(!simpleContext)) { - _$jscoverage['/base/selector.js'].lineData[194]++; + _$jscoverage['/base/selector.js'].lineData[206]++; + if (visit368_206_1(!simpleContext)) { + _$jscoverage['/base/selector.js'].lineData[207]++; var tmp = ret, ci, len = tmp.length; - _$jscoverage['/base/selector.js'].lineData[197]++; + _$jscoverage['/base/selector.js'].lineData[210]++; ret = []; - _$jscoverage['/base/selector.js'].lineData[198]++; - for (i = 0; visit363_198_1(i < len); i++) { - _$jscoverage['/base/selector.js'].lineData[199]++; - for (ci = 0; visit364_199_1(ci < contextsLen); ci++) { - _$jscoverage['/base/selector.js'].lineData[200]++; - if (visit365_200_1(Dom._contains(contexts[ci], tmp[i]))) { - _$jscoverage['/base/selector.js'].lineData[201]++; + _$jscoverage['/base/selector.js'].lineData[211]++; + for (i = 0; visit369_211_1(i < len); i++) { + _$jscoverage['/base/selector.js'].lineData[212]++; + for (ci = 0; visit370_212_1(ci < contextsLen); ci++) { + _$jscoverage['/base/selector.js'].lineData[213]++; + if (visit371_213_1(Dom._contains(contexts[ci], tmp[i]))) { + _$jscoverage['/base/selector.js'].lineData[214]++; ret.push(tmp[i]); - _$jscoverage['/base/selector.js'].lineData[202]++; + _$jscoverage['/base/selector.js'].lineData[215]++; break; } } @@ -1096,209 +1156,209 @@ KISSY.add(function(S, require) { } } } - _$jscoverage['/base/selector.js'].lineData[210]++; + _$jscoverage['/base/selector.js'].lineData[223]++; ret.each = queryEach; - _$jscoverage['/base/selector.js'].lineData[212]++; + _$jscoverage['/base/selector.js'].lineData[225]++; return ret; } - _$jscoverage['/base/selector.js'].lineData[215]++; + _$jscoverage['/base/selector.js'].lineData[228]++; function hasSingleClass(el, cls) { - _$jscoverage['/base/selector.js'].functionData[12]++; - _$jscoverage['/base/selector.js'].lineData[217]++; - var className = visit366_217_1(el && (visit367_217_2(el.className || getAttr(el, 'class')))); - _$jscoverage['/base/selector.js'].lineData[218]++; - return visit368_218_1(className && visit369_219_1((className = className.replace(/[\r\t\n]/g, SPACE)) && visit370_220_1((SPACE + className + SPACE).indexOf(SPACE + cls + SPACE) > -1))); + _$jscoverage['/base/selector.js'].functionData[14]++; + _$jscoverage['/base/selector.js'].lineData[231]++; + var className = visit372_231_1(el && getAttr(el, 'class')); + _$jscoverage['/base/selector.js'].lineData[232]++; + return visit373_232_1(className && visit374_232_2((className = className.replace(/[\r\t\n]/g, SPACE)) && visit375_233_1((SPACE + className + SPACE).indexOf(SPACE + cls + SPACE) > -1))); } - _$jscoverage['/base/selector.js'].lineData[223]++; + _$jscoverage['/base/selector.js'].lineData[236]++; function getAttr(el, name) { - _$jscoverage['/base/selector.js'].functionData[13]++; - _$jscoverage['/base/selector.js'].lineData[224]++; - var ret = visit371_224_1(el && el.getAttributeNode(name)); - _$jscoverage['/base/selector.js'].lineData[225]++; - if (visit372_225_1(ret && ret.specified)) { - _$jscoverage['/base/selector.js'].lineData[226]++; + _$jscoverage['/base/selector.js'].functionData[15]++; + _$jscoverage['/base/selector.js'].lineData[237]++; + var ret = visit376_237_1(el && el.getAttributeNode(name)); + _$jscoverage['/base/selector.js'].lineData[238]++; + if (visit377_238_1(ret && ret.specified)) { + _$jscoverage['/base/selector.js'].lineData[239]++; return ret.nodeValue; } - _$jscoverage['/base/selector.js'].lineData[228]++; + _$jscoverage['/base/selector.js'].lineData[241]++; return undefined; } - _$jscoverage['/base/selector.js'].lineData[231]++; + _$jscoverage['/base/selector.js'].lineData[244]++; function isTag(el, value) { - _$jscoverage['/base/selector.js'].functionData[14]++; - _$jscoverage['/base/selector.js'].lineData[232]++; - return visit373_232_1(visit374_232_2(value === '*') || visit375_232_3(el.nodeName.toLowerCase() === value.toLowerCase())); + _$jscoverage['/base/selector.js'].functionData[16]++; + _$jscoverage['/base/selector.js'].lineData[245]++; + return visit378_245_1(visit379_245_2(value === '*') || visit380_245_3(el.nodeName.toLowerCase() === value.toLowerCase())); } - _$jscoverage['/base/selector.js'].lineData[235]++; + _$jscoverage['/base/selector.js'].lineData[248]++; S.mix(Dom, { _compareNodeOrder: function(a, b) { - _$jscoverage['/base/selector.js'].functionData[15]++; - _$jscoverage['/base/selector.js'].lineData[243]++; - if (visit376_243_1(!a.compareDocumentPosition || !b.compareDocumentPosition)) { - _$jscoverage['/base/selector.js'].lineData[244]++; + _$jscoverage['/base/selector.js'].functionData[17]++; + _$jscoverage['/base/selector.js'].lineData[256]++; + if (visit381_256_1(!a.compareDocumentPosition || !b.compareDocumentPosition)) { + _$jscoverage['/base/selector.js'].lineData[257]++; return a.compareDocumentPosition ? -1 : 1; } - _$jscoverage['/base/selector.js'].lineData[246]++; + _$jscoverage['/base/selector.js'].lineData[259]++; var bit = a.compareDocumentPosition(b) & 4; - _$jscoverage['/base/selector.js'].lineData[247]++; + _$jscoverage['/base/selector.js'].lineData[260]++; return bit ? -1 : 1; }, _getElementsByTagName: function(name, context) { - _$jscoverage['/base/selector.js'].functionData[16]++; - _$jscoverage['/base/selector.js'].lineData[252]++; - return S.makeArray(context.querySelectorAll(name)); + _$jscoverage['/base/selector.js'].functionData[18]++; + _$jscoverage['/base/selector.js'].lineData[265]++; + return makeArray(context.querySelectorAll(name)); }, _getElementById: function(id, doc) { - _$jscoverage['/base/selector.js'].functionData[17]++; - _$jscoverage['/base/selector.js'].lineData[256]++; + _$jscoverage['/base/selector.js'].functionData[19]++; + _$jscoverage['/base/selector.js'].lineData[269]++; return doc.getElementById(id); }, _getSimpleAttr: getAttr, _isTag: isTag, _hasSingleClass: hasSingleClass, _matchesInternal: function(str, seeds) { - _$jscoverage['/base/selector.js'].functionData[18]++; - _$jscoverage['/base/selector.js'].lineData[266]++; + _$jscoverage['/base/selector.js'].functionData[20]++; + _$jscoverage['/base/selector.js'].lineData[279]++; var ret = [], i = 0, n, len = seeds.length; - _$jscoverage['/base/selector.js'].lineData[270]++; - for (; visit377_270_1(i < len); i++) { - _$jscoverage['/base/selector.js'].lineData[271]++; + _$jscoverage['/base/selector.js'].lineData[283]++; + for (; visit382_283_1(i < len); i++) { + _$jscoverage['/base/selector.js'].lineData[284]++; n = seeds[i]; - _$jscoverage['/base/selector.js'].lineData[272]++; - if (visit378_272_1(matches.call(n, str))) { - _$jscoverage['/base/selector.js'].lineData[273]++; + _$jscoverage['/base/selector.js'].lineData[285]++; + if (visit383_285_1(matches.call(n, str))) { + _$jscoverage['/base/selector.js'].lineData[286]++; ret.push(n); } } - _$jscoverage['/base/selector.js'].lineData[276]++; + _$jscoverage['/base/selector.js'].lineData[289]++; return ret; }, _selectInternal: function(str, context) { - _$jscoverage['/base/selector.js'].functionData[19]++; - _$jscoverage['/base/selector.js'].lineData[280]++; + _$jscoverage['/base/selector.js'].functionData[21]++; + _$jscoverage['/base/selector.js'].lineData[293]++; return makeArray(context.querySelectorAll(str)); }, query: query, get: function(selector, context) { - _$jscoverage['/base/selector.js'].functionData[20]++; - _$jscoverage['/base/selector.js'].lineData[305]++; - return visit379_305_1(query(selector, context)[0] || null); + _$jscoverage['/base/selector.js'].functionData[22]++; + _$jscoverage['/base/selector.js'].lineData[319]++; + return visit384_319_1(query(selector, context)[0] || null); }, unique: (function() { - _$jscoverage['/base/selector.js'].functionData[21]++; - _$jscoverage['/base/selector.js'].lineData[317]++; + _$jscoverage['/base/selector.js'].functionData[23]++; + _$jscoverage['/base/selector.js'].lineData[331]++; var hasDuplicate, baseHasDuplicate = true; - _$jscoverage['/base/selector.js'].lineData[324]++; + _$jscoverage['/base/selector.js'].lineData[338]++; [0, 0].sort(function() { - _$jscoverage['/base/selector.js'].functionData[22]++; - _$jscoverage['/base/selector.js'].lineData[325]++; + _$jscoverage['/base/selector.js'].functionData[24]++; + _$jscoverage['/base/selector.js'].lineData[339]++; baseHasDuplicate = false; - _$jscoverage['/base/selector.js'].lineData[326]++; + _$jscoverage['/base/selector.js'].lineData[340]++; return 0; }); - _$jscoverage['/base/selector.js'].lineData[329]++; + _$jscoverage['/base/selector.js'].lineData[343]++; function sortOrder(a, b) { - _$jscoverage['/base/selector.js'].functionData[23]++; - _$jscoverage['/base/selector.js'].lineData[330]++; - if (visit380_330_1(a === b)) { - _$jscoverage['/base/selector.js'].lineData[331]++; + _$jscoverage['/base/selector.js'].functionData[25]++; + _$jscoverage['/base/selector.js'].lineData[344]++; + if (visit385_344_1(a === b)) { + _$jscoverage['/base/selector.js'].lineData[345]++; hasDuplicate = true; - _$jscoverage['/base/selector.js'].lineData[332]++; + _$jscoverage['/base/selector.js'].lineData[346]++; return 0; } - _$jscoverage['/base/selector.js'].lineData[335]++; + _$jscoverage['/base/selector.js'].lineData[349]++; return Dom._compareNodeOrder(a, b); } - _$jscoverage['/base/selector.js'].lineData[339]++; + _$jscoverage['/base/selector.js'].lineData[353]++; return function(elements) { - _$jscoverage['/base/selector.js'].functionData[24]++; - _$jscoverage['/base/selector.js'].lineData[341]++; + _$jscoverage['/base/selector.js'].functionData[26]++; + _$jscoverage['/base/selector.js'].lineData[355]++; hasDuplicate = baseHasDuplicate; - _$jscoverage['/base/selector.js'].lineData[342]++; + _$jscoverage['/base/selector.js'].lineData[356]++; elements.sort(sortOrder); - _$jscoverage['/base/selector.js'].lineData[344]++; - if (visit381_344_1(hasDuplicate)) { - _$jscoverage['/base/selector.js'].lineData[345]++; + _$jscoverage['/base/selector.js'].lineData[358]++; + if (visit386_358_1(hasDuplicate)) { + _$jscoverage['/base/selector.js'].lineData[359]++; var i = 1, len = elements.length; - _$jscoverage['/base/selector.js'].lineData[346]++; - while (visit382_346_1(i < len)) { - _$jscoverage['/base/selector.js'].lineData[347]++; - if (visit383_347_1(elements[i] === elements[i - 1])) { - _$jscoverage['/base/selector.js'].lineData[348]++; + _$jscoverage['/base/selector.js'].lineData[360]++; + while (visit387_360_1(i < len)) { + _$jscoverage['/base/selector.js'].lineData[361]++; + if (visit388_361_1(elements[i] === elements[i - 1])) { + _$jscoverage['/base/selector.js'].lineData[362]++; elements.splice(i, 1); - _$jscoverage['/base/selector.js'].lineData[349]++; + _$jscoverage['/base/selector.js'].lineData[363]++; --len; } else { - _$jscoverage['/base/selector.js'].lineData[351]++; + _$jscoverage['/base/selector.js'].lineData[365]++; i++; } } } - _$jscoverage['/base/selector.js'].lineData[356]++; + _$jscoverage['/base/selector.js'].lineData[370]++; return elements; }; })(), filter: function(selector, filter, context) { - _$jscoverage['/base/selector.js'].functionData[25]++; - _$jscoverage['/base/selector.js'].lineData[369]++; + _$jscoverage['/base/selector.js'].functionData[27]++; + _$jscoverage['/base/selector.js'].lineData[383]++; var elems = query(selector, context), id, tag, match, cls, ret = []; - _$jscoverage['/base/selector.js'].lineData[376]++; - if (visit384_376_1(visit385_376_2(typeof filter === 'string') && visit386_377_1((filter = trim(filter)) && (match = rSimpleSelector.exec(filter))))) { - _$jscoverage['/base/selector.js'].lineData[379]++; + _$jscoverage['/base/selector.js'].lineData[390]++; + if (visit389_390_1(visit390_390_2(typeof filter === 'string') && visit391_391_1((filter = trim(filter)) && (match = rSimpleSelector.exec(filter))))) { + _$jscoverage['/base/selector.js'].lineData[393]++; id = match[1]; - _$jscoverage['/base/selector.js'].lineData[380]++; + _$jscoverage['/base/selector.js'].lineData[394]++; tag = match[2]; - _$jscoverage['/base/selector.js'].lineData[381]++; + _$jscoverage['/base/selector.js'].lineData[395]++; cls = match[3]; - _$jscoverage['/base/selector.js'].lineData[382]++; - if (visit387_382_1(!id)) { - _$jscoverage['/base/selector.js'].lineData[383]++; + _$jscoverage['/base/selector.js'].lineData[396]++; + if (visit392_396_1(!id)) { + _$jscoverage['/base/selector.js'].lineData[397]++; filter = function(elem) { - _$jscoverage['/base/selector.js'].functionData[26]++; - _$jscoverage['/base/selector.js'].lineData[384]++; + _$jscoverage['/base/selector.js'].functionData[28]++; + _$jscoverage['/base/selector.js'].lineData[398]++; var tagRe = true, clsRe = true; - _$jscoverage['/base/selector.js'].lineData[388]++; - if (visit388_388_1(tag)) { - _$jscoverage['/base/selector.js'].lineData[389]++; + _$jscoverage['/base/selector.js'].lineData[402]++; + if (visit393_402_1(tag)) { + _$jscoverage['/base/selector.js'].lineData[403]++; tagRe = isTag(elem, tag); } - _$jscoverage['/base/selector.js'].lineData[393]++; - if (visit389_393_1(cls)) { - _$jscoverage['/base/selector.js'].lineData[394]++; + _$jscoverage['/base/selector.js'].lineData[407]++; + if (visit394_407_1(cls)) { + _$jscoverage['/base/selector.js'].lineData[408]++; clsRe = hasSingleClass(elem, cls); } - _$jscoverage['/base/selector.js'].lineData[397]++; - return visit390_397_1(clsRe && tagRe); + _$jscoverage['/base/selector.js'].lineData[411]++; + return visit395_411_1(clsRe && tagRe); }; } else { - _$jscoverage['/base/selector.js'].lineData[399]++; - if (visit391_399_1(id && visit392_399_2(!tag && !cls))) { - _$jscoverage['/base/selector.js'].lineData[400]++; + _$jscoverage['/base/selector.js'].lineData[413]++; + if (visit396_413_1(id && visit397_413_2(!tag && !cls))) { + _$jscoverage['/base/selector.js'].lineData[414]++; filter = function(elem) { - _$jscoverage['/base/selector.js'].functionData[27]++; - _$jscoverage['/base/selector.js'].lineData[401]++; - return visit393_401_1(getAttr(elem, 'id') === id); + _$jscoverage['/base/selector.js'].functionData[29]++; + _$jscoverage['/base/selector.js'].lineData[415]++; + return visit398_415_1(getAttr(elem, 'id') === id); }; } } } - _$jscoverage['/base/selector.js'].lineData[406]++; - if (visit394_406_1(typeof filter === 'function')) { - _$jscoverage['/base/selector.js'].lineData[407]++; + _$jscoverage['/base/selector.js'].lineData[420]++; + if (visit399_420_1(typeof filter === 'function')) { + _$jscoverage['/base/selector.js'].lineData[421]++; ret = S.filter(elems, filter); } else { - _$jscoverage['/base/selector.js'].lineData[409]++; + _$jscoverage['/base/selector.js'].lineData[423]++; ret = Dom._matchesInternal(filter, elems); } - _$jscoverage['/base/selector.js'].lineData[412]++; + _$jscoverage['/base/selector.js'].lineData[426]++; return ret; }, test: function(selector, filter, context) { - _$jscoverage['/base/selector.js'].functionData[28]++; - _$jscoverage['/base/selector.js'].lineData[424]++; + _$jscoverage['/base/selector.js'].functionData[30]++; + _$jscoverage['/base/selector.js'].lineData[438]++; var elements = query(selector, context); - _$jscoverage['/base/selector.js'].lineData[425]++; - return visit395_425_1(elements.length && (visit396_425_2(Dom.filter(elements, filter, context).length === elements.length))); + _$jscoverage['/base/selector.js'].lineData[439]++; + return visit400_439_1(elements.length && (visit401_439_2(Dom.filter(elements, filter, context).length === elements.length))); }}); - _$jscoverage['/base/selector.js'].lineData[429]++; + _$jscoverage['/base/selector.js'].lineData[443]++; return Dom; }); diff --git a/src/dom/sub-modules/base/coverage/src/base/style.js b/src/dom/sub-modules/base/coverage/src/base/style.js index c1111bc4dd..30ef7e64d2 100644 --- a/src/dom/sub-modules/base/coverage/src/base/style.js +++ b/src/dom/sub-modules/base/coverage/src/base/style.js @@ -231,255 +231,290 @@ if (! _$jscoverage['/base/style.js']) { _$jscoverage['/base/style.js'].lineData = []; _$jscoverage['/base/style.js'].lineData[6] = 0; _$jscoverage['/base/style.js'].lineData[7] = 0; - _$jscoverage['/base/style.js'].lineData[8] = 0; _$jscoverage['/base/style.js'].lineData[9] = 0; - _$jscoverage['/base/style.js'].lineData[41] = 0; - _$jscoverage['/base/style.js'].lineData[49] = 0; + _$jscoverage['/base/style.js'].lineData[10] = 0; + _$jscoverage['/base/style.js'].lineData[13] = 0; + _$jscoverage['/base/style.js'].lineData[14] = 0; + _$jscoverage['/base/style.js'].lineData[18] = 0; + _$jscoverage['/base/style.js'].lineData[19] = 0; + _$jscoverage['/base/style.js'].lineData[20] = 0; + _$jscoverage['/base/style.js'].lineData[22] = 0; + _$jscoverage['/base/style.js'].lineData[23] = 0; + _$jscoverage['/base/style.js'].lineData[26] = 0; + _$jscoverage['/base/style.js'].lineData[27] = 0; + _$jscoverage['/base/style.js'].lineData[32] = 0; + _$jscoverage['/base/style.js'].lineData[35] = 0; + _$jscoverage['/base/style.js'].lineData[36] = 0; + _$jscoverage['/base/style.js'].lineData[37] = 0; + _$jscoverage['/base/style.js'].lineData[38] = 0; + _$jscoverage['/base/style.js'].lineData[39] = 0; + _$jscoverage['/base/style.js'].lineData[46] = 0; + _$jscoverage['/base/style.js'].lineData[48] = 0; _$jscoverage['/base/style.js'].lineData[51] = 0; _$jscoverage['/base/style.js'].lineData[52] = 0; _$jscoverage['/base/style.js'].lineData[53] = 0; _$jscoverage['/base/style.js'].lineData[54] = 0; - _$jscoverage['/base/style.js'].lineData[56] = 0; - _$jscoverage['/base/style.js'].lineData[60] = 0; - _$jscoverage['/base/style.js'].lineData[61] = 0; - _$jscoverage['/base/style.js'].lineData[62] = 0; - _$jscoverage['/base/style.js'].lineData[63] = 0; - _$jscoverage['/base/style.js'].lineData[66] = 0; - _$jscoverage['/base/style.js'].lineData[67] = 0; - _$jscoverage['/base/style.js'].lineData[70] = 0; - _$jscoverage['/base/style.js'].lineData[71] = 0; - _$jscoverage['/base/style.js'].lineData[74] = 0; - _$jscoverage['/base/style.js'].lineData[76] = 0; - _$jscoverage['/base/style.js'].lineData[79] = 0; - _$jscoverage['/base/style.js'].lineData[80] = 0; - _$jscoverage['/base/style.js'].lineData[83] = 0; - _$jscoverage['/base/style.js'].lineData[84] = 0; - _$jscoverage['/base/style.js'].lineData[85] = 0; - _$jscoverage['/base/style.js'].lineData[87] = 0; - _$jscoverage['/base/style.js'].lineData[88] = 0; - _$jscoverage['/base/style.js'].lineData[89] = 0; - _$jscoverage['/base/style.js'].lineData[91] = 0; - _$jscoverage['/base/style.js'].lineData[93] = 0; - _$jscoverage['/base/style.js'].lineData[96] = 0; + _$jscoverage['/base/style.js'].lineData[99] = 0; + _$jscoverage['/base/style.js'].lineData[101] = 0; + _$jscoverage['/base/style.js'].lineData[102] = 0; + _$jscoverage['/base/style.js'].lineData[103] = 0; + _$jscoverage['/base/style.js'].lineData[105] = 0; + _$jscoverage['/base/style.js'].lineData[106] = 0; + _$jscoverage['/base/style.js'].lineData[109] = 0; _$jscoverage['/base/style.js'].lineData[110] = 0; + _$jscoverage['/base/style.js'].lineData[113] = 0; + _$jscoverage['/base/style.js'].lineData[114] = 0; + _$jscoverage['/base/style.js'].lineData[115] = 0; + _$jscoverage['/base/style.js'].lineData[117] = 0; _$jscoverage['/base/style.js'].lineData[118] = 0; + _$jscoverage['/base/style.js'].lineData[119] = 0; _$jscoverage['/base/style.js'].lineData[121] = 0; - _$jscoverage['/base/style.js'].lineData[122] = 0; + _$jscoverage['/base/style.js'].lineData[123] = 0; _$jscoverage['/base/style.js'].lineData[126] = 0; - _$jscoverage['/base/style.js'].lineData[127] = 0; - _$jscoverage['/base/style.js'].lineData[131] = 0; - _$jscoverage['/base/style.js'].lineData[132] = 0; - _$jscoverage['/base/style.js'].lineData[133] = 0; - _$jscoverage['/base/style.js'].lineData[134] = 0; - _$jscoverage['/base/style.js'].lineData[135] = 0; - _$jscoverage['/base/style.js'].lineData[137] = 0; _$jscoverage['/base/style.js'].lineData[138] = 0; - _$jscoverage['/base/style.js'].lineData[140] = 0; - _$jscoverage['/base/style.js'].lineData[141] = 0; - _$jscoverage['/base/style.js'].lineData[142] = 0; _$jscoverage['/base/style.js'].lineData[145] = 0; + _$jscoverage['/base/style.js'].lineData[148] = 0; + _$jscoverage['/base/style.js'].lineData[149] = 0; + _$jscoverage['/base/style.js'].lineData[153] = 0; + _$jscoverage['/base/style.js'].lineData[154] = 0; _$jscoverage['/base/style.js'].lineData[158] = 0; - _$jscoverage['/base/style.js'].lineData[163] = 0; + _$jscoverage['/base/style.js'].lineData[159] = 0; + _$jscoverage['/base/style.js'].lineData[160] = 0; + _$jscoverage['/base/style.js'].lineData[161] = 0; + _$jscoverage['/base/style.js'].lineData[162] = 0; _$jscoverage['/base/style.js'].lineData[164] = 0; _$jscoverage['/base/style.js'].lineData[165] = 0; - _$jscoverage['/base/style.js'].lineData[166] = 0; + _$jscoverage['/base/style.js'].lineData[167] = 0; + _$jscoverage['/base/style.js'].lineData[168] = 0; _$jscoverage['/base/style.js'].lineData[169] = 0; - _$jscoverage['/base/style.js'].lineData[171] = 0; _$jscoverage['/base/style.js'].lineData[172] = 0; - _$jscoverage['/base/style.js'].lineData[173] = 0; - _$jscoverage['/base/style.js'].lineData[174] = 0; - _$jscoverage['/base/style.js'].lineData[176] = 0; - _$jscoverage['/base/style.js'].lineData[178] = 0; - _$jscoverage['/base/style.js'].lineData[179] = 0; - _$jscoverage['/base/style.js'].lineData[182] = 0; - _$jscoverage['/base/style.js'].lineData[195] = 0; - _$jscoverage['/base/style.js'].lineData[202] = 0; + _$jscoverage['/base/style.js'].lineData[185] = 0; + _$jscoverage['/base/style.js'].lineData[190] = 0; + _$jscoverage['/base/style.js'].lineData[191] = 0; + _$jscoverage['/base/style.js'].lineData[192] = 0; + _$jscoverage['/base/style.js'].lineData[193] = 0; + _$jscoverage['/base/style.js'].lineData[196] = 0; + _$jscoverage['/base/style.js'].lineData[198] = 0; + _$jscoverage['/base/style.js'].lineData[199] = 0; + _$jscoverage['/base/style.js'].lineData[200] = 0; + _$jscoverage['/base/style.js'].lineData[201] = 0; _$jscoverage['/base/style.js'].lineData[203] = 0; - _$jscoverage['/base/style.js'].lineData[204] = 0; _$jscoverage['/base/style.js'].lineData[205] = 0; - _$jscoverage['/base/style.js'].lineData[208] = 0; - _$jscoverage['/base/style.js'].lineData[211] = 0; - _$jscoverage['/base/style.js'].lineData[212] = 0; - _$jscoverage['/base/style.js'].lineData[214] = 0; - _$jscoverage['/base/style.js'].lineData[216] = 0; - _$jscoverage['/base/style.js'].lineData[217] = 0; - _$jscoverage['/base/style.js'].lineData[219] = 0; + _$jscoverage['/base/style.js'].lineData[206] = 0; + _$jscoverage['/base/style.js'].lineData[209] = 0; _$jscoverage['/base/style.js'].lineData[222] = 0; - _$jscoverage['/base/style.js'].lineData[225] = 0; _$jscoverage['/base/style.js'].lineData[229] = 0; _$jscoverage['/base/style.js'].lineData[230] = 0; - _$jscoverage['/base/style.js'].lineData[233] = 0; + _$jscoverage['/base/style.js'].lineData[231] = 0; + _$jscoverage['/base/style.js'].lineData[232] = 0; + _$jscoverage['/base/style.js'].lineData[235] = 0; + _$jscoverage['/base/style.js'].lineData[238] = 0; + _$jscoverage['/base/style.js'].lineData[239] = 0; _$jscoverage['/base/style.js'].lineData[241] = 0; - _$jscoverage['/base/style.js'].lineData[245] = 0; + _$jscoverage['/base/style.js'].lineData[243] = 0; + _$jscoverage['/base/style.js'].lineData[244] = 0; _$jscoverage['/base/style.js'].lineData[246] = 0; - _$jscoverage['/base/style.js'].lineData[247] = 0; _$jscoverage['/base/style.js'].lineData[249] = 0; - _$jscoverage['/base/style.js'].lineData[250] = 0; - _$jscoverage['/base/style.js'].lineData[251] = 0; _$jscoverage['/base/style.js'].lineData[252] = 0; - _$jscoverage['/base/style.js'].lineData[253] = 0; - _$jscoverage['/base/style.js'].lineData[263] = 0; - _$jscoverage['/base/style.js'].lineData[265] = 0; + _$jscoverage['/base/style.js'].lineData[254] = 0; + _$jscoverage['/base/style.js'].lineData[255] = 0; + _$jscoverage['/base/style.js'].lineData[258] = 0; _$jscoverage['/base/style.js'].lineData[266] = 0; - _$jscoverage['/base/style.js'].lineData[267] = 0; - _$jscoverage['/base/style.js'].lineData[269] = 0; _$jscoverage['/base/style.js'].lineData[270] = 0; _$jscoverage['/base/style.js'].lineData[271] = 0; - _$jscoverage['/base/style.js'].lineData[273] = 0; - _$jscoverage['/base/style.js'].lineData[283] = 0; - _$jscoverage['/base/style.js'].lineData[285] = 0; - _$jscoverage['/base/style.js'].lineData[286] = 0; - _$jscoverage['/base/style.js'].lineData[287] = 0; + _$jscoverage['/base/style.js'].lineData[272] = 0; + _$jscoverage['/base/style.js'].lineData[274] = 0; + _$jscoverage['/base/style.js'].lineData[275] = 0; + _$jscoverage['/base/style.js'].lineData[276] = 0; + _$jscoverage['/base/style.js'].lineData[277] = 0; + _$jscoverage['/base/style.js'].lineData[278] = 0; _$jscoverage['/base/style.js'].lineData[288] = 0; _$jscoverage['/base/style.js'].lineData[290] = 0; - _$jscoverage['/base/style.js'].lineData[304] = 0; - _$jscoverage['/base/style.js'].lineData[305] = 0; - _$jscoverage['/base/style.js'].lineData[306] = 0; + _$jscoverage['/base/style.js'].lineData[291] = 0; + _$jscoverage['/base/style.js'].lineData[292] = 0; + _$jscoverage['/base/style.js'].lineData[294] = 0; + _$jscoverage['/base/style.js'].lineData[295] = 0; + _$jscoverage['/base/style.js'].lineData[296] = 0; + _$jscoverage['/base/style.js'].lineData[298] = 0; _$jscoverage['/base/style.js'].lineData[308] = 0; + _$jscoverage['/base/style.js'].lineData[310] = 0; _$jscoverage['/base/style.js'].lineData[311] = 0; - _$jscoverage['/base/style.js'].lineData[314] = 0; + _$jscoverage['/base/style.js'].lineData[312] = 0; + _$jscoverage['/base/style.js'].lineData[313] = 0; _$jscoverage['/base/style.js'].lineData[315] = 0; - _$jscoverage['/base/style.js'].lineData[319] = 0; - _$jscoverage['/base/style.js'].lineData[320] = 0; - _$jscoverage['/base/style.js'].lineData[323] = 0; - _$jscoverage['/base/style.js'].lineData[326] = 0; - _$jscoverage['/base/style.js'].lineData[328] = 0; _$jscoverage['/base/style.js'].lineData[329] = 0; + _$jscoverage['/base/style.js'].lineData[330] = 0; _$jscoverage['/base/style.js'].lineData[331] = 0; + _$jscoverage['/base/style.js'].lineData[333] = 0; + _$jscoverage['/base/style.js'].lineData[336] = 0; + _$jscoverage['/base/style.js'].lineData[339] = 0; _$jscoverage['/base/style.js'].lineData[340] = 0; + _$jscoverage['/base/style.js'].lineData[344] = 0; + _$jscoverage['/base/style.js'].lineData[345] = 0; _$jscoverage['/base/style.js'].lineData[348] = 0; - _$jscoverage['/base/style.js'].lineData[349] = 0; - _$jscoverage['/base/style.js'].lineData[350] = 0; _$jscoverage['/base/style.js'].lineData[351] = 0; - _$jscoverage['/base/style.js'].lineData[352] = 0; _$jscoverage['/base/style.js'].lineData[353] = 0; _$jscoverage['/base/style.js'].lineData[354] = 0; - _$jscoverage['/base/style.js'].lineData[355] = 0; _$jscoverage['/base/style.js'].lineData[356] = 0; - _$jscoverage['/base/style.js'].lineData[357] = 0; - _$jscoverage['/base/style.js'].lineData[358] = 0; - _$jscoverage['/base/style.js'].lineData[359] = 0; - _$jscoverage['/base/style.js'].lineData[420] = 0; - _$jscoverage['/base/style.js'].lineData[421] = 0; - _$jscoverage['/base/style.js'].lineData[422] = 0; - _$jscoverage['/base/style.js'].lineData[423] = 0; - _$jscoverage['/base/style.js'].lineData[426] = 0; - _$jscoverage['/base/style.js'].lineData[427] = 0; - _$jscoverage['/base/style.js'].lineData[428] = 0; - _$jscoverage['/base/style.js'].lineData[431] = 0; - _$jscoverage['/base/style.js'].lineData[432] = 0; - _$jscoverage['/base/style.js'].lineData[433] = 0; - _$jscoverage['/base/style.js'].lineData[434] = 0; - _$jscoverage['/base/style.js'].lineData[436] = 0; - _$jscoverage['/base/style.js'].lineData[442] = 0; + _$jscoverage['/base/style.js'].lineData[365] = 0; + _$jscoverage['/base/style.js'].lineData[373] = 0; + _$jscoverage['/base/style.js'].lineData[374] = 0; + _$jscoverage['/base/style.js'].lineData[375] = 0; + _$jscoverage['/base/style.js'].lineData[376] = 0; + _$jscoverage['/base/style.js'].lineData[377] = 0; + _$jscoverage['/base/style.js'].lineData[378] = 0; + _$jscoverage['/base/style.js'].lineData[379] = 0; + _$jscoverage['/base/style.js'].lineData[380] = 0; + _$jscoverage['/base/style.js'].lineData[381] = 0; + _$jscoverage['/base/style.js'].lineData[386] = 0; + _$jscoverage['/base/style.js'].lineData[387] = 0; + _$jscoverage['/base/style.js'].lineData[388] = 0; + _$jscoverage['/base/style.js'].lineData[446] = 0; _$jscoverage['/base/style.js'].lineData[447] = 0; _$jscoverage['/base/style.js'].lineData[448] = 0; _$jscoverage['/base/style.js'].lineData[449] = 0; - _$jscoverage['/base/style.js'].lineData[451] = 0; + _$jscoverage['/base/style.js'].lineData[452] = 0; + _$jscoverage['/base/style.js'].lineData[453] = 0; + _$jscoverage['/base/style.js'].lineData[454] = 0; _$jscoverage['/base/style.js'].lineData[456] = 0; _$jscoverage['/base/style.js'].lineData[458] = 0; _$jscoverage['/base/style.js'].lineData[459] = 0; + _$jscoverage['/base/style.js'].lineData[460] = 0; _$jscoverage['/base/style.js'].lineData[461] = 0; + _$jscoverage['/base/style.js'].lineData[462] = 0; + _$jscoverage['/base/style.js'].lineData[463] = 0; _$jscoverage['/base/style.js'].lineData[464] = 0; _$jscoverage['/base/style.js'].lineData[465] = 0; - _$jscoverage['/base/style.js'].lineData[466] = 0; _$jscoverage['/base/style.js'].lineData[467] = 0; _$jscoverage['/base/style.js'].lineData[469] = 0; - _$jscoverage['/base/style.js'].lineData[470] = 0; _$jscoverage['/base/style.js'].lineData[471] = 0; - _$jscoverage['/base/style.js'].lineData[472] = 0; - _$jscoverage['/base/style.js'].lineData[475] = 0; - _$jscoverage['/base/style.js'].lineData[476] = 0; - _$jscoverage['/base/style.js'].lineData[479] = 0; + _$jscoverage['/base/style.js'].lineData[477] = 0; + _$jscoverage['/base/style.js'].lineData[482] = 0; + _$jscoverage['/base/style.js'].lineData[483] = 0; _$jscoverage['/base/style.js'].lineData[484] = 0; - _$jscoverage['/base/style.js'].lineData[485] = 0; - _$jscoverage['/base/style.js'].lineData[490] = 0; + _$jscoverage['/base/style.js'].lineData[486] = 0; _$jscoverage['/base/style.js'].lineData[491] = 0; - _$jscoverage['/base/style.js'].lineData[492] = 0; - _$jscoverage['/base/style.js'].lineData[495] = 0; - _$jscoverage['/base/style.js'].lineData[498] = 0; + _$jscoverage['/base/style.js'].lineData[493] = 0; + _$jscoverage['/base/style.js'].lineData[494] = 0; + _$jscoverage['/base/style.js'].lineData[496] = 0; _$jscoverage['/base/style.js'].lineData[499] = 0; - _$jscoverage['/base/style.js'].lineData[503] = 0; + _$jscoverage['/base/style.js'].lineData[500] = 0; + _$jscoverage['/base/style.js'].lineData[501] = 0; + _$jscoverage['/base/style.js'].lineData[502] = 0; _$jscoverage['/base/style.js'].lineData[504] = 0; + _$jscoverage['/base/style.js'].lineData[505] = 0; + _$jscoverage['/base/style.js'].lineData[506] = 0; _$jscoverage['/base/style.js'].lineData[507] = 0; - _$jscoverage['/base/style.js'].lineData[509] = 0; + _$jscoverage['/base/style.js'].lineData[510] = 0; _$jscoverage['/base/style.js'].lineData[511] = 0; - _$jscoverage['/base/style.js'].lineData[512] = 0; - _$jscoverage['/base/style.js'].lineData[513] = 0; - _$jscoverage['/base/style.js'].lineData[515] = 0; - _$jscoverage['/base/style.js'].lineData[517] = 0; - _$jscoverage['/base/style.js'].lineData[518] = 0; - _$jscoverage['/base/style.js'].lineData[521] = 0; - _$jscoverage['/base/style.js'].lineData[522] = 0; - _$jscoverage['/base/style.js'].lineData[524] = 0; + _$jscoverage['/base/style.js'].lineData[514] = 0; + _$jscoverage['/base/style.js'].lineData[519] = 0; + _$jscoverage['/base/style.js'].lineData[520] = 0; _$jscoverage['/base/style.js'].lineData[525] = 0; + _$jscoverage['/base/style.js'].lineData[526] = 0; _$jscoverage['/base/style.js'].lineData[527] = 0; - _$jscoverage['/base/style.js'].lineData[529] = 0; - _$jscoverage['/base/style.js'].lineData[531] = 0; + _$jscoverage['/base/style.js'].lineData[530] = 0; _$jscoverage['/base/style.js'].lineData[533] = 0; - _$jscoverage['/base/style.js'].lineData[536] = 0; - _$jscoverage['/base/style.js'].lineData[537] = 0; - _$jscoverage['/base/style.js'].lineData[540] = 0; - _$jscoverage['/base/style.js'].lineData[543] = 0; + _$jscoverage['/base/style.js'].lineData[534] = 0; + _$jscoverage['/base/style.js'].lineData[538] = 0; + _$jscoverage['/base/style.js'].lineData[539] = 0; + _$jscoverage['/base/style.js'].lineData[542] = 0; _$jscoverage['/base/style.js'].lineData[544] = 0; _$jscoverage['/base/style.js'].lineData[546] = 0; + _$jscoverage['/base/style.js'].lineData[547] = 0; _$jscoverage['/base/style.js'].lineData[548] = 0; + _$jscoverage['/base/style.js'].lineData[550] = 0; + _$jscoverage['/base/style.js'].lineData[552] = 0; _$jscoverage['/base/style.js'].lineData[553] = 0; + _$jscoverage['/base/style.js'].lineData[554] = 0; _$jscoverage['/base/style.js'].lineData[556] = 0; _$jscoverage['/base/style.js'].lineData[558] = 0; + _$jscoverage['/base/style.js'].lineData[559] = 0; + _$jscoverage['/base/style.js'].lineData[561] = 0; _$jscoverage['/base/style.js'].lineData[563] = 0; - _$jscoverage['/base/style.js'].lineData[564] = 0; + _$jscoverage['/base/style.js'].lineData[565] = 0; _$jscoverage['/base/style.js'].lineData[567] = 0; - _$jscoverage['/base/style.js'].lineData[568] = 0; _$jscoverage['/base/style.js'].lineData[570] = 0; _$jscoverage['/base/style.js'].lineData[571] = 0; _$jscoverage['/base/style.js'].lineData[574] = 0; - _$jscoverage['/base/style.js'].lineData[586] = 0; - _$jscoverage['/base/style.js'].lineData[587] = 0; + _$jscoverage['/base/style.js'].lineData[577] = 0; + _$jscoverage['/base/style.js'].lineData[578] = 0; + _$jscoverage['/base/style.js'].lineData[580] = 0; + _$jscoverage['/base/style.js'].lineData[582] = 0; + _$jscoverage['/base/style.js'].lineData[585] = 0; _$jscoverage['/base/style.js'].lineData[588] = 0; - _$jscoverage['/base/style.js'].lineData[589] = 0; _$jscoverage['/base/style.js'].lineData[590] = 0; - _$jscoverage['/base/style.js'].lineData[592] = 0; _$jscoverage['/base/style.js'].lineData[595] = 0; _$jscoverage['/base/style.js'].lineData[596] = 0; - _$jscoverage['/base/style.js'].lineData[597] = 0; - _$jscoverage['/base/style.js'].lineData[598] = 0; _$jscoverage['/base/style.js'].lineData[599] = 0; - _$jscoverage['/base/style.js'].lineData[601] = 0; + _$jscoverage['/base/style.js'].lineData[600] = 0; _$jscoverage['/base/style.js'].lineData[602] = 0; - _$jscoverage['/base/style.js'].lineData[604] = 0; + _$jscoverage['/base/style.js'].lineData[603] = 0; + _$jscoverage['/base/style.js'].lineData[606] = 0; _$jscoverage['/base/style.js'].lineData[609] = 0; + _$jscoverage['/base/style.js'].lineData[610] = 0; + _$jscoverage['/base/style.js'].lineData[611] = 0; + _$jscoverage['/base/style.js'].lineData[612] = 0; _$jscoverage['/base/style.js'].lineData[613] = 0; _$jscoverage['/base/style.js'].lineData[614] = 0; _$jscoverage['/base/style.js'].lineData[615] = 0; - _$jscoverage['/base/style.js'].lineData[618] = 0; + _$jscoverage['/base/style.js'].lineData[616] = 0; + _$jscoverage['/base/style.js'].lineData[617] = 0; + _$jscoverage['/base/style.js'].lineData[619] = 0; _$jscoverage['/base/style.js'].lineData[621] = 0; - _$jscoverage['/base/style.js'].lineData[622] = 0; - _$jscoverage['/base/style.js'].lineData[623] = 0; - _$jscoverage['/base/style.js'].lineData[624] = 0; _$jscoverage['/base/style.js'].lineData[625] = 0; - _$jscoverage['/base/style.js'].lineData[627] = 0; _$jscoverage['/base/style.js'].lineData[628] = 0; + _$jscoverage['/base/style.js'].lineData[629] = 0; + _$jscoverage['/base/style.js'].lineData[632] = 0; _$jscoverage['/base/style.js'].lineData[633] = 0; - _$jscoverage['/base/style.js'].lineData[636] = 0; - _$jscoverage['/base/style.js'].lineData[638] = 0; + _$jscoverage['/base/style.js'].lineData[635] = 0; + _$jscoverage['/base/style.js'].lineData[637] = 0; _$jscoverage['/base/style.js'].lineData[639] = 0; - _$jscoverage['/base/style.js'].lineData[643] = 0; - _$jscoverage['/base/style.js'].lineData[644] = 0; - _$jscoverage['/base/style.js'].lineData[649] = 0; _$jscoverage['/base/style.js'].lineData[650] = 0; _$jscoverage['/base/style.js'].lineData[651] = 0; _$jscoverage['/base/style.js'].lineData[652] = 0; _$jscoverage['/base/style.js'].lineData[653] = 0; + _$jscoverage['/base/style.js'].lineData[654] = 0; _$jscoverage['/base/style.js'].lineData[656] = 0; - _$jscoverage['/base/style.js'].lineData[657] = 0; + _$jscoverage['/base/style.js'].lineData[658] = 0; + _$jscoverage['/base/style.js'].lineData[659] = 0; + _$jscoverage['/base/style.js'].lineData[660] = 0; _$jscoverage['/base/style.js'].lineData[661] = 0; - _$jscoverage['/base/style.js'].lineData[667] = 0; - _$jscoverage['/base/style.js'].lineData[668] = 0; + _$jscoverage['/base/style.js'].lineData[662] = 0; + _$jscoverage['/base/style.js'].lineData[664] = 0; + _$jscoverage['/base/style.js'].lineData[665] = 0; + _$jscoverage['/base/style.js'].lineData[666] = 0; _$jscoverage['/base/style.js'].lineData[669] = 0; _$jscoverage['/base/style.js'].lineData[671] = 0; - _$jscoverage['/base/style.js'].lineData[673] = 0; + _$jscoverage['/base/style.js'].lineData[672] = 0; + _$jscoverage['/base/style.js'].lineData[674] = 0; + _$jscoverage['/base/style.js'].lineData[675] = 0; _$jscoverage['/base/style.js'].lineData[676] = 0; + _$jscoverage['/base/style.js'].lineData[677] = 0; + _$jscoverage['/base/style.js'].lineData[678] = 0; + _$jscoverage['/base/style.js'].lineData[681] = 0; + _$jscoverage['/base/style.js'].lineData[683] = 0; + _$jscoverage['/base/style.js'].lineData[684] = 0; + _$jscoverage['/base/style.js'].lineData[689] = 0; + _$jscoverage['/base/style.js'].lineData[694] = 0; + _$jscoverage['/base/style.js'].lineData[696] = 0; + _$jscoverage['/base/style.js'].lineData[697] = 0; + _$jscoverage['/base/style.js'].lineData[701] = 0; + _$jscoverage['/base/style.js'].lineData[702] = 0; + _$jscoverage['/base/style.js'].lineData[707] = 0; + _$jscoverage['/base/style.js'].lineData[708] = 0; + _$jscoverage['/base/style.js'].lineData[709] = 0; + _$jscoverage['/base/style.js'].lineData[710] = 0; + _$jscoverage['/base/style.js'].lineData[711] = 0; + _$jscoverage['/base/style.js'].lineData[714] = 0; + _$jscoverage['/base/style.js'].lineData[715] = 0; + _$jscoverage['/base/style.js'].lineData[719] = 0; + _$jscoverage['/base/style.js'].lineData[725] = 0; + _$jscoverage['/base/style.js'].lineData[726] = 0; + _$jscoverage['/base/style.js'].lineData[727] = 0; + _$jscoverage['/base/style.js'].lineData[729] = 0; + _$jscoverage['/base/style.js'].lineData[731] = 0; + _$jscoverage['/base/style.js'].lineData[734] = 0; } if (! _$jscoverage['/base/style.js'].functionData) { _$jscoverage['/base/style.js'].functionData = []; @@ -512,999 +547,1112 @@ if (! _$jscoverage['/base/style.js'].functionData) { _$jscoverage['/base/style.js'].functionData[26] = 0; _$jscoverage['/base/style.js'].functionData[27] = 0; _$jscoverage['/base/style.js'].functionData[28] = 0; + _$jscoverage['/base/style.js'].functionData[29] = 0; + _$jscoverage['/base/style.js'].functionData[30] = 0; + _$jscoverage['/base/style.js'].functionData[31] = 0; } if (! _$jscoverage['/base/style.js'].branchData) { _$jscoverage['/base/style.js'].branchData = {}; - _$jscoverage['/base/style.js'].branchData['49'] = []; - _$jscoverage['/base/style.js'].branchData['49'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['49'][2] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['54'] = []; - _$jscoverage['/base/style.js'].branchData['54'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['54'][2] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['60'] = []; - _$jscoverage['/base/style.js'].branchData['60'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['66'] = []; - _$jscoverage['/base/style.js'].branchData['66'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['83'] = []; - _$jscoverage['/base/style.js'].branchData['83'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['84'] = []; - _$jscoverage['/base/style.js'].branchData['84'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['118'] = []; - _$jscoverage['/base/style.js'].branchData['118'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['122'] = []; - _$jscoverage['/base/style.js'].branchData['122'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['126'] = []; - _$jscoverage['/base/style.js'].branchData['126'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['126'][2] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['131'] = []; - _$jscoverage['/base/style.js'].branchData['131'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['163'] = []; - _$jscoverage['/base/style.js'].branchData['163'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['165'] = []; - _$jscoverage['/base/style.js'].branchData['165'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['171'] = []; - _$jscoverage['/base/style.js'].branchData['171'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['173'] = []; - _$jscoverage['/base/style.js'].branchData['173'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['178'] = []; - _$jscoverage['/base/style.js'].branchData['178'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['202'] = []; - _$jscoverage['/base/style.js'].branchData['202'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['204'] = []; - _$jscoverage['/base/style.js'].branchData['204'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['214'] = []; - _$jscoverage['/base/style.js'].branchData['214'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['217'] = []; - _$jscoverage['/base/style.js'].branchData['217'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['219'] = []; - _$jscoverage['/base/style.js'].branchData['219'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['219'][2] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['219'][3] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['220'] = []; - _$jscoverage['/base/style.js'].branchData['220'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['225'] = []; - _$jscoverage['/base/style.js'].branchData['225'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['19'] = []; + _$jscoverage['/base/style.js'].branchData['19'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['22'] = []; + _$jscoverage['/base/style.js'].branchData['22'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['26'] = []; + _$jscoverage['/base/style.js'].branchData['26'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['35'] = []; + _$jscoverage['/base/style.js'].branchData['35'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['38'] = []; + _$jscoverage['/base/style.js'].branchData['38'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['46'] = []; + _$jscoverage['/base/style.js'].branchData['46'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['64'] = []; + _$jscoverage['/base/style.js'].branchData['64'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['65'] = []; + _$jscoverage['/base/style.js'].branchData['65'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['97'] = []; + _$jscoverage['/base/style.js'].branchData['97'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['102'] = []; + _$jscoverage['/base/style.js'].branchData['102'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['106'] = []; + _$jscoverage['/base/style.js'].branchData['106'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['106'][2] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['113'] = []; + _$jscoverage['/base/style.js'].branchData['113'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['114'] = []; + _$jscoverage['/base/style.js'].branchData['114'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['148'] = []; + _$jscoverage['/base/style.js'].branchData['148'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['149'] = []; + _$jscoverage['/base/style.js'].branchData['149'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['153'] = []; + _$jscoverage['/base/style.js'].branchData['153'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['153'][2] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['158'] = []; + _$jscoverage['/base/style.js'].branchData['158'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['190'] = []; + _$jscoverage['/base/style.js'].branchData['190'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['192'] = []; + _$jscoverage['/base/style.js'].branchData['192'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['198'] = []; + _$jscoverage['/base/style.js'].branchData['198'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['200'] = []; + _$jscoverage['/base/style.js'].branchData['200'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['205'] = []; + _$jscoverage['/base/style.js'].branchData['205'][1] = new BranchData(); _$jscoverage['/base/style.js'].branchData['229'] = []; _$jscoverage['/base/style.js'].branchData['229'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['245'] = []; - _$jscoverage['/base/style.js'].branchData['245'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['231'] = []; + _$jscoverage['/base/style.js'].branchData['231'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['241'] = []; + _$jscoverage['/base/style.js'].branchData['241'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['244'] = []; + _$jscoverage['/base/style.js'].branchData['244'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['246'] = []; + _$jscoverage['/base/style.js'].branchData['246'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['246'][2] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['246'][3] = new BranchData(); _$jscoverage['/base/style.js'].branchData['247'] = []; _$jscoverage['/base/style.js'].branchData['247'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['249'] = []; - _$jscoverage['/base/style.js'].branchData['249'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['265'] = []; - _$jscoverage['/base/style.js'].branchData['265'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['269'] = []; - _$jscoverage['/base/style.js'].branchData['269'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['252'] = []; + _$jscoverage['/base/style.js'].branchData['252'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['254'] = []; + _$jscoverage['/base/style.js'].branchData['254'][1] = new BranchData(); _$jscoverage['/base/style.js'].branchData['270'] = []; _$jscoverage['/base/style.js'].branchData['270'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['285'] = []; - _$jscoverage['/base/style.js'].branchData['285'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['287'] = []; - _$jscoverage['/base/style.js'].branchData['287'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['304'] = []; - _$jscoverage['/base/style.js'].branchData['304'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['314'] = []; - _$jscoverage['/base/style.js'].branchData['314'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['319'] = []; - _$jscoverage['/base/style.js'].branchData['319'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['328'] = []; - _$jscoverage['/base/style.js'].branchData['328'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['348'] = []; - _$jscoverage['/base/style.js'].branchData['348'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['351'] = []; - _$jscoverage['/base/style.js'].branchData['351'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['272'] = []; + _$jscoverage['/base/style.js'].branchData['272'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['274'] = []; + _$jscoverage['/base/style.js'].branchData['274'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['290'] = []; + _$jscoverage['/base/style.js'].branchData['290'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['294'] = []; + _$jscoverage['/base/style.js'].branchData['294'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['295'] = []; + _$jscoverage['/base/style.js'].branchData['295'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['310'] = []; + _$jscoverage['/base/style.js'].branchData['310'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['312'] = []; + _$jscoverage['/base/style.js'].branchData['312'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['329'] = []; + _$jscoverage['/base/style.js'].branchData['329'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['339'] = []; + _$jscoverage['/base/style.js'].branchData['339'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['344'] = []; + _$jscoverage['/base/style.js'].branchData['344'][1] = new BranchData(); _$jscoverage['/base/style.js'].branchData['353'] = []; _$jscoverage['/base/style.js'].branchData['353'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['358'] = []; - _$jscoverage['/base/style.js'].branchData['358'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['423'] = []; - _$jscoverage['/base/style.js'].branchData['423'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['428'] = []; - _$jscoverage['/base/style.js'].branchData['428'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['433'] = []; - _$jscoverage['/base/style.js'].branchData['433'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['448'] = []; - _$jscoverage['/base/style.js'].branchData['448'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['373'] = []; + _$jscoverage['/base/style.js'].branchData['373'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['380'] = []; + _$jscoverage['/base/style.js'].branchData['380'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['387'] = []; + _$jscoverage['/base/style.js'].branchData['387'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['449'] = []; + _$jscoverage['/base/style.js'].branchData['449'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['454'] = []; + _$jscoverage['/base/style.js'].branchData['454'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['456'] = []; + _$jscoverage['/base/style.js'].branchData['456'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['460'] = []; + _$jscoverage['/base/style.js'].branchData['460'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['461'] = []; + _$jscoverage['/base/style.js'].branchData['461'][1] = new BranchData(); _$jscoverage['/base/style.js'].branchData['464'] = []; _$jscoverage['/base/style.js'].branchData['464'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['466'] = []; - _$jscoverage['/base/style.js'].branchData['466'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['470'] = []; - _$jscoverage['/base/style.js'].branchData['470'][1] = new BranchData(); _$jscoverage['/base/style.js'].branchData['471'] = []; _$jscoverage['/base/style.js'].branchData['471'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['471'][2] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['475'] = []; - _$jscoverage['/base/style.js'].branchData['475'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['507'] = []; - _$jscoverage['/base/style.js'].branchData['507'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['507'][2] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['508'] = []; - _$jscoverage['/base/style.js'].branchData['508'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['508'][2] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['513'] = []; - _$jscoverage['/base/style.js'].branchData['513'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['515'] = []; - _$jscoverage['/base/style.js'].branchData['515'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['517'] = []; - _$jscoverage['/base/style.js'].branchData['517'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['517'][2] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['517'][3] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['521'] = []; - _$jscoverage['/base/style.js'].branchData['521'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['524'] = []; - _$jscoverage['/base/style.js'].branchData['524'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['527'] = []; - _$jscoverage['/base/style.js'].branchData['527'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['536'] = []; - _$jscoverage['/base/style.js'].branchData['536'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['536'][2] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['540'] = []; - _$jscoverage['/base/style.js'].branchData['540'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['483'] = []; + _$jscoverage['/base/style.js'].branchData['483'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['499'] = []; + _$jscoverage['/base/style.js'].branchData['499'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['501'] = []; + _$jscoverage['/base/style.js'].branchData['501'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['505'] = []; + _$jscoverage['/base/style.js'].branchData['505'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['506'] = []; + _$jscoverage['/base/style.js'].branchData['506'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['506'][2] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['510'] = []; + _$jscoverage['/base/style.js'].branchData['510'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['542'] = []; + _$jscoverage['/base/style.js'].branchData['542'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['542'][2] = new BranchData(); _$jscoverage['/base/style.js'].branchData['543'] = []; _$jscoverage['/base/style.js'].branchData['543'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['553'] = []; - _$jscoverage['/base/style.js'].branchData['553'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['553'][2] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['553'][3] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['543'][2] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['550'] = []; + _$jscoverage['/base/style.js'].branchData['550'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['552'] = []; + _$jscoverage['/base/style.js'].branchData['552'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['552'][2] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['552'][3] = new BranchData(); _$jscoverage['/base/style.js'].branchData['554'] = []; _$jscoverage['/base/style.js'].branchData['554'][1] = new BranchData(); _$jscoverage['/base/style.js'].branchData['558'] = []; _$jscoverage['/base/style.js'].branchData['558'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['567'] = []; - _$jscoverage['/base/style.js'].branchData['567'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['587'] = []; - _$jscoverage['/base/style.js'].branchData['587'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['588'] = []; - _$jscoverage['/base/style.js'].branchData['588'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['589'] = []; - _$jscoverage['/base/style.js'].branchData['589'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['561'] = []; + _$jscoverage['/base/style.js'].branchData['561'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['570'] = []; + _$jscoverage['/base/style.js'].branchData['570'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['570'][2] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['574'] = []; + _$jscoverage['/base/style.js'].branchData['574'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['577'] = []; + _$jscoverage['/base/style.js'].branchData['577'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['585'] = []; + _$jscoverage['/base/style.js'].branchData['585'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['585'][2] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['585'][3] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['586'] = []; + _$jscoverage['/base/style.js'].branchData['586'][1] = new BranchData(); _$jscoverage['/base/style.js'].branchData['590'] = []; _$jscoverage['/base/style.js'].branchData['590'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['592'] = []; - _$jscoverage['/base/style.js'].branchData['592'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['593'] = []; - _$jscoverage['/base/style.js'].branchData['593'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['595'] = []; - _$jscoverage['/base/style.js'].branchData['595'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['596'] = []; - _$jscoverage['/base/style.js'].branchData['596'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['598'] = []; - _$jscoverage['/base/style.js'].branchData['598'][1] = new BranchData(); _$jscoverage['/base/style.js'].branchData['599'] = []; _$jscoverage['/base/style.js'].branchData['599'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['601'] = []; - _$jscoverage['/base/style.js'].branchData['601'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['602'] = []; - _$jscoverage['/base/style.js'].branchData['602'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['604'] = []; - _$jscoverage['/base/style.js'].branchData['604'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['611'] = []; + _$jscoverage['/base/style.js'].branchData['611'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['613'] = []; + _$jscoverage['/base/style.js'].branchData['613'][1] = new BranchData(); _$jscoverage['/base/style.js'].branchData['614'] = []; _$jscoverage['/base/style.js'].branchData['614'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['614'][2] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['614'][3] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['615'] = []; - _$jscoverage['/base/style.js'].branchData['615'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['618'] = []; - _$jscoverage['/base/style.js'].branchData['618'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['616'] = []; + _$jscoverage['/base/style.js'].branchData['616'][1] = new BranchData(); _$jscoverage['/base/style.js'].branchData['621'] = []; _$jscoverage['/base/style.js'].branchData['621'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['623'] = []; - _$jscoverage['/base/style.js'].branchData['623'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['624'] = []; - _$jscoverage['/base/style.js'].branchData['624'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['625'] = []; - _$jscoverage['/base/style.js'].branchData['625'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['627'] = []; - _$jscoverage['/base/style.js'].branchData['627'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['628'] = []; - _$jscoverage['/base/style.js'].branchData['628'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['643'] = []; - _$jscoverage['/base/style.js'].branchData['643'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['629'] = []; + _$jscoverage['/base/style.js'].branchData['629'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['635'] = []; + _$jscoverage['/base/style.js'].branchData['635'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['651'] = []; + _$jscoverage['/base/style.js'].branchData['651'][1] = new BranchData(); _$jscoverage['/base/style.js'].branchData['652'] = []; _$jscoverage['/base/style.js'].branchData['652'][1] = new BranchData(); _$jscoverage['/base/style.js'].branchData['653'] = []; _$jscoverage['/base/style.js'].branchData['653'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['654'] = []; + _$jscoverage['/base/style.js'].branchData['654'][1] = new BranchData(); _$jscoverage['/base/style.js'].branchData['656'] = []; _$jscoverage['/base/style.js'].branchData['656'][1] = new BranchData(); _$jscoverage['/base/style.js'].branchData['657'] = []; _$jscoverage['/base/style.js'].branchData['657'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['668'] = []; - _$jscoverage['/base/style.js'].branchData['668'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['668'][2] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['661'] = []; + _$jscoverage['/base/style.js'].branchData['661'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['661'][2] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['661'][3] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['665'] = []; + _$jscoverage['/base/style.js'].branchData['665'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['665'][2] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['665'][3] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['666'] = []; + _$jscoverage['/base/style.js'].branchData['666'][1] = new BranchData(); _$jscoverage['/base/style.js'].branchData['669'] = []; _$jscoverage['/base/style.js'].branchData['669'][1] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['669'][2] = new BranchData(); - _$jscoverage['/base/style.js'].branchData['670'] = []; - _$jscoverage['/base/style.js'].branchData['670'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['671'] = []; + _$jscoverage['/base/style.js'].branchData['671'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['674'] = []; + _$jscoverage['/base/style.js'].branchData['674'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['674'][2] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['675'] = []; + _$jscoverage['/base/style.js'].branchData['675'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['676'] = []; + _$jscoverage['/base/style.js'].branchData['676'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['677'] = []; + _$jscoverage['/base/style.js'].branchData['677'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['683'] = []; + _$jscoverage['/base/style.js'].branchData['683'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['684'] = []; + _$jscoverage['/base/style.js'].branchData['684'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['685'] = []; + _$jscoverage['/base/style.js'].branchData['685'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['701'] = []; + _$jscoverage['/base/style.js'].branchData['701'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['710'] = []; + _$jscoverage['/base/style.js'].branchData['710'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['711'] = []; + _$jscoverage['/base/style.js'].branchData['711'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['714'] = []; + _$jscoverage['/base/style.js'].branchData['714'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['715'] = []; + _$jscoverage['/base/style.js'].branchData['715'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['726'] = []; + _$jscoverage['/base/style.js'].branchData['726'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['726'][2] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['727'] = []; + _$jscoverage['/base/style.js'].branchData['727'][1] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['727'][2] = new BranchData(); + _$jscoverage['/base/style.js'].branchData['728'] = []; + _$jscoverage['/base/style.js'].branchData['728'][1] = new BranchData(); } -_$jscoverage['/base/style.js'].branchData['670'][1].init(52, 46, 'Dom.css(offsetParent, "position") === \'static\''); -function visit506_670_1(result) { - _$jscoverage['/base/style.js'].branchData['670'][1].ranCondition(result); +_$jscoverage['/base/style.js'].branchData['728'][1].init(52, 46, 'Dom.css(offsetParent, \'position\') === \'static\''); +function visit525_728_1(result) { + _$jscoverage['/base/style.js'].branchData['728'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['669'][2].init(111, 99, '!ROOT_REG.test(offsetParent.nodeName) && Dom.css(offsetParent, "position") === \'static\''); -function visit505_669_2(result) { - _$jscoverage['/base/style.js'].branchData['669'][2].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['727'][2].init(110, 99, '!ROOT_REG.test(offsetParent.nodeName) && Dom.css(offsetParent, \'position\') === \'static\''); +function visit524_727_2(result) { + _$jscoverage['/base/style.js'].branchData['727'][2].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['669'][1].init(95, 115, 'offsetParent && !ROOT_REG.test(offsetParent.nodeName) && Dom.css(offsetParent, "position") === \'static\''); -function visit504_669_1(result) { - _$jscoverage['/base/style.js'].branchData['669'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['727'][1].init(94, 115, 'offsetParent && !ROOT_REG.test(offsetParent.nodeName) && Dom.css(offsetParent, \'position\') === \'static\''); +function visit523_727_1(result) { + _$jscoverage['/base/style.js'].branchData['727'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['668'][2].init(49, 23, 'el.ownerDocument || doc'); -function visit503_668_2(result) { - _$jscoverage['/base/style.js'].branchData['668'][2].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['726'][2].init(48, 23, 'el.ownerDocument || doc'); +function visit522_726_2(result) { + _$jscoverage['/base/style.js'].branchData['726'][2].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['668'][1].init(28, 50, 'el.offsetParent || (el.ownerDocument || doc).body'); -function visit502_668_1(result) { - _$jscoverage['/base/style.js'].branchData['668'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['726'][1].init(28, 49, 'el.offsetParent || (el.ownerDocument || doc).body'); +function visit521_726_1(result) { + _$jscoverage['/base/style.js'].branchData['726'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['657'][1].init(808, 42, 'parseFloat(Dom.css(el, "marginLeft")) || 0'); -function visit501_657_1(result) { - _$jscoverage['/base/style.js'].branchData['657'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['715'][1].init(806, 42, 'parseFloat(Dom.css(el, \'marginLeft\')) || 0'); +function visit520_715_1(result) { + _$jscoverage['/base/style.js'].branchData['715'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['656'][1].init(742, 41, 'parseFloat(Dom.css(el, "marginTop")) || 0'); -function visit500_656_1(result) { - _$jscoverage['/base/style.js'].branchData['656'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['714'][1].init(740, 41, 'parseFloat(Dom.css(el, \'marginTop\')) || 0'); +function visit519_714_1(result) { + _$jscoverage['/base/style.js'].branchData['714'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['653'][1].init(438, 57, 'parseFloat(Dom.css(offsetParent, "borderLeftWidth")) || 0'); -function visit499_653_1(result) { - _$jscoverage['/base/style.js'].branchData['653'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['711'][1].init(438, 57, 'parseFloat(Dom.css(offsetParent, \'borderLeftWidth\')) || 0'); +function visit518_711_1(result) { + _$jscoverage['/base/style.js'].branchData['711'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['652'][1].init(347, 56, 'parseFloat(Dom.css(offsetParent, "borderTopWidth")) || 0'); -function visit498_652_1(result) { - _$jscoverage['/base/style.js'].branchData['652'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['710'][1].init(347, 56, 'parseFloat(Dom.css(offsetParent, \'borderTopWidth\')) || 0'); +function visit517_710_1(result) { + _$jscoverage['/base/style.js'].branchData['710'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['643'][1].init(108, 35, 'Dom.css(el, \'position\') === \'fixed\''); -function visit497_643_1(result) { - _$jscoverage['/base/style.js'].branchData['643'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['701'][1].init(106, 35, 'Dom.css(el, \'position\') === \'fixed\''); +function visit516_701_1(result) { + _$jscoverage['/base/style.js'].branchData['701'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['628'][1].init(28, 41, 'parseFloat(Dom.css(elem, extra + w)) || 0'); -function visit496_628_1(result) { - _$jscoverage['/base/style.js'].branchData['628'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['685'][1].init(45, 23, 'extra === PADDING_INDEX'); +function visit515_685_1(result) { + _$jscoverage['/base/style.js'].branchData['685'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['627'][1].init(235, 18, 'extra === \'margin\''); -function visit495_627_1(result) { - _$jscoverage['/base/style.js'].branchData['627'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['684'][1].init(27, 22, 'extra === BORDER_INDEX'); +function visit514_684_1(result) { + _$jscoverage['/base/style.js'].branchData['684'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['625'][1].init(28, 54, 'parseFloat(Dom.css(elem, \'border\' + w + \'Width\')) || 0'); -function visit494_625_1(result) { - _$jscoverage['/base/style.js'].branchData['625'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['683'][1].init(1600, 27, 'borderBoxValueOrIsBorderBox'); +function visit513_683_1(result) { + _$jscoverage['/base/style.js'].branchData['683'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['624'][1].init(91, 19, 'extra !== \'padding\''); -function visit493_624_1(result) { - _$jscoverage['/base/style.js'].branchData['624'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['677'][1].init(17, 27, 'borderBoxValueOrIsBorderBox'); +function visit512_677_1(result) { + _$jscoverage['/base/style.js'].branchData['677'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['623'][1].init(24, 45, 'parseFloat(Dom.css(elem, \'padding\' + w)) || 0'); -function visit492_623_1(result) { - _$jscoverage['/base/style.js'].branchData['623'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['676'][1].init(1322, 23, 'extra === CONTENT_INDEX'); +function visit511_676_1(result) { + _$jscoverage['/base/style.js'].branchData['676'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['621'][1].init(1328, 5, 'extra'); -function visit491_621_1(result) { - _$jscoverage['/base/style.js'].branchData['621'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['675'][1].init(1279, 29, 'borderBoxValue || cssBoxValue'); +function visit510_675_1(result) { + _$jscoverage['/base/style.js'].branchData['675'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['618'][1].init(1254, 20, 'parseFloat(val) || 0'); -function visit490_618_1(result) { - _$jscoverage['/base/style.js'].branchData['618'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['674'][2].init(1216, 28, 'borderBoxValue !== undefined'); +function visit509_674_2(result) { + _$jscoverage['/base/style.js'].branchData['674'][2].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['615'][1].init(19, 23, 'elem.style[name] || 0'); -function visit489_615_1(result) { - _$jscoverage['/base/style.js'].branchData['615'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['674'][1].init(1216, 43, 'borderBoxValue !== undefined || isBorderBox'); +function visit508_674_1(result) { + _$jscoverage['/base/style.js'].branchData['674'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['614'][3].init(1114, 16, '(Number(val)) < 0'); -function visit488_614_3(result) { - _$jscoverage['/base/style.js'].branchData['614'][3].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['671'][1].init(1077, 19, 'extra === undefined'); +function visit507_671_1(result) { + _$jscoverage['/base/style.js'].branchData['671'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['614'][2].init(1097, 12, 'val === null'); -function visit487_614_2(result) { - _$jscoverage['/base/style.js'].branchData['614'][2].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['669'][1].init(408, 28, 'parseFloat(cssBoxValue) || 0'); +function visit506_669_1(result) { + _$jscoverage['/base/style.js'].branchData['669'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['614'][1].init(1097, 33, 'val === null || (Number(val)) < 0'); -function visit486_614_1(result) { - _$jscoverage['/base/style.js'].branchData['614'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['666'][1].init(31, 23, 'elem.style[name] || 0'); +function visit505_666_1(result) { + _$jscoverage['/base/style.js'].branchData['666'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['604'][1].init(32, 54, 'parseFloat(Dom.css(elem, \'border\' + w + \'Width\')) || 0'); -function visit485_604_1(result) { - _$jscoverage['/base/style.js'].branchData['604'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['665'][3].init(228, 24, '(Number(cssBoxValue)) < 0'); +function visit504_665_3(result) { + _$jscoverage['/base/style.js'].branchData['665'][3].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['602'][1].init(32, 41, 'parseFloat(Dom.css(elem, extra + w)) || 0'); -function visit484_602_1(result) { - _$jscoverage['/base/style.js'].branchData['602'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['665'][2].init(204, 19, 'cssBoxValue == null'); +function visit503_665_2(result) { + _$jscoverage['/base/style.js'].branchData['665'][2].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['601'][1].init(159, 18, 'extra === \'margin\''); -function visit483_601_1(result) { - _$jscoverage['/base/style.js'].branchData['601'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['665'][1].init(204, 48, 'cssBoxValue == null || (Number(cssBoxValue)) < 0'); +function visit502_665_1(result) { + _$jscoverage['/base/style.js'].branchData['665'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['599'][1].init(32, 45, 'parseFloat(Dom.css(elem, \'padding\' + w)) || 0'); -function visit482_599_1(result) { - _$jscoverage['/base/style.js'].branchData['599'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['661'][3].init(595, 19, 'borderBoxValue <= 0'); +function visit501_661_3(result) { + _$jscoverage['/base/style.js'].branchData['661'][3].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['598'][1].init(25, 6, '!extra'); -function visit481_598_1(result) { - _$jscoverage['/base/style.js'].branchData['598'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['661'][2].init(569, 22, 'borderBoxValue == null'); +function visit500_661_2(result) { + _$jscoverage['/base/style.js'].branchData['661'][2].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['596'][1].init(17, 18, 'extra !== \'border\''); -function visit480_596_1(result) { - _$jscoverage['/base/style.js'].branchData['596'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['661'][1].init(569, 45, 'borderBoxValue == null || borderBoxValue <= 0'); +function visit499_661_1(result) { + _$jscoverage['/base/style.js'].branchData['661'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['595'][1].init(413, 7, 'val > 0'); -function visit479_595_1(result) { - _$jscoverage['/base/style.js'].branchData['595'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['657'][1].init(96, 14, 'name === WIDTH'); +function visit498_657_1(result) { + _$jscoverage['/base/style.js'].branchData['657'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['593'][1].init(85, 14, 'name === WIDTH'); -function visit478_593_1(result) { - _$jscoverage['/base/style.js'].branchData['593'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['656'][1].init(274, 14, 'name === WIDTH'); +function visit497_656_1(result) { + _$jscoverage['/base/style.js'].branchData['656'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['592'][1].init(271, 14, 'name === WIDTH'); -function visit477_592_1(result) { - _$jscoverage['/base/style.js'].branchData['592'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['654'][1].init(20, 14, 'name === WIDTH'); +function visit496_654_1(result) { + _$jscoverage['/base/style.js'].branchData['654'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['590'][1].init(20, 14, 'name === WIDTH'); -function visit476_590_1(result) { - _$jscoverage['/base/style.js'].branchData['590'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['653'][1].init(144, 19, 'elem.nodeType === 9'); +function visit495_653_1(result) { + _$jscoverage['/base/style.js'].branchData['653'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['589'][1].init(141, 19, 'elem.nodeType === 9'); -function visit475_589_1(result) { - _$jscoverage['/base/style.js'].branchData['589'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['652'][1].init(20, 14, 'name === WIDTH'); +function visit494_652_1(result) { + _$jscoverage['/base/style.js'].branchData['652'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['588'][1].init(20, 14, 'name === WIDTH'); -function visit474_588_1(result) { - _$jscoverage['/base/style.js'].branchData['588'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['651'][1].init(13, 19, 'util.isWindow(elem)'); +function visit493_651_1(result) { + _$jscoverage['/base/style.js'].branchData['651'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['587'][1].init(13, 16, 'S.isWindow(elem)'); -function visit473_587_1(result) { - _$jscoverage['/base/style.js'].branchData['587'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['635'][1].init(78, 15, 'doc.defaultView'); +function visit492_635_1(result) { + _$jscoverage['/base/style.js'].branchData['635'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['567'][1].init(124, 22, 'elem.offsetWidth !== 0'); -function visit472_567_1(result) { - _$jscoverage['/base/style.js'].branchData['567'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['629'][1].init(16, 72, 'Dom._getComputedStyle(elem, \'boxSizing\', computedStyle) === \'border-box\''); +function visit491_629_1(result) { + _$jscoverage['/base/style.js'].branchData['629'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['558'][1].init(326, 17, 'ret === undefined'); -function visit471_558_1(result) { - _$jscoverage['/base/style.js'].branchData['558'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['621'][1].init(271, 68, 'parseFloat(Dom._getComputedStyle(elem, cssProp, computedStyle)) || 0'); +function visit490_621_1(result) { + _$jscoverage['/base/style.js'].branchData['621'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['554'][1].init(33, 42, '(ret = hook.get(elem, false)) !== undefined'); -function visit470_554_1(result) { - _$jscoverage['/base/style.js'].branchData['554'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['616'][1].init(58, 17, 'prop === \'border\''); +function visit489_616_1(result) { + _$jscoverage['/base/style.js'].branchData['616'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['553'][3].init(103, 76, '\'get\' in hook && (ret = hook.get(elem, false)) !== undefined'); -function visit469_553_3(result) { - _$jscoverage['/base/style.js'].branchData['553'][3].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['614'][1].init(29, 16, 'i < which.length'); +function visit488_614_1(result) { + _$jscoverage['/base/style.js'].branchData['614'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['553'][2].init(95, 84, 'hook && \'get\' in hook && (ret = hook.get(elem, false)) !== undefined'); -function visit468_553_2(result) { - _$jscoverage['/base/style.js'].branchData['553'][2].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['613'][1].init(46, 4, 'prop'); +function visit487_613_1(result) { + _$jscoverage['/base/style.js'].branchData['613'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['553'][1].init(93, 87, '!(hook && \'get\' in hook && (ret = hook.get(elem, false)) !== undefined)'); -function visit467_553_1(result) { - _$jscoverage['/base/style.js'].branchData['553'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['611'][1].init(56, 16, 'j < props.length'); +function visit486_611_1(result) { + _$jscoverage['/base/style.js'].branchData['611'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['543'][1].init(136, 9, 'UA.webkit'); -function visit466_543_1(result) { - _$jscoverage['/base/style.js'].branchData['543'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['599'][1].init(124, 22, 'elem.offsetWidth !== 0'); +function visit485_599_1(result) { + _$jscoverage['/base/style.js'].branchData['599'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['540'][1].init(857, 16, '!elStyle.cssText'); -function visit465_540_1(result) { - _$jscoverage['/base/style.js'].branchData['540'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['590'][1].init(326, 17, 'ret === undefined'); +function visit484_590_1(result) { + _$jscoverage['/base/style.js'].branchData['590'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['536'][2].init(301, 13, 'val === EMPTY'); -function visit464_536_2(result) { - _$jscoverage['/base/style.js'].branchData['536'][2].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['586'][1].init(33, 42, '(ret = hook.get(elem, false)) !== undefined'); +function visit483_586_1(result) { + _$jscoverage['/base/style.js'].branchData['586'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['536'][1].init(301, 40, 'val === EMPTY && elStyle.removeAttribute'); -function visit463_536_1(result) { - _$jscoverage['/base/style.js'].branchData['536'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['585'][3].init(103, 76, '\'get\' in hook && (ret = hook.get(elem, false)) !== undefined'); +function visit482_585_3(result) { + _$jscoverage['/base/style.js'].branchData['585'][3].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['527'][1].init(393, 17, 'val !== undefined'); -function visit462_527_1(result) { - _$jscoverage['/base/style.js'].branchData['527'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['585'][2].init(95, 84, 'hook && \'get\' in hook && (ret = hook.get(elem, false)) !== undefined'); +function visit481_585_2(result) { + _$jscoverage['/base/style.js'].branchData['585'][2].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['524'][1].init(300, 16, 'hook && hook.set'); -function visit461_524_1(result) { - _$jscoverage['/base/style.js'].branchData['524'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['585'][1].init(93, 87, '!(hook && \'get\' in hook && (ret = hook.get(elem, false)) !== undefined)'); +function visit480_585_1(result) { + _$jscoverage['/base/style.js'].branchData['585'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['521'][1].init(191, 39, '!isNaN(Number(val)) && !cssNumber[name]'); -function visit460_521_1(result) { - _$jscoverage['/base/style.js'].branchData['521'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['577'][1].init(137, 9, 'UA.webkit'); +function visit479_577_1(result) { + _$jscoverage['/base/style.js'].branchData['577'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['517'][3].init(64, 13, 'val === EMPTY'); -function visit459_517_3(result) { - _$jscoverage['/base/style.js'].branchData['517'][3].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['574'][1].init(849, 16, '!elStyle.cssText'); +function visit478_574_1(result) { + _$jscoverage['/base/style.js'].branchData['574'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['517'][2].init(48, 12, 'val === null'); -function visit458_517_2(result) { - _$jscoverage['/base/style.js'].branchData['517'][2].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['570'][2].init(301, 13, 'val === EMPTY'); +function visit477_570_2(result) { + _$jscoverage['/base/style.js'].branchData['570'][2].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['517'][1].init(48, 29, 'val === null || val === EMPTY'); -function visit457_517_1(result) { - _$jscoverage['/base/style.js'].branchData['517'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['570'][1].init(301, 40, 'val === EMPTY && elStyle.removeAttribute'); +function visit476_570_1(result) { + _$jscoverage['/base/style.js'].branchData['570'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['515'][1].init(326, 17, 'val !== undefined'); -function visit456_515_1(result) { - _$jscoverage['/base/style.js'].branchData['515'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['561'][1].init(385, 17, 'val !== undefined'); +function visit475_561_1(result) { + _$jscoverage['/base/style.js'].branchData['561'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['513'][1].init(272, 22, 'cssProps[name] || name'); -function visit455_513_1(result) { - _$jscoverage['/base/style.js'].branchData['513'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['558'][1].init(292, 16, 'hook && hook.set'); +function visit474_558_1(result) { + _$jscoverage['/base/style.js'].branchData['558'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['508'][2].init(106, 19, 'elem.nodeType === 8'); -function visit454_508_2(result) { - _$jscoverage['/base/style.js'].branchData['508'][2].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['554'][1].init(134, 39, '!isNaN(Number(val)) && !cssNumber[name]'); +function visit473_554_1(result) { + _$jscoverage['/base/style.js'].branchData['554'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['508'][1].init(34, 46, 'elem.nodeType === 8 || !(elStyle = elem.style)'); -function visit453_508_1(result) { - _$jscoverage['/base/style.js'].branchData['508'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['552'][3].init(64, 13, 'val === EMPTY'); +function visit472_552_3(result) { + _$jscoverage['/base/style.js'].branchData['552'][3].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['507'][2].init(69, 19, 'elem.nodeType === 3'); -function visit452_507_2(result) { - _$jscoverage['/base/style.js'].branchData['507'][2].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['552'][2].init(48, 12, 'val === null'); +function visit471_552_2(result) { + _$jscoverage['/base/style.js'].branchData['552'][2].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['507'][1].init(69, 81, 'elem.nodeType === 3 || elem.nodeType === 8 || !(elStyle = elem.style)'); -function visit451_507_1(result) { - _$jscoverage['/base/style.js'].branchData['507'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['552'][1].init(48, 29, 'val === null || val === EMPTY'); +function visit470_552_1(result) { + _$jscoverage['/base/style.js'].branchData['552'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['475'][1].init(501, 37, 'isAutoPosition || NO_PX_REG.test(val)'); -function visit450_475_1(result) { - _$jscoverage['/base/style.js'].branchData['475'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['550'][1].init(330, 17, 'val !== undefined'); +function visit469_550_1(result) { + _$jscoverage['/base/style.js'].branchData['550'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['471'][2].init(321, 23, 'position === \'relative\''); -function visit449_471_2(result) { - _$jscoverage['/base/style.js'].branchData['471'][2].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['543'][2].init(106, 19, 'elem.nodeType === 8'); +function visit468_543_2(result) { + _$jscoverage['/base/style.js'].branchData['543'][2].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['471'][1].init(303, 41, 'isAutoPosition && position === \'relative\''); -function visit448_471_1(result) { - _$jscoverage['/base/style.js'].branchData['471'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['543'][1].init(34, 46, 'elem.nodeType === 8 || !(elStyle = elem.style)'); +function visit467_543_1(result) { + _$jscoverage['/base/style.js'].branchData['543'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['470'][1].init(263, 14, 'val === \'auto\''); -function visit447_470_1(result) { - _$jscoverage['/base/style.js'].branchData['470'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['542'][2].init(69, 19, 'elem.nodeType === 3'); +function visit466_542_2(result) { + _$jscoverage['/base/style.js'].branchData['542'][2].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['466'][1].init(81, 21, 'position === \'static\''); -function visit446_466_1(result) { - _$jscoverage['/base/style.js'].branchData['466'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['542'][1].init(69, 81, 'elem.nodeType === 3 || elem.nodeType === 8 || !(elStyle = elem.style)'); +function visit465_542_1(result) { + _$jscoverage['/base/style.js'].branchData['542'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['464'][1].init(112, 8, 'computed'); -function visit445_464_1(result) { +}_$jscoverage['/base/style.js'].branchData['510'][1].init(501, 37, 'isAutoPosition || NO_PX_REG.test(val)'); +function visit464_510_1(result) { + _$jscoverage['/base/style.js'].branchData['510'][1].ranCondition(result); + return result; +}_$jscoverage['/base/style.js'].branchData['506'][2].init(321, 23, 'position === \'relative\''); +function visit463_506_2(result) { + _$jscoverage['/base/style.js'].branchData['506'][2].ranCondition(result); + return result; +}_$jscoverage['/base/style.js'].branchData['506'][1].init(303, 41, 'isAutoPosition && position === \'relative\''); +function visit462_506_1(result) { + _$jscoverage['/base/style.js'].branchData['506'][1].ranCondition(result); + return result; +}_$jscoverage['/base/style.js'].branchData['505'][1].init(263, 14, 'val === \'auto\''); +function visit461_505_1(result) { + _$jscoverage['/base/style.js'].branchData['505'][1].ranCondition(result); + return result; +}_$jscoverage['/base/style.js'].branchData['501'][1].init(81, 21, 'position === \'static\''); +function visit460_501_1(result) { + _$jscoverage['/base/style.js'].branchData['501'][1].ranCondition(result); + return result; +}_$jscoverage['/base/style.js'].branchData['499'][1].init(112, 8, 'computed'); +function visit459_499_1(result) { + _$jscoverage['/base/style.js'].branchData['499'][1].ranCondition(result); + return result; +}_$jscoverage['/base/style.js'].branchData['483'][1].init(46, 8, 'computed'); +function visit458_483_1(result) { + _$jscoverage['/base/style.js'].branchData['483'][1].ranCondition(result); + return result; +}_$jscoverage['/base/style.js'].branchData['471'][1].init(540, 53, 'elem && getWHIgnoreDisplay(elem, name, CONTENT_INDEX)'); +function visit457_471_1(result) { + _$jscoverage['/base/style.js'].branchData['471'][1].ranCondition(result); + return result; +}_$jscoverage['/base/style.js'].branchData['464'][1].init(163, 11, 'isBorderBox'); +function visit456_464_1(result) { _$jscoverage['/base/style.js'].branchData['464'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['448'][1].init(46, 8, 'computed'); -function visit444_448_1(result) { - _$jscoverage['/base/style.js'].branchData['448'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['461'][1].init(21, 4, 'elem'); +function visit455_461_1(result) { + _$jscoverage['/base/style.js'].branchData['461'][1].ranCondition(result); + return result; +}_$jscoverage['/base/style.js'].branchData['460'][1].init(59, 17, 'val !== undefined'); +function visit454_460_1(result) { + _$jscoverage['/base/style.js'].branchData['460'][1].ranCondition(result); + return result; +}_$jscoverage['/base/style.js'].branchData['456'][1].init(441, 14, 'name === WIDTH'); +function visit453_456_1(result) { + _$jscoverage['/base/style.js'].branchData['456'][1].ranCondition(result); + return result; +}_$jscoverage['/base/style.js'].branchData['454'][1].init(60, 79, 'el && getWHIgnoreDisplay(el, name, includeMargin ? MARGIN_INDEX : BORDER_INDEX)'); +function visit452_454_1(result) { + _$jscoverage['/base/style.js'].branchData['454'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['433'][1].init(69, 3, 'ret'); -function visit443_433_1(result) { - _$jscoverage['/base/style.js'].branchData['433'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['449'][1].init(60, 49, 'el && getWHIgnoreDisplay(el, name, PADDING_INDEX)'); +function visit451_449_1(result) { + _$jscoverage['/base/style.js'].branchData['449'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['428'][1].init(60, 71, 'el && getWHIgnoreDisplay(el, name, includeMargin ? \'margin\' : \'border\')'); -function visit442_428_1(result) { - _$jscoverage['/base/style.js'].branchData['428'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['387'][1].init(93, 6, 'j >= 0'); +function visit450_387_1(result) { + _$jscoverage['/base/style.js'].branchData['387'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['423'][1].init(60, 45, 'el && getWHIgnoreDisplay(el, name, \'padding\')'); -function visit441_423_1(result) { - _$jscoverage['/base/style.js'].branchData['423'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['380'][1].init(29, 39, '!util.inArray(getNodeName(e), excludes)'); +function visit449_380_1(result) { + _$jscoverage['/base/style.js'].branchData['380'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['358'][1].init(33, 36, '!S.inArray(getNodeName(e), excludes)'); -function visit440_358_1(result) { - _$jscoverage['/base/style.js'].branchData['358'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['373'][1].init(272, 6, 'j >= 0'); +function visit448_373_1(result) { + _$jscoverage['/base/style.js'].branchData['373'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['353'][1].init(229, 5, 'UA.ie'); -function visit439_353_1(result) { +}_$jscoverage['/base/style.js'].branchData['353'][1].init(744, 15, 'elem.styleSheet'); +function visit447_353_1(result) { _$jscoverage['/base/style.js'].branchData['353'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['351'][1].init(101, 32, 'userSelectProperty !== undefined'); -function visit438_351_1(result) { - _$jscoverage['/base/style.js'].branchData['351'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['344'][1].init(489, 4, 'elem'); +function visit446_344_1(result) { + _$jscoverage['/base/style.js'].branchData['344'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['348'][1].init(272, 6, 'j >= 0'); -function visit437_348_1(result) { - _$jscoverage['/base/style.js'].branchData['348'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['339'][1].init(329, 35, 'id && (id = id.replace(\'#\', EMPTY))'); +function visit445_339_1(result) { + _$jscoverage['/base/style.js'].branchData['339'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['328'][1].init(746, 15, 'elem.styleSheet'); -function visit436_328_1(result) { - _$jscoverage['/base/style.js'].branchData['328'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['329'][1].init(21, 26, 'typeof refWin === \'string\''); +function visit444_329_1(result) { + _$jscoverage['/base/style.js'].branchData['329'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['319'][1].init(489, 4, 'elem'); -function visit435_319_1(result) { - _$jscoverage['/base/style.js'].branchData['319'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['312'][1].init(60, 31, 'Dom.css(elem, DISPLAY) === NONE'); +function visit443_312_1(result) { + _$jscoverage['/base/style.js'].branchData['312'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['314'][1].init(329, 35, 'id && (id = id.replace(\'#\', EMPTY))'); -function visit434_314_1(result) { - _$jscoverage['/base/style.js'].branchData['314'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['310'][1].init(118, 6, 'i >= 0'); +function visit442_310_1(result) { + _$jscoverage['/base/style.js'].branchData['310'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['304'][1].init(21, 26, 'typeof refWin === \'string\''); -function visit433_304_1(result) { - _$jscoverage['/base/style.js'].branchData['304'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['295'][1].init(29, 3, 'old'); +function visit441_295_1(result) { + _$jscoverage['/base/style.js'].branchData['295'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['287'][1].init(60, 31, 'Dom.css(elem, DISPLAY) === NONE'); -function visit432_287_1(result) { - _$jscoverage['/base/style.js'].branchData['287'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['294'][1].init(150, 12, 'old !== NONE'); +function visit440_294_1(result) { + _$jscoverage['/base/style.js'].branchData['294'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['285'][1].init(118, 6, 'i >= 0'); -function visit431_285_1(result) { - _$jscoverage['/base/style.js'].branchData['285'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['290'][1].init(118, 6, 'i >= 0'); +function visit439_290_1(result) { + _$jscoverage['/base/style.js'].branchData['290'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['270'][1].init(29, 3, 'old'); -function visit430_270_1(result) { - _$jscoverage['/base/style.js'].branchData['270'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['274'][1].init(201, 31, 'Dom.css(elem, DISPLAY) === NONE'); +function visit438_274_1(result) { + _$jscoverage['/base/style.js'].branchData['274'][1].ranCondition(result); + return result; +}_$jscoverage['/base/style.js'].branchData['272'][1].init(78, 36, 'Dom.data(elem, OLD_DISPLAY) || EMPTY'); +function visit437_272_1(result) { + _$jscoverage['/base/style.js'].branchData['272'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['269'][1].init(150, 12, 'old !== NONE'); -function visit429_269_1(result) { - _$jscoverage['/base/style.js'].branchData['269'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['270'][1].init(172, 6, 'i >= 0'); +function visit436_270_1(result) { + _$jscoverage['/base/style.js'].branchData['270'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['265'][1].init(118, 6, 'i >= 0'); -function visit428_265_1(result) { - _$jscoverage['/base/style.js'].branchData['265'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['254'][1].init(46, 6, 'i >= 0'); +function visit435_254_1(result) { + _$jscoverage['/base/style.js'].branchData['254'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['249'][1].init(201, 31, 'Dom.css(elem, DISPLAY) === NONE'); -function visit427_249_1(result) { - _$jscoverage['/base/style.js'].branchData['249'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['252'][1].init(482, 26, 'typeof ret === \'undefined\''); +function visit434_252_1(result) { + _$jscoverage['/base/style.js'].branchData['252'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['247'][1].init(78, 36, 'Dom.data(elem, OLD_DISPLAY) || EMPTY'); -function visit426_247_1(result) { +}_$jscoverage['/base/style.js'].branchData['247'][1].init(45, 41, '(ret = hook.get(elem, true)) !== undefined'); +function visit433_247_1(result) { _$jscoverage['/base/style.js'].branchData['247'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['245'][1].init(172, 6, 'i >= 0'); -function visit425_245_1(result) { - _$jscoverage['/base/style.js'].branchData['245'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['246'][3].init(123, 87, '\'get\' in hook && (ret = hook.get(elem, true)) !== undefined'); +function visit432_246_3(result) { + _$jscoverage['/base/style.js'].branchData['246'][3].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['229'][1].init(46, 6, 'i >= 0'); -function visit424_229_1(result) { - _$jscoverage['/base/style.js'].branchData['229'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['246'][2].init(115, 95, 'hook && \'get\' in hook && (ret = hook.get(elem, true)) !== undefined'); +function visit431_246_2(result) { + _$jscoverage['/base/style.js'].branchData['246'][2].ranCondition(result); + return result; +}_$jscoverage['/base/style.js'].branchData['246'][1].init(113, 98, '!(hook && \'get\' in hook && (ret = hook.get(elem, true)) !== undefined)'); +function visit430_246_1(result) { + _$jscoverage['/base/style.js'].branchData['246'][1].ranCondition(result); + return result; +}_$jscoverage['/base/style.js'].branchData['244'][1].init(114, 4, 'elem'); +function visit429_244_1(result) { + _$jscoverage['/base/style.js'].branchData['244'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['225'][1].init(482, 26, 'typeof ret === \'undefined\''); -function visit423_225_1(result) { - _$jscoverage['/base/style.js'].branchData['225'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['241'][1].init(648, 17, 'val === undefined'); +function visit428_241_1(result) { + _$jscoverage['/base/style.js'].branchData['241'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['220'][1].init(45, 41, '(ret = hook.get(elem, true)) !== undefined'); -function visit422_220_1(result) { - _$jscoverage['/base/style.js'].branchData['220'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['231'][1].init(50, 6, 'i >= 0'); +function visit427_231_1(result) { + _$jscoverage['/base/style.js'].branchData['231'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['219'][3].init(123, 87, '\'get\' in hook && (ret = hook.get(elem, true)) !== undefined'); -function visit421_219_3(result) { - _$jscoverage['/base/style.js'].branchData['219'][3].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['229'][1].init(233, 24, 'util.isPlainObject(name)'); +function visit426_229_1(result) { + _$jscoverage['/base/style.js'].branchData['229'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['219'][2].init(115, 95, 'hook && \'get\' in hook && (ret = hook.get(elem, true)) !== undefined'); -function visit420_219_2(result) { - _$jscoverage['/base/style.js'].branchData['219'][2].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['205'][1].init(46, 6, 'i >= 0'); +function visit425_205_1(result) { + _$jscoverage['/base/style.js'].branchData['205'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['219'][1].init(113, 98, '!(hook && \'get\' in hook && (ret = hook.get(elem, true)) !== undefined)'); -function visit419_219_1(result) { - _$jscoverage['/base/style.js'].branchData['219'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['200'][1].init(55, 4, 'elem'); +function visit424_200_1(result) { + _$jscoverage['/base/style.js'].branchData['200'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['217'][1].init(114, 4, 'elem'); -function visit418_217_1(result) { - _$jscoverage['/base/style.js'].branchData['217'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['198'][1].init(496, 17, 'val === undefined'); +function visit423_198_1(result) { + _$jscoverage['/base/style.js'].branchData['198'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['214'][1].init(645, 17, 'val === undefined'); -function visit417_214_1(result) { - _$jscoverage['/base/style.js'].branchData['214'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['192'][1].init(50, 6, 'i >= 0'); +function visit422_192_1(result) { + _$jscoverage['/base/style.js'].branchData['192'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['204'][1].init(50, 6, 'i >= 0'); -function visit416_204_1(result) { - _$jscoverage['/base/style.js'].branchData['204'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['190'][1].init(187, 24, 'util.isPlainObject(name)'); +function visit421_190_1(result) { + _$jscoverage['/base/style.js'].branchData['190'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['202'][1].init(233, 21, 'S.isPlainObject(name)'); -function visit415_202_1(result) { - _$jscoverage['/base/style.js'].branchData['202'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['158'][1].init(758, 51, 'Dom._RE_NUM_NO_PX.test(val) && RE_MARGIN.test(name)'); +function visit420_158_1(result) { + _$jscoverage['/base/style.js'].branchData['158'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['178'][1].init(46, 6, 'i >= 0'); -function visit414_178_1(result) { - _$jscoverage['/base/style.js'].branchData['178'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['153'][2].init(575, 10, 'val === \'\''); +function visit419_153_2(result) { + _$jscoverage['/base/style.js'].branchData['153'][2].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['173'][1].init(55, 4, 'elem'); -function visit413_173_1(result) { - _$jscoverage['/base/style.js'].branchData['173'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['153'][1].init(575, 36, 'val === \'\' && !Dom.contains(d, elem)'); +function visit418_153_1(result) { + _$jscoverage['/base/style.js'].branchData['153'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['171'][1].init(493, 17, 'val === undefined'); -function visit412_171_1(result) { - _$jscoverage['/base/style.js'].branchData['171'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['149'][1].init(27, 59, 'computedStyle.getPropertyValue(name) || computedStyle[name]'); +function visit417_149_1(result) { + _$jscoverage['/base/style.js'].branchData['149'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['165'][1].init(50, 6, 'i >= 0'); -function visit411_165_1(result) { - _$jscoverage['/base/style.js'].branchData['165'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['148'][1].init(344, 59, 'computedStyle || d.defaultView.getComputedStyle(elem, null)'); +function visit416_148_1(result) { + _$jscoverage['/base/style.js'].branchData['148'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['163'][1].init(187, 21, 'S.isPlainObject(name)'); -function visit410_163_1(result) { - _$jscoverage['/base/style.js'].branchData['163'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['114'][1].init(20, 31, 'doc.body || doc.documentElement'); +function visit415_114_1(result) { + _$jscoverage['/base/style.js'].branchData['114'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['131'][1].init(770, 51, 'Dom._RE_NUM_NO_PX.test(val) && RE_MARGIN.test(name)'); -function visit409_131_1(result) { - _$jscoverage['/base/style.js'].branchData['131'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['113'][1].init(101, 26, '!defaultDisplay[tagName]'); +function visit414_113_1(result) { + _$jscoverage['/base/style.js'].branchData['113'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['126'][2].init(587, 10, 'val === \'\''); -function visit408_126_2(result) { - _$jscoverage['/base/style.js'].branchData['126'][2].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['106'][2].init(136, 29, 'vendor && vendor.propertyName'); +function visit413_106_2(result) { + _$jscoverage['/base/style.js'].branchData['106'][2].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['126'][1].init(587, 36, 'val === \'\' && !Dom.contains(d, elem)'); -function visit407_126_1(result) { - _$jscoverage['/base/style.js'].branchData['126'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['106'][1].init(136, 37, 'vendor && vendor.propertyName || name'); +function visit412_106_1(result) { + _$jscoverage['/base/style.js'].branchData['106'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['122'][1].init(27, 59, 'computedStyle.getPropertyValue(name) || computedStyle[name]'); -function visit406_122_1(result) { - _$jscoverage['/base/style.js'].branchData['122'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['102'][1].init(13, 14, 'cssProps[name]'); +function visit411_102_1(result) { + _$jscoverage['/base/style.js'].branchData['102'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['118'][1].init(248, 22, 'cssProps[name] || name'); -function visit405_118_1(result) { - _$jscoverage['/base/style.js'].branchData['118'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['97'][1].init(1306, 57, 'userSelectVendorInfo && userSelectVendorInfo.propertyName'); +function visit410_97_1(result) { + _$jscoverage['/base/style.js'].branchData['97'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['84'][1].init(20, 31, 'doc.body || doc.documentElement'); -function visit404_84_1(result) { - _$jscoverage['/base/style.js'].branchData['84'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['65'][1].init(334, 26, 'doc && doc.documentElement'); +function visit409_65_1(result) { + _$jscoverage['/base/style.js'].branchData['65'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['83'][1].init(101, 26, '!defaultDisplay[tagName]'); -function visit403_83_1(result) { - _$jscoverage['/base/style.js'].branchData['83'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['64'][1].init(279, 27, 'globalWindow.document || {}'); +function visit408_64_1(result) { + _$jscoverage['/base/style.js'].branchData['64'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['66'][1].init(1626, 32, 'Features.isTransitionSupported()'); -function visit402_66_1(result) { - _$jscoverage['/base/style.js'].branchData['66'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['46'][1].init(601, 25, 'vendorInfos[name] || null'); +function visit407_46_1(result) { + _$jscoverage['/base/style.js'].branchData['46'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['60'][1].init(1422, 31, 'Features.isTransformSupported()'); -function visit401_60_1(result) { - _$jscoverage['/base/style.js'].branchData['60'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['38'][1].init(149, 34, 'vendorName in documentElementStyle'); +function visit406_38_1(result) { + _$jscoverage['/base/style.js'].branchData['38'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['54'][2].init(79, 32, 'userSelectProperty === undefined'); -function visit400_54_2(result) { - _$jscoverage['/base/style.js'].branchData['54'][2].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['35'][1].init(137, 26, 'i < propertyPrefixesLength'); +function visit405_35_1(result) { + _$jscoverage['/base/style.js'].branchData['35'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['54'][1].init(79, 82, 'userSelectProperty === undefined && userSelect in documentElementStyle'); -function visit399_54_1(result) { - _$jscoverage['/base/style.js'].branchData['54'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['26'][1].init(252, 53, '!documentElementStyle || name in documentElementStyle'); +function visit404_26_1(result) { + _$jscoverage['/base/style.js'].branchData['26'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['49'][2].init(1080, 32, 'doc && doc.documentElement.style'); -function visit398_49_2(result) { - _$jscoverage['/base/style.js'].branchData['49'][2].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['22'][1].init(116, 19, 'name in vendorInfos'); +function visit403_22_1(result) { + _$jscoverage['/base/style.js'].branchData['22'][1].ranCondition(result); return result; -}_$jscoverage['/base/style.js'].branchData['49'][1].init(1080, 38, 'doc && doc.documentElement.style || {}'); -function visit397_49_1(result) { - _$jscoverage['/base/style.js'].branchData['49'][1].ranCondition(result); +}_$jscoverage['/base/style.js'].branchData['19'][1].init(13, 24, 'name.indexOf(\'-\') !== -1'); +function visit402_19_1(result) { + _$jscoverage['/base/style.js'].branchData['19'][1].ranCondition(result); return result; }_$jscoverage['/base/style.js'].lineData[6]++; KISSY.add(function(S, require) { _$jscoverage['/base/style.js'].functionData[0]++; _$jscoverage['/base/style.js'].lineData[7]++; - var Dom = require('./api'); - _$jscoverage['/base/style.js'].lineData[8]++; - var logger = S.getLogger('s/dom'); + var RE_DASH = /-([a-z])/ig; _$jscoverage['/base/style.js'].lineData[9]++; - var globalWindow = S.Env.host, UA = S.UA, Features = S.Features, getNodeName = Dom.nodeName, doc = globalWindow.document, RE_MARGIN = /^margin/, WIDTH = 'width', HEIGHT = 'height', DISPLAY = 'display', OLD_DISPLAY = DISPLAY + S.now(), NONE = 'none', cssNumber = { - 'fillOpacity': 1, - 'fontWeight': 1, - 'lineHeight': 1, - 'opacity': 1, - 'orphans': 1, - 'widows': 1, - 'zIndex': 1, - 'zoom': 1}, rmsPrefix = /^-ms-/, EMPTY = '', DEFAULT_UNIT = 'px', NO_PX_REG = /\d(?!px)[a-z%]+$/i, cssHooks = {}, cssProps = { - 'float': 'cssFloat'}, defaultDisplay = {}, RE_DASH = /-([a-z])/ig; - _$jscoverage['/base/style.js'].lineData[41]++; - var VENDORS = ['', 'Webkit', 'Moz', 'O', 'ms']; - _$jscoverage['/base/style.js'].lineData[49]++; - var documentElementStyle = visit397_49_1(visit398_49_2(doc && doc.documentElement.style) || {}); - _$jscoverage['/base/style.js'].lineData[51]++; - var userSelectProperty; - _$jscoverage['/base/style.js'].lineData[52]++; - S.each(VENDORS, function(val) { - _$jscoverage['/base/style.js'].functionData[1]++; - _$jscoverage['/base/style.js'].lineData[53]++; - var userSelect = val ? val + 'UserSelect' : 'userSelect'; - _$jscoverage['/base/style.js'].lineData[54]++; - if (visit399_54_1(visit400_54_2(userSelectProperty === undefined) && userSelect in documentElementStyle)) { - _$jscoverage['/base/style.js'].lineData[56]++; - userSelectProperty = userSelect; - } -}); - _$jscoverage['/base/style.js'].lineData[60]++; - if (visit401_60_1(Features.isTransformSupported())) { - _$jscoverage['/base/style.js'].lineData[61]++; - var transform; - _$jscoverage['/base/style.js'].lineData[62]++; - transform = cssProps.transform = Features.getTransformProperty(); - _$jscoverage['/base/style.js'].lineData[63]++; - cssProps.transformOrigin = transform + 'Origin'; - } - _$jscoverage['/base/style.js'].lineData[66]++; - if (visit402_66_1(Features.isTransitionSupported())) { - _$jscoverage['/base/style.js'].lineData[67]++; - cssProps.transition = Features.getTransitionProperty(); - } - _$jscoverage['/base/style.js'].lineData[70]++; function upperCase() { - _$jscoverage['/base/style.js'].functionData[2]++; - _$jscoverage['/base/style.js'].lineData[71]++; + _$jscoverage['/base/style.js'].functionData[1]++; + _$jscoverage['/base/style.js'].lineData[10]++; return arguments[1].toUpperCase(); } - _$jscoverage['/base/style.js'].lineData[74]++; + _$jscoverage['/base/style.js'].lineData[13]++; function camelCase(name) { + _$jscoverage['/base/style.js'].functionData[2]++; + _$jscoverage['/base/style.js'].lineData[14]++; + return name.replace(RE_DASH, upperCase); + } + _$jscoverage['/base/style.js'].lineData[18]++; + function getCssVendorInfo(name) { _$jscoverage['/base/style.js'].functionData[3]++; - _$jscoverage['/base/style.js'].lineData[76]++; - return name.replace(rmsPrefix, 'ms-').replace(RE_DASH, upperCase); + _$jscoverage['/base/style.js'].lineData[19]++; + if (visit402_19_1(name.indexOf('-') !== -1)) { + _$jscoverage['/base/style.js'].lineData[20]++; + name = name.replace(RE_DASH, upperCase); + } + _$jscoverage['/base/style.js'].lineData[22]++; + if (visit403_22_1(name in vendorInfos)) { + _$jscoverage['/base/style.js'].lineData[23]++; + return vendorInfos[name]; + } + _$jscoverage['/base/style.js'].lineData[26]++; + if (visit404_26_1(!documentElementStyle || name in documentElementStyle)) { + _$jscoverage['/base/style.js'].lineData[27]++; + vendorInfos[name] = { + propertyName: name, + propertyNamePrefix: ''}; + } else { + _$jscoverage['/base/style.js'].lineData[32]++; + var upperFirstName = name.charAt(0).toUpperCase() + name.slice(1), vendorName; + _$jscoverage['/base/style.js'].lineData[35]++; + for (var i = 0; visit405_35_1(i < propertyPrefixesLength); i++) { + _$jscoverage['/base/style.js'].lineData[36]++; + var propertyNamePrefix = propertyPrefixes[i]; + _$jscoverage['/base/style.js'].lineData[37]++; + vendorName = propertyNamePrefix + upperFirstName; + _$jscoverage['/base/style.js'].lineData[38]++; + if (visit406_38_1(vendorName in documentElementStyle)) { + _$jscoverage['/base/style.js'].lineData[39]++; + vendorInfos[name] = { + propertyName: vendorName, + propertyNamePrefix: propertyNamePrefix}; + } + } + _$jscoverage['/base/style.js'].lineData[46]++; + vendorInfos[name] = visit407_46_1(vendorInfos[name] || null); + } + _$jscoverage['/base/style.js'].lineData[48]++; + return vendorInfos[name]; } - _$jscoverage['/base/style.js'].lineData[79]++; - function getDefaultDisplay(tagName) { + _$jscoverage['/base/style.js'].lineData[51]++; + var util = S; + _$jscoverage['/base/style.js'].lineData[52]++; + var logger = S.getLogger('s/dom'); + _$jscoverage['/base/style.js'].lineData[53]++; + var Dom = require('./api'); + _$jscoverage['/base/style.js'].lineData[54]++; + var globalWindow = S.Env.host, vendorInfos = {}, propertyPrefixes = ['Webkit', 'Moz', 'O', 'ms'], propertyPrefixesLength = propertyPrefixes.length, doc = visit408_64_1(globalWindow.document || {}), documentElement = visit409_65_1(doc && doc.documentElement), documentElementStyle = documentElement.style, UA = require('ua'), BOX_MODELS = ['margin', 'border', 'padding'], CONTENT_INDEX = -1, PADDING_INDEX = 2, BORDER_INDEX = 1, MARGIN_INDEX = 0, getNodeName = Dom.nodeName, RE_MARGIN = /^margin/, WIDTH = 'width', HEIGHT = 'height', DISPLAY = 'display', OLD_DISPLAY = DISPLAY + util.now(), NONE = 'none', cssNumber = { + fillOpacity: 1, + fontWeight: 1, + lineHeight: 1, + opacity: 1, + orphans: 1, + widows: 1, + zIndex: 1, + zoom: 1}, EMPTY = '', DEFAULT_UNIT = 'px', NO_PX_REG = /\d(?!px)[a-z%]+$/i, cssHooks = {}, cssProps = {}, defaultDisplay = {}, userSelectVendorInfo = getCssVendorInfo('userSelect'), userSelectProperty = visit410_97_1(userSelectVendorInfo && userSelectVendorInfo.propertyName); + _$jscoverage['/base/style.js'].lineData[99]++; + cssProps['float'] = 'cssFloat'; + _$jscoverage['/base/style.js'].lineData[101]++; + function normalizeCssPropName(name) { _$jscoverage['/base/style.js'].functionData[4]++; - _$jscoverage['/base/style.js'].lineData[80]++; + _$jscoverage['/base/style.js'].lineData[102]++; + if (visit411_102_1(cssProps[name])) { + _$jscoverage['/base/style.js'].lineData[103]++; + return cssProps[name]; + } + _$jscoverage['/base/style.js'].lineData[105]++; + var vendor = getCssVendorInfo(name); + _$jscoverage['/base/style.js'].lineData[106]++; + return visit412_106_1(visit413_106_2(vendor && vendor.propertyName) || name); + } + _$jscoverage['/base/style.js'].lineData[109]++; + function getDefaultDisplay(tagName) { + _$jscoverage['/base/style.js'].functionData[5]++; + _$jscoverage['/base/style.js'].lineData[110]++; var body, oldDisplay = defaultDisplay[tagName], elem; - _$jscoverage['/base/style.js'].lineData[83]++; - if (visit403_83_1(!defaultDisplay[tagName])) { - _$jscoverage['/base/style.js'].lineData[84]++; - body = visit404_84_1(doc.body || doc.documentElement); - _$jscoverage['/base/style.js'].lineData[85]++; + _$jscoverage['/base/style.js'].lineData[113]++; + if (visit414_113_1(!defaultDisplay[tagName])) { + _$jscoverage['/base/style.js'].lineData[114]++; + body = visit415_114_1(doc.body || doc.documentElement); + _$jscoverage['/base/style.js'].lineData[115]++; elem = doc.createElement(tagName); - _$jscoverage['/base/style.js'].lineData[87]++; + _$jscoverage['/base/style.js'].lineData[117]++; Dom.prepend(elem, body); - _$jscoverage['/base/style.js'].lineData[88]++; + _$jscoverage['/base/style.js'].lineData[118]++; oldDisplay = Dom.css(elem, 'display'); - _$jscoverage['/base/style.js'].lineData[89]++; + _$jscoverage['/base/style.js'].lineData[119]++; body.removeChild(elem); - _$jscoverage['/base/style.js'].lineData[91]++; + _$jscoverage['/base/style.js'].lineData[121]++; defaultDisplay[tagName] = oldDisplay; } - _$jscoverage['/base/style.js'].lineData[93]++; + _$jscoverage['/base/style.js'].lineData[123]++; return oldDisplay; } - _$jscoverage['/base/style.js'].lineData[96]++; - S.mix(Dom, { - _camelCase: camelCase, + _$jscoverage['/base/style.js'].lineData[126]++; + util.mix(Dom, { _cssHooks: cssHooks, _cssProps: cssProps, - _getComputedStyle: function(elem, name) { - _$jscoverage['/base/style.js'].functionData[5]++; - _$jscoverage['/base/style.js'].lineData[110]++; - var val = '', computedStyle, width, minWidth, maxWidth, style, d = elem.ownerDocument; - _$jscoverage['/base/style.js'].lineData[118]++; - name = visit405_118_1(cssProps[name] || name); - _$jscoverage['/base/style.js'].lineData[121]++; - if ((computedStyle = d.defaultView.getComputedStyle(elem, null))) { - _$jscoverage['/base/style.js'].lineData[122]++; - val = visit406_122_1(computedStyle.getPropertyValue(name) || computedStyle[name]); + _getComputedStyle: function(elem, name, computedStyle) { + _$jscoverage['/base/style.js'].functionData[6]++; + _$jscoverage['/base/style.js'].lineData[138]++; + var val = '', width, minWidth, maxWidth, style, d = elem.ownerDocument; + _$jscoverage['/base/style.js'].lineData[145]++; + name = normalizeCssPropName(name); + _$jscoverage['/base/style.js'].lineData[148]++; + if ((computedStyle = (visit416_148_1(computedStyle || d.defaultView.getComputedStyle(elem, null))))) { + _$jscoverage['/base/style.js'].lineData[149]++; + val = visit417_149_1(computedStyle.getPropertyValue(name) || computedStyle[name]); } - _$jscoverage['/base/style.js'].lineData[126]++; - if (visit407_126_1(visit408_126_2(val === '') && !Dom.contains(d, elem))) { - _$jscoverage['/base/style.js'].lineData[127]++; + _$jscoverage['/base/style.js'].lineData[153]++; + if (visit418_153_1(visit419_153_2(val === '') && !Dom.contains(d, elem))) { + _$jscoverage['/base/style.js'].lineData[154]++; val = elem.style[name]; } - _$jscoverage['/base/style.js'].lineData[131]++; - if (visit409_131_1(Dom._RE_NUM_NO_PX.test(val) && RE_MARGIN.test(name))) { - _$jscoverage['/base/style.js'].lineData[132]++; + _$jscoverage['/base/style.js'].lineData[158]++; + if (visit420_158_1(Dom._RE_NUM_NO_PX.test(val) && RE_MARGIN.test(name))) { + _$jscoverage['/base/style.js'].lineData[159]++; style = elem.style; - _$jscoverage['/base/style.js'].lineData[133]++; + _$jscoverage['/base/style.js'].lineData[160]++; width = style.width; - _$jscoverage['/base/style.js'].lineData[134]++; + _$jscoverage['/base/style.js'].lineData[161]++; minWidth = style.minWidth; - _$jscoverage['/base/style.js'].lineData[135]++; + _$jscoverage['/base/style.js'].lineData[162]++; maxWidth = style.maxWidth; - _$jscoverage['/base/style.js'].lineData[137]++; + _$jscoverage['/base/style.js'].lineData[164]++; style.minWidth = style.maxWidth = style.width = val; - _$jscoverage['/base/style.js'].lineData[138]++; + _$jscoverage['/base/style.js'].lineData[165]++; val = computedStyle.width; - _$jscoverage['/base/style.js'].lineData[140]++; + _$jscoverage['/base/style.js'].lineData[167]++; style.width = width; - _$jscoverage['/base/style.js'].lineData[141]++; + _$jscoverage['/base/style.js'].lineData[168]++; style.minWidth = minWidth; - _$jscoverage['/base/style.js'].lineData[142]++; + _$jscoverage['/base/style.js'].lineData[169]++; style.maxWidth = maxWidth; } - _$jscoverage['/base/style.js'].lineData[145]++; + _$jscoverage['/base/style.js'].lineData[172]++; return val; }, style: function(selector, name, val) { - _$jscoverage['/base/style.js'].functionData[6]++; - _$jscoverage['/base/style.js'].lineData[158]++; + _$jscoverage['/base/style.js'].functionData[7]++; + _$jscoverage['/base/style.js'].lineData[185]++; var els = Dom.query(selector), k, ret, elem = els[0], i; - _$jscoverage['/base/style.js'].lineData[163]++; - if (visit410_163_1(S.isPlainObject(name))) { - _$jscoverage['/base/style.js'].lineData[164]++; + _$jscoverage['/base/style.js'].lineData[190]++; + if (visit421_190_1(util.isPlainObject(name))) { + _$jscoverage['/base/style.js'].lineData[191]++; for (k in name) { - _$jscoverage['/base/style.js'].lineData[165]++; - for (i = els.length - 1; visit411_165_1(i >= 0); i--) { - _$jscoverage['/base/style.js'].lineData[166]++; + _$jscoverage['/base/style.js'].lineData[192]++; + for (i = els.length - 1; visit422_192_1(i >= 0); i--) { + _$jscoverage['/base/style.js'].lineData[193]++; style(els[i], k, name[k]); } } - _$jscoverage['/base/style.js'].lineData[169]++; + _$jscoverage['/base/style.js'].lineData[196]++; return undefined; } - _$jscoverage['/base/style.js'].lineData[171]++; - if (visit412_171_1(val === undefined)) { - _$jscoverage['/base/style.js'].lineData[172]++; + _$jscoverage['/base/style.js'].lineData[198]++; + if (visit423_198_1(val === undefined)) { + _$jscoverage['/base/style.js'].lineData[199]++; ret = ''; - _$jscoverage['/base/style.js'].lineData[173]++; - if (visit413_173_1(elem)) { - _$jscoverage['/base/style.js'].lineData[174]++; + _$jscoverage['/base/style.js'].lineData[200]++; + if (visit424_200_1(elem)) { + _$jscoverage['/base/style.js'].lineData[201]++; ret = style(elem, name, val); } - _$jscoverage['/base/style.js'].lineData[176]++; + _$jscoverage['/base/style.js'].lineData[203]++; return ret; } else { - _$jscoverage['/base/style.js'].lineData[178]++; - for (i = els.length - 1; visit414_178_1(i >= 0); i--) { - _$jscoverage['/base/style.js'].lineData[179]++; + _$jscoverage['/base/style.js'].lineData[205]++; + for (i = els.length - 1; visit425_205_1(i >= 0); i--) { + _$jscoverage['/base/style.js'].lineData[206]++; style(els[i], name, val); } } - _$jscoverage['/base/style.js'].lineData[182]++; + _$jscoverage['/base/style.js'].lineData[209]++; return undefined; }, css: function(selector, name, val) { - _$jscoverage['/base/style.js'].functionData[7]++; - _$jscoverage['/base/style.js'].lineData[195]++; + _$jscoverage['/base/style.js'].functionData[8]++; + _$jscoverage['/base/style.js'].lineData[222]++; var els = Dom.query(selector), elem = els[0], k, hook, ret, i; - _$jscoverage['/base/style.js'].lineData[202]++; - if (visit415_202_1(S.isPlainObject(name))) { - _$jscoverage['/base/style.js'].lineData[203]++; + _$jscoverage['/base/style.js'].lineData[229]++; + if (visit426_229_1(util.isPlainObject(name))) { + _$jscoverage['/base/style.js'].lineData[230]++; for (k in name) { - _$jscoverage['/base/style.js'].lineData[204]++; - for (i = els.length - 1; visit416_204_1(i >= 0); i--) { - _$jscoverage['/base/style.js'].lineData[205]++; + _$jscoverage['/base/style.js'].lineData[231]++; + for (i = els.length - 1; visit427_231_1(i >= 0); i--) { + _$jscoverage['/base/style.js'].lineData[232]++; style(els[i], k, name[k]); } } - _$jscoverage['/base/style.js'].lineData[208]++; + _$jscoverage['/base/style.js'].lineData[235]++; return undefined; } - _$jscoverage['/base/style.js'].lineData[211]++; + _$jscoverage['/base/style.js'].lineData[238]++; name = camelCase(name); - _$jscoverage['/base/style.js'].lineData[212]++; + _$jscoverage['/base/style.js'].lineData[239]++; hook = cssHooks[name]; - _$jscoverage['/base/style.js'].lineData[214]++; - if (visit417_214_1(val === undefined)) { - _$jscoverage['/base/style.js'].lineData[216]++; + _$jscoverage['/base/style.js'].lineData[241]++; + if (visit428_241_1(val === undefined)) { + _$jscoverage['/base/style.js'].lineData[243]++; ret = ''; - _$jscoverage['/base/style.js'].lineData[217]++; - if (visit418_217_1(elem)) { - _$jscoverage['/base/style.js'].lineData[219]++; - if (visit419_219_1(!(visit420_219_2(hook && visit421_219_3('get' in hook && visit422_220_1((ret = hook.get(elem, true)) !== undefined)))))) { - _$jscoverage['/base/style.js'].lineData[222]++; + _$jscoverage['/base/style.js'].lineData[244]++; + if (visit429_244_1(elem)) { + _$jscoverage['/base/style.js'].lineData[246]++; + if (visit430_246_1(!(visit431_246_2(hook && visit432_246_3('get' in hook && visit433_247_1((ret = hook.get(elem, true)) !== undefined)))))) { + _$jscoverage['/base/style.js'].lineData[249]++; ret = Dom._getComputedStyle(elem, name); } } - _$jscoverage['/base/style.js'].lineData[225]++; - return (visit423_225_1(typeof ret === 'undefined')) ? '' : ret; + _$jscoverage['/base/style.js'].lineData[252]++; + return (visit434_252_1(typeof ret === 'undefined')) ? '' : ret; } else { - _$jscoverage['/base/style.js'].lineData[229]++; - for (i = els.length - 1; visit424_229_1(i >= 0); i--) { - _$jscoverage['/base/style.js'].lineData[230]++; + _$jscoverage['/base/style.js'].lineData[254]++; + for (i = els.length - 1; visit435_254_1(i >= 0); i--) { + _$jscoverage['/base/style.js'].lineData[255]++; style(els[i], name, val); } } - _$jscoverage['/base/style.js'].lineData[233]++; + _$jscoverage['/base/style.js'].lineData[258]++; return undefined; }, show: function(selector) { - _$jscoverage['/base/style.js'].functionData[8]++; - _$jscoverage['/base/style.js'].lineData[241]++; + _$jscoverage['/base/style.js'].functionData[9]++; + _$jscoverage['/base/style.js'].lineData[266]++; var els = Dom.query(selector), tagName, old, elem, i; - _$jscoverage['/base/style.js'].lineData[245]++; - for (i = els.length - 1; visit425_245_1(i >= 0); i--) { - _$jscoverage['/base/style.js'].lineData[246]++; + _$jscoverage['/base/style.js'].lineData[270]++; + for (i = els.length - 1; visit436_270_1(i >= 0); i--) { + _$jscoverage['/base/style.js'].lineData[271]++; elem = els[i]; - _$jscoverage['/base/style.js'].lineData[247]++; - elem.style[DISPLAY] = visit426_247_1(Dom.data(elem, OLD_DISPLAY) || EMPTY); - _$jscoverage['/base/style.js'].lineData[249]++; - if (visit427_249_1(Dom.css(elem, DISPLAY) === NONE)) { - _$jscoverage['/base/style.js'].lineData[250]++; + _$jscoverage['/base/style.js'].lineData[272]++; + elem.style[DISPLAY] = visit437_272_1(Dom.data(elem, OLD_DISPLAY) || EMPTY); + _$jscoverage['/base/style.js'].lineData[274]++; + if (visit438_274_1(Dom.css(elem, DISPLAY) === NONE)) { + _$jscoverage['/base/style.js'].lineData[275]++; tagName = elem.tagName.toLowerCase(); - _$jscoverage['/base/style.js'].lineData[251]++; + _$jscoverage['/base/style.js'].lineData[276]++; old = getDefaultDisplay(tagName); - _$jscoverage['/base/style.js'].lineData[252]++; + _$jscoverage['/base/style.js'].lineData[277]++; Dom.data(elem, OLD_DISPLAY, old); - _$jscoverage['/base/style.js'].lineData[253]++; + _$jscoverage['/base/style.js'].lineData[278]++; elem.style[DISPLAY] = old; } } }, hide: function(selector) { - _$jscoverage['/base/style.js'].functionData[9]++; - _$jscoverage['/base/style.js'].lineData[263]++; + _$jscoverage['/base/style.js'].functionData[10]++; + _$jscoverage['/base/style.js'].lineData[288]++; var els = Dom.query(selector), elem, i; - _$jscoverage['/base/style.js'].lineData[265]++; - for (i = els.length - 1; visit428_265_1(i >= 0); i--) { - _$jscoverage['/base/style.js'].lineData[266]++; + _$jscoverage['/base/style.js'].lineData[290]++; + for (i = els.length - 1; visit439_290_1(i >= 0); i--) { + _$jscoverage['/base/style.js'].lineData[291]++; elem = els[i]; - _$jscoverage['/base/style.js'].lineData[267]++; + _$jscoverage['/base/style.js'].lineData[292]++; var style = elem.style, old = style[DISPLAY]; - _$jscoverage['/base/style.js'].lineData[269]++; - if (visit429_269_1(old !== NONE)) { - _$jscoverage['/base/style.js'].lineData[270]++; - if (visit430_270_1(old)) { - _$jscoverage['/base/style.js'].lineData[271]++; + _$jscoverage['/base/style.js'].lineData[294]++; + if (visit440_294_1(old !== NONE)) { + _$jscoverage['/base/style.js'].lineData[295]++; + if (visit441_295_1(old)) { + _$jscoverage['/base/style.js'].lineData[296]++; Dom.data(elem, OLD_DISPLAY, old); } - _$jscoverage['/base/style.js'].lineData[273]++; + _$jscoverage['/base/style.js'].lineData[298]++; style[DISPLAY] = NONE; } } }, toggle: function(selector) { - _$jscoverage['/base/style.js'].functionData[10]++; - _$jscoverage['/base/style.js'].lineData[283]++; + _$jscoverage['/base/style.js'].functionData[11]++; + _$jscoverage['/base/style.js'].lineData[308]++; var els = Dom.query(selector), elem, i; - _$jscoverage['/base/style.js'].lineData[285]++; - for (i = els.length - 1; visit431_285_1(i >= 0); i--) { - _$jscoverage['/base/style.js'].lineData[286]++; + _$jscoverage['/base/style.js'].lineData[310]++; + for (i = els.length - 1; visit442_310_1(i >= 0); i--) { + _$jscoverage['/base/style.js'].lineData[311]++; elem = els[i]; - _$jscoverage['/base/style.js'].lineData[287]++; - if (visit432_287_1(Dom.css(elem, DISPLAY) === NONE)) { - _$jscoverage['/base/style.js'].lineData[288]++; + _$jscoverage['/base/style.js'].lineData[312]++; + if (visit443_312_1(Dom.css(elem, DISPLAY) === NONE)) { + _$jscoverage['/base/style.js'].lineData[313]++; Dom.show(elem); } else { - _$jscoverage['/base/style.js'].lineData[290]++; + _$jscoverage['/base/style.js'].lineData[315]++; Dom.hide(elem); } } }, addStyleSheet: function(refWin, cssText, id) { - _$jscoverage['/base/style.js'].functionData[11]++; - _$jscoverage['/base/style.js'].lineData[304]++; - if (visit433_304_1(typeof refWin === 'string')) { - _$jscoverage['/base/style.js'].lineData[305]++; + _$jscoverage['/base/style.js'].functionData[12]++; + _$jscoverage['/base/style.js'].lineData[329]++; + if (visit444_329_1(typeof refWin === 'string')) { + _$jscoverage['/base/style.js'].lineData[330]++; id = cssText; - _$jscoverage['/base/style.js'].lineData[306]++; + _$jscoverage['/base/style.js'].lineData[331]++; cssText = refWin; - _$jscoverage['/base/style.js'].lineData[308]++; + _$jscoverage['/base/style.js'].lineData[333]++; refWin = globalWindow; } - _$jscoverage['/base/style.js'].lineData[311]++; + _$jscoverage['/base/style.js'].lineData[336]++; var doc = Dom.getDocument(refWin), elem; - _$jscoverage['/base/style.js'].lineData[314]++; - if (visit434_314_1(id && (id = id.replace('#', EMPTY)))) { - _$jscoverage['/base/style.js'].lineData[315]++; + _$jscoverage['/base/style.js'].lineData[339]++; + if (visit445_339_1(id && (id = id.replace('#', EMPTY)))) { + _$jscoverage['/base/style.js'].lineData[340]++; elem = Dom.get('#' + id, doc); } - _$jscoverage['/base/style.js'].lineData[319]++; - if (visit435_319_1(elem)) { - _$jscoverage['/base/style.js'].lineData[320]++; + _$jscoverage['/base/style.js'].lineData[344]++; + if (visit446_344_1(elem)) { + _$jscoverage['/base/style.js'].lineData[345]++; return; } - _$jscoverage['/base/style.js'].lineData[323]++; + _$jscoverage['/base/style.js'].lineData[348]++; elem = Dom.create('
-
-
+
+
-
-
+
+ +
+
+ ') : ''}); } - _$jscoverage['/editor.js'].lineData[1109]++; + _$jscoverage['/editor.js'].lineData[1110]++; var saveLater = S.buffer(function() { _$jscoverage['/editor.js'].functionData[68]++; - _$jscoverage['/editor.js'].lineData[1110]++; + _$jscoverage['/editor.js'].lineData[1111]++; this.execCommand('save'); }, 50); - _$jscoverage['/editor.js'].lineData[1113]++; + _$jscoverage['/editor.js'].lineData[1114]++; function setUpIFrame(self, data) { _$jscoverage['/editor.js'].functionData[69]++; - _$jscoverage['/editor.js'].lineData[1114]++; + _$jscoverage['/editor.js'].lineData[1115]++; var iframe = self.get('iframe'), html = prepareIFrameHTML(self.get('id'), self.get('customStyle'), self.get('customLink'), data), iframeDom = iframe[0], win = iframeDom.contentWindow, doc; - _$jscoverage['/editor.js'].lineData[1121]++; - iframe.__loaded = 1; _$jscoverage['/editor.js'].lineData[1122]++; + iframe.__loaded = 1; + _$jscoverage['/editor.js'].lineData[1123]++; try { - _$jscoverage['/editor.js'].lineData[1130]++; + _$jscoverage['/editor.js'].lineData[1131]++; doc = win.document; } catch (e) { - _$jscoverage['/editor.js'].lineData[1135]++; + _$jscoverage['/editor.js'].lineData[1136]++; iframeDom.src = iframeDom.src; - _$jscoverage['/editor.js'].lineData[1138]++; - if (visit1243_1138_1(IS_IE < 7)) { - _$jscoverage['/editor.js'].lineData[1139]++; - setTimeout(run, 10); + _$jscoverage['/editor.js'].lineData[1139]++; + if (visit1253_1139_1(IS_IE < 7)) { _$jscoverage['/editor.js'].lineData[1140]++; + setTimeout(run, 10); + _$jscoverage['/editor.js'].lineData[1141]++; return; } } - _$jscoverage['/editor.js'].lineData[1143]++; - run(); _$jscoverage['/editor.js'].lineData[1144]++; + run(); + _$jscoverage['/editor.js'].lineData[1145]++; function run() { _$jscoverage['/editor.js'].functionData[70]++; - _$jscoverage['/editor.js'].lineData[1145]++; - doc = win.document; _$jscoverage['/editor.js'].lineData[1146]++; - self.setInternal('document', new Node(doc)); + doc = win.document; _$jscoverage['/editor.js'].lineData[1147]++; - self.setInternal('window', new Node(win)); + self.setInternal('document', new Node(doc)); _$jscoverage['/editor.js'].lineData[1148]++; + self.setInternal('window', new Node(win)); + _$jscoverage['/editor.js'].lineData[1149]++; iframe.detach(); - _$jscoverage['/editor.js'].lineData[1150]++; - doc.open('text/html', 'replace'); _$jscoverage['/editor.js'].lineData[1151]++; - doc.write(html); + doc.open('text/html', 'replace'); _$jscoverage['/editor.js'].lineData[1152]++; + doc.write(html); + _$jscoverage['/editor.js'].lineData[1153]++; doc.close(); } } - _$jscoverage['/editor.js'].lineData[1156]++; + _$jscoverage['/editor.js'].lineData[1157]++; function createIframe(self, afterData) { _$jscoverage['/editor.js'].functionData[71]++; - _$jscoverage['/editor.js'].lineData[1160]++; - var iframeSrc = visit1244_1160_1($(window).getEmptyIframeSrc() || ''); _$jscoverage['/editor.js'].lineData[1161]++; - if (visit1245_1161_1(iframeSrc)) { - _$jscoverage['/editor.js'].lineData[1162]++; + var iframeSrc = visit1254_1161_1($(window).getEmptyIframeSrc() || ''); + _$jscoverage['/editor.js'].lineData[1162]++; + if (visit1255_1162_1(iframeSrc)) { + _$jscoverage['/editor.js'].lineData[1163]++; iframeSrc = ' src="' + iframeSrc + '" '; } - _$jscoverage['/editor.js'].lineData[1164]++; + _$jscoverage['/editor.js'].lineData[1165]++; var iframe = new Node(S.substitute(IFRAME_TPL, { iframeSrc: iframeSrc, prefixCls: self.get('prefixCls')})), textarea = self.get('textarea'); - _$jscoverage['/editor.js'].lineData[1169]++; - if (visit1246_1169_1(textarea.hasAttr('tabindex'))) { - _$jscoverage['/editor.js'].lineData[1170]++; + _$jscoverage['/editor.js'].lineData[1170]++; + if (visit1256_1170_1(textarea.hasAttr('tabindex'))) { + _$jscoverage['/editor.js'].lineData[1171]++; iframe.attr('tabindex', UA.webkit ? -1 : textarea.attr('tabindex')); } - _$jscoverage['/editor.js'].lineData[1172]++; - textarea.parent().prepend(iframe); _$jscoverage['/editor.js'].lineData[1173]++; - self.set('iframe', iframe); + textarea.parent().prepend(iframe); _$jscoverage['/editor.js'].lineData[1174]++; + self.set('iframe', iframe); + _$jscoverage['/editor.js'].lineData[1175]++; self.__docReady = 0; - _$jscoverage['/editor.js'].lineData[1176]++; - if (visit1247_1176_1(UA.gecko && !iframe.__loaded)) { - _$jscoverage['/editor.js'].lineData[1177]++; + _$jscoverage['/editor.js'].lineData[1177]++; + if (visit1257_1177_1(UA.gecko && !iframe.__loaded)) { + _$jscoverage['/editor.js'].lineData[1178]++; iframe.on('load', function() { _$jscoverage['/editor.js'].functionData[72]++; - _$jscoverage['/editor.js'].lineData[1178]++; + _$jscoverage['/editor.js'].lineData[1179]++; setUpIFrame(self, afterData); }, self); } else { - _$jscoverage['/editor.js'].lineData[1182]++; + _$jscoverage['/editor.js'].lineData[1183]++; setUpIFrame(self, afterData); } } - _$jscoverage['/editor.js'].lineData[1186]++; + _$jscoverage['/editor.js'].lineData[1187]++; function clearIframeDocContent(self) { _$jscoverage['/editor.js'].functionData[73]++; - _$jscoverage['/editor.js'].lineData[1187]++; - if (visit1248_1187_1(!self.get('iframe'))) { - _$jscoverage['/editor.js'].lineData[1188]++; + _$jscoverage['/editor.js'].lineData[1188]++; + if (visit1258_1188_1(!self.get('iframe'))) { + _$jscoverage['/editor.js'].lineData[1189]++; return; } - _$jscoverage['/editor.js'].lineData[1190]++; + _$jscoverage['/editor.js'].lineData[1191]++; var iframe = self.get('iframe'), win = self.get('window'), doc = self.get('document'), domDoc = doc[0], documentElement = $(domDoc.documentElement), body = $(domDoc.body); - _$jscoverage['/editor.js'].lineData[1196]++; + _$jscoverage['/editor.js'].lineData[1197]++; S.each([doc, documentElement, body, win], function(el) { _$jscoverage['/editor.js'].functionData[74]++; - _$jscoverage['/editor.js'].lineData[1197]++; + _$jscoverage['/editor.js'].lineData[1198]++; el.detach(); }); - _$jscoverage['/editor.js'].lineData[1199]++; + _$jscoverage['/editor.js'].lineData[1200]++; iframe.remove(); } }); diff --git a/src/editor/coverage/src/editor/enterKey.js b/src/editor/coverage/src/editor/enterKey.js index 99c4dd047d..de6c14fc1d 100644 --- a/src/editor/coverage/src/editor/enterKey.js +++ b/src/editor/coverage/src/editor/enterKey.js @@ -236,94 +236,111 @@ if (! _$jscoverage['/editor/enterKey.js']) { _$jscoverage['/editor/enterKey.js'].lineData[14] = 0; _$jscoverage['/editor/enterKey.js'].lineData[15] = 0; _$jscoverage['/editor/enterKey.js'].lineData[16] = 0; + _$jscoverage['/editor/enterKey.js'].lineData[17] = 0; + _$jscoverage['/editor/enterKey.js'].lineData[18] = 0; _$jscoverage['/editor/enterKey.js'].lineData[19] = 0; - _$jscoverage['/editor/enterKey.js'].lineData[21] = 0; - _$jscoverage['/editor/enterKey.js'].lineData[23] = 0; + _$jscoverage['/editor/enterKey.js'].lineData[22] = 0; _$jscoverage['/editor/enterKey.js'].lineData[24] = 0; + _$jscoverage['/editor/enterKey.js'].lineData[26] = 0; _$jscoverage['/editor/enterKey.js'].lineData[27] = 0; _$jscoverage['/editor/enterKey.js'].lineData[30] = 0; - _$jscoverage['/editor/enterKey.js'].lineData[32] = 0; _$jscoverage['/editor/enterKey.js'].lineData[33] = 0; _$jscoverage['/editor/enterKey.js'].lineData[35] = 0; _$jscoverage['/editor/enterKey.js'].lineData[36] = 0; - _$jscoverage['/editor/enterKey.js'].lineData[39] = 0; - _$jscoverage['/editor/enterKey.js'].lineData[43] = 0; + _$jscoverage['/editor/enterKey.js'].lineData[37] = 0; + _$jscoverage['/editor/enterKey.js'].lineData[42] = 0; _$jscoverage['/editor/enterKey.js'].lineData[44] = 0; _$jscoverage['/editor/enterKey.js'].lineData[45] = 0; _$jscoverage['/editor/enterKey.js'].lineData[46] = 0; _$jscoverage['/editor/enterKey.js'].lineData[47] = 0; + _$jscoverage['/editor/enterKey.js'].lineData[48] = 0; _$jscoverage['/editor/enterKey.js'].lineData[49] = 0; - _$jscoverage['/editor/enterKey.js'].lineData[55] = 0; + _$jscoverage['/editor/enterKey.js'].lineData[51] = 0; + _$jscoverage['/editor/enterKey.js'].lineData[54] = 0; + _$jscoverage['/editor/enterKey.js'].lineData[56] = 0; _$jscoverage['/editor/enterKey.js'].lineData[58] = 0; + _$jscoverage['/editor/enterKey.js'].lineData[59] = 0; _$jscoverage['/editor/enterKey.js'].lineData[60] = 0; - _$jscoverage['/editor/enterKey.js'].lineData[61] = 0; + _$jscoverage['/editor/enterKey.js'].lineData[62] = 0; + _$jscoverage['/editor/enterKey.js'].lineData[63] = 0; _$jscoverage['/editor/enterKey.js'].lineData[65] = 0; + _$jscoverage['/editor/enterKey.js'].lineData[67] = 0; _$jscoverage['/editor/enterKey.js'].lineData[68] = 0; - _$jscoverage['/editor/enterKey.js'].lineData[71] = 0; - _$jscoverage['/editor/enterKey.js'].lineData[74] = 0; - _$jscoverage['/editor/enterKey.js'].lineData[75] = 0; - _$jscoverage['/editor/enterKey.js'].lineData[76] = 0; + _$jscoverage['/editor/enterKey.js'].lineData[69] = 0; + _$jscoverage['/editor/enterKey.js'].lineData[70] = 0; + _$jscoverage['/editor/enterKey.js'].lineData[72] = 0; _$jscoverage['/editor/enterKey.js'].lineData[77] = 0; - _$jscoverage['/editor/enterKey.js'].lineData[78] = 0; - _$jscoverage['/editor/enterKey.js'].lineData[81] = 0; + _$jscoverage['/editor/enterKey.js'].lineData[80] = 0; _$jscoverage['/editor/enterKey.js'].lineData[82] = 0; _$jscoverage['/editor/enterKey.js'].lineData[83] = 0; - _$jscoverage['/editor/enterKey.js'].lineData[84] = 0; _$jscoverage['/editor/enterKey.js'].lineData[87] = 0; - _$jscoverage['/editor/enterKey.js'].lineData[92] = 0; + _$jscoverage['/editor/enterKey.js'].lineData[90] = 0; + _$jscoverage['/editor/enterKey.js'].lineData[91] = 0; + _$jscoverage['/editor/enterKey.js'].lineData[93] = 0; _$jscoverage['/editor/enterKey.js'].lineData[96] = 0; + _$jscoverage['/editor/enterKey.js'].lineData[97] = 0; + _$jscoverage['/editor/enterKey.js'].lineData[98] = 0; _$jscoverage['/editor/enterKey.js'].lineData[99] = 0; + _$jscoverage['/editor/enterKey.js'].lineData[100] = 0; + _$jscoverage['/editor/enterKey.js'].lineData[102] = 0; + _$jscoverage['/editor/enterKey.js'].lineData[103] = 0; _$jscoverage['/editor/enterKey.js'].lineData[104] = 0; _$jscoverage['/editor/enterKey.js'].lineData[105] = 0; - _$jscoverage['/editor/enterKey.js'].lineData[111] = 0; - _$jscoverage['/editor/enterKey.js'].lineData[115] = 0; + _$jscoverage['/editor/enterKey.js'].lineData[108] = 0; + _$jscoverage['/editor/enterKey.js'].lineData[113] = 0; _$jscoverage['/editor/enterKey.js'].lineData[117] = 0; _$jscoverage['/editor/enterKey.js'].lineData[120] = 0; - _$jscoverage['/editor/enterKey.js'].lineData[121] = 0; - _$jscoverage['/editor/enterKey.js'].lineData[124] = 0; _$jscoverage['/editor/enterKey.js'].lineData[125] = 0; - _$jscoverage['/editor/enterKey.js'].lineData[131] = 0; - _$jscoverage['/editor/enterKey.js'].lineData[132] = 0; - _$jscoverage['/editor/enterKey.js'].lineData[133] = 0; + _$jscoverage['/editor/enterKey.js'].lineData[126] = 0; + _$jscoverage['/editor/enterKey.js'].lineData[129] = 0; _$jscoverage['/editor/enterKey.js'].lineData[134] = 0; _$jscoverage['/editor/enterKey.js'].lineData[136] = 0; _$jscoverage['/editor/enterKey.js'].lineData[138] = 0; - _$jscoverage['/editor/enterKey.js'].lineData[141] = 0; + _$jscoverage['/editor/enterKey.js'].lineData[139] = 0; _$jscoverage['/editor/enterKey.js'].lineData[142] = 0; _$jscoverage['/editor/enterKey.js'].lineData[143] = 0; - _$jscoverage['/editor/enterKey.js'].lineData[144] = 0; _$jscoverage['/editor/enterKey.js'].lineData[149] = 0; _$jscoverage['/editor/enterKey.js'].lineData[150] = 0; - _$jscoverage['/editor/enterKey.js'].lineData[153] = 0; + _$jscoverage['/editor/enterKey.js'].lineData[151] = 0; + _$jscoverage['/editor/enterKey.js'].lineData[152] = 0; + _$jscoverage['/editor/enterKey.js'].lineData[154] = 0; + _$jscoverage['/editor/enterKey.js'].lineData[156] = 0; + _$jscoverage['/editor/enterKey.js'].lineData[159] = 0; _$jscoverage['/editor/enterKey.js'].lineData[160] = 0; + _$jscoverage['/editor/enterKey.js'].lineData[161] = 0; _$jscoverage['/editor/enterKey.js'].lineData[162] = 0; - _$jscoverage['/editor/enterKey.js'].lineData[163] = 0; _$jscoverage['/editor/enterKey.js'].lineData[167] = 0; - _$jscoverage['/editor/enterKey.js'].lineData[170] = 0; + _$jscoverage['/editor/enterKey.js'].lineData[168] = 0; _$jscoverage['/editor/enterKey.js'].lineData[171] = 0; - _$jscoverage['/editor/enterKey.js'].lineData[174] = 0; - _$jscoverage['/editor/enterKey.js'].lineData[177] = 0; - _$jscoverage['/editor/enterKey.js'].lineData[179] = 0; + _$jscoverage['/editor/enterKey.js'].lineData[178] = 0; _$jscoverage['/editor/enterKey.js'].lineData[180] = 0; + _$jscoverage['/editor/enterKey.js'].lineData[181] = 0; _$jscoverage['/editor/enterKey.js'].lineData[185] = 0; - _$jscoverage['/editor/enterKey.js'].lineData[190] = 0; + _$jscoverage['/editor/enterKey.js'].lineData[188] = 0; + _$jscoverage['/editor/enterKey.js'].lineData[189] = 0; + _$jscoverage['/editor/enterKey.js'].lineData[192] = 0; + _$jscoverage['/editor/enterKey.js'].lineData[195] = 0; _$jscoverage['/editor/enterKey.js'].lineData[197] = 0; _$jscoverage['/editor/enterKey.js'].lineData[198] = 0; - _$jscoverage['/editor/enterKey.js'].lineData[201] = 0; - _$jscoverage['/editor/enterKey.js'].lineData[202] = 0; _$jscoverage['/editor/enterKey.js'].lineData[203] = 0; - _$jscoverage['/editor/enterKey.js'].lineData[204] = 0; - _$jscoverage['/editor/enterKey.js'].lineData[205] = 0; - _$jscoverage['/editor/enterKey.js'].lineData[206] = 0; _$jscoverage['/editor/enterKey.js'].lineData[207] = 0; - _$jscoverage['/editor/enterKey.js'].lineData[208] = 0; - _$jscoverage['/editor/enterKey.js'].lineData[209] = 0; - _$jscoverage['/editor/enterKey.js'].lineData[210] = 0; - _$jscoverage['/editor/enterKey.js'].lineData[211] = 0; + _$jscoverage['/editor/enterKey.js'].lineData[214] = 0; + _$jscoverage['/editor/enterKey.js'].lineData[215] = 0; _$jscoverage['/editor/enterKey.js'].lineData[218] = 0; + _$jscoverage['/editor/enterKey.js'].lineData[219] = 0; _$jscoverage['/editor/enterKey.js'].lineData[220] = 0; + _$jscoverage['/editor/enterKey.js'].lineData[221] = 0; + _$jscoverage['/editor/enterKey.js'].lineData[222] = 0; _$jscoverage['/editor/enterKey.js'].lineData[223] = 0; _$jscoverage['/editor/enterKey.js'].lineData[224] = 0; + _$jscoverage['/editor/enterKey.js'].lineData[225] = 0; + _$jscoverage['/editor/enterKey.js'].lineData[226] = 0; + _$jscoverage['/editor/enterKey.js'].lineData[227] = 0; + _$jscoverage['/editor/enterKey.js'].lineData[228] = 0; + _$jscoverage['/editor/enterKey.js'].lineData[235] = 0; + _$jscoverage['/editor/enterKey.js'].lineData[237] = 0; + _$jscoverage['/editor/enterKey.js'].lineData[240] = 0; + _$jscoverage['/editor/enterKey.js'].lineData[241] = 0; } if (! _$jscoverage['/editor/enterKey.js'].functionData) { _$jscoverage['/editor/enterKey.js'].functionData = []; @@ -337,476 +354,550 @@ if (! _$jscoverage['/editor/enterKey.js'].functionData) { } if (! _$jscoverage['/editor/enterKey.js'].branchData) { _$jscoverage['/editor/enterKey.js'].branchData = {}; - _$jscoverage['/editor/enterKey.js'].branchData['15'] = []; - _$jscoverage['/editor/enterKey.js'].branchData['15'][1] = new BranchData(); - _$jscoverage['/editor/enterKey.js'].branchData['23'] = []; - _$jscoverage['/editor/enterKey.js'].branchData['23'][1] = new BranchData(); - _$jscoverage['/editor/enterKey.js'].branchData['35'] = []; - _$jscoverage['/editor/enterKey.js'].branchData['35'][1] = new BranchData(); - _$jscoverage['/editor/enterKey.js'].branchData['39'] = []; - _$jscoverage['/editor/enterKey.js'].branchData['39'][1] = new BranchData(); - _$jscoverage['/editor/enterKey.js'].branchData['40'] = []; - _$jscoverage['/editor/enterKey.js'].branchData['40'][1] = new BranchData(); - _$jscoverage['/editor/enterKey.js'].branchData['40'][2] = new BranchData(); - _$jscoverage['/editor/enterKey.js'].branchData['40'][3] = new BranchData(); - _$jscoverage['/editor/enterKey.js'].branchData['43'] = []; - _$jscoverage['/editor/enterKey.js'].branchData['43'][1] = new BranchData(); + _$jscoverage['/editor/enterKey.js'].branchData['18'] = []; + _$jscoverage['/editor/enterKey.js'].branchData['18'][1] = new BranchData(); + _$jscoverage['/editor/enterKey.js'].branchData['26'] = []; + _$jscoverage['/editor/enterKey.js'].branchData['26'][1] = new BranchData(); + _$jscoverage['/editor/enterKey.js'].branchData['42'] = []; + _$jscoverage['/editor/enterKey.js'].branchData['42'][1] = new BranchData(); + _$jscoverage['/editor/enterKey.js'].branchData['44'] = []; + _$jscoverage['/editor/enterKey.js'].branchData['44'][1] = new BranchData(); + _$jscoverage['/editor/enterKey.js'].branchData['44'][2] = new BranchData(); + _$jscoverage['/editor/enterKey.js'].branchData['44'][3] = new BranchData(); + _$jscoverage['/editor/enterKey.js'].branchData['44'][4] = new BranchData(); + _$jscoverage['/editor/enterKey.js'].branchData['45'] = []; + _$jscoverage['/editor/enterKey.js'].branchData['45'][1] = new BranchData(); + _$jscoverage['/editor/enterKey.js'].branchData['54'] = []; + _$jscoverage['/editor/enterKey.js'].branchData['54'][1] = new BranchData(); + _$jscoverage['/editor/enterKey.js'].branchData['54'][2] = new BranchData(); + _$jscoverage['/editor/enterKey.js'].branchData['56'] = []; + _$jscoverage['/editor/enterKey.js'].branchData['56'][1] = new BranchData(); + _$jscoverage['/editor/enterKey.js'].branchData['58'] = []; + _$jscoverage['/editor/enterKey.js'].branchData['58'][1] = new BranchData(); _$jscoverage['/editor/enterKey.js'].branchData['60'] = []; _$jscoverage['/editor/enterKey.js'].branchData['60'][1] = new BranchData(); - _$jscoverage['/editor/enterKey.js'].branchData['74'] = []; - _$jscoverage['/editor/enterKey.js'].branchData['74'][1] = new BranchData(); - _$jscoverage['/editor/enterKey.js'].branchData['76'] = []; - _$jscoverage['/editor/enterKey.js'].branchData['76'][1] = new BranchData(); - _$jscoverage['/editor/enterKey.js'].branchData['81'] = []; - _$jscoverage['/editor/enterKey.js'].branchData['81'][1] = new BranchData(); - _$jscoverage['/editor/enterKey.js'].branchData['81'][2] = new BranchData(); - _$jscoverage['/editor/enterKey.js'].branchData['81'][3] = new BranchData(); - _$jscoverage['/editor/enterKey.js'].branchData['92'] = []; - _$jscoverage['/editor/enterKey.js'].branchData['92'][1] = new BranchData(); + _$jscoverage['/editor/enterKey.js'].branchData['69'] = []; + _$jscoverage['/editor/enterKey.js'].branchData['69'][1] = new BranchData(); + _$jscoverage['/editor/enterKey.js'].branchData['82'] = []; + _$jscoverage['/editor/enterKey.js'].branchData['82'][1] = new BranchData(); _$jscoverage['/editor/enterKey.js'].branchData['96'] = []; _$jscoverage['/editor/enterKey.js'].branchData['96'][1] = new BranchData(); - _$jscoverage['/editor/enterKey.js'].branchData['96'][2] = new BranchData(); - _$jscoverage['/editor/enterKey.js'].branchData['97'] = []; - _$jscoverage['/editor/enterKey.js'].branchData['97'][1] = new BranchData(); - _$jscoverage['/editor/enterKey.js'].branchData['104'] = []; - _$jscoverage['/editor/enterKey.js'].branchData['104'][1] = new BranchData(); - _$jscoverage['/editor/enterKey.js'].branchData['111'] = []; - _$jscoverage['/editor/enterKey.js'].branchData['111'][1] = new BranchData(); - _$jscoverage['/editor/enterKey.js'].branchData['115'] = []; - _$jscoverage['/editor/enterKey.js'].branchData['115'][1] = new BranchData(); - _$jscoverage['/editor/enterKey.js'].branchData['115'][2] = new BranchData(); - _$jscoverage['/editor/enterKey.js'].branchData['120'] = []; - _$jscoverage['/editor/enterKey.js'].branchData['120'][1] = new BranchData(); - _$jscoverage['/editor/enterKey.js'].branchData['124'] = []; - _$jscoverage['/editor/enterKey.js'].branchData['124'][1] = new BranchData(); - _$jscoverage['/editor/enterKey.js'].branchData['132'] = []; - _$jscoverage['/editor/enterKey.js'].branchData['132'][1] = new BranchData(); - _$jscoverage['/editor/enterKey.js'].branchData['133'] = []; - _$jscoverage['/editor/enterKey.js'].branchData['133'][1] = new BranchData(); - _$jscoverage['/editor/enterKey.js'].branchData['136'] = []; - _$jscoverage['/editor/enterKey.js'].branchData['136'][1] = new BranchData(); - _$jscoverage['/editor/enterKey.js'].branchData['141'] = []; - _$jscoverage['/editor/enterKey.js'].branchData['141'][1] = new BranchData(); - _$jscoverage['/editor/enterKey.js'].branchData['149'] = []; - _$jscoverage['/editor/enterKey.js'].branchData['149'][1] = new BranchData(); - _$jscoverage['/editor/enterKey.js'].branchData['160'] = []; - _$jscoverage['/editor/enterKey.js'].branchData['160'][1] = new BranchData(); - _$jscoverage['/editor/enterKey.js'].branchData['160'][2] = new BranchData(); - _$jscoverage['/editor/enterKey.js'].branchData['160'][3] = new BranchData(); + _$jscoverage['/editor/enterKey.js'].branchData['98'] = []; + _$jscoverage['/editor/enterKey.js'].branchData['98'][1] = new BranchData(); + _$jscoverage['/editor/enterKey.js'].branchData['102'] = []; + _$jscoverage['/editor/enterKey.js'].branchData['102'][1] = new BranchData(); + _$jscoverage['/editor/enterKey.js'].branchData['102'][2] = new BranchData(); + _$jscoverage['/editor/enterKey.js'].branchData['102'][3] = new BranchData(); + _$jscoverage['/editor/enterKey.js'].branchData['113'] = []; + _$jscoverage['/editor/enterKey.js'].branchData['113'][1] = new BranchData(); + _$jscoverage['/editor/enterKey.js'].branchData['117'] = []; + _$jscoverage['/editor/enterKey.js'].branchData['117'][1] = new BranchData(); + _$jscoverage['/editor/enterKey.js'].branchData['117'][2] = new BranchData(); + _$jscoverage['/editor/enterKey.js'].branchData['118'] = []; + _$jscoverage['/editor/enterKey.js'].branchData['118'][1] = new BranchData(); + _$jscoverage['/editor/enterKey.js'].branchData['125'] = []; + _$jscoverage['/editor/enterKey.js'].branchData['125'][1] = new BranchData(); + _$jscoverage['/editor/enterKey.js'].branchData['129'] = []; + _$jscoverage['/editor/enterKey.js'].branchData['129'][1] = new BranchData(); + _$jscoverage['/editor/enterKey.js'].branchData['134'] = []; + _$jscoverage['/editor/enterKey.js'].branchData['134'][1] = new BranchData(); + _$jscoverage['/editor/enterKey.js'].branchData['134'][2] = new BranchData(); + _$jscoverage['/editor/enterKey.js'].branchData['138'] = []; + _$jscoverage['/editor/enterKey.js'].branchData['138'][1] = new BranchData(); + _$jscoverage['/editor/enterKey.js'].branchData['142'] = []; + _$jscoverage['/editor/enterKey.js'].branchData['142'][1] = new BranchData(); + _$jscoverage['/editor/enterKey.js'].branchData['150'] = []; + _$jscoverage['/editor/enterKey.js'].branchData['150'][1] = new BranchData(); + _$jscoverage['/editor/enterKey.js'].branchData['151'] = []; + _$jscoverage['/editor/enterKey.js'].branchData['151'][1] = new BranchData(); + _$jscoverage['/editor/enterKey.js'].branchData['154'] = []; + _$jscoverage['/editor/enterKey.js'].branchData['154'][1] = new BranchData(); + _$jscoverage['/editor/enterKey.js'].branchData['159'] = []; + _$jscoverage['/editor/enterKey.js'].branchData['159'][1] = new BranchData(); _$jscoverage['/editor/enterKey.js'].branchData['167'] = []; _$jscoverage['/editor/enterKey.js'].branchData['167'][1] = new BranchData(); - _$jscoverage['/editor/enterKey.js'].branchData['170'] = []; - _$jscoverage['/editor/enterKey.js'].branchData['170'][1] = new BranchData(); - _$jscoverage['/editor/enterKey.js'].branchData['171'] = []; - _$jscoverage['/editor/enterKey.js'].branchData['171'][1] = new BranchData(); - _$jscoverage['/editor/enterKey.js'].branchData['205'] = []; - _$jscoverage['/editor/enterKey.js'].branchData['205'][1] = new BranchData(); - _$jscoverage['/editor/enterKey.js'].branchData['206'] = []; - _$jscoverage['/editor/enterKey.js'].branchData['206'][1] = new BranchData(); - _$jscoverage['/editor/enterKey.js'].branchData['206'][2] = new BranchData(); - _$jscoverage['/editor/enterKey.js'].branchData['206'][3] = new BranchData(); - _$jscoverage['/editor/enterKey.js'].branchData['210'] = []; - _$jscoverage['/editor/enterKey.js'].branchData['210'][1] = new BranchData(); + _$jscoverage['/editor/enterKey.js'].branchData['178'] = []; + _$jscoverage['/editor/enterKey.js'].branchData['178'][1] = new BranchData(); + _$jscoverage['/editor/enterKey.js'].branchData['178'][2] = new BranchData(); + _$jscoverage['/editor/enterKey.js'].branchData['178'][3] = new BranchData(); + _$jscoverage['/editor/enterKey.js'].branchData['185'] = []; + _$jscoverage['/editor/enterKey.js'].branchData['185'][1] = new BranchData(); + _$jscoverage['/editor/enterKey.js'].branchData['188'] = []; + _$jscoverage['/editor/enterKey.js'].branchData['188'][1] = new BranchData(); + _$jscoverage['/editor/enterKey.js'].branchData['189'] = []; + _$jscoverage['/editor/enterKey.js'].branchData['189'][1] = new BranchData(); + _$jscoverage['/editor/enterKey.js'].branchData['222'] = []; + _$jscoverage['/editor/enterKey.js'].branchData['222'][1] = new BranchData(); + _$jscoverage['/editor/enterKey.js'].branchData['223'] = []; + _$jscoverage['/editor/enterKey.js'].branchData['223'][1] = new BranchData(); + _$jscoverage['/editor/enterKey.js'].branchData['223'][2] = new BranchData(); + _$jscoverage['/editor/enterKey.js'].branchData['223'][3] = new BranchData(); + _$jscoverage['/editor/enterKey.js'].branchData['227'] = []; + _$jscoverage['/editor/enterKey.js'].branchData['227'][1] = new BranchData(); } -_$jscoverage['/editor/enterKey.js'].branchData['210'][1].init(184, 12, 're !== false'); -function visit335_210_1(result) { - _$jscoverage['/editor/enterKey.js'].branchData['210'][1].ranCondition(result); +_$jscoverage['/editor/enterKey.js'].branchData['227'][1].init(184, 12, 're !== false'); +function visit341_227_1(result) { + _$jscoverage['/editor/enterKey.js'].branchData['227'][1].ranCondition(result); return result; -}_$jscoverage['/editor/enterKey.js'].branchData['206'][3].init(38, 24, 'ev.ctrlKey || ev.metaKey'); -function visit334_206_3(result) { - _$jscoverage['/editor/enterKey.js'].branchData['206'][3].ranCondition(result); +}_$jscoverage['/editor/enterKey.js'].branchData['223'][3].init(38, 24, 'ev.ctrlKey || ev.metaKey'); +function visit340_223_3(result) { + _$jscoverage['/editor/enterKey.js'].branchData['223'][3].ranCondition(result); return result; -}_$jscoverage['/editor/enterKey.js'].branchData['206'][2].init(23, 39, 'ev.shiftKey || ev.ctrlKey || ev.metaKey'); -function visit333_206_2(result) { - _$jscoverage['/editor/enterKey.js'].branchData['206'][2].ranCondition(result); +}_$jscoverage['/editor/enterKey.js'].branchData['223'][2].init(23, 39, 'ev.shiftKey || ev.ctrlKey || ev.metaKey'); +function visit339_223_2(result) { + _$jscoverage['/editor/enterKey.js'].branchData['223'][2].ranCondition(result); return result; -}_$jscoverage['/editor/enterKey.js'].branchData['206'][1].init(21, 42, '!(ev.shiftKey || ev.ctrlKey || ev.metaKey)'); -function visit332_206_1(result) { - _$jscoverage['/editor/enterKey.js'].branchData['206'][1].ranCondition(result); +}_$jscoverage['/editor/enterKey.js'].branchData['223'][1].init(21, 42, '!(ev.shiftKey || ev.ctrlKey || ev.metaKey)'); +function visit338_223_1(result) { + _$jscoverage['/editor/enterKey.js'].branchData['223'][1].ranCondition(result); return result; -}_$jscoverage['/editor/enterKey.js'].branchData['205'][1].init(55, 14, 'keyCode === 13'); -function visit331_205_1(result) { - _$jscoverage['/editor/enterKey.js'].branchData['205'][1].ranCondition(result); +}_$jscoverage['/editor/enterKey.js'].branchData['222'][1].init(55, 14, 'keyCode === 13'); +function visit337_222_1(result) { + _$jscoverage['/editor/enterKey.js'].branchData['222'][1].ranCondition(result); return result; -}_$jscoverage['/editor/enterKey.js'].branchData['171'][1].init(17, 9, 'nextBlock'); -function visit330_171_1(result) { - _$jscoverage['/editor/enterKey.js'].branchData['171'][1].ranCondition(result); +}_$jscoverage['/editor/enterKey.js'].branchData['189'][1].init(17, 9, 'nextBlock'); +function visit336_189_1(result) { + _$jscoverage['/editor/enterKey.js'].branchData['189'][1].ranCondition(result); return result; -}_$jscoverage['/editor/enterKey.js'].branchData['170'][1].init(5446, 7, '!OLD_IE'); -function visit329_170_1(result) { - _$jscoverage['/editor/enterKey.js'].branchData['170'][1].ranCondition(result); +}_$jscoverage['/editor/enterKey.js'].branchData['188'][1].init(6415, 7, '!OLD_IE'); +function visit335_188_1(result) { + _$jscoverage['/editor/enterKey.js'].branchData['188'][1].ranCondition(result); return result; -}_$jscoverage['/editor/enterKey.js'].branchData['167'][1].init(2441, 31, 'isStartOfBlock && !isEndOfBlock'); -function visit328_167_1(result) { +}_$jscoverage['/editor/enterKey.js'].branchData['185'][1].init(2462, 31, 'isStartOfBlock && !isEndOfBlock'); +function visit334_185_1(result) { + _$jscoverage['/editor/enterKey.js'].branchData['185'][1].ranCondition(result); + return result; +}_$jscoverage['/editor/enterKey.js'].branchData['178'][3].init(2108, 52, '!isEndOfBlock || !previousBlock[0].childNodes.length'); +function visit333_178_3(result) { + _$jscoverage['/editor/enterKey.js'].branchData['178'][3].ranCondition(result); + return result; +}_$jscoverage['/editor/enterKey.js'].branchData['178'][2].init(2089, 72, 'isStartOfBlock && (!isEndOfBlock || !previousBlock[0].childNodes.length)'); +function visit332_178_2(result) { + _$jscoverage['/editor/enterKey.js'].branchData['178'][2].ranCondition(result); + return result; +}_$jscoverage['/editor/enterKey.js'].branchData['178'][1].init(2079, 82, 'OLD_IE && isStartOfBlock && (!isEndOfBlock || !previousBlock[0].childNodes.length)'); +function visit331_178_1(result) { + _$jscoverage['/editor/enterKey.js'].branchData['178'][1].ranCondition(result); + return result; +}_$jscoverage['/editor/enterKey.js'].branchData['167'][1].init(1658, 7, '!OLD_IE'); +function visit330_167_1(result) { _$jscoverage['/editor/enterKey.js'].branchData['167'][1].ranCondition(result); return result; -}_$jscoverage['/editor/enterKey.js'].branchData['160'][3].init(2086, 52, '!isEndOfBlock || !previousBlock[0].childNodes.length'); -function visit327_160_3(result) { - _$jscoverage['/editor/enterKey.js'].branchData['160'][3].ranCondition(result); +}_$jscoverage['/editor/enterKey.js'].branchData['159'][1].init(317, 38, 'dtd.$removeEmpty[element.nodeName()]'); +function visit329_159_1(result) { + _$jscoverage['/editor/enterKey.js'].branchData['159'][1].ranCondition(result); return result; -}_$jscoverage['/editor/enterKey.js'].branchData['160'][2].init(2066, 74, 'isStartOfBlock && (!isEndOfBlock || !previousBlock[0].childNodes.length)'); -function visit326_160_2(result) { - _$jscoverage['/editor/enterKey.js'].branchData['160'][2].ranCondition(result); +}_$jscoverage['/editor/enterKey.js'].branchData['154'][1].init(87, 99, 'element.equals(elementPath.block) || element.equals(elementPath.blockLimit)'); +function visit328_154_1(result) { + _$jscoverage['/editor/enterKey.js'].branchData['154'][1].ranCondition(result); return result; -}_$jscoverage['/editor/enterKey.js'].branchData['160'][1].init(2056, 84, 'OLD_IE && isStartOfBlock && (!isEndOfBlock || !previousBlock[0].childNodes.length)'); -function visit325_160_1(result) { - _$jscoverage['/editor/enterKey.js'].branchData['160'][1].ranCondition(result); +}_$jscoverage['/editor/enterKey.js'].branchData['151'][1].init(68, 7, 'i < len'); +function visit327_151_1(result) { + _$jscoverage['/editor/enterKey.js'].branchData['151'][1].ranCondition(result); return result; -}_$jscoverage['/editor/enterKey.js'].branchData['149'][1].init(1636, 7, '!OLD_IE'); -function visit324_149_1(result) { - _$jscoverage['/editor/enterKey.js'].branchData['149'][1].ranCondition(result); +}_$jscoverage['/editor/enterKey.js'].branchData['150'][1].init(971, 11, 'elementPath'); +function visit326_150_1(result) { + _$jscoverage['/editor/enterKey.js'].branchData['150'][1].ranCondition(result); return result; -}_$jscoverage['/editor/enterKey.js'].branchData['141'][1].init(316, 38, 'dtd.$removeEmpty[element.nodeName()]'); -function visit323_141_1(result) { - _$jscoverage['/editor/enterKey.js'].branchData['141'][1].ranCondition(result); +}_$jscoverage['/editor/enterKey.js'].branchData['142'][1].init(627, 9, '!newBlock'); +function visit325_142_1(result) { + _$jscoverage['/editor/enterKey.js'].branchData['142'][1].ranCondition(result); return result; -}_$jscoverage['/editor/enterKey.js'].branchData['136'][1].init(87, 99, 'element.equals(elementPath.block) || element.equals(elementPath.blockLimit)'); -function visit322_136_1(result) { - _$jscoverage['/editor/enterKey.js'].branchData['136'][1].ranCondition(result); +}_$jscoverage['/editor/enterKey.js'].branchData['138'][1].init(538, 9, 'nextBlock'); +function visit324_138_1(result) { + _$jscoverage['/editor/enterKey.js'].branchData['138'][1].ranCondition(result); return result; -}_$jscoverage['/editor/enterKey.js'].branchData['133'][1].init(68, 7, 'i < len'); -function visit321_133_1(result) { - _$jscoverage['/editor/enterKey.js'].branchData['133'][1].ranCondition(result); +}_$jscoverage['/editor/enterKey.js'].branchData['134'][2].init(253, 33, 'previousBlock.nodeName() === \'li\''); +function visit323_134_2(result) { + _$jscoverage['/editor/enterKey.js'].branchData['134'][2].ranCondition(result); return result; -}_$jscoverage['/editor/enterKey.js'].branchData['132'][1].init(950, 11, 'elementPath'); -function visit320_132_1(result) { - _$jscoverage['/editor/enterKey.js'].branchData['132'][1].ranCondition(result); +}_$jscoverage['/editor/enterKey.js'].branchData['134'][1].init(253, 88, 'previousBlock.nodeName() === \'li\' || !(headerPreTagRegex.test(previousBlock.nodeName()))'); +function visit322_134_1(result) { + _$jscoverage['/editor/enterKey.js'].branchData['134'][1].ranCondition(result); return result; -}_$jscoverage['/editor/enterKey.js'].branchData['124'][1].init(607, 9, '!newBlock'); -function visit319_124_1(result) { - _$jscoverage['/editor/enterKey.js'].branchData['124'][1].ranCondition(result); +}_$jscoverage['/editor/enterKey.js'].branchData['129'][1].init(17, 13, 'previousBlock'); +function visit321_129_1(result) { + _$jscoverage['/editor/enterKey.js'].branchData['129'][1].ranCondition(result); return result; -}_$jscoverage['/editor/enterKey.js'].branchData['120'][1].init(519, 9, 'nextBlock'); -function visit318_120_1(result) { - _$jscoverage['/editor/enterKey.js'].branchData['120'][1].ranCondition(result); +}_$jscoverage['/editor/enterKey.js'].branchData['125'][1].init(610, 9, 'nextBlock'); +function visit320_125_1(result) { + _$jscoverage['/editor/enterKey.js'].branchData['125'][1].ranCondition(result); return result; -}_$jscoverage['/editor/enterKey.js'].branchData['115'][2].init(214, 33, 'previousBlock.nodeName() === \'li\''); -function visit317_115_2(result) { - _$jscoverage['/editor/enterKey.js'].branchData['115'][2].ranCondition(result); +}_$jscoverage['/editor/enterKey.js'].branchData['118'][1].init(49, 110, '(node = nextBlock.first(Walker.invisible(true))) && util.inArray(node.nodeName(), [\'ul\', \'ol\'])'); +function visit319_118_1(result) { + _$jscoverage['/editor/enterKey.js'].branchData['118'][1].ranCondition(result); return result; -}_$jscoverage['/editor/enterKey.js'].branchData['115'][1].init(214, 83, 'previousBlock.nodeName() === \'li\' || !headerTagRegex.test(previousBlock.nodeName())'); -function visit316_115_1(result) { - _$jscoverage['/editor/enterKey.js'].branchData['115'][1].ranCondition(result); +}_$jscoverage['/editor/enterKey.js'].branchData['117'][2].init(223, 29, 'nextBlock.nodeName() === \'li\''); +function visit318_117_2(result) { + _$jscoverage['/editor/enterKey.js'].branchData['117'][2].ranCondition(result); return result; -}_$jscoverage['/editor/enterKey.js'].branchData['111'][1].init(30, 13, 'previousBlock'); -function visit315_111_1(result) { - _$jscoverage['/editor/enterKey.js'].branchData['111'][1].ranCondition(result); +}_$jscoverage['/editor/enterKey.js'].branchData['117'][1].init(223, 160, 'nextBlock.nodeName() === \'li\' && (node = nextBlock.first(Walker.invisible(true))) && util.inArray(node.nodeName(), [\'ul\', \'ol\'])'); +function visit317_117_1(result) { + _$jscoverage['/editor/enterKey.js'].branchData['117'][1].ranCondition(result); return result; -}_$jscoverage['/editor/enterKey.js'].branchData['104'][1].init(608, 9, 'nextBlock'); -function visit314_104_1(result) { - _$jscoverage['/editor/enterKey.js'].branchData['104'][1].ranCondition(result); +}_$jscoverage['/editor/enterKey.js'].branchData['113'][1].init(3121, 32, '!isStartOfBlock && !isEndOfBlock'); +function visit316_113_1(result) { + _$jscoverage['/editor/enterKey.js'].branchData['113'][1].ranCondition(result); return result; -}_$jscoverage['/editor/enterKey.js'].branchData['97'][1].init(50, 108, '(node = nextBlock.first(Walker.invisible(true))) && S.inArray(node.nodeName(), [\'ul\', \'ol\'])'); -function visit313_97_1(result) { - _$jscoverage['/editor/enterKey.js'].branchData['97'][1].ranCondition(result); +}_$jscoverage['/editor/enterKey.js'].branchData['102'][3].init(2683, 24, 'node.nodeName() === \'li\''); +function visit315_102_3(result) { + _$jscoverage['/editor/enterKey.js'].branchData['102'][3].ranCondition(result); return result; -}_$jscoverage['/editor/enterKey.js'].branchData['96'][2].init(223, 29, 'nextBlock.nodeName() === \'li\''); -function visit312_96_2(result) { - _$jscoverage['/editor/enterKey.js'].branchData['96'][2].ranCondition(result); +}_$jscoverage['/editor/enterKey.js'].branchData['102'][2].init(2649, 58, '(node = previousBlock.parent()) && node.nodeName() === \'li\''); +function visit314_102_2(result) { + _$jscoverage['/editor/enterKey.js'].branchData['102'][2].ranCondition(result); return result; -}_$jscoverage['/editor/enterKey.js'].branchData['96'][1].init(223, 159, 'nextBlock.nodeName() === \'li\' && (node = nextBlock.first(Walker.invisible(true))) && S.inArray(node.nodeName(), [\'ul\', \'ol\'])'); +}_$jscoverage['/editor/enterKey.js'].branchData['102'][1].init(2631, 76, 'previousBlock && (node = previousBlock.parent()) && node.nodeName() === \'li\''); +function visit313_102_1(result) { + _$jscoverage['/editor/enterKey.js'].branchData['102'][1].ranCondition(result); + return result; +}_$jscoverage['/editor/enterKey.js'].branchData['98'][1].init(56, 24, 'node.nodeName() === \'li\''); +function visit312_98_1(result) { + _$jscoverage['/editor/enterKey.js'].branchData['98'][1].ranCondition(result); + return result; +}_$jscoverage['/editor/enterKey.js'].branchData['96'][1].init(2394, 9, 'nextBlock'); function visit311_96_1(result) { _$jscoverage['/editor/enterKey.js'].branchData['96'][1].ranCondition(result); return result; -}_$jscoverage['/editor/enterKey.js'].branchData['92'][1].init(2168, 32, '!isStartOfBlock && !isEndOfBlock'); -function visit310_92_1(result) { - _$jscoverage['/editor/enterKey.js'].branchData['92'][1].ranCondition(result); +}_$jscoverage['/editor/enterKey.js'].branchData['82'][1].init(2003, 10, '!splitInfo'); +function visit310_82_1(result) { + _$jscoverage['/editor/enterKey.js'].branchData['82'][1].ranCondition(result); return result; -}_$jscoverage['/editor/enterKey.js'].branchData['81'][3].init(1722, 24, 'node.nodeName() === \'li\''); -function visit309_81_3(result) { - _$jscoverage['/editor/enterKey.js'].branchData['81'][3].ranCondition(result); +}_$jscoverage['/editor/enterKey.js'].branchData['69'][1].init(647, 13, 'UA.ieMode < 9'); +function visit309_69_1(result) { + _$jscoverage['/editor/enterKey.js'].branchData['69'][1].ranCondition(result); return result; -}_$jscoverage['/editor/enterKey.js'].branchData['81'][2].init(1687, 59, '(node = previousBlock.parent()) && node.nodeName() === \'li\''); -function visit308_81_2(result) { - _$jscoverage['/editor/enterKey.js'].branchData['81'][2].ranCondition(result); +}_$jscoverage['/editor/enterKey.js'].branchData['60'][1].init(203, 13, 'UA.ieMode < 9'); +function visit308_60_1(result) { + _$jscoverage['/editor/enterKey.js'].branchData['60'][1].ranCondition(result); return result; -}_$jscoverage['/editor/enterKey.js'].branchData['81'][1].init(1668, 78, 'previousBlock && (node = previousBlock.parent()) && node.nodeName() === \'li\''); -function visit307_81_1(result) { - _$jscoverage['/editor/enterKey.js'].branchData['81'][1].ranCondition(result); +}_$jscoverage['/editor/enterKey.js'].branchData['58'][1].init(64, 13, 'UA.ieMode < 9'); +function visit307_58_1(result) { + _$jscoverage['/editor/enterKey.js'].branchData['58'][1].ranCondition(result); return result; -}_$jscoverage['/editor/enterKey.js'].branchData['76'][1].init(56, 24, 'node.nodeName() === \'li\''); -function visit306_76_1(result) { - _$jscoverage['/editor/enterKey.js'].branchData['76'][1].ranCondition(result); +}_$jscoverage['/editor/enterKey.js'].branchData['56'][1].init(93, 13, '!isEndOfBlock'); +function visit306_56_1(result) { + _$jscoverage['/editor/enterKey.js'].branchData['56'][1].ranCondition(result); return result; -}_$jscoverage['/editor/enterKey.js'].branchData['74'][1].init(1423, 9, 'nextBlock'); -function visit305_74_1(result) { - _$jscoverage['/editor/enterKey.js'].branchData['74'][1].ranCondition(result); +}_$jscoverage['/editor/enterKey.js'].branchData['54'][2].init(913, 26, 'block.nodeName() === \'pre\''); +function visit305_54_2(result) { + _$jscoverage['/editor/enterKey.js'].branchData['54'][2].ranCondition(result); return result; -}_$jscoverage['/editor/enterKey.js'].branchData['60'][1].init(1025, 10, '!splitInfo'); -function visit304_60_1(result) { - _$jscoverage['/editor/enterKey.js'].branchData['60'][1].ranCondition(result); +}_$jscoverage['/editor/enterKey.js'].branchData['54'][1].init(904, 35, 'block && block.nodeName() === \'pre\''); +function visit304_54_1(result) { + _$jscoverage['/editor/enterKey.js'].branchData['54'][1].ranCondition(result); return result; -}_$jscoverage['/editor/enterKey.js'].branchData['43'][1].init(21, 28, 'editor.hasCommand(\'outdent\')'); -function visit303_43_1(result) { - _$jscoverage['/editor/enterKey.js'].branchData['43'][1].ranCondition(result); +}_$jscoverage['/editor/enterKey.js'].branchData['45'][1].init(21, 28, 'editor.hasCommand(\'outdent\')'); +function visit303_45_1(result) { + _$jscoverage['/editor/enterKey.js'].branchData['45'][1].ranCondition(result); return result; -}_$jscoverage['/editor/enterKey.js'].branchData['40'][3].init(55, 34, 'block.parent().nodeName() === \'li\''); -function visit302_40_3(result) { - _$jscoverage['/editor/enterKey.js'].branchData['40'][3].ranCondition(result); +}_$jscoverage['/editor/enterKey.js'].branchData['44'][4].init(77, 34, 'block.parent().nodeName() === \'li\''); +function visit302_44_4(result) { + _$jscoverage['/editor/enterKey.js'].branchData['44'][4].ranCondition(result); return result; -}_$jscoverage['/editor/enterKey.js'].branchData['40'][2].init(26, 25, 'block.nodeName() === \'li\''); -function visit301_40_2(result) { - _$jscoverage['/editor/enterKey.js'].branchData['40'][2].ranCondition(result); +}_$jscoverage['/editor/enterKey.js'].branchData['44'][3].init(48, 25, 'block.nodeName() === \'li\''); +function visit301_44_3(result) { + _$jscoverage['/editor/enterKey.js'].branchData['44'][3].ranCondition(result); return result; -}_$jscoverage['/editor/enterKey.js'].branchData['40'][1].init(26, 63, 'block.nodeName() === \'li\' || block.parent().nodeName() === \'li\''); -function visit300_40_1(result) { - _$jscoverage['/editor/enterKey.js'].branchData['40'][1].ranCondition(result); +}_$jscoverage['/editor/enterKey.js'].branchData['44'][2].init(48, 63, 'block.nodeName() === \'li\' || block.parent().nodeName() === \'li\''); +function visit300_44_2(result) { + _$jscoverage['/editor/enterKey.js'].branchData['44'][2].ranCondition(result); return result; -}_$jscoverage['/editor/enterKey.js'].branchData['39'][1].init(135, 92, 'block && (block.nodeName() === \'li\' || block.parent().nodeName() === \'li\')'); -function visit299_39_1(result) { - _$jscoverage['/editor/enterKey.js'].branchData['39'][1].ranCondition(result); +}_$jscoverage['/editor/enterKey.js'].branchData['44'][1].init(38, 74, 'block && (block.nodeName() === \'li\' || block.parent().nodeName() === \'li\')'); +function visit299_44_1(result) { + _$jscoverage['/editor/enterKey.js'].branchData['44'][1].ranCondition(result); return result; -}_$jscoverage['/editor/enterKey.js'].branchData['35'][1].init(214, 52, 'range.checkStartOfBlock() && range.checkEndOfBlock()'); -function visit298_35_1(result) { - _$jscoverage['/editor/enterKey.js'].branchData['35'][1].ranCondition(result); +}_$jscoverage['/editor/enterKey.js'].branchData['42'][1].init(412, 30, 'isStartOfBlock && isEndOfBlock'); +function visit298_42_1(result) { + _$jscoverage['/editor/enterKey.js'].branchData['42'][1].ranCondition(result); return result; -}_$jscoverage['/editor/enterKey.js'].branchData['23'][1].init(201, 5, 'i > 0'); -function visit297_23_1(result) { - _$jscoverage['/editor/enterKey.js'].branchData['23'][1].ranCondition(result); +}_$jscoverage['/editor/enterKey.js'].branchData['26'][1].init(201, 5, 'i > 0'); +function visit297_26_1(result) { + _$jscoverage['/editor/enterKey.js'].branchData['26'][1].ranCondition(result); return result; -}_$jscoverage['/editor/enterKey.js'].branchData['15'][1].init(172, 16, 'S.UA.ieMode < 11'); -function visit296_15_1(result) { - _$jscoverage['/editor/enterKey.js'].branchData['15'][1].ranCondition(result); +}_$jscoverage['/editor/enterKey.js'].branchData['18'][1].init(240, 14, 'UA.ieMode < 11'); +function visit296_18_1(result) { + _$jscoverage['/editor/enterKey.js'].branchData['18'][1].ranCondition(result); return result; }_$jscoverage['/editor/enterKey.js'].lineData[10]++; KISSY.add(function(S, require) { _$jscoverage['/editor/enterKey.js'].functionData[0]++; _$jscoverage['/editor/enterKey.js'].lineData[11]++; - var Node = require('node'); + var util = S; _$jscoverage['/editor/enterKey.js'].lineData[12]++; - var Walker = require('./walker'); + var Node = require('node'); _$jscoverage['/editor/enterKey.js'].lineData[13]++; - var Editor = require('./base'); + var $ = Node.all; _$jscoverage['/editor/enterKey.js'].lineData[14]++; - var ElementPath = require('./elementPath'); + var UA = require('ua'); _$jscoverage['/editor/enterKey.js'].lineData[15]++; - var OLD_IE = visit296_15_1(S.UA.ieMode < 11); + var Walker = require('./walker'); _$jscoverage['/editor/enterKey.js'].lineData[16]++; - var headerTagRegex = /^h[1-6]$/, dtd = Editor.XHTML_DTD; + var Editor = require('./base'); + _$jscoverage['/editor/enterKey.js'].lineData[17]++; + var ElementPath = require('./elementPath'); + _$jscoverage['/editor/enterKey.js'].lineData[18]++; + var OLD_IE = visit296_18_1(UA.ieMode < 11); _$jscoverage['/editor/enterKey.js'].lineData[19]++; + var headerPreTagRegex = /^(?:h[1-6])|(?:pre)$/i, dtd = Editor.XHTML_DTD; + _$jscoverage['/editor/enterKey.js'].lineData[22]++; function getRange(editor) { _$jscoverage['/editor/enterKey.js'].functionData[1]++; - _$jscoverage['/editor/enterKey.js'].lineData[21]++; + _$jscoverage['/editor/enterKey.js'].lineData[24]++; var ranges = editor.getSelection().getRanges(); - _$jscoverage['/editor/enterKey.js'].lineData[23]++; - for (var i = ranges.length - 1; visit297_23_1(i > 0); i--) { - _$jscoverage['/editor/enterKey.js'].lineData[24]++; + _$jscoverage['/editor/enterKey.js'].lineData[26]++; + for (var i = ranges.length - 1; visit297_26_1(i > 0); i--) { + _$jscoverage['/editor/enterKey.js'].lineData[27]++; ranges[i].deleteContents(); } - _$jscoverage['/editor/enterKey.js'].lineData[27]++; + _$jscoverage['/editor/enterKey.js'].lineData[30]++; return ranges[0]; } - _$jscoverage['/editor/enterKey.js'].lineData[30]++; + _$jscoverage['/editor/enterKey.js'].lineData[33]++; function enterBlock(editor) { _$jscoverage['/editor/enterKey.js'].functionData[2]++; - _$jscoverage['/editor/enterKey.js'].lineData[32]++; + _$jscoverage['/editor/enterKey.js'].lineData[35]++; var range = getRange(editor); - _$jscoverage['/editor/enterKey.js'].lineData[33]++; + _$jscoverage['/editor/enterKey.js'].lineData[36]++; var doc = range.document; - _$jscoverage['/editor/enterKey.js'].lineData[35]++; - if (visit298_35_1(range.checkStartOfBlock() && range.checkEndOfBlock())) { - _$jscoverage['/editor/enterKey.js'].lineData[36]++; - var path = new ElementPath(range.startContainer), block = path.block; - _$jscoverage['/editor/enterKey.js'].lineData[39]++; - if (visit299_39_1(block && (visit300_40_1(visit301_40_2(block.nodeName() === 'li') || visit302_40_3(block.parent().nodeName() === 'li'))))) { - _$jscoverage['/editor/enterKey.js'].lineData[43]++; - if (visit303_43_1(editor.hasCommand('outdent'))) { - _$jscoverage['/editor/enterKey.js'].lineData[44]++; - editor.execCommand('save'); - _$jscoverage['/editor/enterKey.js'].lineData[45]++; - editor.execCommand('outdent'); + _$jscoverage['/editor/enterKey.js'].lineData[37]++; + var path = new ElementPath(range.startContainer), isStartOfBlock = range.checkStartOfBlock(), isEndOfBlock = range.checkEndOfBlock(), block = path.block; + _$jscoverage['/editor/enterKey.js'].lineData[42]++; + if (visit298_42_1(isStartOfBlock && isEndOfBlock)) { + _$jscoverage['/editor/enterKey.js'].lineData[44]++; + if (visit299_44_1(block && (visit300_44_2(visit301_44_3(block.nodeName() === 'li') || visit302_44_4(block.parent().nodeName() === 'li'))))) { + _$jscoverage['/editor/enterKey.js'].lineData[45]++; + if (visit303_45_1(editor.hasCommand('outdent'))) { _$jscoverage['/editor/enterKey.js'].lineData[46]++; editor.execCommand('save'); _$jscoverage['/editor/enterKey.js'].lineData[47]++; + editor.execCommand('outdent'); + _$jscoverage['/editor/enterKey.js'].lineData[48]++; + editor.execCommand('save'); + _$jscoverage['/editor/enterKey.js'].lineData[49]++; return true; } else { - _$jscoverage['/editor/enterKey.js'].lineData[49]++; + _$jscoverage['/editor/enterKey.js'].lineData[51]++; return false; } } + } else { + _$jscoverage['/editor/enterKey.js'].lineData[54]++; + if (visit304_54_1(block && visit305_54_2(block.nodeName() === 'pre'))) { + _$jscoverage['/editor/enterKey.js'].lineData[56]++; + if (visit306_56_1(!isEndOfBlock)) { + _$jscoverage['/editor/enterKey.js'].lineData[58]++; + var lineBreak = visit307_58_1(UA.ieMode < 9) ? $(doc.createTextNode('\r')) : $(doc.createElement('br')); + _$jscoverage['/editor/enterKey.js'].lineData[59]++; + range.insertNode(lineBreak); + _$jscoverage['/editor/enterKey.js'].lineData[60]++; + if (visit308_60_1(UA.ieMode < 9)) { + _$jscoverage['/editor/enterKey.js'].lineData[62]++; + lineBreak = $(doc.createTextNode('\ufeff')).insertAfter(lineBreak); + _$jscoverage['/editor/enterKey.js'].lineData[63]++; + range.setStartAt(lineBreak, Editor.RangeType.POSITION_AFTER_START); + } else { + _$jscoverage['/editor/enterKey.js'].lineData[65]++; + range.setStartAfter(lineBreak); + } + _$jscoverage['/editor/enterKey.js'].lineData[67]++; + range.collapse(true); + _$jscoverage['/editor/enterKey.js'].lineData[68]++; + range.select(); + _$jscoverage['/editor/enterKey.js'].lineData[69]++; + if (visit309_69_1(UA.ieMode < 9)) { + _$jscoverage['/editor/enterKey.js'].lineData[70]++; + lineBreak[0].nodeValue = ''; + } + _$jscoverage['/editor/enterKey.js'].lineData[72]++; + return; + } + } } - _$jscoverage['/editor/enterKey.js'].lineData[55]++; + _$jscoverage['/editor/enterKey.js'].lineData[77]++; var blockTag = 'p'; - _$jscoverage['/editor/enterKey.js'].lineData[58]++; + _$jscoverage['/editor/enterKey.js'].lineData[80]++; var splitInfo = range.splitBlock(blockTag); - _$jscoverage['/editor/enterKey.js'].lineData[60]++; - if (visit304_60_1(!splitInfo)) { - _$jscoverage['/editor/enterKey.js'].lineData[61]++; + _$jscoverage['/editor/enterKey.js'].lineData[82]++; + if (visit310_82_1(!splitInfo)) { + _$jscoverage['/editor/enterKey.js'].lineData[83]++; return true; } - _$jscoverage['/editor/enterKey.js'].lineData[65]++; + _$jscoverage['/editor/enterKey.js'].lineData[87]++; var previousBlock = splitInfo.previousBlock, nextBlock = splitInfo.nextBlock; - _$jscoverage['/editor/enterKey.js'].lineData[68]++; - var isStartOfBlock = splitInfo.wasStartOfBlock, isEndOfBlock = splitInfo.wasEndOfBlock; - _$jscoverage['/editor/enterKey.js'].lineData[71]++; + _$jscoverage['/editor/enterKey.js'].lineData[90]++; + isStartOfBlock = splitInfo.wasStartOfBlock; + _$jscoverage['/editor/enterKey.js'].lineData[91]++; + isEndOfBlock = splitInfo.wasEndOfBlock; + _$jscoverage['/editor/enterKey.js'].lineData[93]++; var node; - _$jscoverage['/editor/enterKey.js'].lineData[74]++; - if (visit305_74_1(nextBlock)) { - _$jscoverage['/editor/enterKey.js'].lineData[75]++; + _$jscoverage['/editor/enterKey.js'].lineData[96]++; + if (visit311_96_1(nextBlock)) { + _$jscoverage['/editor/enterKey.js'].lineData[97]++; node = nextBlock.parent(); - _$jscoverage['/editor/enterKey.js'].lineData[76]++; - if (visit306_76_1(node.nodeName() === 'li')) { - _$jscoverage['/editor/enterKey.js'].lineData[77]++; + _$jscoverage['/editor/enterKey.js'].lineData[98]++; + if (visit312_98_1(node.nodeName() === 'li')) { + _$jscoverage['/editor/enterKey.js'].lineData[99]++; nextBlock._4eBreakParent(node); - _$jscoverage['/editor/enterKey.js'].lineData[78]++; + _$jscoverage['/editor/enterKey.js'].lineData[100]++; nextBlock._4eMove(nextBlock.next(), true); } } else { - _$jscoverage['/editor/enterKey.js'].lineData[81]++; - if (visit307_81_1(previousBlock && visit308_81_2((node = previousBlock.parent()) && visit309_81_3(node.nodeName() === 'li')))) { - _$jscoverage['/editor/enterKey.js'].lineData[82]++; + _$jscoverage['/editor/enterKey.js'].lineData[102]++; + if (visit313_102_1(previousBlock && visit314_102_2((node = previousBlock.parent()) && visit315_102_3(node.nodeName() === 'li')))) { + _$jscoverage['/editor/enterKey.js'].lineData[103]++; previousBlock._4eBreakParent(node); - _$jscoverage['/editor/enterKey.js'].lineData[83]++; + _$jscoverage['/editor/enterKey.js'].lineData[104]++; range.moveToElementEditablePosition(previousBlock.next()); - _$jscoverage['/editor/enterKey.js'].lineData[84]++; + _$jscoverage['/editor/enterKey.js'].lineData[105]++; previousBlock._4eMove(previousBlock.prev()); } } - _$jscoverage['/editor/enterKey.js'].lineData[87]++; + _$jscoverage['/editor/enterKey.js'].lineData[108]++; var newBlock; - _$jscoverage['/editor/enterKey.js'].lineData[92]++; - if (visit310_92_1(!isStartOfBlock && !isEndOfBlock)) { - _$jscoverage['/editor/enterKey.js'].lineData[96]++; - if (visit311_96_1(visit312_96_2(nextBlock.nodeName() === 'li') && visit313_97_1((node = nextBlock.first(Walker.invisible(true))) && S.inArray(node.nodeName(), ['ul', 'ol'])))) { - _$jscoverage['/editor/enterKey.js'].lineData[99]++; + _$jscoverage['/editor/enterKey.js'].lineData[113]++; + if (visit316_113_1(!isStartOfBlock && !isEndOfBlock)) { + _$jscoverage['/editor/enterKey.js'].lineData[117]++; + if (visit317_117_1(visit318_117_2(nextBlock.nodeName() === 'li') && visit319_118_1((node = nextBlock.first(Walker.invisible(true))) && util.inArray(node.nodeName(), ['ul', 'ol'])))) { + _$jscoverage['/editor/enterKey.js'].lineData[120]++; (OLD_IE ? new Node(doc.createTextNode('\xa0')) : new Node(doc.createElement('br'))).insertBefore(node); } - _$jscoverage['/editor/enterKey.js'].lineData[104]++; - if (visit314_104_1(nextBlock)) { - _$jscoverage['/editor/enterKey.js'].lineData[105]++; + _$jscoverage['/editor/enterKey.js'].lineData[125]++; + if (visit320_125_1(nextBlock)) { + _$jscoverage['/editor/enterKey.js'].lineData[126]++; range.moveToElementEditablePosition(nextBlock); } } else { - _$jscoverage['/editor/enterKey.js'].lineData[111]++; - if (visit315_111_1(previousBlock)) { - _$jscoverage['/editor/enterKey.js'].lineData[115]++; - if (visit316_115_1(visit317_115_2(previousBlock.nodeName() === 'li') || !headerTagRegex.test(previousBlock.nodeName()))) { - _$jscoverage['/editor/enterKey.js'].lineData[117]++; + _$jscoverage['/editor/enterKey.js'].lineData[129]++; + if (visit321_129_1(previousBlock)) { + _$jscoverage['/editor/enterKey.js'].lineData[134]++; + if (visit322_134_1(visit323_134_2(previousBlock.nodeName() === 'li') || !(headerPreTagRegex.test(previousBlock.nodeName())))) { + _$jscoverage['/editor/enterKey.js'].lineData[136]++; newBlock = previousBlock.clone(); } } else { - _$jscoverage['/editor/enterKey.js'].lineData[120]++; - if (visit318_120_1(nextBlock)) { - _$jscoverage['/editor/enterKey.js'].lineData[121]++; + _$jscoverage['/editor/enterKey.js'].lineData[138]++; + if (visit324_138_1(nextBlock)) { + _$jscoverage['/editor/enterKey.js'].lineData[139]++; newBlock = nextBlock.clone(); } } - _$jscoverage['/editor/enterKey.js'].lineData[124]++; - if (visit319_124_1(!newBlock)) { - _$jscoverage['/editor/enterKey.js'].lineData[125]++; + _$jscoverage['/editor/enterKey.js'].lineData[142]++; + if (visit325_142_1(!newBlock)) { + _$jscoverage['/editor/enterKey.js'].lineData[143]++; newBlock = new Node('<' + blockTag + '>', null, doc); } - _$jscoverage['/editor/enterKey.js'].lineData[131]++; + _$jscoverage['/editor/enterKey.js'].lineData[149]++; var elementPath = splitInfo.elementPath; - _$jscoverage['/editor/enterKey.js'].lineData[132]++; - if (visit320_132_1(elementPath)) { - _$jscoverage['/editor/enterKey.js'].lineData[133]++; - for (var i = 0, len = elementPath.elements.length; visit321_133_1(i < len); i++) { - _$jscoverage['/editor/enterKey.js'].lineData[134]++; + _$jscoverage['/editor/enterKey.js'].lineData[150]++; + if (visit326_150_1(elementPath)) { + _$jscoverage['/editor/enterKey.js'].lineData[151]++; + for (var i = 0, len = elementPath.elements.length; visit327_151_1(i < len); i++) { + _$jscoverage['/editor/enterKey.js'].lineData[152]++; var element = elementPath.elements[i]; - _$jscoverage['/editor/enterKey.js'].lineData[136]++; - if (visit322_136_1(element.equals(elementPath.block) || element.equals(elementPath.blockLimit))) { - _$jscoverage['/editor/enterKey.js'].lineData[138]++; + _$jscoverage['/editor/enterKey.js'].lineData[154]++; + if (visit328_154_1(element.equals(elementPath.block) || element.equals(elementPath.blockLimit))) { + _$jscoverage['/editor/enterKey.js'].lineData[156]++; break; } - _$jscoverage['/editor/enterKey.js'].lineData[141]++; - if (visit323_141_1(dtd.$removeEmpty[element.nodeName()])) { - _$jscoverage['/editor/enterKey.js'].lineData[142]++; + _$jscoverage['/editor/enterKey.js'].lineData[159]++; + if (visit329_159_1(dtd.$removeEmpty[element.nodeName()])) { + _$jscoverage['/editor/enterKey.js'].lineData[160]++; element = element.clone(); - _$jscoverage['/editor/enterKey.js'].lineData[143]++; + _$jscoverage['/editor/enterKey.js'].lineData[161]++; newBlock._4eMoveChildren(element); - _$jscoverage['/editor/enterKey.js'].lineData[144]++; + _$jscoverage['/editor/enterKey.js'].lineData[162]++; newBlock.append(element); } } } - _$jscoverage['/editor/enterKey.js'].lineData[149]++; - if (visit324_149_1(!OLD_IE)) { - _$jscoverage['/editor/enterKey.js'].lineData[150]++; + _$jscoverage['/editor/enterKey.js'].lineData[167]++; + if (visit330_167_1(!OLD_IE)) { + _$jscoverage['/editor/enterKey.js'].lineData[168]++; newBlock._4eAppendBogus(); } - _$jscoverage['/editor/enterKey.js'].lineData[153]++; + _$jscoverage['/editor/enterKey.js'].lineData[171]++; range.insertNode(newBlock); - _$jscoverage['/editor/enterKey.js'].lineData[160]++; - if (visit325_160_1(OLD_IE && visit326_160_2(isStartOfBlock && (visit327_160_3(!isEndOfBlock || !previousBlock[0].childNodes.length))))) { - _$jscoverage['/editor/enterKey.js'].lineData[162]++; + _$jscoverage['/editor/enterKey.js'].lineData[178]++; + if (visit331_178_1(OLD_IE && visit332_178_2(isStartOfBlock && (visit333_178_3(!isEndOfBlock || !previousBlock[0].childNodes.length))))) { + _$jscoverage['/editor/enterKey.js'].lineData[180]++; range.moveToElementEditablePosition(isEndOfBlock ? previousBlock : newBlock); - _$jscoverage['/editor/enterKey.js'].lineData[163]++; + _$jscoverage['/editor/enterKey.js'].lineData[181]++; range.select(); } - _$jscoverage['/editor/enterKey.js'].lineData[167]++; - range.moveToElementEditablePosition(visit328_167_1(isStartOfBlock && !isEndOfBlock) ? nextBlock : newBlock); + _$jscoverage['/editor/enterKey.js'].lineData[185]++; + range.moveToElementEditablePosition(visit334_185_1(isStartOfBlock && !isEndOfBlock) ? nextBlock : newBlock); } - _$jscoverage['/editor/enterKey.js'].lineData[170]++; - if (visit329_170_1(!OLD_IE)) { - _$jscoverage['/editor/enterKey.js'].lineData[171]++; - if (visit330_171_1(nextBlock)) { - _$jscoverage['/editor/enterKey.js'].lineData[174]++; + _$jscoverage['/editor/enterKey.js'].lineData[188]++; + if (visit335_188_1(!OLD_IE)) { + _$jscoverage['/editor/enterKey.js'].lineData[189]++; + if (visit336_189_1(nextBlock)) { + _$jscoverage['/editor/enterKey.js'].lineData[192]++; var tmpNode = new Node(doc.createElement('span')); - _$jscoverage['/editor/enterKey.js'].lineData[177]++; + _$jscoverage['/editor/enterKey.js'].lineData[195]++; tmpNode.html(' '); - _$jscoverage['/editor/enterKey.js'].lineData[179]++; + _$jscoverage['/editor/enterKey.js'].lineData[197]++; range.insertNode(tmpNode); - _$jscoverage['/editor/enterKey.js'].lineData[180]++; + _$jscoverage['/editor/enterKey.js'].lineData[198]++; tmpNode.scrollIntoView(undefined, { alignWithTop: false, allowHorizontalScroll: true, onlyScrollIfNeeded: true}); - _$jscoverage['/editor/enterKey.js'].lineData[185]++; + _$jscoverage['/editor/enterKey.js'].lineData[203]++; range.deleteContents(); } else { - _$jscoverage['/editor/enterKey.js'].lineData[190]++; + _$jscoverage['/editor/enterKey.js'].lineData[207]++; newBlock.scrollIntoView(undefined, { alignWithTop: false, allowHorizontalScroll: true, onlyScrollIfNeeded: true}); } } - _$jscoverage['/editor/enterKey.js'].lineData[197]++; + _$jscoverage['/editor/enterKey.js'].lineData[214]++; range.select(); - _$jscoverage['/editor/enterKey.js'].lineData[198]++; + _$jscoverage['/editor/enterKey.js'].lineData[215]++; return true; } - _$jscoverage['/editor/enterKey.js'].lineData[201]++; + _$jscoverage['/editor/enterKey.js'].lineData[218]++; function enterKey(editor) { _$jscoverage['/editor/enterKey.js'].functionData[3]++; - _$jscoverage['/editor/enterKey.js'].lineData[202]++; + _$jscoverage['/editor/enterKey.js'].lineData[219]++; var doc = editor.get('document'); - _$jscoverage['/editor/enterKey.js'].lineData[203]++; + _$jscoverage['/editor/enterKey.js'].lineData[220]++; doc.on('keydown', function(ev) { _$jscoverage['/editor/enterKey.js'].functionData[4]++; - _$jscoverage['/editor/enterKey.js'].lineData[204]++; + _$jscoverage['/editor/enterKey.js'].lineData[221]++; var keyCode = ev.keyCode; - _$jscoverage['/editor/enterKey.js'].lineData[205]++; - if (visit331_205_1(keyCode === 13)) { - _$jscoverage['/editor/enterKey.js'].lineData[206]++; - if (visit332_206_1(!(visit333_206_2(ev.shiftKey || visit334_206_3(ev.ctrlKey || ev.metaKey))))) { - _$jscoverage['/editor/enterKey.js'].lineData[207]++; + _$jscoverage['/editor/enterKey.js'].lineData[222]++; + if (visit337_222_1(keyCode === 13)) { + _$jscoverage['/editor/enterKey.js'].lineData[223]++; + if (visit338_223_1(!(visit339_223_2(ev.shiftKey || visit340_223_3(ev.ctrlKey || ev.metaKey))))) { + _$jscoverage['/editor/enterKey.js'].lineData[224]++; editor.execCommand('save'); - _$jscoverage['/editor/enterKey.js'].lineData[208]++; + _$jscoverage['/editor/enterKey.js'].lineData[225]++; var re = editor.execCommand('enterBlock'); - _$jscoverage['/editor/enterKey.js'].lineData[209]++; + _$jscoverage['/editor/enterKey.js'].lineData[226]++; editor.execCommand('save'); - _$jscoverage['/editor/enterKey.js'].lineData[210]++; - if (visit335_210_1(re !== false)) { - _$jscoverage['/editor/enterKey.js'].lineData[211]++; + _$jscoverage['/editor/enterKey.js'].lineData[227]++; + if (visit341_227_1(re !== false)) { + _$jscoverage['/editor/enterKey.js'].lineData[228]++; ev.preventDefault(); } } } }); } - _$jscoverage['/editor/enterKey.js'].lineData[218]++; + _$jscoverage['/editor/enterKey.js'].lineData[235]++; return { init: function(editor) { _$jscoverage['/editor/enterKey.js'].functionData[5]++; - _$jscoverage['/editor/enterKey.js'].lineData[220]++; + _$jscoverage['/editor/enterKey.js'].lineData[237]++; editor.addCommand('enterBlock', { exec: enterBlock}); - _$jscoverage['/editor/enterKey.js'].lineData[223]++; + _$jscoverage['/editor/enterKey.js'].lineData[240]++; editor.docReady(function() { _$jscoverage['/editor/enterKey.js'].functionData[6]++; - _$jscoverage['/editor/enterKey.js'].lineData[224]++; + _$jscoverage['/editor/enterKey.js'].lineData[241]++; enterKey(editor); }); }}; diff --git a/src/editor/coverage/src/editor/focusManager.js b/src/editor/coverage/src/editor/focusManager.js index 9a7556ec40..21e2e67917 100644 --- a/src/editor/coverage/src/editor/focusManager.js +++ b/src/editor/coverage/src/editor/focusManager.js @@ -282,11 +282,11 @@ if (! _$jscoverage['/editor/focusManager.js'].branchData) { _$jscoverage['/editor/focusManager.js'].branchData['25'][1] = new BranchData(); } _$jscoverage['/editor/focusManager.js'].branchData['25'][1].init(110, 5, 'timer'); -function visit337_25_1(result) { +function visit343_25_1(result) { _$jscoverage['/editor/focusManager.js'].branchData['25'][1].ranCondition(result); return result; }_$jscoverage['/editor/focusManager.js'].branchData['13'][1].init(111, 5, 'timer'); -function visit336_13_1(result) { +function visit342_13_1(result) { _$jscoverage['/editor/focusManager.js'].branchData['13'][1].ranCondition(result); return result; }_$jscoverage['/editor/focusManager.js'].lineData[6]++; @@ -304,7 +304,7 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/focusManager.js'].lineData[12]++; currentInstance = editor; _$jscoverage['/editor/focusManager.js'].lineData[13]++; - if (visit336_13_1(timer)) { + if (visit342_13_1(timer)) { _$jscoverage['/editor/focusManager.js'].lineData[14]++; clearTimeout(timer); } @@ -325,7 +325,7 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/focusManager.js'].lineData[24]++; currentInstance = NULL; _$jscoverage['/editor/focusManager.js'].lineData[25]++; - if (visit337_25_1(timer)) { + if (visit343_25_1(timer)) { _$jscoverage['/editor/focusManager.js'].lineData[26]++; clearTimeout(timer); } diff --git a/src/editor/coverage/src/editor/htmlDataProcessor.js b/src/editor/coverage/src/editor/htmlDataProcessor.js index bf5ce9aae8..f9e61781d4 100644 --- a/src/editor/coverage/src/editor/htmlDataProcessor.js +++ b/src/editor/coverage/src/editor/htmlDataProcessor.js @@ -234,143 +234,151 @@ if (! _$jscoverage['/editor/htmlDataProcessor.js']) { _$jscoverage['/editor/htmlDataProcessor.js'].lineData[12] = 0; _$jscoverage['/editor/htmlDataProcessor.js'].lineData[13] = 0; _$jscoverage['/editor/htmlDataProcessor.js'].lineData[14] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[15] = 0; _$jscoverage['/editor/htmlDataProcessor.js'].lineData[16] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[17] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[20] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[21] = 0; _$jscoverage['/editor/htmlDataProcessor.js'].lineData[22] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[23] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[24] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[27] = 0; _$jscoverage['/editor/htmlDataProcessor.js'].lineData[28] = 0; _$jscoverage['/editor/htmlDataProcessor.js'].lineData[29] = 0; _$jscoverage['/editor/htmlDataProcessor.js'].lineData[30] = 0; _$jscoverage['/editor/htmlDataProcessor.js'].lineData[31] = 0; _$jscoverage['/editor/htmlDataProcessor.js'].lineData[32] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[33] = 0; _$jscoverage['/editor/htmlDataProcessor.js'].lineData[34] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[37] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[39] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[43] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[45] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[35] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[38] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[40] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[44] = 0; _$jscoverage['/editor/htmlDataProcessor.js'].lineData[46] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[47] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[52] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[71] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[80] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[82] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[85] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[87] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[88] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[89] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[50] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[51] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[54] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[55] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[56] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[57] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[62] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[81] = 0; _$jscoverage['/editor/htmlDataProcessor.js'].lineData[90] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[92] = 0; _$jscoverage['/editor/htmlDataProcessor.js'].lineData[95] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[97] = 0; _$jscoverage['/editor/htmlDataProcessor.js'].lineData[98] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[101] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[102] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[104] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[99] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[100] = 0; _$jscoverage['/editor/htmlDataProcessor.js'].lineData[105] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[107] = 0; _$jscoverage['/editor/htmlDataProcessor.js'].lineData[108] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[111] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[112] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[114] = 0; _$jscoverage['/editor/htmlDataProcessor.js'].lineData[115] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[116] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[117] = 0; _$jscoverage['/editor/htmlDataProcessor.js'].lineData[118] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[129] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[130] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[132] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[148] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[149] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[150] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[152] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[155] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[125] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[126] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[128] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[139] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[140] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[142] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[158] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[159] = 0; _$jscoverage['/editor/htmlDataProcessor.js'].lineData[160] = 0; _$jscoverage['/editor/htmlDataProcessor.js'].lineData[162] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[163] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[168] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[169] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[165] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[170] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[171] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[172] = 0; _$jscoverage['/editor/htmlDataProcessor.js'].lineData[177] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[182] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[185] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[178] = 0; _$jscoverage['/editor/htmlDataProcessor.js'].lineData[186] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[189] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[190] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[192] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[191] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[194] = 0; _$jscoverage['/editor/htmlDataProcessor.js'].lineData[195] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[196] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[197] = 0; _$jscoverage['/editor/htmlDataProcessor.js'].lineData[198] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[199] = 0; _$jscoverage['/editor/htmlDataProcessor.js'].lineData[201] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[202] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[203] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[206] = 0; _$jscoverage['/editor/htmlDataProcessor.js'].lineData[207] = 0; _$jscoverage['/editor/htmlDataProcessor.js'].lineData[208] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[209] = 0; _$jscoverage['/editor/htmlDataProcessor.js'].lineData[210] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[211] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[212] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[217] = 0; _$jscoverage['/editor/htmlDataProcessor.js'].lineData[218] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[219] = 0; _$jscoverage['/editor/htmlDataProcessor.js'].lineData[220] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[223] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[224] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[228] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[229] = 0; _$jscoverage['/editor/htmlDataProcessor.js'].lineData[230] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[231] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[232] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[235] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[233] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[234] = 0; _$jscoverage['/editor/htmlDataProcessor.js'].lineData[240] = 0; _$jscoverage['/editor/htmlDataProcessor.js'].lineData[241] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[242] = 0; _$jscoverage['/editor/htmlDataProcessor.js'].lineData[245] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[246] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[247] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[253] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[250] = 0; _$jscoverage['/editor/htmlDataProcessor.js'].lineData[254] = 0; _$jscoverage['/editor/htmlDataProcessor.js'].lineData[255] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[257] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[258] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[259] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[256] = 0; _$jscoverage['/editor/htmlDataProcessor.js'].lineData[262] = 0; _$jscoverage['/editor/htmlDataProcessor.js'].lineData[263] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[270] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[264] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[266] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[267] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[268] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[271] = 0; _$jscoverage['/editor/htmlDataProcessor.js'].lineData[272] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[279] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[284] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[285] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[278] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[280] = 0; _$jscoverage['/editor/htmlDataProcessor.js'].lineData[286] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[289] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[290] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[291] = 0; _$jscoverage['/editor/htmlDataProcessor.js'].lineData[292] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[293] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[296] = 0; _$jscoverage['/editor/htmlDataProcessor.js'].lineData[297] = 0; _$jscoverage['/editor/htmlDataProcessor.js'].lineData[299] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[302] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[305] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[307] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[308] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[311] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[304] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[306] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[309] = 0; _$jscoverage['/editor/htmlDataProcessor.js'].lineData[312] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[313] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[317] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[314] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[315] = 0; _$jscoverage['/editor/htmlDataProcessor.js'].lineData[318] = 0; _$jscoverage['/editor/htmlDataProcessor.js'].lineData[319] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[323] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[320] = 0; _$jscoverage['/editor/htmlDataProcessor.js'].lineData[324] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[327] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[328] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[325] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[326] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[330] = 0; _$jscoverage['/editor/htmlDataProcessor.js'].lineData[331] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[337] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[339] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[345] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[347] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[348] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[349] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[334] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[335] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[338] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[344] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[346] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[352] = 0; _$jscoverage['/editor/htmlDataProcessor.js'].lineData[354] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[355] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[356] = 0; _$jscoverage['/editor/htmlDataProcessor.js'].lineData[361] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[363] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[367] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[371] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[376] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[368] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[370] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[374] = 0; _$jscoverage['/editor/htmlDataProcessor.js'].lineData[378] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[379] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[382] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[384] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[383] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[385] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[386] = 0; _$jscoverage['/editor/htmlDataProcessor.js'].lineData[389] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[392] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[394] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[391] = 0; _$jscoverage['/editor/htmlDataProcessor.js'].lineData[396] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[402] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[404] = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[405] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[399] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[401] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[403] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[409] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[411] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[412] = 0; } if (! _$jscoverage['/editor/htmlDataProcessor.js'].functionData) { _$jscoverage['/editor/htmlDataProcessor.js'].functionData = []; @@ -406,278 +414,330 @@ if (! _$jscoverage['/editor/htmlDataProcessor.js'].functionData) { _$jscoverage['/editor/htmlDataProcessor.js'].functionData[29] = 0; _$jscoverage['/editor/htmlDataProcessor.js'].functionData[30] = 0; _$jscoverage['/editor/htmlDataProcessor.js'].functionData[31] = 0; + _$jscoverage['/editor/htmlDataProcessor.js'].functionData[32] = 0; } if (! _$jscoverage['/editor/htmlDataProcessor.js'].branchData) { _$jscoverage['/editor/htmlDataProcessor.js'].branchData = {}; _$jscoverage['/editor/htmlDataProcessor.js'].branchData['13'] = []; _$jscoverage['/editor/htmlDataProcessor.js'].branchData['13'][1] = new BranchData(); + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['21'] = []; + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['21'][1] = new BranchData(); + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['27'] = []; + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['27'][1] = new BranchData(); _$jscoverage['/editor/htmlDataProcessor.js'].branchData['28'] = []; _$jscoverage['/editor/htmlDataProcessor.js'].branchData['28'][1] = new BranchData(); - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['30'] = []; - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['30'][1] = new BranchData(); - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['32'] = []; - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['32'][1] = new BranchData(); - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['32'][2] = new BranchData(); - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['32'][3] = new BranchData(); - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['82'] = []; - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['82'][1] = new BranchData(); - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['87'] = []; - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['87'][1] = new BranchData(); - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['89'] = []; - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['89'][1] = new BranchData(); - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['101'] = []; - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['101'][1] = new BranchData(); - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['101'][2] = new BranchData(); - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['104'] = []; - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['104'][1] = new BranchData(); - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['107'] = []; - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['107'][1] = new BranchData(); - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['115'] = []; - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['115'][1] = new BranchData(); - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['129'] = []; - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['129'][1] = new BranchData(); - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['148'] = []; - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['148'][1] = new BranchData(); - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['155'] = []; - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['155'][1] = new BranchData(); - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['189'] = []; - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['189'][1] = new BranchData(); - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['189'][2] = new BranchData(); - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['189'][3] = new BranchData(); - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['197'] = []; - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['197'][1] = new BranchData(); + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['31'] = []; + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['31'][1] = new BranchData(); + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['31'][2] = new BranchData(); + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['31'][3] = new BranchData(); + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['34'] = []; + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['34'][1] = new BranchData(); + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['92'] = []; + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['92'][1] = new BranchData(); + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['97'] = []; + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['97'][1] = new BranchData(); + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['99'] = []; + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['99'][1] = new BranchData(); + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['111'] = []; + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['111'][1] = new BranchData(); + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['111'][2] = new BranchData(); + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['114'] = []; + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['114'][1] = new BranchData(); + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['117'] = []; + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['117'][1] = new BranchData(); + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['125'] = []; + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['125'][1] = new BranchData(); + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['139'] = []; + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['139'][1] = new BranchData(); + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['158'] = []; + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['158'][1] = new BranchData(); + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['165'] = []; + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['165'][1] = new BranchData(); _$jscoverage['/editor/htmlDataProcessor.js'].branchData['198'] = []; _$jscoverage['/editor/htmlDataProcessor.js'].branchData['198'][1] = new BranchData(); - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['198'][2] = new BranchData(); - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['198'][3] = new BranchData(); - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['201'] = []; - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['201'][1] = new BranchData(); - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['201'][2] = new BranchData(); - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['210'] = []; - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['210'][1] = new BranchData(); - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['213'] = []; - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['213'][1] = new BranchData(); - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['213'][2] = new BranchData(); - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['214'] = []; - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['214'][1] = new BranchData(); + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['199'] = []; + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['199'][1] = new BranchData(); + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['199'][2] = new BranchData(); + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['199'][3] = new BranchData(); + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['200'] = []; + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['200'][1] = new BranchData(); + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['200'][2] = new BranchData(); + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['208'] = []; + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['208'][1] = new BranchData(); + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['209'] = []; + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['209'][1] = new BranchData(); + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['209'][2] = new BranchData(); + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['209'][3] = new BranchData(); + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['211'] = []; + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['211'][1] = new BranchData(); + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['211'][2] = new BranchData(); _$jscoverage['/editor/htmlDataProcessor.js'].branchData['220'] = []; _$jscoverage['/editor/htmlDataProcessor.js'].branchData['220'][1] = new BranchData(); _$jscoverage['/editor/htmlDataProcessor.js'].branchData['223'] = []; _$jscoverage['/editor/htmlDataProcessor.js'].branchData['223'][1] = new BranchData(); - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['232'] = []; - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['232'][1] = new BranchData(); - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['246'] = []; - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['246'][1] = new BranchData(); - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['289'] = []; - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['289'][1] = new BranchData(); - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['337'] = []; - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['337'][1] = new BranchData(); - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['354'] = []; - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['354'][1] = new BranchData(); + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['223'][2] = new BranchData(); + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['224'] = []; + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['224'][1] = new BranchData(); + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['230'] = []; + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['230'][1] = new BranchData(); + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['233'] = []; + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['233'][1] = new BranchData(); + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['242'] = []; + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['242'][1] = new BranchData(); + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['255'] = []; + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['255'][1] = new BranchData(); + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['296'] = []; + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['296'][1] = new BranchData(); + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['344'] = []; + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['344'][1] = new BranchData(); + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['361'] = []; + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['361'][1] = new BranchData(); } -_$jscoverage['/editor/htmlDataProcessor.js'].branchData['354'][1].init(85, 25, '_dataFilter || dataFilter'); -function visit374_354_1(result) { - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['354'][1].ranCondition(result); +_$jscoverage['/editor/htmlDataProcessor.js'].branchData['361'][1].init(85, 25, '_dataFilter || dataFilter'); +function visit385_361_1(result) { + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['361'][1].ranCondition(result); return result; -}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['337'][1].init(25, 9, 'UA.webkit'); -function visit373_337_1(result) { - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['337'][1].ranCondition(result); +}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['344'][1].init(25, 9, 'UA.webkit'); +function visit384_344_1(result) { + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['344'][1].ranCondition(result); return result; -}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['289'][1].init(183, 49, 'attributes.indexOf(\'_keSaved_\' + attrName) === -1'); -function visit372_289_1(result) { - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['289'][1].ranCondition(result); +}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['296'][1].init(183, 49, 'attributes.indexOf(\'_keSaved_\' + attrName) === -1'); +function visit383_296_1(result) { + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['296'][1].ranCondition(result); return result; -}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['246'][1].init(25, 19, '!(\'br\' in dtd[i])'); -function visit371_246_1(result) { - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['246'][1].ranCondition(result); +}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['255'][1].init(25, 17, '!(\'br\' in dtd[i])'); +function visit382_255_1(result) { + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['255'][1].ranCondition(result); return result; -}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['232'][1].init(65, 26, 'blockNeedsExtension(block)'); -function visit370_232_1(result) { - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['232'][1].ranCondition(result); +}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['242'][1].init(65, 26, 'blockNeedsExtension(block)'); +function visit381_242_1(result) { + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['242'][1].ranCondition(result); return result; -}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['223'][1].init(138, 7, '!OLD_IE'); -function visit369_223_1(result) { +}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['233'][1].init(138, 7, '!OLD_IE'); +function visit380_233_1(result) { + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['233'][1].ranCondition(result); + return result; +}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['230'][1].init(65, 26, 'blockNeedsExtension(block)'); +function visit379_230_1(result) { + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['230'][1].ranCondition(result); + return result; +}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['224'][1].init(52, 30, 'lastChild.nodeName === \'input\''); +function visit378_224_1(result) { + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['224'][1].ranCondition(result); + return result; +}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['223'][2].init(335, 25, 'block.nodeName === \'form\''); +function visit377_223_2(result) { + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['223'][2].ranCondition(result); + return result; +}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['223'][1].init(188, 83, 'block.nodeName === \'form\' && lastChild.nodeName === \'input\''); +function visit376_223_1(result) { _$jscoverage['/editor/htmlDataProcessor.js'].branchData['223'][1].ranCondition(result); return result; -}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['220'][1].init(65, 26, 'blockNeedsExtension(block)'); -function visit368_220_1(result) { +}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['220'][1].init(144, 272, '!lastChild || block.nodeName === \'form\' && lastChild.nodeName === \'input\''); +function visit375_220_1(result) { _$jscoverage['/editor/htmlDataProcessor.js'].branchData['220'][1].ranCondition(result); return result; -}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['214'][1].init(52, 30, 'lastChild.nodeName === \'input\''); -function visit367_214_1(result) { - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['214'][1].ranCondition(result); - return result; -}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['213'][2].init(335, 25, 'block.nodeName === \'form\''); -function visit366_213_2(result) { - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['213'][2].ranCondition(result); +}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['211'][2].init(182, 24, 'lastChild.nodeType === 3'); +function visit374_211_2(result) { + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['211'][2].ranCondition(result); return result; -}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['213'][1].init(188, 83, 'block.nodeName === \'form\' && lastChild.nodeName === \'input\''); -function visit365_213_1(result) { - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['213'][1].ranCondition(result); +}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['211'][1].init(182, 67, 'lastChild.nodeType === 3 && tailNbspRegex.test(lastChild.nodeValue)'); +function visit373_211_1(result) { + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['211'][1].ranCondition(result); return result; -}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['210'][1].init(144, 272, '!lastChild || block.nodeName === \'form\' && lastChild.nodeName === \'input\''); -function visit364_210_1(result) { - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['210'][1].ranCondition(result); +}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['209'][3].init(57, 27, 'lastChild.nodeName === \'br\''); +function visit372_209_3(result) { + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['209'][3].ranCondition(result); return result; -}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['201'][2].init(206, 24, 'lastChild.nodeType === 3'); -function visit363_201_2(result) { - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['201'][2].ranCondition(result); +}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['209'][2].init(29, 24, 'lastChild.nodeType === 1'); +function visit371_209_2(result) { + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['209'][2].ranCondition(result); return result; -}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['201'][1].init(206, 67, 'lastChild.nodeType === 3 && tailNbspRegex.test(lastChild.nodeValue)'); -function visit362_201_1(result) { - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['201'][1].ranCondition(result); +}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['209'][1].init(29, 55, 'lastChild.nodeType === 1 && lastChild.nodeName === \'br\''); +function visit370_209_1(result) { + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['209'][1].ranCondition(result); return result; -}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['198'][3].init(57, 27, 'lastChild.nodeName === \'br\''); -function visit361_198_3(result) { - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['198'][3].ranCondition(result); +}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['208'][1].init(88, 9, 'lastChild'); +function visit369_208_1(result) { + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['208'][1].ranCondition(result); return result; -}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['198'][2].init(29, 24, 'lastChild.nodeType === 1'); -function visit360_198_2(result) { - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['198'][2].ranCondition(result); +}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['200'][2].init(115, 19, 'last.nodeType === 1'); +function visit368_200_2(result) { + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['200'][2].ranCondition(result); return result; -}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['198'][1].init(29, 55, 'lastChild.nodeType === 1 && lastChild.nodeName === \'br\''); -function visit359_198_1(result) { - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['198'][1].ranCondition(result); +}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['200'][1].init(80, 43, 'last.nodeType === 1 && isEmptyElement(last)'); +function visit367_200_1(result) { + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['200'][1].ranCondition(result); return result; -}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['197'][1].init(88, 9, 'lastChild'); -function visit358_197_1(result) { - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['197'][1].ranCondition(result); +}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['199'][3].init(32, 19, 'last.nodeType === 3'); +function visit366_199_3(result) { + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['199'][3].ranCondition(result); return result; -}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['189'][3].init(206, 19, 'last.nodeType === 3'); -function visit357_189_3(result) { - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['189'][3].ranCondition(result); +}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['199'][2].init(32, 49, 'last.nodeType === 3 && !util.trim(last.nodeValue)'); +function visit365_199_2(result) { + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['199'][2].ranCondition(result); return result; -}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['189'][2].init(206, 46, 'last.nodeType === 3 && !S.trim(last.nodeValue)'); -function visit356_189_2(result) { - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['189'][2].ranCondition(result); +}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['199'][1].init(32, 124, 'last.nodeType === 3 && !util.trim(last.nodeValue) || last.nodeType === 1 && isEmptyElement(last)'); +function visit364_199_1(result) { + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['199'][1].ranCondition(result); return result; -}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['189'][1].init(198, 54, 'last && last.nodeType === 3 && !S.trim(last.nodeValue)'); -function visit355_189_1(result) { - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['189'][1].ranCondition(result); +}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['198'][1].init(196, 158, 'last && (last.nodeType === 3 && !util.trim(last.nodeValue) || last.nodeType === 1 && isEmptyElement(last))'); +function visit363_198_1(result) { + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['198'][1].ranCondition(result); return result; -}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['155'][1].init(5205, 6, 'OLD_IE'); -function visit354_155_1(result) { - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['155'][1].ranCondition(result); +}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['165'][1].init(5182, 6, 'OLD_IE'); +function visit362_165_1(result) { + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['165'][1].ranCondition(result); return result; -}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['148'][1].init(99, 74, 'contents.substr(0, protectedSourceMarker.length) === protectedSourceMarker'); -function visit353_148_1(result) { - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['148'][1].ranCondition(result); +}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['158'][1].init(99, 74, 'contents.substr(0, protectedSourceMarker.length) === protectedSourceMarker'); +function visit361_158_1(result) { + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['158'][1].ranCondition(result); return result; -}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['129'][1].init(33, 10, '!S.trim(v)'); -function visit352_129_1(result) { - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['129'][1].ranCondition(result); +}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['139'][1].init(33, 13, '!util.trim(v)'); +function visit360_139_1(result) { + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['139'][1].ranCondition(result); return result; -}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['115'][1].init(33, 60, '!(element.childNodes.length) && !(element.attributes.length)'); -function visit351_115_1(result) { - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['115'][1].ranCondition(result); +}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['125'][1].init(33, 60, '!(element.childNodes.length) && !(element.attributes.length)'); +function visit359_125_1(result) { + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['125'][1].ranCondition(result); return result; -}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['107'][1].init(364, 12, 'parentHeight'); -function visit350_107_1(result) { - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['107'][1].ranCondition(result); +}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['117'][1].init(364, 12, 'parentHeight'); +function visit358_117_1(result) { + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['117'][1].ranCondition(result); return result; -}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['104'][1].init(199, 11, 'parentWidth'); -function visit349_104_1(result) { - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['104'][1].ranCondition(result); +}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['114'][1].init(199, 11, 'parentWidth'); +function visit357_114_1(result) { + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['114'][1].ranCondition(result); return result; -}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['101'][2].init(251, 28, 'parent.nodeName === \'object\''); -function visit348_101_2(result) { - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['101'][2].ranCondition(result); +}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['111'][2].init(251, 28, 'parent.nodeName === \'object\''); +function visit356_111_2(result) { + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['111'][2].ranCondition(result); return result; -}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['101'][1].init(241, 38, 'parent && parent.nodeName === \'object\''); -function visit347_101_1(result) { - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['101'][1].ranCondition(result); +}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['111'][1].init(241, 38, 'parent && parent.nodeName === \'object\''); +function visit355_111_1(result) { + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['111'][1].ranCondition(result); return result; -}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['89'][1].init(133, 40, 'element.getAttribute(savedAttributeName)'); -function visit346_89_1(result) { - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['89'][1].ranCondition(result); +}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['99'][1].init(131, 40, 'element.getAttribute(savedAttributeName)'); +function visit354_99_1(result) { + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['99'][1].ranCondition(result); return result; -}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['87'][1].init(324, 25, 'i < attributeNames.length'); -function visit345_87_1(result) { - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['87'][1].ranCondition(result); +}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['97'][1].init(322, 25, 'i < attributeNames.length'); +function visit353_97_1(result) { + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['97'][1].ranCondition(result); return result; -}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['82'][1].init(99, 17, 'attributes.length'); -function visit344_82_1(result) { - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['82'][1].ranCondition(result); +}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['92'][1].init(99, 17, 'attributes.length'); +function visit352_92_1(result) { + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['92'][1].ranCondition(result); return result; -}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['32'][3].init(78, 43, 'child.nodeType === S.DOM.NodeType.TEXT_NODE'); -function visit343_32_3(result) { - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['32'][3].ranCondition(result); +}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['34'][1].init(237, 22, '!isEmptyElement(child)'); +function visit351_34_1(result) { + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['34'][1].ranCondition(result); return result; -}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['32'][2].init(78, 63, 'child.nodeType === S.DOM.NodeType.TEXT_NODE && !child.nodeValue'); -function visit342_32_2(result) { - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['32'][2].ranCondition(result); +}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['31'][3].init(109, 31, 'nodeType === NodeType.TEXT_NODE'); +function visit350_31_3(result) { + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['31'][3].ranCondition(result); return result; -}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['32'][1].init(76, 66, '!(child.nodeType === S.DOM.NodeType.TEXT_NODE && !child.nodeValue)'); -function visit341_32_1(result) { - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['32'][1].ranCondition(result); +}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['31'][2].init(109, 51, 'nodeType === NodeType.TEXT_NODE && !child.nodeValue'); +function visit349_31_2(result) { + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['31'][2].ranCondition(result); return result; -}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['30'][1].init(67, 5, 'i < l'); -function visit340_30_1(result) { - _$jscoverage['/editor/htmlDataProcessor.js'].branchData['30'][1].ranCondition(result); +}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['31'][1].init(107, 54, '!(nodeType === NodeType.TEXT_NODE && !child.nodeValue)'); +function visit348_31_1(result) { + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['31'][1].ranCondition(result); return result; -}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['28'][1].init(197, 1, 'l'); -function visit339_28_1(result) { +}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['28'][1].init(25, 5, 'i < l'); +function visit347_28_1(result) { _$jscoverage['/editor/htmlDataProcessor.js'].branchData['28'][1].ranCondition(result); return result; -}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['13'][1].init(99, 16, 'S.UA.ieMode < 11'); -function visit338_13_1(result) { +}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['27'][1].init(192, 1, 'l'); +function visit346_27_1(result) { + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['27'][1].ranCondition(result); + return result; +}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['21'][1].init(13, 30, '!dtd.$removeEmpty[el.nodeName]'); +function visit345_21_1(result) { + _$jscoverage['/editor/htmlDataProcessor.js'].branchData['21'][1].ranCondition(result); + return result; +}_$jscoverage['/editor/htmlDataProcessor.js'].branchData['13'][1].init(91, 14, 'UA.ieMode < 11'); +function visit344_13_1(result) { _$jscoverage['/editor/htmlDataProcessor.js'].branchData['13'][1].ranCondition(result); return result; }_$jscoverage['/editor/htmlDataProcessor.js'].lineData[10]++; KISSY.add(function(S, require) { _$jscoverage['/editor/htmlDataProcessor.js'].functionData[0]++; _$jscoverage['/editor/htmlDataProcessor.js'].lineData[11]++; - var Editor = require('./base'); - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[12]++; var HtmlParser = require('html-parser'); + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[12]++; + var UA = require('ua'); _$jscoverage['/editor/htmlDataProcessor.js'].lineData[13]++; - var OLD_IE = visit338_13_1(S.UA.ieMode < 11); + var OLD_IE = visit344_13_1(UA.ieMode < 11); _$jscoverage['/editor/htmlDataProcessor.js'].lineData[14]++; - return { - init: function(editor) { - _$jscoverage['/editor/htmlDataProcessor.js'].functionData[1]++; + var Node = require('node'); + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[15]++; + var dtd = HtmlParser.DTD; _$jscoverage['/editor/htmlDataProcessor.js'].lineData[16]++; - var Node = S.Node, UA = S.UA, htmlFilter = new HtmlParser.Filter(), dataFilter = new HtmlParser.Filter(); - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[22]++; - function filterInline(element) { - _$jscoverage['/editor/htmlDataProcessor.js'].functionData[2]++; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[23]++; - var childNodes = element.childNodes, i, child, allEmpty, l = childNodes.length; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[28]++; - if (visit339_28_1(l)) { - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[29]++; - allEmpty = 1; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[30]++; - for (i = 0; visit340_30_1(i < l); i++) { - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[31]++; + var NodeType = Node.NodeType; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[17]++; + var util = S; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[20]++; + function isEmptyElement(el) { + _$jscoverage['/editor/htmlDataProcessor.js'].functionData[1]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[21]++; + if (visit345_21_1(!dtd.$removeEmpty[el.nodeName])) { + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[22]++; + return false; + } + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[24]++; + var childNodes = el.childNodes, i, child, l = childNodes.length; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[27]++; + if (visit346_27_1(l)) { + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[28]++; + for (i = 0; visit347_28_1(i < l); i++) { + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[29]++; child = childNodes[i]; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[32]++; - if (visit341_32_1(!(visit342_32_2(visit343_32_3(child.nodeType === S.DOM.NodeType.TEXT_NODE) && !child.nodeValue)))) { - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[33]++; - allEmpty = 0; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[34]++; - break; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[30]++; + var nodeType = child.nodeType; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[31]++; + if (visit348_31_1(!(visit349_31_2(visit350_31_3(nodeType === NodeType.TEXT_NODE) && !child.nodeValue)))) { + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[32]++; + return false; + } + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[34]++; + if (visit351_34_1(!isEmptyElement(child))) { + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[35]++; + return false; } } - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[37]++; - return allEmpty ? false : undefined; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[38]++; + return true; } else { - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[39]++; - return false; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[40]++; + return true; } } - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[43]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[44]++; + return { + init: function(editor) { + _$jscoverage['/editor/htmlDataProcessor.js'].functionData[2]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[46]++; + var htmlFilter = new HtmlParser.Filter(), dataFilter = new HtmlParser.Filter(); + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[50]++; + function filterInline(element) { + _$jscoverage['/editor/htmlDataProcessor.js'].functionData[3]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[51]++; + return !isEmptyElement(element); + } + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[54]++; (function() { - _$jscoverage['/editor/htmlDataProcessor.js'].functionData[3]++; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[45]++; + _$jscoverage['/editor/htmlDataProcessor.js'].functionData[4]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[55]++; function wrapAsComment(element) { - _$jscoverage['/editor/htmlDataProcessor.js'].functionData[4]++; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[46]++; + _$jscoverage['/editor/htmlDataProcessor.js'].functionData[5]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[56]++; var html = HtmlParser.serialize(element); - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[47]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[57]++; return new HtmlParser.Comment(protectedSourceMarker + encodeURIComponent(html).replace(/--/g, '%2D%2D')); } - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[52]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[62]++; var defaultDataFilterRules = { tagNames: [[/^\?xml.*$/i, ''], [/^.*namespace.*$/i, '']], attributeNames: [[/^on/, 'ke_on'], [/^lang$/, '']], @@ -685,60 +745,60 @@ KISSY.add(function(S, require) { script: wrapAsComment, noscript: wrapAsComment, span: filterInline}}; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[71]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[81]++; var defaultHTMLFilterRules = { tagNames: [[(/^ke:/), ''], [(/^\?xml:namespace$/), '']], tags: { $: function(element) { - _$jscoverage['/editor/htmlDataProcessor.js'].functionData[5]++; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[80]++; + _$jscoverage['/editor/htmlDataProcessor.js'].functionData[6]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[90]++; var attributes = element.attributes; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[82]++; - if (visit344_82_1(attributes.length)) { - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[85]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[92]++; + if (visit352_92_1(attributes.length)) { + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[95]++; var attributeNames = ['name', 'href', 'src'], savedAttributeName; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[87]++; - for (var i = 0; visit345_87_1(i < attributeNames.length); i++) { - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[88]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[97]++; + for (var i = 0; visit353_97_1(i < attributeNames.length); i++) { + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[98]++; savedAttributeName = '_keSaved_' + attributeNames[i]; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[89]++; - if (visit346_89_1(element.getAttribute(savedAttributeName))) { - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[90]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[99]++; + if (visit354_99_1(element.getAttribute(savedAttributeName))) { + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[100]++; element.removeAttribute(attributeNames[i]); } } } - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[95]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[105]++; return element; }, embed: function(element) { - _$jscoverage['/editor/htmlDataProcessor.js'].functionData[6]++; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[98]++; + _$jscoverage['/editor/htmlDataProcessor.js'].functionData[7]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[108]++; var parent = element.parentNode; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[101]++; - if (visit347_101_1(parent && visit348_101_2(parent.nodeName === 'object'))) { - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[102]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[111]++; + if (visit355_111_1(parent && visit356_111_2(parent.nodeName === 'object'))) { + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[112]++; var parentWidth = parent.getAttribute('width'), parentHeight = parent.getAttribute('height'); - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[104]++; - if (visit349_104_1(parentWidth)) { - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[105]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[114]++; + if (visit357_114_1(parentWidth)) { + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[115]++; element.setAttribute('width', parentWidth); } - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[107]++; - if (visit350_107_1(parentHeight)) { - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[108]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[117]++; + if (visit358_117_1(parentHeight)) { + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[118]++; element.setAttribute('width', parentHeight); } } }, a: function(element) { - _$jscoverage['/editor/htmlDataProcessor.js'].functionData[7]++; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[115]++; - if (visit351_115_1(!(element.childNodes.length) && !(element.attributes.length))) { - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[116]++; + _$jscoverage['/editor/htmlDataProcessor.js'].functionData[8]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[125]++; + if (visit359_125_1(!(element.childNodes.length) && !(element.attributes.length))) { + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[126]++; return false; } - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[118]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[128]++; return undefined; }, span: filterInline, @@ -748,281 +808,279 @@ KISSY.add(function(S, require) { u: filterInline}, attributes: { style: function(v) { - _$jscoverage['/editor/htmlDataProcessor.js'].functionData[8]++; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[129]++; - if (visit352_129_1(!S.trim(v))) { - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[130]++; + _$jscoverage['/editor/htmlDataProcessor.js'].functionData[9]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[139]++; + if (visit360_139_1(!util.trim(v))) { + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[140]++; return false; } - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[132]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[142]++; return undefined; }}, attributeNames: [[(/^_keSaved_/), ''], [(/^ke_on/), 'on'], [(/^_ke.*/), ''], [(/^ke:.*$/), ''], [(/^_ks.*/), '']], comment: function(contents) { - _$jscoverage['/editor/htmlDataProcessor.js'].functionData[9]++; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[148]++; - if (visit353_148_1(contents.substr(0, protectedSourceMarker.length) === protectedSourceMarker)) { - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[149]++; - contents = S.trim(S.urlDecode(contents.substr(protectedSourceMarker.length))); - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[150]++; + _$jscoverage['/editor/htmlDataProcessor.js'].functionData[10]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[158]++; + if (visit361_158_1(contents.substr(0, protectedSourceMarker.length) === protectedSourceMarker)) { + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[159]++; + contents = util.trim(util.urlDecode(contents.substr(protectedSourceMarker.length))); + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[160]++; return HtmlParser.parse(contents).childNodes[0]; } - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[152]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[162]++; return undefined; }}; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[155]++; - if (visit354_155_1(OLD_IE)) { - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[160]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[165]++; + if (visit362_165_1(OLD_IE)) { + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[170]++; defaultHTMLFilterRules.attributes.style = function(value) { - _$jscoverage['/editor/htmlDataProcessor.js'].functionData[10]++; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[162]++; - return value.replace(/(^|;)([^:]+)/g, function(match) { _$jscoverage['/editor/htmlDataProcessor.js'].functionData[11]++; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[163]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[171]++; + return value.replace(/(^|;)([^:]+)/g, function(match) { + _$jscoverage['/editor/htmlDataProcessor.js'].functionData[12]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[172]++; return match.toLowerCase(); }); }; } - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[168]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[177]++; htmlFilter.addRules(defaultHTMLFilterRules); - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[169]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[178]++; dataFilter.addRules(defaultDataFilterRules); })(); - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[177]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[186]++; (function() { - _$jscoverage['/editor/htmlDataProcessor.js'].functionData[12]++; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[182]++; + _$jscoverage['/editor/htmlDataProcessor.js'].functionData[13]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[191]++; var tailNbspRegex = /^[\t\r\n ]*(?: |\xa0)[\t\r\n ]*$/; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[185]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[194]++; function lastNoneSpaceChild(block) { - _$jscoverage['/editor/htmlDataProcessor.js'].functionData[13]++; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[186]++; + _$jscoverage['/editor/htmlDataProcessor.js'].functionData[14]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[195]++; var childNodes = block.childNodes, lastIndex = childNodes.length, last = childNodes[lastIndex - 1]; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[189]++; - while (visit355_189_1(last && visit356_189_2(visit357_189_3(last.nodeType === 3) && !S.trim(last.nodeValue)))) { - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[190]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[198]++; + while (visit363_198_1(last && (visit364_199_1(visit365_199_2(visit366_199_3(last.nodeType === 3) && !util.trim(last.nodeValue)) || visit367_200_1(visit368_200_2(last.nodeType === 1) && isEmptyElement(last)))))) { + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[201]++; last = childNodes[--lastIndex]; } - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[192]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[203]++; return last; } - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[195]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[206]++; function trimFillers(block) { - _$jscoverage['/editor/htmlDataProcessor.js'].functionData[14]++; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[196]++; + _$jscoverage['/editor/htmlDataProcessor.js'].functionData[15]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[207]++; var lastChild = lastNoneSpaceChild(block); - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[197]++; - if (visit358_197_1(lastChild)) { - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[198]++; - if (visit359_198_1(visit360_198_2(lastChild.nodeType === 1) && visit361_198_3(lastChild.nodeName === 'br'))) { - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[199]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[208]++; + if (visit369_208_1(lastChild)) { + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[209]++; + if (visit370_209_1(visit371_209_2(lastChild.nodeType === 1) && visit372_209_3(lastChild.nodeName === 'br'))) { + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[210]++; block.removeChild(lastChild); } else { - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[201]++; - if (visit362_201_1(visit363_201_2(lastChild.nodeType === 3) && tailNbspRegex.test(lastChild.nodeValue))) { - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[202]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[211]++; + if (visit373_211_1(visit374_211_2(lastChild.nodeType === 3) && tailNbspRegex.test(lastChild.nodeValue))) { + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[212]++; block.removeChild(lastChild); } } } } - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[207]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[217]++; function blockNeedsExtension(block) { - _$jscoverage['/editor/htmlDataProcessor.js'].functionData[15]++; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[208]++; + _$jscoverage['/editor/htmlDataProcessor.js'].functionData[16]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[218]++; var lastChild = lastNoneSpaceChild(block); - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[210]++; - return visit364_210_1(!lastChild || visit365_213_1(visit366_213_2(block.nodeName === 'form') && visit367_214_1(lastChild.nodeName === 'input'))); + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[220]++; + return visit375_220_1(!lastChild || visit376_223_1(visit377_223_2(block.nodeName === 'form') && visit378_224_1(lastChild.nodeName === 'input'))); } - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[218]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[228]++; function extendBlockForDisplay(block) { - _$jscoverage['/editor/htmlDataProcessor.js'].functionData[16]++; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[219]++; + _$jscoverage['/editor/htmlDataProcessor.js'].functionData[17]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[229]++; trimFillers(block); - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[220]++; - if (visit368_220_1(blockNeedsExtension(block))) { - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[223]++; - if (visit369_223_1(!OLD_IE)) { - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[224]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[230]++; + if (visit379_230_1(blockNeedsExtension(block))) { + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[233]++; + if (visit380_233_1(!OLD_IE)) { + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[234]++; block.appendChild(new HtmlParser.Tag('br')); } } } - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[230]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[240]++; function extendBlockForOutput(block) { - _$jscoverage['/editor/htmlDataProcessor.js'].functionData[17]++; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[231]++; + _$jscoverage['/editor/htmlDataProcessor.js'].functionData[18]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[241]++; trimFillers(block); - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[232]++; - if (visit370_232_1(blockNeedsExtension(block))) { - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[235]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[242]++; + if (visit381_242_1(blockNeedsExtension(block))) { + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[245]++; block.appendChild(new HtmlParser.Text('\xa0')); } } - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[240]++; - var dtd = Editor.XHTML_DTD; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[241]++; - var blockLikeTags = S.merge(dtd.$block, dtd.$listItem, dtd.$tableContent), i; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[245]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[250]++; + var blockLikeTags = util.merge(dtd.$block, dtd.$listItem, dtd.$tableContent), i; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[254]++; for (i in blockLikeTags) { - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[246]++; - if (visit371_246_1(!('br' in dtd[i]))) { - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[247]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[255]++; + if (visit382_255_1(!('br' in dtd[i]))) { + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[256]++; delete blockLikeTags[i]; } } - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[253]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[262]++; delete blockLikeTags.pre; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[254]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[263]++; var defaultDataBlockFilterRules = { tags: {}}; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[255]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[264]++; var defaultHTMLBlockFilterRules = { tags: {}}; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[257]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[266]++; for (i in blockLikeTags) { - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[258]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[267]++; defaultDataBlockFilterRules.tags[i] = extendBlockForDisplay; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[259]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[268]++; defaultHTMLBlockFilterRules.tags[i] = extendBlockForOutput; } - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[262]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[271]++; dataFilter.addRules(defaultDataBlockFilterRules); - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[263]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[272]++; htmlFilter.addRules(defaultHTMLBlockFilterRules); })(); - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[270]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[278]++; htmlFilter.addRules({ text: function(text) { - _$jscoverage['/editor/htmlDataProcessor.js'].functionData[18]++; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[272]++; + _$jscoverage['/editor/htmlDataProcessor.js'].functionData[19]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[280]++; return text.replace(/\xa0/g, ' '); }}); - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[279]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[286]++; var protectElementRegex = /<(a|area|img|input)\b([^>]*)>/gi, protectAttributeRegex = /\b(href|src|name)\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|(?:[^ "'>]+))/gi; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[284]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[291]++; function protectAttributes(html) { - _$jscoverage['/editor/htmlDataProcessor.js'].functionData[19]++; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[285]++; + _$jscoverage['/editor/htmlDataProcessor.js'].functionData[20]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[292]++; return html.replace(protectElementRegex, function(element, tag, attributes) { - _$jscoverage['/editor/htmlDataProcessor.js'].functionData[20]++; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[286]++; - return '<' + tag + attributes.replace(protectAttributeRegex, function(fullAttr, attrName) { _$jscoverage['/editor/htmlDataProcessor.js'].functionData[21]++; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[289]++; - if (visit372_289_1(attributes.indexOf('_keSaved_' + attrName) === -1)) { - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[290]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[293]++; + return '<' + tag + attributes.replace(protectAttributeRegex, function(fullAttr, attrName) { + _$jscoverage['/editor/htmlDataProcessor.js'].functionData[22]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[296]++; + if (visit383_296_1(attributes.indexOf('_keSaved_' + attrName) === -1)) { + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[297]++; return ' _keSaved_' + fullAttr + ' ' + fullAttr; } - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[292]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[299]++; return fullAttr; }) + '>'; }); } - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[297]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[304]++; var protectedSourceMarker = '{ke_protected}'; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[299]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[306]++; var protectElementsRegex = /(?:]*>[\s\S]*<\/textarea>)|(?:]*>[\s\S]*<\/style>)|(?:]*>[\s\S]*<\/script>)|(?:<(:?link|meta|base)[^>]*>)/gi, encodedElementsRegex = /([^<]*)<\/ke:encoded>/gi; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[302]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[309]++; var protectElementNamesRegex = /(<\/?)((?:object|embed|param|html|body|head|title|noscript)[^>]*>)/gi, unprotectElementNamesRegex = /(<\/?)ke:((?:object|embed|param|html|body|head|title|noscript)[^>]*>)/gi; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[305]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[312]++; var protectSelfClosingRegex = /]*?)\/?>(?!\s*<\/ke:\1)/gi; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[307]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[314]++; function protectSelfClosingElements(html) { - _$jscoverage['/editor/htmlDataProcessor.js'].functionData[22]++; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[308]++; + _$jscoverage['/editor/htmlDataProcessor.js'].functionData[23]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[315]++; return html.replace(protectSelfClosingRegex, ''); } - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[311]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[318]++; function protectElements(html) { - _$jscoverage['/editor/htmlDataProcessor.js'].functionData[23]++; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[312]++; + _$jscoverage['/editor/htmlDataProcessor.js'].functionData[24]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[319]++; return html.replace(protectElementsRegex, function(match) { - _$jscoverage['/editor/htmlDataProcessor.js'].functionData[24]++; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[313]++; + _$jscoverage['/editor/htmlDataProcessor.js'].functionData[25]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[320]++; return '' + encodeURIComponent(match) + ''; }); } - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[317]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[324]++; function unprotectElements(html) { - _$jscoverage['/editor/htmlDataProcessor.js'].functionData[25]++; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[318]++; + _$jscoverage['/editor/htmlDataProcessor.js'].functionData[26]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[325]++; return html.replace(encodedElementsRegex, function(match, encoded) { - _$jscoverage['/editor/htmlDataProcessor.js'].functionData[26]++; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[319]++; - return S.urlDecode(encoded); + _$jscoverage['/editor/htmlDataProcessor.js'].functionData[27]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[326]++; + return util.urlDecode(encoded); }); } - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[323]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[330]++; function protectElementsNames(html) { - _$jscoverage['/editor/htmlDataProcessor.js'].functionData[27]++; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[324]++; + _$jscoverage['/editor/htmlDataProcessor.js'].functionData[28]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[331]++; return html.replace(protectElementNamesRegex, '$1ke:$2'); } - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[327]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[334]++; function unprotectElementNames(html) { - _$jscoverage['/editor/htmlDataProcessor.js'].functionData[28]++; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[328]++; + _$jscoverage['/editor/htmlDataProcessor.js'].functionData[29]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[335]++; return html.replace(unprotectElementNamesRegex, '$1$2'); } - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[331]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[338]++; editor.htmlDataProcessor = { dataFilter: dataFilter, htmlFilter: htmlFilter, toHtml: function(html) { - _$jscoverage['/editor/htmlDataProcessor.js'].functionData[29]++; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[337]++; - if (visit373_337_1(UA.webkit)) { - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[339]++; + _$jscoverage['/editor/htmlDataProcessor.js'].functionData[30]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[344]++; + if (visit384_344_1(UA.webkit)) { + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[346]++; html = html.replace(/\u200b/g, ''); } - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[345]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[352]++; var writer = new HtmlParser.BeautifyWriter(), n = new HtmlParser.Parser(html).parse(); - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[347]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[354]++; n.writeHtml(writer, htmlFilter); - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[348]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[355]++; html = writer.getHtml(); - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[349]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[356]++; return html; }, toDataFormat: function(html, _dataFilter) { - _$jscoverage['/editor/htmlDataProcessor.js'].functionData[30]++; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[354]++; - _dataFilter = visit374_354_1(_dataFilter || dataFilter); + _$jscoverage['/editor/htmlDataProcessor.js'].functionData[31]++; _$jscoverage['/editor/htmlDataProcessor.js'].lineData[361]++; + _dataFilter = visit385_361_1(_dataFilter || dataFilter); + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[368]++; html = protectElements(html); - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[363]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[370]++; html = protectAttributes(html); - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[367]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[374]++; html = protectElementsNames(html); - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[371]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[378]++; html = protectSelfClosingElements(html); - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[376]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[383]++; var div = new Node('
'); - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[378]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[385]++; div.html('a' + html); - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[379]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[386]++; html = div.html().substr(1); - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[382]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[389]++; html = unprotectElementNames(html); - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[384]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[391]++; html = unprotectElements(html); - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[389]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[396]++; var writer = new HtmlParser.BasicWriter(), n = new HtmlParser.Parser(html).parse(); - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[392]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[399]++; n.writeHtml(writer, _dataFilter); - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[394]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[401]++; html = writer.getHtml(); - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[396]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[403]++; return html; }, toServer: function(html) { - _$jscoverage['/editor/htmlDataProcessor.js'].functionData[31]++; - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[402]++; + _$jscoverage['/editor/htmlDataProcessor.js'].functionData[32]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[409]++; var writer = new HtmlParser.MinifyWriter(), n = new HtmlParser.Parser(html).parse(); - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[404]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[411]++; n.writeHtml(writer, htmlFilter); - _$jscoverage['/editor/htmlDataProcessor.js'].lineData[405]++; + _$jscoverage['/editor/htmlDataProcessor.js'].lineData[412]++; return writer.getHtml(); }}; }}; diff --git a/src/editor/coverage/src/editor/plugin-meta.js b/src/editor/coverage/src/editor/plugin-meta.js index 1071c56d23..a1f99e6db4 100644 --- a/src/editor/coverage/src/editor/plugin-meta.js +++ b/src/editor/coverage/src/editor/plugin-meta.js @@ -424,7 +424,7 @@ KISSY.add(function() { _$jscoverage['/editor/plugin-meta.js'].lineData[90]++; config({ 'editor/plugin/flash-common/base-class': { - requires: ['editor/plugin/flash-common/utils', 'base', 'editor', 'editor/plugin/dialog-loader', 'editor/plugin/bubble']}}); + requires: ['editor/plugin/flash-common/utils', 'base', 'editor', 'editor/plugin/dialog-loader', 'editor/plugin/bubble', 'editor/plugin/contextmenu']}}); _$jscoverage['/editor/plugin-meta.js'].lineData[94]++; config({ 'editor/plugin/flash-common/utils': { @@ -484,7 +484,7 @@ KISSY.add(function() { _$jscoverage['/editor/plugin-meta.js'].lineData[150]++; config({ 'editor/plugin/image': { - requires: ['editor/plugin/button', 'editor', 'editor/plugin/bubble', 'editor/plugin/dialog-loader']}}); + requires: ['editor/plugin/button', 'editor', 'editor/plugin/bubble', 'editor/plugin/dialog-loader', 'editor/plugin/contextmenu']}}); _$jscoverage['/editor/plugin-meta.js'].lineData[154]++; config({ 'editor/plugin/image/dialog': { @@ -680,7 +680,7 @@ KISSY.add(function() { _$jscoverage['/editor/plugin-meta.js'].lineData[346]++; config({ 'editor/plugin/video/dialog': { - requires: ['editor', 'editor/plugin/flash/dialog', 'editor/plugin/menubutton']}}); + requires: ['editor', 'io', 'editor/plugin/flash/dialog', 'editor/plugin/menubutton']}}); _$jscoverage['/editor/plugin-meta.js'].lineData[350]++; config({ 'editor/plugin/word-filter': { diff --git a/src/editor/coverage/src/editor/range.js b/src/editor/coverage/src/editor/range.js index 84ba8d7540..dd54bd1a89 100644 --- a/src/editor/coverage/src/editor/range.js +++ b/src/editor/coverage/src/editor/range.js @@ -1351,1007 +1351,1007 @@ if (! _$jscoverage['/editor/range.js'].branchData) { _$jscoverage['/editor/range.js'].branchData['1770'][1] = new BranchData(); } _$jscoverage['/editor/range.js'].branchData['1770'][1].init(764, 4, 'last'); -function visit625_1770_1(result) { +function visit636_1770_1(result) { _$jscoverage['/editor/range.js'].branchData['1770'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1760'][1].init(232, 50, 'self.checkStartOfBlock() && self.checkEndOfBlock()'); -function visit624_1760_1(result) { +function visit635_1760_1(result) { _$jscoverage['/editor/range.js'].branchData['1760'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1756'][2].init(132, 32, 'tmpDtd && tmpDtd[elementName]'); -function visit623_1756_2(result) { +function visit634_1756_2(result) { _$jscoverage['/editor/range.js'].branchData['1756'][2].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1756'][1].init(89, 77, '(tmpDtd = dtd[current.nodeName()]) && !(tmpDtd && tmpDtd[elementName])'); -function visit622_1756_1(result) { +function visit633_1756_1(result) { _$jscoverage['/editor/range.js'].branchData['1756'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1754'][1].init(255, 7, 'isBlock'); -function visit621_1754_1(result) { +function visit632_1754_1(result) { _$jscoverage['/editor/range.js'].branchData['1754'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1737'][1].init(115, 43, 'domNode.nodeType === Dom.NodeType.TEXT_NODE'); -function visit620_1737_1(result) { +function visit631_1737_1(result) { _$jscoverage['/editor/range.js'].branchData['1737'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1717'][2].init(482, 44, 'el[0].nodeType === Dom.NodeType.ELEMENT_NODE'); -function visit619_1717_2(result) { +function visit630_1717_2(result) { _$jscoverage['/editor/range.js'].branchData['1717'][2].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1717'][1].init(482, 66, 'el[0].nodeType === Dom.NodeType.ELEMENT_NODE && el._4eIsEditable()'); -function visit618_1717_1(result) { +function visit629_1717_1(result) { _$jscoverage['/editor/range.js'].branchData['1717'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1708'][1].init(85, 41, 'el[0].nodeType === Dom.NodeType.TEXT_NODE'); -function visit617_1708_1(result) { +function visit628_1708_1(result) { _$jscoverage['/editor/range.js'].branchData['1708'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1697'][1].init(278, 19, '!childOnly && !next'); -function visit616_1697_1(result) { +function visit627_1697_1(result) { _$jscoverage['/editor/range.js'].branchData['1697'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1692'][2].init(48, 46, 'node[0].nodeType === Dom.NodeType.ELEMENT_NODE'); -function visit615_1692_2(result) { +function visit626_1692_2(result) { _$jscoverage['/editor/range.js'].branchData['1692'][2].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1692'][1].init(48, 90, 'node[0].nodeType === Dom.NodeType.ELEMENT_NODE && node._4eIsEditable()'); -function visit614_1692_1(result) { +function visit625_1692_1(result) { _$jscoverage['/editor/range.js'].branchData['1692'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1661'][1].init(46, 15, '!self.collapsed'); -function visit613_1661_1(result) { +function visit624_1661_1(result) { _$jscoverage['/editor/range.js'].branchData['1661'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1639'][1].init(296, 57, '!UA.ie && !S.inArray(startBlock.nodeName(), [\'ul\', \'ol\'])'); -function visit612_1639_1(result) { +function visit623_1639_1(result) { _$jscoverage['/editor/range.js'].branchData['1639'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1629'][1].init(265, 14, 'isStartOfBlock'); -function visit611_1629_1(result) { +function visit622_1629_1(result) { _$jscoverage['/editor/range.js'].branchData['1629'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1624'][1].init(21, 12, 'isEndOfBlock'); -function visit610_1624_1(result) { +function visit621_1624_1(result) { _$jscoverage['/editor/range.js'].branchData['1624'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1623'][2].init(1257, 29, 'startBlock[0] === endBlock[0]'); -function visit609_1623_2(result) { +function visit620_1623_2(result) { _$jscoverage['/editor/range.js'].branchData['1623'][2].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1623'][1].init(1243, 43, 'startBlock && startBlock[0] === endBlock[0]'); -function visit608_1623_1(result) { +function visit619_1623_1(result) { _$jscoverage['/editor/range.js'].branchData['1623'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1618'][1].init(91, 34, 'endBlock && self.checkEndOfBlock()'); -function visit607_1618_1(result) { +function visit618_1618_1(result) { _$jscoverage['/editor/range.js'].branchData['1618'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1617'][1].init(1039, 38, 'startBlock && self.checkStartOfBlock()'); -function visit606_1617_1(result) { +function visit617_1617_1(result) { _$jscoverage['/editor/range.js'].branchData['1617'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1611'][1].init(212, 9, '!endBlock'); -function visit605_1611_1(result) { +function visit616_1611_1(result) { _$jscoverage['/editor/range.js'].branchData['1611'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1606'][1].init(21, 11, '!startBlock'); -function visit604_1606_1(result) { +function visit615_1606_1(result) { _$jscoverage['/editor/range.js'].branchData['1606'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1605'][1].init(626, 17, 'blockTag !== \'br\''); -function visit603_1605_1(result) { +function visit614_1605_1(result) { _$jscoverage['/editor/range.js'].branchData['1605'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1600'][1].init(482, 38, '!startBlockLimit.equals(endBlockLimit)'); -function visit602_1600_1(result) { +function visit613_1600_1(result) { _$jscoverage['/editor/range.js'].branchData['1600'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1576'][1].init(354, 6, '!UA.ie'); -function visit601_1576_1(result) { +function visit612_1576_1(result) { _$jscoverage['/editor/range.js'].branchData['1576'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1554'][1].init(2355, 55, 'startNode._4ePosition(endNode) & KEP.POSITION_FOLLOWING'); -function visit600_1554_1(result) { +function visit611_1554_1(result) { _$jscoverage['/editor/range.js'].branchData['1554'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1539'][1].init(305, 16, 'childCount === 0'); -function visit599_1539_1(result) { +function visit610_1539_1(result) { _$jscoverage['/editor/range.js'].branchData['1539'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1535'][1].init(80, 22, 'childCount > endOffset'); -function visit598_1535_1(result) { +function visit609_1535_1(result) { _$jscoverage['/editor/range.js'].branchData['1535'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1533'][1].init(1364, 49, 'endNode[0].nodeType === Dom.NodeType.ELEMENT_NODE'); -function visit597_1533_1(result) { +function visit608_1533_1(result) { _$jscoverage['/editor/range.js'].branchData['1533'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1529'][1].init(599, 42, 'startNode._4eNextSourceNode() || startNode'); -function visit596_1529_1(result) { +function visit607_1529_1(result) { _$jscoverage['/editor/range.js'].branchData['1529'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1513'][1].init(211, 16, 'childCount === 0'); -function visit595_1513_1(result) { +function visit606_1513_1(result) { _$jscoverage['/editor/range.js'].branchData['1513'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1511'][1].init(82, 24, 'childCount > startOffset'); -function visit594_1511_1(result) { +function visit605_1511_1(result) { _$jscoverage['/editor/range.js'].branchData['1511'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1509'][1].init(261, 51, 'startNode[0].nodeType === Dom.NodeType.ELEMENT_NODE'); -function visit593_1509_1(result) { +function visit604_1509_1(result) { _$jscoverage['/editor/range.js'].branchData['1509'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1493'][1].init(7, 23, 'checkType === KER.START'); -function visit592_1493_1(result) { +function visit603_1493_1(result) { _$jscoverage['/editor/range.js'].branchData['1493'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1486'][1].init(219, 23, 'checkType === KER.START'); -function visit591_1486_1(result) { +function visit602_1486_1(result) { _$jscoverage['/editor/range.js'].branchData['1486'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1484'][1].init(12, 23, 'checkType === KER.START'); -function visit590_1484_1(result) { +function visit601_1484_1(result) { _$jscoverage['/editor/range.js'].branchData['1484'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1468'][1].init(1113, 29, 'path.block || path.blockLimit'); -function visit589_1468_1(result) { +function visit600_1468_1(result) { _$jscoverage['/editor/range.js'].branchData['1468'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1451'][1].init(109, 16, 'textAfter.length'); -function visit588_1451_1(result) { +function visit599_1451_1(result) { _$jscoverage['/editor/range.js'].branchData['1451'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1449'][1].init(265, 51, 'endContainer[0].nodeType === Dom.NodeType.TEXT_NODE'); -function visit587_1449_1(result) { +function visit598_1449_1(result) { _$jscoverage['/editor/range.js'].branchData['1449'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1431'][1].init(1171, 29, 'path.block || path.blockLimit'); -function visit586_1431_1(result) { +function visit597_1431_1(result) { _$jscoverage['/editor/range.js'].branchData['1431'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1414'][1].init(117, 17, 'textBefore.length'); -function visit585_1414_1(result) { +function visit596_1414_1(result) { _$jscoverage['/editor/range.js'].branchData['1414'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1412'][2].init(309, 53, 'startContainer[0].nodeType === Dom.NodeType.TEXT_NODE'); -function visit584_1412_2(result) { +function visit595_1412_2(result) { _$jscoverage['/editor/range.js'].branchData['1412'][2].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1412'][1].init(294, 68, 'startOffset && startContainer[0].nodeType === Dom.NodeType.TEXT_NODE'); -function visit583_1412_1(result) { +function visit594_1412_1(result) { _$jscoverage['/editor/range.js'].branchData['1412'][1].ranCondition(result); return result; -}_$jscoverage['/editor/range.js'].branchData['1394'][1].init(4385, 6, 'tailBr'); -function visit582_1394_1(result) { +}_$jscoverage['/editor/range.js'].branchData['1394'][1].init(4381, 6, 'tailBr'); +function visit593_1394_1(result) { _$jscoverage['/editor/range.js'].branchData['1394'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1389'][3].init(129, 50, 'enlargeable && blockBoundary.contains(enlargeable)'); -function visit581_1389_3(result) { +function visit592_1389_3(result) { _$jscoverage['/editor/range.js'].branchData['1389'][3].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1389'][2].init(87, 38, '!enlargeable && self.checkEndOfBlock()'); -function visit580_1389_2(result) { +function visit591_1389_2(result) { _$jscoverage['/editor/range.js'].branchData['1389'][2].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1389'][1].init(87, 92, '!enlargeable && self.checkEndOfBlock() || enlargeable && blockBoundary.contains(enlargeable)'); -function visit579_1389_1(result) { +function visit590_1389_1(result) { _$jscoverage['/editor/range.js'].branchData['1389'][1].ranCondition(result); return result; -}_$jscoverage['/editor/range.js'].branchData['1383'][1].init(3695, 21, 'blockBoundary || body'); -function visit578_1383_1(result) { +}_$jscoverage['/editor/range.js'].branchData['1383'][1].init(3691, 21, 'blockBoundary || body'); +function visit589_1383_1(result) { _$jscoverage['/editor/range.js'].branchData['1383'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1375'][1].init(3269, 39, 'unit === KER.ENLARGE_LIST_ITEM_CONTENTS'); -function visit577_1375_1(result) { +function visit588_1375_1(result) { _$jscoverage['/editor/range.js'].branchData['1375'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1364'][3].init(587, 50, 'enlargeable && blockBoundary.contains(enlargeable)'); -function visit576_1364_3(result) { +function visit587_1364_3(result) { _$jscoverage['/editor/range.js'].branchData['1364'][3].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1364'][2].init(543, 40, '!enlargeable && self.checkStartOfBlock()'); -function visit575_1364_2(result) { +function visit586_1364_2(result) { _$jscoverage['/editor/range.js'].branchData['1364'][2].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1364'][1].init(543, 94, '!enlargeable && self.checkStartOfBlock() || enlargeable && blockBoundary.contains(enlargeable)'); -function visit574_1364_1(result) { +function visit585_1364_1(result) { _$jscoverage['/editor/range.js'].branchData['1364'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1356'][2].init(88, 33, 'blockBoundary.nodeName() !== \'br\''); -function visit573_1356_2(result) { +function visit584_1356_2(result) { _$jscoverage['/editor/range.js'].branchData['1356'][2].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1356'][1].init(-1, 552, 'blockBoundary.nodeName() !== \'br\' && (!enlargeable && self.checkStartOfBlock() || enlargeable && blockBoundary.contains(enlargeable))'); -function visit572_1356_1(result) { +function visit583_1356_1(result) { _$jscoverage['/editor/range.js'].branchData['1356'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1350'][1].init(1904, 21, 'blockBoundary || body'); -function visit571_1350_1(result) { +function visit582_1350_1(result) { _$jscoverage['/editor/range.js'].branchData['1350'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1339'][2].init(114, 27, 'Dom.nodeName(node) === \'br\''); -function visit570_1339_2(result) { +function visit581_1339_2(result) { _$jscoverage['/editor/range.js'].branchData['1339'][2].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1339'][1].init(103, 38, '!retVal && Dom.nodeName(node) === \'br\''); -function visit569_1339_1(result) { +function visit580_1339_1(result) { _$jscoverage['/editor/range.js'].branchData['1339'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1331'][1].init(102, 7, '!retVal'); -function visit568_1331_1(result) { +function visit579_1331_1(result) { _$jscoverage['/editor/range.js'].branchData['1331'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1326'][1].init(55, 39, 'unit === KER.ENLARGE_LIST_ITEM_CONTENTS'); -function visit567_1326_1(result) { +function visit578_1326_1(result) { _$jscoverage['/editor/range.js'].branchData['1326'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1304'][1].init(418, 18, 'stop[0] && stop[1]'); -function visit566_1304_1(result) { +function visit577_1304_1(result) { _$jscoverage['/editor/range.js'].branchData['1304'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1294'][1].init(55, 14, 'self.collapsed'); -function visit565_1294_1(result) { +function visit576_1294_1(result) { _$jscoverage['/editor/range.js'].branchData['1294'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1275'][1].init(961, 47, 'commonReached || enlarge.equals(commonAncestor)'); -function visit564_1275_1(result) { +function visit575_1275_1(result) { _$jscoverage['/editor/range.js'].branchData['1275'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1271'][1].init(849, 29, 'enlarge.nodeName() === \'body\''); -function visit563_1271_1(result) { +function visit574_1271_1(result) { _$jscoverage['/editor/range.js'].branchData['1271'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1258'][1].init(67, 14, '!commonReached'); -function visit562_1258_1(result) { +function visit573_1258_1(result) { _$jscoverage['/editor/range.js'].branchData['1258'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1256'][1].init(385, 7, 'sibling'); -function visit561_1256_1(result) { +function visit572_1256_1(result) { _$jscoverage['/editor/range.js'].branchData['1256'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1248'][1].init(29, 44, 'isWhitespace(sibling) || isBookmark(sibling)'); -function visit560_1248_1(result) { +function visit571_1248_1(result) { _$jscoverage['/editor/range.js'].branchData['1248'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1240'][1].init(64, 57, 'container[0].childNodes[offset + (left ? -1 : 1)] || null'); -function visit559_1240_1(result) { +function visit570_1240_1(result) { _$jscoverage['/editor/range.js'].branchData['1240'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1229'][1].init(29, 38, 'offset < container[0].nodeValue.length'); -function visit558_1229_1(result) { +function visit569_1229_1(result) { _$jscoverage['/editor/range.js'].branchData['1229'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1225'][1].init(68, 6, 'offset'); -function visit557_1225_1(result) { +function visit568_1225_1(result) { _$jscoverage['/editor/range.js'].branchData['1225'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1223'][1].init(25, 4, 'left'); -function visit556_1223_1(result) { +function visit567_1223_1(result) { _$jscoverage['/editor/range.js'].branchData['1223'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1222'][1].init(386, 48, 'container[0].nodeType === Dom.NodeType.TEXT_NODE'); -function visit555_1222_1(result) { +function visit566_1222_1(result) { _$jscoverage['/editor/range.js'].branchData['1222'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1200'][2].init(642, 47, 'ancestor[0].nodeType === Dom.NodeType.TEXT_NODE'); -function visit554_1200_2(result) { +function visit565_1200_2(result) { _$jscoverage['/editor/range.js'].branchData['1200'][2].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1200'][1].init(624, 65, 'ignoreTextNode && ancestor[0].nodeType === Dom.NodeType.TEXT_NODE'); -function visit553_1200_1(result) { +function visit564_1200_1(result) { _$jscoverage['/editor/range.js'].branchData['1200'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1191'][1].init(70, 39, 'self.startOffset === self.endOffset - 1'); -function visit552_1191_1(result) { +function visit563_1191_1(result) { _$jscoverage['/editor/range.js'].branchData['1191'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1190'][2].init(58, 47, 'start[0].nodeType === Dom.NodeType.ELEMENT_NODE'); -function visit551_1190_2(result) { +function visit562_1190_2(result) { _$jscoverage['/editor/range.js'].branchData['1190'][2].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1190'][1].init(34, 110, 'start[0].nodeType === Dom.NodeType.ELEMENT_NODE && self.startOffset === self.endOffset - 1'); -function visit550_1190_1(result) { +function visit561_1190_1(result) { _$jscoverage['/editor/range.js'].branchData['1190'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1189'][1].init(21, 145, 'includeSelf && start[0].nodeType === Dom.NodeType.ELEMENT_NODE && self.startOffset === self.endOffset - 1'); -function visit549_1189_1(result) { +function visit560_1189_1(result) { _$jscoverage['/editor/range.js'].branchData['1189'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1188'][1].init(159, 19, 'start[0] === end[0]'); -function visit548_1188_1(result) { +function visit559_1188_1(result) { _$jscoverage['/editor/range.js'].branchData['1188'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1168'][1].init(767, 21, 'endNode && endNode[0]'); -function visit547_1168_1(result) { +function visit558_1168_1(result) { _$jscoverage['/editor/range.js'].branchData['1168'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1147'][1].init(554, 12, 'endContainer'); -function visit546_1147_1(result) { +function visit557_1147_1(result) { _$jscoverage['/editor/range.js'].branchData['1147'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1140'][1].init(169, 70, 'bookmark.end && doc._4eGetByAddress(bookmark.end, bookmark.normalized)'); -function visit545_1140_1(result) { +function visit556_1140_1(result) { _$jscoverage['/editor/range.js'].branchData['1140'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1136'][1].init(86, 12, 'bookmark.is2'); -function visit544_1136_1(result) { +function visit555_1136_1(result) { _$jscoverage['/editor/range.js'].branchData['1136'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1122'][1].init(423, 42, 'startContainer[0] === self.endContainer[0]'); -function visit543_1122_1(result) { +function visit554_1122_1(result) { _$jscoverage['/editor/range.js'].branchData['1122'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1118'][1].init(116, 49, 'startContainer[0].childNodes[startOffset] || null'); -function visit542_1118_1(result) { +function visit553_1118_1(result) { _$jscoverage['/editor/range.js'].branchData['1118'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1092'][1].init(405, 45, 'endOffset >= endContainer[0].nodeValue.length'); -function visit541_1092_1(result) { +function visit552_1092_1(result) { _$jscoverage['/editor/range.js'].branchData['1092'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1086'][1].init(128, 10, '!endOffset'); -function visit540_1086_1(result) { +function visit551_1086_1(result) { _$jscoverage['/editor/range.js'].branchData['1086'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1083'][2].init(2070, 51, 'endContainer[0].nodeType === Dom.NodeType.TEXT_NODE'); -function visit539_1083_2(result) { +function visit550_1083_2(result) { _$jscoverage['/editor/range.js'].branchData['1083'][2].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1083'][1].init(46, 70, 'endContainer[0] && endContainer[0].nodeType === Dom.NodeType.TEXT_NODE'); -function visit538_1083_1(result) { +function visit549_1083_1(result) { _$jscoverage['/editor/range.js'].branchData['1083'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1082'][2].init(2005, 22, 'ignoreEnd || collapsed'); -function visit537_1082_2(result) { +function visit548_1082_2(result) { _$jscoverage['/editor/range.js'].branchData['1082'][2].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1082'][1].init(2002, 117, '!(ignoreEnd || collapsed) && endContainer[0] && endContainer[0].nodeType === Dom.NodeType.TEXT_NODE'); -function visit536_1082_1(result) { +function visit547_1082_1(result) { _$jscoverage['/editor/range.js'].branchData['1082'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1073'][1].init(1441, 9, 'collapsed'); -function visit535_1073_1(result) { +function visit546_1073_1(result) { _$jscoverage['/editor/range.js'].branchData['1073'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1066'][1].init(472, 45, 'Dom.equals(startContainer, self.endContainer)'); -function visit534_1066_1(result) { +function visit545_1066_1(result) { _$jscoverage['/editor/range.js'].branchData['1066'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1064'][1].init(304, 50, 'Dom.equals(self.startContainer, self.endContainer)'); -function visit533_1064_1(result) { +function visit544_1064_1(result) { _$jscoverage['/editor/range.js'].branchData['1064'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1051'][1].init(415, 49, 'startOffset >= startContainer[0].nodeValue.length'); -function visit532_1051_1(result) { +function visit543_1051_1(result) { _$jscoverage['/editor/range.js'].branchData['1051'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1045'][1].init(128, 12, '!startOffset'); -function visit531_1045_1(result) { +function visit542_1045_1(result) { _$jscoverage['/editor/range.js'].branchData['1045'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1042'][1].init(36, 53, 'startContainer[0].nodeType === Dom.NodeType.TEXT_NODE'); -function visit530_1042_1(result) { +function visit541_1042_1(result) { _$jscoverage['/editor/range.js'].branchData['1042'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1041'][1].init(46, 90, 'startContainer[0] && startContainer[0].nodeType === Dom.NodeType.TEXT_NODE'); -function visit529_1041_1(result) { +function visit540_1041_1(result) { _$jscoverage['/editor/range.js'].branchData['1041'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1040'][2].init(195, 25, '!ignoreStart || collapsed'); -function visit528_1040_2(result) { +function visit539_1040_2(result) { _$jscoverage['/editor/range.js'].branchData['1040'][2].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1040'][1].init(195, 137, '(!ignoreStart || collapsed) && startContainer[0] && startContainer[0].nodeType === Dom.NodeType.TEXT_NODE'); -function visit527_1040_1(result) { +function visit538_1040_1(result) { _$jscoverage['/editor/range.js'].branchData['1040'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['1003'][1].init(1218, 7, 'endNode'); -function visit526_1003_1(result) { +function visit537_1003_1(result) { _$jscoverage['/editor/range.js'].branchData['1003'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['989'][1].init(107, 12, 'serializable'); -function visit525_989_1(result) { +function visit536_989_1(result) { _$jscoverage['/editor/range.js'].branchData['989'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['985'][1].init(711, 10, '!collapsed'); -function visit524_985_1(result) { +function visit535_985_1(result) { _$jscoverage['/editor/range.js'].branchData['985'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['979'][1].init(507, 12, 'serializable'); -function visit523_979_1(result) { +function visit534_979_1(result) { _$jscoverage['/editor/range.js'].branchData['979'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['944'][1].init(71, 47, 'previous[0].nodeType === Dom.NodeType.TEXT_NODE'); -function visit522_944_1(result) { +function visit533_944_1(result) { _$jscoverage['/editor/range.js'].branchData['944'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['943'][1].init(80, 119, '(previous = endContainer.prev(undefined, 1)) && previous[0].nodeType === Dom.NodeType.TEXT_NODE'); -function visit521_943_1(result) { +function visit532_943_1(result) { _$jscoverage['/editor/range.js'].branchData['943'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['942'][2].init(844, 51, 'endContainer[0].nodeType === Dom.NodeType.TEXT_NODE'); -function visit520_942_2(result) { +function visit531_942_2(result) { _$jscoverage['/editor/range.js'].branchData['942'][2].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['942'][1].init(844, 200, 'endContainer[0].nodeType === Dom.NodeType.TEXT_NODE && (previous = endContainer.prev(undefined, 1)) && previous[0].nodeType === Dom.NodeType.TEXT_NODE'); -function visit519_942_1(result) { +function visit530_942_1(result) { _$jscoverage['/editor/range.js'].branchData['942'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['935'][1].init(44, 60, 'child[0].previousSibling.nodeType === Dom.NodeType.TEXT_NODE'); -function visit518_935_1(result) { +function visit529_935_1(result) { _$jscoverage['/editor/range.js'].branchData['935'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['934'][4].init(326, 13, 'endOffset > 0'); -function visit517_934_4(result) { +function visit528_934_4(result) { _$jscoverage['/editor/range.js'].branchData['934'][4].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['934'][3].init(47, 105, 'endOffset > 0 && child[0].previousSibling.nodeType === Dom.NodeType.TEXT_NODE'); -function visit516_934_3(result) { +function visit527_934_3(result) { _$jscoverage['/editor/range.js'].branchData['934'][3].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['934'][2].init(277, 44, 'child[0].nodeType === Dom.NodeType.TEXT_NODE'); -function visit515_934_2(result) { +function visit526_934_2(result) { _$jscoverage['/editor/range.js'].branchData['934'][2].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['934'][1].init(39, 153, 'child[0].nodeType === Dom.NodeType.TEXT_NODE && endOffset > 0 && child[0].previousSibling.nodeType === Dom.NodeType.TEXT_NODE'); -function visit514_934_1(result) { +function visit525_934_1(result) { _$jscoverage['/editor/range.js'].branchData['934'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['933'][2].init(234, 193, 'child[0] && child[0].nodeType === Dom.NodeType.TEXT_NODE && endOffset > 0 && child[0].previousSibling.nodeType === Dom.NodeType.TEXT_NODE'); -function visit513_933_2(result) { +function visit524_933_2(result) { _$jscoverage['/editor/range.js'].branchData['933'][2].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['933'][1].init(225, 202, 'child && child[0] && child[0].nodeType === Dom.NodeType.TEXT_NODE && endOffset > 0 && child[0].previousSibling.nodeType === Dom.NodeType.TEXT_NODE'); -function visit512_933_1(result) { +function visit523_933_1(result) { _$jscoverage['/editor/range.js'].branchData['933'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['928'][1].init(145, 54, 'endContainer[0].nodeType === Dom.NodeType.ELEMENT_NODE'); -function visit511_928_1(result) { +function visit522_928_1(result) { _$jscoverage['/editor/range.js'].branchData['928'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['925'][1].init(1185, 15, '!self.collapsed'); -function visit510_925_1(result) { +function visit521_925_1(result) { _$jscoverage['/editor/range.js'].branchData['925'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['919'][1].init(69, 47, 'previous[0].nodeType === Dom.NodeType.TEXT_NODE'); -function visit509_919_1(result) { +function visit520_919_1(result) { _$jscoverage['/editor/range.js'].branchData['919'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['918'][1].init(78, 117, '(previous = startContainer.prev(undefined, 1)) && previous[0].nodeType === Dom.NodeType.TEXT_NODE'); -function visit508_918_1(result) { +function visit519_918_1(result) { _$jscoverage['/editor/range.js'].branchData['918'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['917'][2].init(775, 53, 'startContainer[0].nodeType === Dom.NodeType.TEXT_NODE'); -function visit507_917_2(result) { +function visit518_917_2(result) { _$jscoverage['/editor/range.js'].branchData['917'][2].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['917'][1].init(775, 196, 'startContainer[0].nodeType === Dom.NodeType.TEXT_NODE && (previous = startContainer.prev(undefined, 1)) && previous[0].nodeType === Dom.NodeType.TEXT_NODE'); -function visit506_917_1(result) { +function visit517_917_1(result) { _$jscoverage['/editor/range.js'].branchData['917'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['909'][3].init(18, 60, 'child[0].previousSibling.nodeType === Dom.NodeType.TEXT_NODE'); -function visit505_909_3(result) { +function visit516_909_3(result) { _$jscoverage['/editor/range.js'].branchData['909'][3].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['909'][2].init(310, 15, 'startOffset > 0'); -function visit504_909_2(result) { +function visit515_909_2(result) { _$jscoverage['/editor/range.js'].branchData['909'][2].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['909'][1].init(71, 79, 'startOffset > 0 && child[0].previousSibling.nodeType === Dom.NodeType.TEXT_NODE'); -function visit503_909_1(result) { +function visit514_909_1(result) { _$jscoverage['/editor/range.js'].branchData['909'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['908'][4].init(234, 44, 'child[0].nodeType === Dom.NodeType.TEXT_NODE'); -function visit502_908_4(result) { +function visit513_908_4(result) { _$jscoverage['/editor/range.js'].branchData['908'][4].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['908'][3].init(234, 151, 'child[0].nodeType === Dom.NodeType.TEXT_NODE && startOffset > 0 && child[0].previousSibling.nodeType === Dom.NodeType.TEXT_NODE'); -function visit501_908_3(result) { +function visit512_908_3(result) { _$jscoverage['/editor/range.js'].branchData['908'][3].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['908'][2].init(222, 163, 'child[0] && child[0].nodeType === Dom.NodeType.TEXT_NODE && startOffset > 0 && child[0].previousSibling.nodeType === Dom.NodeType.TEXT_NODE'); -function visit500_908_2(result) { +function visit511_908_2(result) { _$jscoverage['/editor/range.js'].branchData['908'][2].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['908'][1].init(213, 172, 'child && child[0] && child[0].nodeType === Dom.NodeType.TEXT_NODE && startOffset > 0 && child[0].previousSibling.nodeType === Dom.NodeType.TEXT_NODE'); -function visit499_908_1(result) { +function visit510_908_1(result) { _$jscoverage['/editor/range.js'].branchData['908'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['903'][1].init(133, 56, 'startContainer[0].nodeType === Dom.NodeType.ELEMENT_NODE'); -function visit498_903_1(result) { +function visit509_903_1(result) { _$jscoverage['/editor/range.js'].branchData['903'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['900'][1].init(621, 10, 'normalized'); -function visit497_900_1(result) { +function visit508_900_1(result) { _$jscoverage['/editor/range.js'].branchData['900'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['893'][1].init(453, 32, '!startContainer || !endContainer'); -function visit496_893_1(result) { +function visit507_893_1(result) { _$jscoverage['/editor/range.js'].branchData['893'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['873'][1].init(3638, 20, 'moveStart || moveEnd'); -function visit495_873_1(result) { +function visit506_873_1(result) { _$jscoverage['/editor/range.js'].branchData['873'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['868'][1].init(164, 7, 'textEnd'); -function visit494_868_1(result) { +function visit505_868_1(result) { _$jscoverage['/editor/range.js'].branchData['868'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['867'][1].init(78, 27, 'mode === KER.SHRINK_ELEMENT'); -function visit493_867_1(result) { +function visit504_867_1(result) { _$jscoverage['/editor/range.js'].branchData['867'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['865'][1].init(3274, 7, 'moveEnd'); -function visit492_865_1(result) { +function visit503_865_1(result) { _$jscoverage['/editor/range.js'].branchData['865'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['860'][1].init(125, 9, 'textStart'); -function visit491_860_1(result) { +function visit502_860_1(result) { _$jscoverage['/editor/range.js'].branchData['860'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['859'][1].init(44, 27, 'mode === KER.SHRINK_ELEMENT'); -function visit490_859_1(result) { +function visit501_859_1(result) { _$jscoverage['/editor/range.js'].branchData['859'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['858'][1].init(2940, 9, 'moveStart'); -function visit489_858_1(result) { +function visit500_858_1(result) { _$jscoverage['/editor/range.js'].branchData['858'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['850'][2].init(556, 43, 'node.nodeType === Dom.NodeType.ELEMENT_NODE'); -function visit488_850_2(result) { +function visit499_850_2(result) { _$jscoverage['/editor/range.js'].branchData['850'][2].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['850'][1].init(542, 57, '!movingOut && node.nodeType === Dom.NodeType.ELEMENT_NODE'); -function visit487_850_1(result) { +function visit498_850_1(result) { _$jscoverage['/editor/range.js'].branchData['850'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['847'][2].init(419, 23, 'node === currentElement'); -function visit486_847_2(result) { +function visit497_847_2(result) { _$jscoverage['/editor/range.js'].branchData['847'][2].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['847'][1].init(406, 36, 'movingOut && node === currentElement'); -function visit485_847_1(result) { +function visit496_847_1(result) { _$jscoverage['/editor/range.js'].branchData['847'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['843'][1].init(58, 40, 'node.nodeType === Dom.NodeType.TEXT_NODE'); -function visit484_843_1(result) { +function visit495_843_1(result) { _$jscoverage['/editor/range.js'].branchData['843'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['842'][2].init(127, 27, 'mode === KER.SHRINK_ELEMENT'); -function visit483_842_2(result) { +function visit494_842_2(result) { _$jscoverage['/editor/range.js'].branchData['842'][2].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['842'][1].init(127, 99, 'mode === KER.SHRINK_ELEMENT && node.nodeType === Dom.NodeType.TEXT_NODE'); -function visit482_842_1(result) { +function visit493_842_1(result) { _$jscoverage['/editor/range.js'].branchData['842'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['836'][2].init(52, 27, 'mode === KER.SHRINK_ELEMENT'); -function visit481_836_2(result) { +function visit492_836_2(result) { _$jscoverage['/editor/range.js'].branchData['836'][2].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['836'][1].init(32, 130, 'node.nodeType === (mode === KER.SHRINK_ELEMENT ? Dom.NodeType.ELEMENT_NODE : Dom.NodeType.TEXT_NODE)'); -function visit480_836_1(result) { +function visit491_836_1(result) { _$jscoverage['/editor/range.js'].branchData['836'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['831'][1].init(1773, 20, 'moveStart || moveEnd'); -function visit479_831_1(result) { +function visit490_831_1(result) { _$jscoverage['/editor/range.js'].branchData['831'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['823'][1].init(135, 45, 'endOffset >= endContainer[0].nodeValue.length'); -function visit478_823_1(result) { +function visit489_823_1(result) { _$jscoverage['/editor/range.js'].branchData['823'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['821'][1].init(25, 10, '!endOffset'); -function visit477_821_1(result) { +function visit488_821_1(result) { _$jscoverage['/editor/range.js'].branchData['821'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['820'][1].init(35, 51, 'endContainer[0].nodeType === Dom.NodeType.TEXT_NODE'); -function visit476_820_1(result) { +function visit487_820_1(result) { _$jscoverage['/editor/range.js'].branchData['820'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['819'][1].init(1243, 87, 'endContainer && endContainer[0].nodeType === Dom.NodeType.TEXT_NODE'); -function visit475_819_1(result) { +function visit486_819_1(result) { _$jscoverage['/editor/range.js'].branchData['819'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['809'][1].init(141, 49, 'startOffset >= startContainer[0].nodeValue.length'); -function visit474_809_1(result) { +function visit485_809_1(result) { _$jscoverage['/editor/range.js'].branchData['809'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['807'][1].init(25, 12, '!startOffset'); -function visit473_807_1(result) { +function visit484_807_1(result) { _$jscoverage['/editor/range.js'].branchData['807'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['806'][1].init(37, 53, 'startContainer[0].nodeType === Dom.NodeType.TEXT_NODE'); -function visit472_806_1(result) { +function visit483_806_1(result) { _$jscoverage['/editor/range.js'].branchData['806'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['805'][1].init(531, 91, 'startContainer && startContainer[0].nodeType === Dom.NodeType.TEXT_NODE'); -function visit471_805_1(result) { +function visit482_805_1(result) { _$jscoverage['/editor/range.js'].branchData['805'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['792'][1].init(24, 23, 'mode || KER.SHRINK_TEXT'); -function visit470_792_1(result) { +function visit481_792_1(result) { _$jscoverage['/editor/range.js'].branchData['792'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['791'][1].init(97, 15, '!self.collapsed'); -function visit469_791_1(result) { +function visit480_791_1(result) { _$jscoverage['/editor/range.js'].branchData['791'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['780'][1].init(858, 24, 'node && node.equals(pre)'); -function visit468_780_1(result) { +function visit479_780_1(result) { _$jscoverage['/editor/range.js'].branchData['780'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['769'][1].init(24, 46, 'isNotWhitespaces(node) && isNotBookmarks(node)'); -function visit467_769_1(result) { +function visit478_769_1(result) { _$jscoverage['/editor/range.js'].branchData['769'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['761'][1].init(87, 66, 'walkerRange.endContainer[0].nodeType !== Dom.NodeType.ELEMENT_NODE'); -function visit466_761_1(result) { +function visit477_761_1(result) { _$jscoverage['/editor/range.js'].branchData['761'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['760'][2].init(188, 68, 'walkerRange.startContainer[0].nodeType !== Dom.NodeType.ELEMENT_NODE'); -function visit465_760_2(result) { +function visit476_760_2(result) { _$jscoverage['/editor/range.js'].branchData['760'][2].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['760'][1].init(188, 154, 'walkerRange.startContainer[0].nodeType !== Dom.NodeType.ELEMENT_NODE || walkerRange.endContainer[0].nodeType !== Dom.NodeType.ELEMENT_NODE'); -function visit464_760_1(result) { +function visit475_760_1(result) { _$jscoverage['/editor/range.js'].branchData['760'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['719'][1].init(46, 7, 'toStart'); -function visit463_719_1(result) { +function visit474_719_1(result) { _$jscoverage['/editor/range.js'].branchData['719'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['674'][1].init(54, 43, 'node[0].nodeType === Dom.NodeType.TEXT_NODE'); -function visit462_674_1(result) { +function visit473_674_1(result) { _$jscoverage['/editor/range.js'].branchData['674'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['643'][1].init(54, 43, 'node[0].nodeType === Dom.NodeType.TEXT_NODE'); -function visit461_643_1(result) { +function visit472_643_1(result) { _$jscoverage['/editor/range.js'].branchData['643'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['622'][1].init(684, 20, '!self.startContainer'); -function visit460_622_1(result) { +function visit471_622_1(result) { _$jscoverage['/editor/range.js'].branchData['622'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['614'][2].init(391, 49, 'endNode[0].nodeType === Dom.NodeType.ELEMENT_NODE'); -function visit459_614_2(result) { +function visit470_614_2(result) { _$jscoverage['/editor/range.js'].branchData['614'][2].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['614'][1].init(391, 80, 'endNode[0].nodeType === Dom.NodeType.ELEMENT_NODE && EMPTY[endNode.nodeName()]'); -function visit458_614_1(result) { +function visit469_614_1(result) { _$jscoverage['/editor/range.js'].branchData['614'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['591'][1].init(701, 18, '!self.endContainer'); -function visit457_591_1(result) { +function visit468_591_1(result) { _$jscoverage['/editor/range.js'].branchData['591'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['583'][2].init(392, 51, 'startNode[0].nodeType === Dom.NodeType.ELEMENT_NODE'); -function visit456_583_2(result) { +function visit467_583_2(result) { _$jscoverage['/editor/range.js'].branchData['583'][2].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['583'][1].init(392, 84, 'startNode[0].nodeType === Dom.NodeType.ELEMENT_NODE && EMPTY[startNode.nodeName()]'); -function visit455_583_1(result) { +function visit466_583_1(result) { _$jscoverage['/editor/range.js'].branchData['583'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['562'][2].init(362, 29, 'endNode.nodeName() === \'span\''); -function visit454_562_2(result) { +function visit465_562_2(result) { _$jscoverage['/editor/range.js'].branchData['562'][2].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['562'][1].init(26, 77, 'endNode.nodeName() === \'span\' && endNode.attr(\'_ke_bookmark\')'); -function visit453_562_1(result) { +function visit464_562_1(result) { _$jscoverage['/editor/range.js'].branchData['562'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['561'][1].init(333, 104, 'endNode && endNode.nodeName() === \'span\' && endNode.attr(\'_ke_bookmark\')'); -function visit452_561_1(result) { +function visit463_561_1(result) { _$jscoverage['/editor/range.js'].branchData['561'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['557'][2].init(172, 31, 'startNode.nodeName() === \'span\''); -function visit451_557_2(result) { +function visit462_557_2(result) { _$jscoverage['/editor/range.js'].branchData['557'][2].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['557'][1].init(28, 81, 'startNode.nodeName() === \'span\' && startNode.attr(\'_ke_bookmark\')'); -function visit450_557_1(result) { +function visit461_557_1(result) { _$jscoverage['/editor/range.js'].branchData['557'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['556'][1].init(141, 110, 'startNode && startNode.nodeName() === \'span\' && startNode.attr(\'_ke_bookmark\')'); -function visit449_556_1(result) { +function visit460_556_1(result) { _$jscoverage['/editor/range.js'].branchData['556'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['513'][1].init(110, 39, 'offset >= container[0].nodeValue.length'); -function visit448_513_1(result) { +function visit459_513_1(result) { _$jscoverage['/editor/range.js'].branchData['513'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['511'][1].init(21, 7, '!offset'); -function visit447_511_1(result) { +function visit458_511_1(result) { _$jscoverage['/editor/range.js'].branchData['511'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['510'][1].init(528, 51, 'container[0].nodeType !== Dom.NodeType.ELEMENT_NODE'); -function visit446_510_1(result) { +function visit457_510_1(result) { _$jscoverage['/editor/range.js'].branchData['510'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['502'][1].init(112, 39, 'offset >= container[0].nodeValue.length'); -function visit445_502_1(result) { +function visit456_502_1(result) { _$jscoverage['/editor/range.js'].branchData['502'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['500'][1].init(21, 7, '!offset'); -function visit444_500_1(result) { +function visit455_500_1(result) { _$jscoverage['/editor/range.js'].branchData['500'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['499'][1].init(139, 51, 'container[0].nodeType !== Dom.NodeType.ELEMENT_NODE'); -function visit443_499_1(result) { +function visit454_499_1(result) { _$jscoverage['/editor/range.js'].branchData['499'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['484'][1].init(277, 40, 'endContainer.id || endContainer.nodeName'); -function visit442_484_1(result) { +function visit453_484_1(result) { _$jscoverage['/editor/range.js'].branchData['484'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['483'][1].init(184, 44, 'startContainer.id || startContainer.nodeName'); -function visit441_483_1(result) { +function visit452_483_1(result) { _$jscoverage['/editor/range.js'].branchData['483'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['454'][1].init(66, 35, 'self.startOffset === self.endOffset'); -function visit440_454_1(result) { +function visit451_454_1(result) { _$jscoverage['/editor/range.js'].branchData['454'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['453'][2].init(109, 47, 'self.startContainer[0] === self.endContainer[0]'); -function visit439_453_2(result) { +function visit450_453_2(result) { _$jscoverage['/editor/range.js'].branchData['453'][2].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['453'][1].init(36, 102, 'self.startContainer[0] === self.endContainer[0] && self.startOffset === self.endOffset'); -function visit438_453_1(result) { +function visit449_453_1(result) { _$jscoverage['/editor/range.js'].branchData['453'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['452'][1].init(38, 139, 'self.endContainer && self.startContainer[0] === self.endContainer[0] && self.startOffset === self.endOffset'); -function visit437_452_1(result) { +function visit448_452_1(result) { _$jscoverage['/editor/range.js'].branchData['452'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['451'][1].init(-1, 178, 'self.startContainer && self.endContainer && self.startContainer[0] === self.endContainer[0] && self.startOffset === self.endOffset'); -function visit436_451_1(result) { +function visit447_451_1(result) { _$jscoverage['/editor/range.js'].branchData['451'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['442'][1].init(10746, 13, 'removeEndNode'); -function visit435_442_1(result) { +function visit446_442_1(result) { _$jscoverage['/editor/range.js'].branchData['442'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['438'][1].init(10672, 15, 'removeStartNode'); -function visit434_438_1(result) { +function visit445_438_1(result) { _$jscoverage['/editor/range.js'].branchData['438'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['423'][1].init(200, 120, 'removeStartNode && (topStart._4eSameLevel(startNode))'); -function visit433_423_1(result) { +function visit444_423_1(result) { _$jscoverage['/editor/range.js'].branchData['423'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['416'][1].init(-1, 66, '!startNode._4eSameLevel(topStart) || !endNode._4eSameLevel(topEnd)'); -function visit432_416_1(result) { +function visit443_416_1(result) { _$jscoverage['/editor/range.js'].branchData['416'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['414'][2].init(272, 148, 'topEnd && (!startNode._4eSameLevel(topStart) || !endNode._4eSameLevel(topEnd))'); -function visit431_414_2(result) { +function visit442_414_2(result) { _$jscoverage['/editor/range.js'].branchData['414'][2].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['414'][1].init(20, 160, 'topStart && topEnd && (!startNode._4eSameLevel(topStart) || !endNode._4eSameLevel(topEnd))'); -function visit430_414_1(result) { +function visit441_414_1(result) { _$jscoverage['/editor/range.js'].branchData['414'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['401'][1].init(50, 63, 'endTextNode.previousSibling.nodeType === Dom.NodeType.TEXT_NODE'); -function visit429_401_1(result) { +function visit440_401_1(result) { _$jscoverage['/editor/range.js'].branchData['401'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['400'][1].init(70, 114, 'endTextNode.previousSibling && endTextNode.previousSibling.nodeType === Dom.NodeType.TEXT_NODE'); -function visit428_400_1(result) { +function visit439_400_1(result) { _$jscoverage['/editor/range.js'].branchData['400'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['399'][2].init(67, 47, 'endTextNode.nodeType === Dom.NodeType.TEXT_NODE'); -function visit427_399_2(result) { +function visit438_399_2(result) { _$jscoverage['/editor/range.js'].branchData['399'][2].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['399'][1].init(67, 185, 'endTextNode.nodeType === Dom.NodeType.TEXT_NODE && endTextNode.previousSibling && endTextNode.previousSibling.nodeType === Dom.NodeType.TEXT_NODE'); -function visit426_399_1(result) { +function visit437_399_1(result) { _$jscoverage['/editor/range.js'].branchData['399'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['397'][1].init(631, 11, 'hasSplitEnd'); -function visit425_397_1(result) { +function visit436_397_1(result) { _$jscoverage['/editor/range.js'].branchData['397'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['391'][1].init(113, 61, 'startTextNode.nextSibling.nodeType === Dom.NodeType.TEXT_NODE'); -function visit424_391_1(result) { +function visit435_391_1(result) { _$jscoverage['/editor/range.js'].branchData['391'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['389'][3].init(124, 175, 'startTextNode.nextSibling && startTextNode.nextSibling.nodeType === Dom.NodeType.TEXT_NODE'); -function visit423_389_3(result) { +function visit434_389_3(result) { _$jscoverage['/editor/range.js'].branchData['389'][3].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['389'][2].init(71, 49, 'startTextNode.nodeType === Dom.NodeType.TEXT_NODE'); -function visit422_389_2(result) { +function visit433_389_2(result) { _$jscoverage['/editor/range.js'].branchData['389'][2].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['389'][1].init(71, 228, 'startTextNode.nodeType === Dom.NodeType.TEXT_NODE && startTextNode.nextSibling && startTextNode.nextSibling.nodeType === Dom.NodeType.TEXT_NODE'); -function visit421_389_1(result) { +function visit432_389_1(result) { _$jscoverage['/editor/range.js'].branchData['389'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['387'][1].init(104, 13, 'hasSplitStart'); -function visit420_387_1(result) { +function visit431_387_1(result) { _$jscoverage['/editor/range.js'].branchData['387'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['383'][1].init(8533, 12, 'action === 2'); -function visit419_383_1(result) { +function visit430_383_1(result) { _$jscoverage['/editor/range.js'].branchData['383'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['378'][1].init(1653, 10, 'levelClone'); -function visit418_378_1(result) { +function visit429_378_1(result) { _$jscoverage['/editor/range.js'].branchData['378'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['368'][1].init(237, 12, 'action === 1'); -function visit417_368_1(result) { +function visit428_368_1(result) { _$jscoverage['/editor/range.js'].branchData['368'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['360'][1].init(189, 12, 'action === 2'); -function visit416_360_1(result) { +function visit427_360_1(result) { _$jscoverage['/editor/range.js'].branchData['360'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['350'][1].init(20, 137, '!startParents[k] || !levelStartNode._4eSameLevel(startParents[k])'); -function visit415_350_1(result) { +function visit426_350_1(result) { _$jscoverage['/editor/range.js'].branchData['350'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['340'][2].init(128, 10, 'action > 0'); -function visit414_340_2(result) { +function visit425_340_2(result) { _$jscoverage['/editor/range.js'].branchData['340'][2].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['340'][1].init(128, 45, 'action > 0 && !levelStartNode.equals(endNode)'); -function visit413_340_1(result) { +function visit424_340_1(result) { _$jscoverage['/editor/range.js'].branchData['340'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['336'][1].init(6743, 21, 'k < endParents.length'); -function visit412_336_1(result) { +function visit423_336_1(result) { _$jscoverage['/editor/range.js'].branchData['336'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['327'][1].init(2184, 10, 'levelClone'); -function visit411_327_1(result) { +function visit422_327_1(result) { _$jscoverage['/editor/range.js'].branchData['327'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['318'][1].init(644, 12, 'action === 1'); -function visit410_318_1(result) { +function visit421_318_1(result) { _$jscoverage['/editor/range.js'].branchData['318'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['308'][1].init(155, 48, 'UN_REMOVABLE[currentNode.nodeName.toLowerCase()]'); -function visit409_308_1(result) { +function visit420_308_1(result) { _$jscoverage['/editor/range.js'].branchData['308'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['301'][1].init(437, 12, 'action === 2'); -function visit408_301_1(result) { +function visit419_301_1(result) { _$jscoverage['/editor/range.js'].branchData['301'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['293'][3].init(193, 26, 'domEndNode === currentNode'); -function visit407_293_3(result) { +function visit418_293_3(result) { _$jscoverage['/editor/range.js'].branchData['293'][3].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['293'][2].init(160, 29, 'domEndParentJ === currentNode'); -function visit406_293_2(result) { +function visit417_293_2(result) { _$jscoverage['/editor/range.js'].branchData['293'][2].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['293'][1].init(160, 59, 'domEndParentJ === currentNode || domEndNode === currentNode'); -function visit405_293_1(result) { +function visit416_293_1(result) { _$jscoverage['/editor/range.js'].branchData['293'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['288'][1].init(106, 27, 'endParentJ && endParentJ[0]'); -function visit404_288_1(result) { +function visit415_288_1(result) { _$jscoverage['/editor/range.js'].branchData['288'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['276'][2].init(128, 10, 'action > 0'); -function visit403_276_2(result) { +function visit414_276_2(result) { _$jscoverage['/editor/range.js'].branchData['276'][2].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['276'][1].init(128, 47, 'action > 0 && !levelStartNode.equals(startNode)'); -function visit402_276_1(result) { +function visit413_276_1(result) { _$jscoverage['/editor/range.js'].branchData['276'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['272'][1].init(4308, 23, 'j < startParents.length'); -function visit401_272_1(result) { +function visit412_272_1(result) { _$jscoverage['/editor/range.js'].branchData['272'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['259'][1].init(340, 24, '!topStart.equals(topEnd)'); -function visit400_259_1(result) { +function visit411_259_1(result) { _$jscoverage['/editor/range.js'].branchData['259'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['251'][1].init(3603, 23, 'i < startParents.length'); -function visit399_251_1(result) { +function visit410_251_1(result) { _$jscoverage['/editor/range.js'].branchData['251'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['222'][1].init(608, 45, 'startOffset >= startNode[0].childNodes.length'); -function visit398_222_1(result) { +function visit409_222_1(result) { _$jscoverage['/editor/range.js'].branchData['222'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['215'][1].init(319, 12, '!startOffset'); -function visit397_215_1(result) { +function visit408_215_1(result) { _$jscoverage['/editor/range.js'].branchData['215'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['206'][1].init(1924, 48, 'startNode[0].nodeType === Dom.NodeType.TEXT_NODE'); -function visit396_206_1(result) { +function visit407_206_1(result) { _$jscoverage['/editor/range.js'].branchData['206'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['190'][1].init(82, 41, 'endOffset >= endNode[0].childNodes.length'); -function visit395_190_1(result) { +function visit406_190_1(result) { _$jscoverage['/editor/range.js'].branchData['190'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['188'][1].init(150, 32, 'endNode[0].childNodes.length > 0'); -function visit394_188_1(result) { +function visit405_188_1(result) { _$jscoverage['/editor/range.js'].branchData['188'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['182'][1].init(862, 46, 'endNode[0].nodeType === Dom.NodeType.TEXT_NODE'); -function visit393_182_1(result) { +function visit404_182_1(result) { _$jscoverage['/editor/range.js'].branchData['182'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['169'][1].init(466, 14, 'self.collapsed'); -function visit392_169_1(result) { +function visit403_169_1(result) { _$jscoverage['/editor/range.js'].branchData['169'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['165'][1].init(377, 10, 'action > 0'); -function visit391_165_1(result) { +function visit402_165_1(result) { _$jscoverage['/editor/range.js'].branchData['165'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['134'][4].init(176, 17, 'nodeName === \'br\''); -function visit390_134_4(result) { +function visit401_134_4(result) { _$jscoverage['/editor/range.js'].branchData['134'][4].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['134'][3].init(176, 27, 'nodeName === \'br\' && !hadBr'); -function visit389_134_3(result) { +function visit400_134_3(result) { _$jscoverage['/editor/range.js'].branchData['134'][3].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['134'][2].init(166, 37, '!UA.ie && nodeName === \'br\' && !hadBr'); -function visit388_134_2(result) { +function visit399_134_2(result) { _$jscoverage['/editor/range.js'].branchData['134'][2].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['134'][1].init(154, 49, '!isStart && !UA.ie && nodeName === \'br\' && !hadBr'); -function visit387_134_1(result) { +function visit398_134_1(result) { _$jscoverage['/editor/range.js'].branchData['134'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['131'][1].init(194, 35, '!inlineChildReqElements[nodeName]'); -function visit386_131_1(result) { +function visit397_131_1(result) { _$jscoverage['/editor/range.js'].branchData['131'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['127'][1].init(391, 43, 'node.nodeType === Dom.NodeType.ELEMENT_NODE'); -function visit385_127_1(result) { +function visit396_127_1(result) { _$jscoverage['/editor/range.js'].branchData['127'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['124'][1].init(98, 29, 'S.trim(node.nodeValue).length'); -function visit384_124_1(result) { +function visit395_124_1(result) { _$jscoverage['/editor/range.js'].branchData['124'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['122'][1].init(141, 40, 'node.nodeType === Dom.NodeType.TEXT_NODE'); -function visit383_122_1(result) { +function visit394_122_1(result) { _$jscoverage['/editor/range.js'].branchData['122'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['118'][1].init(61, 16, 'isBookmark(node)'); -function visit382_118_1(result) { +function visit393_118_1(result) { _$jscoverage['/editor/range.js'].branchData['118'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['111'][1].init(77, 40, '!isWhitespace(node) && !isBookmark(node)'); -function visit381_111_1(result) { +function visit392_111_1(result) { _$jscoverage['/editor/range.js'].branchData['111'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['106'][2].init(483, 8, 'c2 || c3'); -function visit380_106_2(result) { +function visit391_106_2(result) { _$jscoverage['/editor/range.js'].branchData['106'][2].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['106'][1].init(477, 14, 'c1 || c2 || c3'); -function visit379_106_1(result) { +function visit390_106_1(result) { _$jscoverage['/editor/range.js'].branchData['106'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['103'][2].init(154, 40, 'node.nodeType === Dom.NodeType.TEXT_NODE'); -function visit378_103_2(result) { +function visit389_103_2(result) { _$jscoverage['/editor/range.js'].branchData['103'][2].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['103'][1].init(154, 67, 'node.nodeType === Dom.NodeType.TEXT_NODE && !S.trim(node.nodeValue)'); -function visit377_103_1(result) { +function visit388_103_1(result) { _$jscoverage['/editor/range.js'].branchData['103'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['100'][2].init(150, 40, 'node.nodeType !== Dom.NodeType.TEXT_NODE'); -function visit376_100_2(result) { +function visit387_100_2(result) { _$jscoverage['/editor/range.js'].branchData['100'][2].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].branchData['100'][1].init(150, 98, 'node.nodeType !== Dom.NodeType.TEXT_NODE && Dom.nodeName(node) in dtd.$removeEmpty'); -function visit375_100_1(result) { +function visit386_100_1(result) { _$jscoverage['/editor/range.js'].branchData['100'][1].ranCondition(result); return result; }_$jscoverage['/editor/range.js'].lineData[10]++; @@ -2429,15 +2429,15 @@ KISSY.add(function(S, require) { function elementBoundaryEval(node) { _$jscoverage['/editor/range.js'].functionData[1]++; _$jscoverage['/editor/range.js'].lineData[100]++; - var c1 = visit375_100_1(visit376_100_2(node.nodeType !== Dom.NodeType.TEXT_NODE) && Dom.nodeName(node) in dtd.$removeEmpty), c2 = visit377_103_1(visit378_103_2(node.nodeType === Dom.NodeType.TEXT_NODE) && !S.trim(node.nodeValue)), c3 = !!node.parentNode.getAttribute('_ke_bookmark'); + var c1 = visit386_100_1(visit387_100_2(node.nodeType !== Dom.NodeType.TEXT_NODE) && Dom.nodeName(node) in dtd.$removeEmpty), c2 = visit388_103_1(visit389_103_2(node.nodeType === Dom.NodeType.TEXT_NODE) && !S.trim(node.nodeValue)), c3 = !!node.parentNode.getAttribute('_ke_bookmark'); _$jscoverage['/editor/range.js'].lineData[106]++; - return visit379_106_1(c1 || visit380_106_2(c2 || c3)); + return visit390_106_1(c1 || visit391_106_2(c2 || c3)); } _$jscoverage['/editor/range.js'].lineData[109]++; function nonWhitespaceOrIsBookmark(node) { _$jscoverage['/editor/range.js'].functionData[2]++; _$jscoverage['/editor/range.js'].lineData[111]++; - return visit381_111_1(!isWhitespace(node) && !isBookmark(node)); + return visit392_111_1(!isWhitespace(node) && !isBookmark(node)); } _$jscoverage['/editor/range.js'].lineData[114]++; function getCheckStartEndBlockEvalFunction(isStart) { @@ -2448,26 +2448,26 @@ KISSY.add(function(S, require) { return function(node) { _$jscoverage['/editor/range.js'].functionData[4]++; _$jscoverage['/editor/range.js'].lineData[118]++; - if (visit382_118_1(isBookmark(node))) { + if (visit393_118_1(isBookmark(node))) { _$jscoverage['/editor/range.js'].lineData[119]++; return TRUE; } _$jscoverage['/editor/range.js'].lineData[122]++; - if (visit383_122_1(node.nodeType === Dom.NodeType.TEXT_NODE)) { + if (visit394_122_1(node.nodeType === Dom.NodeType.TEXT_NODE)) { _$jscoverage['/editor/range.js'].lineData[124]++; - if (visit384_124_1(S.trim(node.nodeValue).length)) { + if (visit395_124_1(S.trim(node.nodeValue).length)) { _$jscoverage['/editor/range.js'].lineData[125]++; return FALSE; } } else { _$jscoverage['/editor/range.js'].lineData[127]++; - if (visit385_127_1(node.nodeType === Dom.NodeType.ELEMENT_NODE)) { + if (visit396_127_1(node.nodeType === Dom.NodeType.ELEMENT_NODE)) { _$jscoverage['/editor/range.js'].lineData[128]++; var nodeName = Dom.nodeName(node); _$jscoverage['/editor/range.js'].lineData[131]++; - if (visit386_131_1(!inlineChildReqElements[nodeName])) { + if (visit397_131_1(!inlineChildReqElements[nodeName])) { _$jscoverage['/editor/range.js'].lineData[134]++; - if (visit387_134_1(!isStart && visit388_134_2(!UA.ie && visit389_134_3(visit390_134_4(nodeName === 'br') && !hadBr)))) { + if (visit398_134_1(!isStart && visit399_134_2(!UA.ie && visit400_134_3(visit401_134_4(nodeName === 'br') && !hadBr)))) { _$jscoverage['/editor/range.js'].lineData[135]++; hadBr = TRUE; } else { @@ -2487,28 +2487,28 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/range.js'].lineData[153]++; var startNode = self.startContainer, endNode = self.endContainer, startOffset = self.startOffset, endOffset = self.endOffset, removeStartNode, hasSplitStart = FALSE, hasSplitEnd = FALSE, t, docFrag, doc = self.document, removeEndNode; _$jscoverage['/editor/range.js'].lineData[165]++; - if (visit391_165_1(action > 0)) { + if (visit402_165_1(action > 0)) { _$jscoverage['/editor/range.js'].lineData[166]++; docFrag = doc.createDocumentFragment(); } _$jscoverage['/editor/range.js'].lineData[169]++; - if (visit392_169_1(self.collapsed)) { + if (visit403_169_1(self.collapsed)) { _$jscoverage['/editor/range.js'].lineData[170]++; return docFrag; } _$jscoverage['/editor/range.js'].lineData[174]++; self.optimizeBookmark(); _$jscoverage['/editor/range.js'].lineData[182]++; - if (visit393_182_1(endNode[0].nodeType === Dom.NodeType.TEXT_NODE)) { + if (visit404_182_1(endNode[0].nodeType === Dom.NodeType.TEXT_NODE)) { _$jscoverage['/editor/range.js'].lineData[183]++; hasSplitEnd = TRUE; _$jscoverage['/editor/range.js'].lineData[184]++; endNode = endNode._4eSplitText(endOffset); } else { _$jscoverage['/editor/range.js'].lineData[188]++; - if (visit394_188_1(endNode[0].childNodes.length > 0)) { + if (visit405_188_1(endNode[0].childNodes.length > 0)) { _$jscoverage['/editor/range.js'].lineData[190]++; - if (visit395_190_1(endOffset >= endNode[0].childNodes.length)) { + if (visit406_190_1(endOffset >= endNode[0].childNodes.length)) { _$jscoverage['/editor/range.js'].lineData[192]++; endNode = new Node(endNode[0].appendChild(doc.createTextNode(''))); _$jscoverage['/editor/range.js'].lineData[195]++; @@ -2520,14 +2520,14 @@ KISSY.add(function(S, require) { } } _$jscoverage['/editor/range.js'].lineData[206]++; - if (visit396_206_1(startNode[0].nodeType === Dom.NodeType.TEXT_NODE)) { + if (visit407_206_1(startNode[0].nodeType === Dom.NodeType.TEXT_NODE)) { _$jscoverage['/editor/range.js'].lineData[207]++; hasSplitStart = TRUE; _$jscoverage['/editor/range.js'].lineData[208]++; startNode._4eSplitText(startOffset); } else { _$jscoverage['/editor/range.js'].lineData[215]++; - if (visit397_215_1(!startOffset)) { + if (visit408_215_1(!startOffset)) { _$jscoverage['/editor/range.js'].lineData[217]++; t = new Node(doc.createTextNode('')); _$jscoverage['/editor/range.js'].lineData[218]++; @@ -2538,7 +2538,7 @@ KISSY.add(function(S, require) { removeStartNode = TRUE; } else { _$jscoverage['/editor/range.js'].lineData[222]++; - if (visit398_222_1(startOffset >= startNode[0].childNodes.length)) { + if (visit409_222_1(startOffset >= startNode[0].childNodes.length)) { _$jscoverage['/editor/range.js'].lineData[224]++; startNode = new Node(startNode[0].appendChild(doc.createTextNode(''))); _$jscoverage['/editor/range.js'].lineData[226]++; @@ -2566,13 +2566,13 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/range.js'].lineData[249]++; var i, topStart, topEnd; _$jscoverage['/editor/range.js'].lineData[251]++; - for (i = 0; visit399_251_1(i < startParents.length); i++) { + for (i = 0; visit410_251_1(i < startParents.length); i++) { _$jscoverage['/editor/range.js'].lineData[252]++; topStart = startParents[i]; _$jscoverage['/editor/range.js'].lineData[253]++; topEnd = endParents[i]; _$jscoverage['/editor/range.js'].lineData[259]++; - if (visit400_259_1(!topStart.equals(topEnd))) { + if (visit411_259_1(!topStart.equals(topEnd))) { _$jscoverage['/editor/range.js'].lineData[260]++; break; } @@ -2580,11 +2580,11 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/range.js'].lineData[264]++; var clone = docFrag, levelStartNode, levelClone, currentNode, currentSibling; _$jscoverage['/editor/range.js'].lineData[272]++; - for (var j = i; visit401_272_1(j < startParents.length); j++) { + for (var j = i; visit412_272_1(j < startParents.length); j++) { _$jscoverage['/editor/range.js'].lineData[273]++; levelStartNode = startParents[j]; _$jscoverage['/editor/range.js'].lineData[276]++; - if (visit402_276_1(visit403_276_2(action > 0) && !levelStartNode.equals(startNode))) { + if (visit413_276_1(visit414_276_2(action > 0) && !levelStartNode.equals(startNode))) { _$jscoverage['/editor/range.js'].lineData[278]++; levelClone = clone.appendChild(levelStartNode.clone()[0]); } else { @@ -2594,23 +2594,23 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/range.js'].lineData[284]++; currentNode = levelStartNode[0].nextSibling; _$jscoverage['/editor/range.js'].lineData[286]++; - var endParentJ = endParents[j], domEndNode = endNode[0], domEndParentJ = visit404_288_1(endParentJ && endParentJ[0]); + var endParentJ = endParents[j], domEndNode = endNode[0], domEndParentJ = visit415_288_1(endParentJ && endParentJ[0]); _$jscoverage['/editor/range.js'].lineData[290]++; while (currentNode) { _$jscoverage['/editor/range.js'].lineData[293]++; - if (visit405_293_1(visit406_293_2(domEndParentJ === currentNode) || visit407_293_3(domEndNode === currentNode))) { + if (visit416_293_1(visit417_293_2(domEndParentJ === currentNode) || visit418_293_3(domEndNode === currentNode))) { _$jscoverage['/editor/range.js'].lineData[294]++; break; } _$jscoverage['/editor/range.js'].lineData[298]++; currentSibling = currentNode.nextSibling; _$jscoverage['/editor/range.js'].lineData[301]++; - if (visit408_301_1(action === 2)) { + if (visit419_301_1(action === 2)) { _$jscoverage['/editor/range.js'].lineData[303]++; clone.appendChild(currentNode.cloneNode(TRUE)); } else { _$jscoverage['/editor/range.js'].lineData[308]++; - if (visit409_308_1(UN_REMOVABLE[currentNode.nodeName.toLowerCase()])) { + if (visit420_308_1(UN_REMOVABLE[currentNode.nodeName.toLowerCase()])) { _$jscoverage['/editor/range.js'].lineData[309]++; var tmp = currentNode.cloneNode(TRUE); _$jscoverage['/editor/range.js'].lineData[310]++; @@ -2622,7 +2622,7 @@ KISSY.add(function(S, require) { Dom._4eRemove(currentNode); } _$jscoverage['/editor/range.js'].lineData[318]++; - if (visit410_318_1(action === 1)) { + if (visit421_318_1(action === 1)) { _$jscoverage['/editor/range.js'].lineData[320]++; clone.appendChild(currentNode); } @@ -2631,7 +2631,7 @@ KISSY.add(function(S, require) { currentNode = currentSibling; } _$jscoverage['/editor/range.js'].lineData[327]++; - if (visit411_327_1(levelClone)) { + if (visit422_327_1(levelClone)) { _$jscoverage['/editor/range.js'].lineData[328]++; clone = levelClone; } @@ -2639,11 +2639,11 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/range.js'].lineData[332]++; clone = docFrag; _$jscoverage['/editor/range.js'].lineData[336]++; - for (var k = i; visit412_336_1(k < endParents.length); k++) { + for (var k = i; visit423_336_1(k < endParents.length); k++) { _$jscoverage['/editor/range.js'].lineData[337]++; levelStartNode = endParents[k]; _$jscoverage['/editor/range.js'].lineData[340]++; - if (visit413_340_1(visit414_340_2(action > 0) && !levelStartNode.equals(endNode))) { + if (visit424_340_1(visit425_340_2(action > 0) && !levelStartNode.equals(endNode))) { _$jscoverage['/editor/range.js'].lineData[343]++; levelClone = clone.appendChild(levelStartNode.clone()[0]); } else { @@ -2651,7 +2651,7 @@ KISSY.add(function(S, require) { levelClone = null; } _$jscoverage['/editor/range.js'].lineData[349]++; - if (visit415_350_1(!startParents[k] || !levelStartNode._4eSameLevel(startParents[k]))) { + if (visit426_350_1(!startParents[k] || !levelStartNode._4eSameLevel(startParents[k]))) { _$jscoverage['/editor/range.js'].lineData[354]++; currentNode = levelStartNode[0].previousSibling; _$jscoverage['/editor/range.js'].lineData[355]++; @@ -2659,14 +2659,14 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/range.js'].lineData[357]++; currentSibling = currentNode.previousSibling; _$jscoverage['/editor/range.js'].lineData[360]++; - if (visit416_360_1(action === 2)) { + if (visit427_360_1(action === 2)) { _$jscoverage['/editor/range.js'].lineData[361]++; clone.insertBefore(currentNode.cloneNode(TRUE), clone.firstChild); } else { _$jscoverage['/editor/range.js'].lineData[365]++; Dom._4eRemove(currentNode); _$jscoverage['/editor/range.js'].lineData[368]++; - if (visit417_368_1(action === 1)) { + if (visit428_368_1(action === 1)) { _$jscoverage['/editor/range.js'].lineData[370]++; clone.insertBefore(currentNode, clone.firstChild); } @@ -2676,19 +2676,19 @@ KISSY.add(function(S, require) { } } _$jscoverage['/editor/range.js'].lineData[378]++; - if (visit418_378_1(levelClone)) { + if (visit429_378_1(levelClone)) { _$jscoverage['/editor/range.js'].lineData[379]++; clone = levelClone; } } _$jscoverage['/editor/range.js'].lineData[383]++; - if (visit419_383_1(action === 2)) { + if (visit430_383_1(action === 2)) { _$jscoverage['/editor/range.js'].lineData[387]++; - if (visit420_387_1(hasSplitStart)) { + if (visit431_387_1(hasSplitStart)) { _$jscoverage['/editor/range.js'].lineData[388]++; var startTextNode = startNode[0]; _$jscoverage['/editor/range.js'].lineData[389]++; - if (visit421_389_1(visit422_389_2(startTextNode.nodeType === Dom.NodeType.TEXT_NODE) && visit423_389_3(startTextNode.nextSibling && visit424_391_1(startTextNode.nextSibling.nodeType === Dom.NodeType.TEXT_NODE)))) { + if (visit432_389_1(visit433_389_2(startTextNode.nodeType === Dom.NodeType.TEXT_NODE) && visit434_389_3(startTextNode.nextSibling && visit435_391_1(startTextNode.nextSibling.nodeType === Dom.NodeType.TEXT_NODE)))) { _$jscoverage['/editor/range.js'].lineData[392]++; startTextNode.data += startTextNode.nextSibling.data; _$jscoverage['/editor/range.js'].lineData[393]++; @@ -2696,11 +2696,11 @@ KISSY.add(function(S, require) { } } _$jscoverage['/editor/range.js'].lineData[397]++; - if (visit425_397_1(hasSplitEnd)) { + if (visit436_397_1(hasSplitEnd)) { _$jscoverage['/editor/range.js'].lineData[398]++; var endTextNode = endNode[0]; _$jscoverage['/editor/range.js'].lineData[399]++; - if (visit426_399_1(visit427_399_2(endTextNode.nodeType === Dom.NodeType.TEXT_NODE) && visit428_400_1(endTextNode.previousSibling && visit429_401_1(endTextNode.previousSibling.nodeType === Dom.NodeType.TEXT_NODE)))) { + if (visit437_399_1(visit438_399_2(endTextNode.nodeType === Dom.NodeType.TEXT_NODE) && visit439_400_1(endTextNode.previousSibling && visit440_401_1(endTextNode.previousSibling.nodeType === Dom.NodeType.TEXT_NODE)))) { _$jscoverage['/editor/range.js'].lineData[402]++; endTextNode.previousSibling.data += endTextNode.data; _$jscoverage['/editor/range.js'].lineData[403]++; @@ -2709,11 +2709,11 @@ KISSY.add(function(S, require) { } } else { _$jscoverage['/editor/range.js'].lineData[413]++; - if (visit430_414_1(topStart && visit431_414_2(topEnd && (visit432_416_1(!startNode._4eSameLevel(topStart) || !endNode._4eSameLevel(topEnd)))))) { + if (visit441_414_1(topStart && visit442_414_2(topEnd && (visit443_416_1(!startNode._4eSameLevel(topStart) || !endNode._4eSameLevel(topEnd)))))) { _$jscoverage['/editor/range.js'].lineData[419]++; var startIndex = topStart._4eIndex(); _$jscoverage['/editor/range.js'].lineData[423]++; - if (visit433_423_1(removeStartNode && (topStart._4eSameLevel(startNode)))) { + if (visit444_423_1(removeStartNode && (topStart._4eSameLevel(startNode)))) { _$jscoverage['/editor/range.js'].lineData[426]++; startIndex--; } @@ -2724,12 +2724,12 @@ KISSY.add(function(S, require) { self.collapse(TRUE); } _$jscoverage['/editor/range.js'].lineData[438]++; - if (visit434_438_1(removeStartNode)) { + if (visit445_438_1(removeStartNode)) { _$jscoverage['/editor/range.js'].lineData[439]++; startNode.remove(); } _$jscoverage['/editor/range.js'].lineData[442]++; - if (visit435_442_1(removeEndNode)) { + if (visit446_442_1(removeEndNode)) { _$jscoverage['/editor/range.js'].lineData[443]++; endNode.remove(); } @@ -2740,7 +2740,7 @@ KISSY.add(function(S, require) { function updateCollapsed(self) { _$jscoverage['/editor/range.js'].functionData[8]++; _$jscoverage['/editor/range.js'].lineData[450]++; - self.collapsed = (visit436_451_1(self.startContainer && visit437_452_1(self.endContainer && visit438_453_1(visit439_453_2(self.startContainer[0] === self.endContainer[0]) && visit440_454_1(self.startOffset === self.endOffset))))); + self.collapsed = (visit447_451_1(self.startContainer && visit448_452_1(self.endContainer && visit449_453_1(visit450_453_2(self.startContainer[0] === self.endContainer[0]) && visit451_454_1(self.startOffset === self.endOffset))))); } _$jscoverage['/editor/range.js'].lineData[463]++; function KERange(document) { @@ -2767,9 +2767,9 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/range.js'].lineData[479]++; var s = [], self = this, startContainer = self.startContainer[0], endContainer = self.endContainer[0]; _$jscoverage['/editor/range.js'].lineData[483]++; - s.push((visit441_483_1(startContainer.id || startContainer.nodeName)) + ':' + self.startOffset); + s.push((visit452_483_1(startContainer.id || startContainer.nodeName)) + ':' + self.startOffset); _$jscoverage['/editor/range.js'].lineData[484]++; - s.push((visit442_484_1(endContainer.id || endContainer.nodeName)) + ':' + self.endOffset); + s.push((visit453_484_1(endContainer.id || endContainer.nodeName)) + ':' + self.endOffset); _$jscoverage['/editor/range.js'].lineData[485]++; return s.join('
'); }, @@ -2778,14 +2778,14 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/range.js'].lineData[495]++; var self = this, container = self.startContainer, offset = self.startOffset; _$jscoverage['/editor/range.js'].lineData[499]++; - if (visit443_499_1(container[0].nodeType !== Dom.NodeType.ELEMENT_NODE)) { + if (visit454_499_1(container[0].nodeType !== Dom.NodeType.ELEMENT_NODE)) { _$jscoverage['/editor/range.js'].lineData[500]++; - if (visit444_500_1(!offset)) { + if (visit455_500_1(!offset)) { _$jscoverage['/editor/range.js'].lineData[501]++; self.setStartBefore(container); } else { _$jscoverage['/editor/range.js'].lineData[502]++; - if (visit445_502_1(offset >= container[0].nodeValue.length)) { + if (visit456_502_1(offset >= container[0].nodeValue.length)) { _$jscoverage['/editor/range.js'].lineData[503]++; self.setStartAfter(container); } @@ -2796,14 +2796,14 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/range.js'].lineData[508]++; offset = self.endOffset; _$jscoverage['/editor/range.js'].lineData[510]++; - if (visit446_510_1(container[0].nodeType !== Dom.NodeType.ELEMENT_NODE)) { + if (visit457_510_1(container[0].nodeType !== Dom.NodeType.ELEMENT_NODE)) { _$jscoverage['/editor/range.js'].lineData[511]++; - if (visit447_511_1(!offset)) { + if (visit458_511_1(!offset)) { _$jscoverage['/editor/range.js'].lineData[512]++; self.setEndBefore(container); } else { _$jscoverage['/editor/range.js'].lineData[513]++; - if (visit448_513_1(offset >= container[0].nodeValue.length)) { + if (visit459_513_1(offset >= container[0].nodeValue.length)) { _$jscoverage['/editor/range.js'].lineData[514]++; self.setEndAfter(container); } @@ -2835,12 +2835,12 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/range.js'].lineData[552]++; var self = this, startNode = self.startContainer, endNode = self.endContainer; _$jscoverage['/editor/range.js'].lineData[556]++; - if (visit449_556_1(startNode && visit450_557_1(visit451_557_2(startNode.nodeName() === 'span') && startNode.attr('_ke_bookmark')))) { + if (visit460_556_1(startNode && visit461_557_1(visit462_557_2(startNode.nodeName() === 'span') && startNode.attr('_ke_bookmark')))) { _$jscoverage['/editor/range.js'].lineData[559]++; self.setStartBefore(startNode); } _$jscoverage['/editor/range.js'].lineData[561]++; - if (visit452_561_1(endNode && visit453_562_1(visit454_562_2(endNode.nodeName() === 'span') && endNode.attr('_ke_bookmark')))) { + if (visit463_561_1(endNode && visit464_562_1(visit465_562_2(endNode.nodeName() === 'span') && endNode.attr('_ke_bookmark')))) { _$jscoverage['/editor/range.js'].lineData[564]++; self.setEndAfter(endNode); } @@ -2850,7 +2850,7 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/range.js'].lineData[582]++; var self = this; _$jscoverage['/editor/range.js'].lineData[583]++; - if (visit455_583_1(visit456_583_2(startNode[0].nodeType === Dom.NodeType.ELEMENT_NODE) && EMPTY[startNode.nodeName()])) { + if (visit466_583_1(visit467_583_2(startNode[0].nodeType === Dom.NodeType.ELEMENT_NODE) && EMPTY[startNode.nodeName()])) { _$jscoverage['/editor/range.js'].lineData[584]++; startNode = startNode.parent(); _$jscoverage['/editor/range.js'].lineData[585]++; @@ -2861,7 +2861,7 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/range.js'].lineData[589]++; self.startOffset = startOffset; _$jscoverage['/editor/range.js'].lineData[591]++; - if (visit457_591_1(!self.endContainer)) { + if (visit468_591_1(!self.endContainer)) { _$jscoverage['/editor/range.js'].lineData[592]++; self.endContainer = startNode; _$jscoverage['/editor/range.js'].lineData[593]++; @@ -2875,7 +2875,7 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/range.js'].lineData[613]++; var self = this; _$jscoverage['/editor/range.js'].lineData[614]++; - if (visit458_614_1(visit459_614_2(endNode[0].nodeType === Dom.NodeType.ELEMENT_NODE) && EMPTY[endNode.nodeName()])) { + if (visit469_614_1(visit470_614_2(endNode[0].nodeType === Dom.NodeType.ELEMENT_NODE) && EMPTY[endNode.nodeName()])) { _$jscoverage['/editor/range.js'].lineData[615]++; endNode = endNode.parent(); _$jscoverage['/editor/range.js'].lineData[616]++; @@ -2886,7 +2886,7 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/range.js'].lineData[620]++; self.endOffset = endOffset; _$jscoverage['/editor/range.js'].lineData[622]++; - if (visit460_622_1(!self.startContainer)) { + if (visit471_622_1(!self.startContainer)) { _$jscoverage['/editor/range.js'].lineData[623]++; self.startContainer = endNode; _$jscoverage['/editor/range.js'].lineData[624]++; @@ -2908,7 +2908,7 @@ KISSY.add(function(S, require) { break; case KER.POSITION_BEFORE_END: _$jscoverage['/editor/range.js'].lineData[643]++; - if (visit461_643_1(node[0].nodeType === Dom.NodeType.TEXT_NODE)) { + if (visit472_643_1(node[0].nodeType === Dom.NodeType.TEXT_NODE)) { _$jscoverage['/editor/range.js'].lineData[644]++; self.setStart(node, node[0].nodeValue.length); } else { @@ -2942,7 +2942,7 @@ KISSY.add(function(S, require) { break; case KER.POSITION_BEFORE_END: _$jscoverage['/editor/range.js'].lineData[674]++; - if (visit462_674_1(node[0].nodeType === Dom.NodeType.TEXT_NODE)) { + if (visit473_674_1(node[0].nodeType === Dom.NodeType.TEXT_NODE)) { _$jscoverage['/editor/range.js'].lineData[675]++; self.setEnd(node, node[0].nodeValue.length); } else { @@ -2983,7 +2983,7 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/range.js'].lineData[718]++; var self = this; _$jscoverage['/editor/range.js'].lineData[719]++; - if (visit463_719_1(toStart)) { + if (visit474_719_1(toStart)) { _$jscoverage['/editor/range.js'].lineData[720]++; self.endContainer = self.startContainer; _$jscoverage['/editor/range.js'].lineData[721]++; @@ -3021,7 +3021,7 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/range.js'].lineData[758]++; walkerRange.optimize(); _$jscoverage['/editor/range.js'].lineData[760]++; - if (visit464_760_1(visit465_760_2(walkerRange.startContainer[0].nodeType !== Dom.NodeType.ELEMENT_NODE) || visit466_761_1(walkerRange.endContainer[0].nodeType !== Dom.NodeType.ELEMENT_NODE))) { + if (visit475_760_1(visit476_760_2(walkerRange.startContainer[0].nodeType !== Dom.NodeType.ELEMENT_NODE) || visit477_761_1(walkerRange.endContainer[0].nodeType !== Dom.NodeType.ELEMENT_NODE))) { _$jscoverage['/editor/range.js'].lineData[762]++; return NULL; } @@ -3031,7 +3031,7 @@ KISSY.add(function(S, require) { walker.evaluator = function(node) { _$jscoverage['/editor/range.js'].functionData[27]++; _$jscoverage['/editor/range.js'].lineData[769]++; - return visit467_769_1(isNotWhitespaces(node) && isNotBookmarks(node)); + return visit478_769_1(isNotWhitespaces(node) && isNotBookmarks(node)); }; _$jscoverage['/editor/range.js'].lineData[776]++; node = walker.next(); @@ -3040,27 +3040,27 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/range.js'].lineData[778]++; pre = walker.previous(); _$jscoverage['/editor/range.js'].lineData[780]++; - return visit468_780_1(node && node.equals(pre)) ? node : NULL; + return visit479_780_1(node && node.equals(pre)) ? node : NULL; }, shrink: function(mode, selectContents) { _$jscoverage['/editor/range.js'].functionData[28]++; _$jscoverage['/editor/range.js'].lineData[790]++; var self = this; _$jscoverage['/editor/range.js'].lineData[791]++; - if (visit469_791_1(!self.collapsed)) { + if (visit480_791_1(!self.collapsed)) { _$jscoverage['/editor/range.js'].lineData[792]++; - mode = visit470_792_1(mode || KER.SHRINK_TEXT); + mode = visit481_792_1(mode || KER.SHRINK_TEXT); _$jscoverage['/editor/range.js'].lineData[794]++; var walkerRange = self.clone(), startContainer = self.startContainer, endContainer = self.endContainer, startOffset = self.startOffset, endOffset = self.endOffset, moveStart = TRUE, currentElement, walker, moveEnd = TRUE; _$jscoverage['/editor/range.js'].lineData[805]++; - if (visit471_805_1(startContainer && visit472_806_1(startContainer[0].nodeType === Dom.NodeType.TEXT_NODE))) { + if (visit482_805_1(startContainer && visit483_806_1(startContainer[0].nodeType === Dom.NodeType.TEXT_NODE))) { _$jscoverage['/editor/range.js'].lineData[807]++; - if (visit473_807_1(!startOffset)) { + if (visit484_807_1(!startOffset)) { _$jscoverage['/editor/range.js'].lineData[808]++; walkerRange.setStartBefore(startContainer); } else { _$jscoverage['/editor/range.js'].lineData[809]++; - if (visit474_809_1(startOffset >= startContainer[0].nodeValue.length)) { + if (visit485_809_1(startOffset >= startContainer[0].nodeValue.length)) { _$jscoverage['/editor/range.js'].lineData[810]++; walkerRange.setStartAfter(startContainer); } else { @@ -3072,14 +3072,14 @@ KISSY.add(function(S, require) { } } _$jscoverage['/editor/range.js'].lineData[819]++; - if (visit475_819_1(endContainer && visit476_820_1(endContainer[0].nodeType === Dom.NodeType.TEXT_NODE))) { + if (visit486_819_1(endContainer && visit487_820_1(endContainer[0].nodeType === Dom.NodeType.TEXT_NODE))) { _$jscoverage['/editor/range.js'].lineData[821]++; - if (visit477_821_1(!endOffset)) { + if (visit488_821_1(!endOffset)) { _$jscoverage['/editor/range.js'].lineData[822]++; walkerRange.setEndBefore(endContainer); } else { _$jscoverage['/editor/range.js'].lineData[823]++; - if (visit478_823_1(endOffset >= endContainer[0].nodeValue.length)) { + if (visit489_823_1(endOffset >= endContainer[0].nodeValue.length)) { _$jscoverage['/editor/range.js'].lineData[824]++; walkerRange.setEndAfter(endContainer); } else { @@ -3091,30 +3091,30 @@ KISSY.add(function(S, require) { } } _$jscoverage['/editor/range.js'].lineData[831]++; - if (visit479_831_1(moveStart || moveEnd)) { + if (visit490_831_1(moveStart || moveEnd)) { _$jscoverage['/editor/range.js'].lineData[833]++; walker = new Walker(walkerRange); _$jscoverage['/editor/range.js'].lineData[835]++; walker.evaluator = function(node) { _$jscoverage['/editor/range.js'].functionData[29]++; _$jscoverage['/editor/range.js'].lineData[836]++; - return visit480_836_1(node.nodeType === (visit481_836_2(mode === KER.SHRINK_ELEMENT) ? Dom.NodeType.ELEMENT_NODE : Dom.NodeType.TEXT_NODE)); + return visit491_836_1(node.nodeType === (visit492_836_2(mode === KER.SHRINK_ELEMENT) ? Dom.NodeType.ELEMENT_NODE : Dom.NodeType.TEXT_NODE)); }; _$jscoverage['/editor/range.js'].lineData[840]++; walker.guard = function(node, movingOut) { _$jscoverage['/editor/range.js'].functionData[30]++; _$jscoverage['/editor/range.js'].lineData[842]++; - if (visit482_842_1(visit483_842_2(mode === KER.SHRINK_ELEMENT) && visit484_843_1(node.nodeType === Dom.NodeType.TEXT_NODE))) { + if (visit493_842_1(visit494_842_2(mode === KER.SHRINK_ELEMENT) && visit495_843_1(node.nodeType === Dom.NodeType.TEXT_NODE))) { _$jscoverage['/editor/range.js'].lineData[844]++; return FALSE; } _$jscoverage['/editor/range.js'].lineData[847]++; - if (visit485_847_1(movingOut && visit486_847_2(node === currentElement))) { + if (visit496_847_1(movingOut && visit497_847_2(node === currentElement))) { _$jscoverage['/editor/range.js'].lineData[848]++; return FALSE; } _$jscoverage['/editor/range.js'].lineData[850]++; - if (visit487_850_1(!movingOut && visit488_850_2(node.nodeType === Dom.NodeType.ELEMENT_NODE))) { + if (visit498_850_1(!movingOut && visit499_850_2(node.nodeType === Dom.NodeType.ELEMENT_NODE))) { _$jscoverage['/editor/range.js'].lineData[851]++; currentElement = node; } @@ -3123,29 +3123,29 @@ KISSY.add(function(S, require) { }; } _$jscoverage['/editor/range.js'].lineData[858]++; - if (visit489_858_1(moveStart)) { + if (visit500_858_1(moveStart)) { _$jscoverage['/editor/range.js'].lineData[859]++; - var textStart = walker[visit490_859_1(mode === KER.SHRINK_ELEMENT) ? 'lastForward' : 'next'](); + var textStart = walker[visit501_859_1(mode === KER.SHRINK_ELEMENT) ? 'lastForward' : 'next'](); _$jscoverage['/editor/range.js'].lineData[860]++; - if (visit491_860_1(textStart)) { + if (visit502_860_1(textStart)) { _$jscoverage['/editor/range.js'].lineData[861]++; self.setStartAt(textStart, selectContents ? KER.POSITION_AFTER_START : KER.POSITION_BEFORE_START); } } _$jscoverage['/editor/range.js'].lineData[865]++; - if (visit492_865_1(moveEnd)) { + if (visit503_865_1(moveEnd)) { _$jscoverage['/editor/range.js'].lineData[866]++; walker.reset(); _$jscoverage['/editor/range.js'].lineData[867]++; - var textEnd = walker[visit493_867_1(mode === KER.SHRINK_ELEMENT) ? 'lastBackward' : 'previous'](); + var textEnd = walker[visit504_867_1(mode === KER.SHRINK_ELEMENT) ? 'lastBackward' : 'previous'](); _$jscoverage['/editor/range.js'].lineData[868]++; - if (visit494_868_1(textEnd)) { + if (visit505_868_1(textEnd)) { _$jscoverage['/editor/range.js'].lineData[869]++; self.setEndAt(textEnd, selectContents ? KER.POSITION_BEFORE_END : KER.POSITION_AFTER_END); } } _$jscoverage['/editor/range.js'].lineData[873]++; - return visit495_873_1(moveStart || moveEnd); + return visit506_873_1(moveStart || moveEnd); } }, createBookmark2: function(normalized) { @@ -3153,20 +3153,20 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/range.js'].lineData[883]++; var self = this, startContainer = self.startContainer, endContainer = self.endContainer, startOffset = self.startOffset, endOffset = self.endOffset, child, previous; _$jscoverage['/editor/range.js'].lineData[893]++; - if (visit496_893_1(!startContainer || !endContainer)) { + if (visit507_893_1(!startContainer || !endContainer)) { _$jscoverage['/editor/range.js'].lineData[894]++; return { start: 0, end: 0}; } _$jscoverage['/editor/range.js'].lineData[900]++; - if (visit497_900_1(normalized)) { + if (visit508_900_1(normalized)) { _$jscoverage['/editor/range.js'].lineData[903]++; - if (visit498_903_1(startContainer[0].nodeType === Dom.NodeType.ELEMENT_NODE)) { + if (visit509_903_1(startContainer[0].nodeType === Dom.NodeType.ELEMENT_NODE)) { _$jscoverage['/editor/range.js'].lineData[904]++; child = new Node(startContainer[0].childNodes[startOffset]); _$jscoverage['/editor/range.js'].lineData[908]++; - if (visit499_908_1(child && visit500_908_2(child[0] && visit501_908_3(visit502_908_4(child[0].nodeType === Dom.NodeType.TEXT_NODE) && visit503_909_1(visit504_909_2(startOffset > 0) && visit505_909_3(child[0].previousSibling.nodeType === Dom.NodeType.TEXT_NODE)))))) { + if (visit510_908_1(child && visit511_908_2(child[0] && visit512_908_3(visit513_908_4(child[0].nodeType === Dom.NodeType.TEXT_NODE) && visit514_909_1(visit515_909_2(startOffset > 0) && visit516_909_3(child[0].previousSibling.nodeType === Dom.NodeType.TEXT_NODE)))))) { _$jscoverage['/editor/range.js'].lineData[910]++; startContainer = child; _$jscoverage['/editor/range.js'].lineData[911]++; @@ -3174,20 +3174,20 @@ KISSY.add(function(S, require) { } } _$jscoverage['/editor/range.js'].lineData[917]++; - while (visit506_917_1(visit507_917_2(startContainer[0].nodeType === Dom.NodeType.TEXT_NODE) && visit508_918_1((previous = startContainer.prev(undefined, 1)) && visit509_919_1(previous[0].nodeType === Dom.NodeType.TEXT_NODE)))) { + while (visit517_917_1(visit518_917_2(startContainer[0].nodeType === Dom.NodeType.TEXT_NODE) && visit519_918_1((previous = startContainer.prev(undefined, 1)) && visit520_919_1(previous[0].nodeType === Dom.NodeType.TEXT_NODE)))) { _$jscoverage['/editor/range.js'].lineData[920]++; startContainer = previous; _$jscoverage['/editor/range.js'].lineData[921]++; startOffset += previous[0].nodeValue.length; } _$jscoverage['/editor/range.js'].lineData[925]++; - if (visit510_925_1(!self.collapsed)) { + if (visit521_925_1(!self.collapsed)) { _$jscoverage['/editor/range.js'].lineData[928]++; - if (visit511_928_1(endContainer[0].nodeType === Dom.NodeType.ELEMENT_NODE)) { + if (visit522_928_1(endContainer[0].nodeType === Dom.NodeType.ELEMENT_NODE)) { _$jscoverage['/editor/range.js'].lineData[929]++; child = new Node(endContainer[0].childNodes[endOffset]); _$jscoverage['/editor/range.js'].lineData[933]++; - if (visit512_933_1(child && visit513_933_2(child[0] && visit514_934_1(visit515_934_2(child[0].nodeType === Dom.NodeType.TEXT_NODE) && visit516_934_3(visit517_934_4(endOffset > 0) && visit518_935_1(child[0].previousSibling.nodeType === Dom.NodeType.TEXT_NODE)))))) { + if (visit523_933_1(child && visit524_933_2(child[0] && visit525_934_1(visit526_934_2(child[0].nodeType === Dom.NodeType.TEXT_NODE) && visit527_934_3(visit528_934_4(endOffset > 0) && visit529_935_1(child[0].previousSibling.nodeType === Dom.NodeType.TEXT_NODE)))))) { _$jscoverage['/editor/range.js'].lineData[936]++; endContainer = child; _$jscoverage['/editor/range.js'].lineData[937]++; @@ -3195,7 +3195,7 @@ KISSY.add(function(S, require) { } } _$jscoverage['/editor/range.js'].lineData[942]++; - while (visit519_942_1(visit520_942_2(endContainer[0].nodeType === Dom.NodeType.TEXT_NODE) && visit521_943_1((previous = endContainer.prev(undefined, 1)) && visit522_944_1(previous[0].nodeType === Dom.NodeType.TEXT_NODE)))) { + while (visit530_942_1(visit531_942_2(endContainer[0].nodeType === Dom.NodeType.TEXT_NODE) && visit532_943_1((previous = endContainer.prev(undefined, 1)) && visit533_944_1(previous[0].nodeType === Dom.NodeType.TEXT_NODE)))) { _$jscoverage['/editor/range.js'].lineData[945]++; endContainer = previous; _$jscoverage['/editor/range.js'].lineData[946]++; @@ -3225,20 +3225,20 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/range.js'].lineData[977]++; startNode.html(' '); _$jscoverage['/editor/range.js'].lineData[979]++; - if (visit523_979_1(serializable)) { + if (visit534_979_1(serializable)) { _$jscoverage['/editor/range.js'].lineData[980]++; baseId = S.guid('ke_bm_'); _$jscoverage['/editor/range.js'].lineData[981]++; startNode.attr('id', baseId + 'S'); } _$jscoverage['/editor/range.js'].lineData[985]++; - if (visit524_985_1(!collapsed)) { + if (visit535_985_1(!collapsed)) { _$jscoverage['/editor/range.js'].lineData[986]++; endNode = startNode.clone(); _$jscoverage['/editor/range.js'].lineData[987]++; endNode.html(' '); _$jscoverage['/editor/range.js'].lineData[989]++; - if (visit525_989_1(serializable)) { + if (visit536_989_1(serializable)) { _$jscoverage['/editor/range.js'].lineData[990]++; endNode.attr('id', baseId + 'E'); } @@ -3256,7 +3256,7 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/range.js'].lineData[1000]++; clone.insertNode(startNode); _$jscoverage['/editor/range.js'].lineData[1003]++; - if (visit526_1003_1(endNode)) { + if (visit537_1003_1(endNode)) { _$jscoverage['/editor/range.js'].lineData[1004]++; self.setStartAfter(startNode); _$jscoverage['/editor/range.js'].lineData[1005]++; @@ -3286,16 +3286,16 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/range.js'].lineData[1035]++; var self = this, startContainer = self.startContainer, startOffset = self.startOffset, collapsed = self.collapsed; _$jscoverage['/editor/range.js'].lineData[1040]++; - if (visit527_1040_1((visit528_1040_2(!ignoreStart || collapsed)) && visit529_1041_1(startContainer[0] && visit530_1042_1(startContainer[0].nodeType === Dom.NodeType.TEXT_NODE)))) { + if (visit538_1040_1((visit539_1040_2(!ignoreStart || collapsed)) && visit540_1041_1(startContainer[0] && visit541_1042_1(startContainer[0].nodeType === Dom.NodeType.TEXT_NODE)))) { _$jscoverage['/editor/range.js'].lineData[1045]++; - if (visit531_1045_1(!startOffset)) { + if (visit542_1045_1(!startOffset)) { _$jscoverage['/editor/range.js'].lineData[1046]++; startOffset = startContainer._4eIndex(); _$jscoverage['/editor/range.js'].lineData[1047]++; startContainer = startContainer.parent(); } else { _$jscoverage['/editor/range.js'].lineData[1051]++; - if (visit532_1051_1(startOffset >= startContainer[0].nodeValue.length)) { + if (visit543_1051_1(startOffset >= startContainer[0].nodeValue.length)) { _$jscoverage['/editor/range.js'].lineData[1052]++; startOffset = startContainer._4eIndex() + 1; _$jscoverage['/editor/range.js'].lineData[1053]++; @@ -3308,12 +3308,12 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/range.js'].lineData[1061]++; startContainer = startContainer.parent(); _$jscoverage['/editor/range.js'].lineData[1064]++; - if (visit533_1064_1(Dom.equals(self.startContainer, self.endContainer))) { + if (visit544_1064_1(Dom.equals(self.startContainer, self.endContainer))) { _$jscoverage['/editor/range.js'].lineData[1065]++; self.setEnd(nextText, self.endOffset - self.startOffset); } else { _$jscoverage['/editor/range.js'].lineData[1066]++; - if (visit534_1066_1(Dom.equals(startContainer, self.endContainer))) { + if (visit545_1066_1(Dom.equals(startContainer, self.endContainer))) { _$jscoverage['/editor/range.js'].lineData[1067]++; self.endOffset += 1; } @@ -3323,7 +3323,7 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/range.js'].lineData[1071]++; self.setStart(startContainer, startOffset); _$jscoverage['/editor/range.js'].lineData[1073]++; - if (visit535_1073_1(collapsed)) { + if (visit546_1073_1(collapsed)) { _$jscoverage['/editor/range.js'].lineData[1074]++; self.collapse(TRUE); _$jscoverage['/editor/range.js'].lineData[1075]++; @@ -3333,16 +3333,16 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/range.js'].lineData[1079]++; var endContainer = self.endContainer, endOffset = self.endOffset; _$jscoverage['/editor/range.js'].lineData[1082]++; - if (visit536_1082_1(!(visit537_1082_2(ignoreEnd || collapsed)) && visit538_1083_1(endContainer[0] && visit539_1083_2(endContainer[0].nodeType === Dom.NodeType.TEXT_NODE)))) { + if (visit547_1082_1(!(visit548_1082_2(ignoreEnd || collapsed)) && visit549_1083_1(endContainer[0] && visit550_1083_2(endContainer[0].nodeType === Dom.NodeType.TEXT_NODE)))) { _$jscoverage['/editor/range.js'].lineData[1086]++; - if (visit540_1086_1(!endOffset)) { + if (visit551_1086_1(!endOffset)) { _$jscoverage['/editor/range.js'].lineData[1087]++; endOffset = endContainer._4eIndex(); _$jscoverage['/editor/range.js'].lineData[1088]++; endContainer = endContainer.parent(); } else { _$jscoverage['/editor/range.js'].lineData[1092]++; - if (visit541_1092_1(endOffset >= endContainer[0].nodeValue.length)) { + if (visit552_1092_1(endOffset >= endContainer[0].nodeValue.length)) { _$jscoverage['/editor/range.js'].lineData[1093]++; endOffset = endContainer._4eIndex() + 1; _$jscoverage['/editor/range.js'].lineData[1094]++; @@ -3369,11 +3369,11 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/range.js'].lineData[1115]++; self.trim(FALSE, TRUE); _$jscoverage['/editor/range.js'].lineData[1116]++; - var startContainer = self.startContainer, startOffset = self.startOffset, nextNode = visit542_1118_1(startContainer[0].childNodes[startOffset] || null); + var startContainer = self.startContainer, startOffset = self.startOffset, nextNode = visit553_1118_1(startContainer[0].childNodes[startOffset] || null); _$jscoverage['/editor/range.js'].lineData[1120]++; startContainer[0].insertBefore(node[0], nextNode); _$jscoverage['/editor/range.js'].lineData[1122]++; - if (visit543_1122_1(startContainer[0] === self.endContainer[0])) { + if (visit554_1122_1(startContainer[0] === self.endContainer[0])) { _$jscoverage['/editor/range.js'].lineData[1123]++; self.endOffset++; } @@ -3385,13 +3385,13 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/range.js'].lineData[1134]++; var self = this, doc = $(self.document); _$jscoverage['/editor/range.js'].lineData[1136]++; - if (visit544_1136_1(bookmark.is2)) { + if (visit555_1136_1(bookmark.is2)) { _$jscoverage['/editor/range.js'].lineData[1138]++; - var startContainer = doc._4eGetByAddress(bookmark.start, bookmark.normalized), startOffset = bookmark.startOffset, endContainer = visit545_1140_1(bookmark.end && doc._4eGetByAddress(bookmark.end, bookmark.normalized)), endOffset = bookmark.endOffset; + var startContainer = doc._4eGetByAddress(bookmark.start, bookmark.normalized), startOffset = bookmark.startOffset, endContainer = visit556_1140_1(bookmark.end && doc._4eGetByAddress(bookmark.end, bookmark.normalized)), endOffset = bookmark.endOffset; _$jscoverage['/editor/range.js'].lineData[1144]++; self.setStart(startContainer, startOffset); _$jscoverage['/editor/range.js'].lineData[1147]++; - if (visit546_1147_1(endContainer)) { + if (visit557_1147_1(endContainer)) { _$jscoverage['/editor/range.js'].lineData[1148]++; self.setEnd(endContainer, endOffset); } else { @@ -3406,7 +3406,7 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/range.js'].lineData[1164]++; startNode._4eRemove(); _$jscoverage['/editor/range.js'].lineData[1168]++; - if (visit547_1168_1(endNode && endNode[0])) { + if (visit558_1168_1(endNode && endNode[0])) { _$jscoverage['/editor/range.js'].lineData[1169]++; self.setEndBefore(endNode); _$jscoverage['/editor/range.js'].lineData[1170]++; @@ -3422,9 +3422,9 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/range.js'].lineData[1183]++; var self = this, start = self.startContainer, end = self.endContainer, ancestor; _$jscoverage['/editor/range.js'].lineData[1188]++; - if (visit548_1188_1(start[0] === end[0])) { + if (visit559_1188_1(start[0] === end[0])) { _$jscoverage['/editor/range.js'].lineData[1189]++; - if (visit549_1189_1(includeSelf && visit550_1190_1(visit551_1190_2(start[0].nodeType === Dom.NodeType.ELEMENT_NODE) && visit552_1191_1(self.startOffset === self.endOffset - 1)))) { + if (visit560_1189_1(includeSelf && visit561_1190_1(visit562_1190_2(start[0].nodeType === Dom.NodeType.ELEMENT_NODE) && visit563_1191_1(self.startOffset === self.endOffset - 1)))) { _$jscoverage['/editor/range.js'].lineData[1192]++; ancestor = new Node(start[0].childNodes[self.startOffset]); } else { @@ -3436,7 +3436,7 @@ KISSY.add(function(S, require) { ancestor = start._4eCommonAncestor(end); } _$jscoverage['/editor/range.js'].lineData[1200]++; - return visit553_1200_1(ignoreTextNode && visit554_1200_2(ancestor[0].nodeType === Dom.NodeType.TEXT_NODE)) ? ancestor.parent() : ancestor; + return visit564_1200_1(ignoreTextNode && visit565_1200_2(ancestor[0].nodeType === Dom.NodeType.TEXT_NODE)) ? ancestor.parent() : ancestor; }, enlarge: (function() { _$jscoverage['/editor/range.js'].functionData[38]++; @@ -3446,17 +3446,17 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/range.js'].lineData[1214]++; var container = self[left ? 'startContainer' : 'endContainer'], enlarge, sibling, index = left ? 0 : 1, commonReached = 0, direction = left ? 'previousSibling' : 'nextSibling', offset = self[left ? 'startOffset' : 'endOffset']; _$jscoverage['/editor/range.js'].lineData[1222]++; - if (visit555_1222_1(container[0].nodeType === Dom.NodeType.TEXT_NODE)) { + if (visit566_1222_1(container[0].nodeType === Dom.NodeType.TEXT_NODE)) { _$jscoverage['/editor/range.js'].lineData[1223]++; - if (visit556_1223_1(left)) { + if (visit567_1223_1(left)) { _$jscoverage['/editor/range.js'].lineData[1225]++; - if (visit557_1225_1(offset)) { + if (visit568_1225_1(offset)) { _$jscoverage['/editor/range.js'].lineData[1226]++; return; } } else { _$jscoverage['/editor/range.js'].lineData[1229]++; - if (visit558_1229_1(offset < container[0].nodeValue.length)) { + if (visit569_1229_1(offset < container[0].nodeValue.length)) { _$jscoverage['/editor/range.js'].lineData[1230]++; return; } @@ -3467,7 +3467,7 @@ KISSY.add(function(S, require) { enlarge = container[0].parentNode; } else { _$jscoverage['/editor/range.js'].lineData[1240]++; - sibling = visit559_1240_1(container[0].childNodes[offset + (left ? -1 : 1)] || null); + sibling = visit570_1240_1(container[0].childNodes[offset + (left ? -1 : 1)] || null); _$jscoverage['/editor/range.js'].lineData[1242]++; enlarge = container[0]; } @@ -3476,7 +3476,7 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/range.js'].lineData[1247]++; while (sibling) { _$jscoverage['/editor/range.js'].lineData[1248]++; - if (visit560_1248_1(isWhitespace(sibling) || isBookmark(sibling))) { + if (visit571_1248_1(isWhitespace(sibling) || isBookmark(sibling))) { _$jscoverage['/editor/range.js'].lineData[1249]++; sibling = sibling[direction]; } else { @@ -3485,9 +3485,9 @@ KISSY.add(function(S, require) { } } _$jscoverage['/editor/range.js'].lineData[1256]++; - if (visit561_1256_1(sibling)) { + if (visit572_1256_1(sibling)) { _$jscoverage['/editor/range.js'].lineData[1258]++; - if (visit562_1258_1(!commonReached)) { + if (visit573_1258_1(!commonReached)) { _$jscoverage['/editor/range.js'].lineData[1260]++; self[left ? 'setStartAfter' : 'setEndBefore']($(sibling)); } @@ -3497,12 +3497,12 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/range.js'].lineData[1269]++; enlarge = $(enlarge); _$jscoverage['/editor/range.js'].lineData[1271]++; - if (visit563_1271_1(enlarge.nodeName() === 'body')) { + if (visit574_1271_1(enlarge.nodeName() === 'body')) { _$jscoverage['/editor/range.js'].lineData[1272]++; return; } _$jscoverage['/editor/range.js'].lineData[1275]++; - if (visit564_1275_1(commonReached || enlarge.equals(commonAncestor))) { + if (visit575_1275_1(commonReached || enlarge.equals(commonAncestor))) { _$jscoverage['/editor/range.js'].lineData[1276]++; stop[index] = enlarge; _$jscoverage['/editor/range.js'].lineData[1277]++; @@ -3521,12 +3521,12 @@ KISSY.add(function(S, require) { return function(unit) { _$jscoverage['/editor/range.js'].functionData[40]++; _$jscoverage['/editor/range.js'].lineData[1290]++; - var self = this; + var self = this, enlargeable; _$jscoverage['/editor/range.js'].lineData[1291]++; switch (unit) { case KER.ENLARGE_ELEMENT: _$jscoverage['/editor/range.js'].lineData[1294]++; - if (visit565_1294_1(self.collapsed)) { + if (visit576_1294_1(self.collapsed)) { _$jscoverage['/editor/range.js'].lineData[1295]++; return; } @@ -3537,7 +3537,7 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/range.js'].lineData[1302]++; enlargeElement(self, 0, stop, commonAncestor); _$jscoverage['/editor/range.js'].lineData[1304]++; - if (visit566_1304_1(stop[0] && stop[1])) { + if (visit577_1304_1(stop[0] && stop[1])) { _$jscoverage['/editor/range.js'].lineData[1305]++; var commonStop = stop[0].contains(stop[1]) ? stop[1] : stop[0]; _$jscoverage['/editor/range.js'].lineData[1306]++; @@ -3558,13 +3558,13 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/range.js'].lineData[1320]++; walkerRange.setEnd(self.startContainer, self.startOffset); _$jscoverage['/editor/range.js'].lineData[1322]++; - var walker = new Walker(walkerRange), blockBoundary, tailBr, defaultGuard = Walker.blockBoundary((visit567_1326_1(unit === KER.ENLARGE_LIST_ITEM_CONTENTS)) ? { + var walker = new Walker(walkerRange), blockBoundary, tailBr, defaultGuard = Walker.blockBoundary((visit578_1326_1(unit === KER.ENLARGE_LIST_ITEM_CONTENTS)) ? { br: 1} : NULL), boundaryGuard = function(node) { _$jscoverage['/editor/range.js'].functionData[41]++; _$jscoverage['/editor/range.js'].lineData[1330]++; var retVal = defaultGuard(node); _$jscoverage['/editor/range.js'].lineData[1331]++; - if (visit568_1331_1(!retVal)) { + if (visit579_1331_1(!retVal)) { _$jscoverage['/editor/range.js'].lineData[1332]++; blockBoundary = $(node); } @@ -3575,7 +3575,7 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/range.js'].lineData[1338]++; var retVal = boundaryGuard(node); _$jscoverage['/editor/range.js'].lineData[1339]++; - if (visit569_1339_1(!retVal && visit570_1339_2(Dom.nodeName(node) === 'br'))) { + if (visit580_1339_1(!retVal && visit581_1339_2(Dom.nodeName(node) === 'br'))) { _$jscoverage['/editor/range.js'].lineData[1340]++; tailBr = $(node); } @@ -3587,9 +3587,9 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/range.js'].lineData[1347]++; enlargeable = walker.lastBackward(); _$jscoverage['/editor/range.js'].lineData[1350]++; - blockBoundary = visit571_1350_1(blockBoundary || body); + blockBoundary = visit582_1350_1(blockBoundary || body); _$jscoverage['/editor/range.js'].lineData[1354]++; - self.setStartAt(blockBoundary, visit572_1356_1(visit573_1356_2(blockBoundary.nodeName() !== 'br') && (visit574_1364_1(visit575_1364_2(!enlargeable && self.checkStartOfBlock()) || visit576_1364_3(enlargeable && blockBoundary.contains(enlargeable))))) ? KER.POSITION_AFTER_START : KER.POSITION_AFTER_END); + self.setStartAt(blockBoundary, visit583_1356_1(visit584_1356_2(blockBoundary.nodeName() !== 'br') && (visit585_1364_1(visit586_1364_2(!enlargeable && self.checkStartOfBlock()) || visit587_1364_3(enlargeable && blockBoundary.contains(enlargeable))))) ? KER.POSITION_AFTER_START : KER.POSITION_AFTER_END); _$jscoverage['/editor/range.js'].lineData[1369]++; walkerRange = self.clone(); _$jscoverage['/editor/range.js'].lineData[1370]++; @@ -3599,17 +3599,17 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/range.js'].lineData[1372]++; walker = new Walker(walkerRange); _$jscoverage['/editor/range.js'].lineData[1375]++; - walker.guard = (visit577_1375_1(unit === KER.ENLARGE_LIST_ITEM_CONTENTS)) ? tailBrGuard : boundaryGuard; + walker.guard = (visit588_1375_1(unit === KER.ENLARGE_LIST_ITEM_CONTENTS)) ? tailBrGuard : boundaryGuard; _$jscoverage['/editor/range.js'].lineData[1377]++; blockBoundary = NULL; _$jscoverage['/editor/range.js'].lineData[1380]++; - var enlargeable = walker.lastForward(); + enlargeable = walker.lastForward(); _$jscoverage['/editor/range.js'].lineData[1383]++; - blockBoundary = visit578_1383_1(blockBoundary || body); + blockBoundary = visit589_1383_1(blockBoundary || body); _$jscoverage['/editor/range.js'].lineData[1387]++; - self.setEndAt(blockBoundary, (visit579_1389_1(visit580_1389_2(!enlargeable && self.checkEndOfBlock()) || visit581_1389_3(enlargeable && blockBoundary.contains(enlargeable)))) ? KER.POSITION_BEFORE_END : KER.POSITION_BEFORE_START); + self.setEndAt(blockBoundary, (visit590_1389_1(visit591_1389_2(!enlargeable && self.checkEndOfBlock()) || visit592_1389_3(enlargeable && blockBoundary.contains(enlargeable)))) ? KER.POSITION_BEFORE_END : KER.POSITION_BEFORE_START); _$jscoverage['/editor/range.js'].lineData[1394]++; - if (visit582_1394_1(tailBr)) { + if (visit593_1394_1(tailBr)) { _$jscoverage['/editor/range.js'].lineData[1395]++; self.setEndAfter(tailBr); } @@ -3621,11 +3621,11 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/range.js'].lineData[1406]++; var self = this, startContainer = self.startContainer, startOffset = self.startOffset; _$jscoverage['/editor/range.js'].lineData[1412]++; - if (visit583_1412_1(startOffset && visit584_1412_2(startContainer[0].nodeType === Dom.NodeType.TEXT_NODE))) { + if (visit594_1412_1(startOffset && visit595_1412_2(startContainer[0].nodeType === Dom.NodeType.TEXT_NODE))) { _$jscoverage['/editor/range.js'].lineData[1413]++; var textBefore = S.trim(startContainer[0].nodeValue.substring(0, startOffset)); _$jscoverage['/editor/range.js'].lineData[1414]++; - if (visit585_1414_1(textBefore.length)) { + if (visit596_1414_1(textBefore.length)) { _$jscoverage['/editor/range.js'].lineData[1415]++; return FALSE; } @@ -3639,7 +3639,7 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/range.js'].lineData[1430]++; walkerRange.collapse(TRUE); _$jscoverage['/editor/range.js'].lineData[1431]++; - walkerRange.setStartAt(visit586_1431_1(path.block || path.blockLimit), KER.POSITION_AFTER_START); + walkerRange.setStartAt(visit597_1431_1(path.block || path.blockLimit), KER.POSITION_AFTER_START); _$jscoverage['/editor/range.js'].lineData[1433]++; var walker = new Walker(walkerRange); _$jscoverage['/editor/range.js'].lineData[1434]++; @@ -3652,11 +3652,11 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/range.js'].lineData[1444]++; var self = this, endContainer = self.endContainer, endOffset = self.endOffset; _$jscoverage['/editor/range.js'].lineData[1449]++; - if (visit587_1449_1(endContainer[0].nodeType === Dom.NodeType.TEXT_NODE)) { + if (visit598_1449_1(endContainer[0].nodeType === Dom.NodeType.TEXT_NODE)) { _$jscoverage['/editor/range.js'].lineData[1450]++; var textAfter = S.trim(endContainer[0].nodeValue.substring(endOffset)); _$jscoverage['/editor/range.js'].lineData[1451]++; - if (visit588_1451_1(textAfter.length)) { + if (visit599_1451_1(textAfter.length)) { _$jscoverage['/editor/range.js'].lineData[1452]++; return FALSE; } @@ -3670,7 +3670,7 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/range.js'].lineData[1467]++; walkerRange.collapse(FALSE); _$jscoverage['/editor/range.js'].lineData[1468]++; - walkerRange.setEndAt(visit589_1468_1(path.block || path.blockLimit), KER.POSITION_BEFORE_END); + walkerRange.setEndAt(visit600_1468_1(path.block || path.blockLimit), KER.POSITION_BEFORE_END); _$jscoverage['/editor/range.js'].lineData[1470]++; var walker = new Walker(walkerRange); _$jscoverage['/editor/range.js'].lineData[1471]++; @@ -3683,29 +3683,29 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/range.js'].lineData[1482]++; var walkerRange = this.clone(); _$jscoverage['/editor/range.js'].lineData[1486]++; - walkerRange[visit590_1484_1(checkType === KER.START) ? 'setStartAt' : 'setEndAt'](element, visit591_1486_1(checkType === KER.START) ? KER.POSITION_AFTER_START : KER.POSITION_BEFORE_END); + walkerRange[visit601_1484_1(checkType === KER.START) ? 'setStartAt' : 'setEndAt'](element, visit602_1486_1(checkType === KER.START) ? KER.POSITION_AFTER_START : KER.POSITION_BEFORE_END); _$jscoverage['/editor/range.js'].lineData[1490]++; var walker = new Walker(walkerRange); _$jscoverage['/editor/range.js'].lineData[1492]++; walker.evaluator = elementBoundaryEval; _$jscoverage['/editor/range.js'].lineData[1493]++; - return walker[visit592_1493_1(checkType === KER.START) ? 'checkBackward' : 'checkForward'](); + return walker[visit603_1493_1(checkType === KER.START) ? 'checkBackward' : 'checkForward'](); }, getBoundaryNodes: function() { _$jscoverage['/editor/range.js'].functionData[46]++; _$jscoverage['/editor/range.js'].lineData[1502]++; var self = this, startNode = self.startContainer, endNode = self.endContainer, startOffset = self.startOffset, endOffset = self.endOffset, childCount; _$jscoverage['/editor/range.js'].lineData[1509]++; - if (visit593_1509_1(startNode[0].nodeType === Dom.NodeType.ELEMENT_NODE)) { + if (visit604_1509_1(startNode[0].nodeType === Dom.NodeType.ELEMENT_NODE)) { _$jscoverage['/editor/range.js'].lineData[1510]++; childCount = startNode[0].childNodes.length; _$jscoverage['/editor/range.js'].lineData[1511]++; - if (visit594_1511_1(childCount > startOffset)) { + if (visit605_1511_1(childCount > startOffset)) { _$jscoverage['/editor/range.js'].lineData[1512]++; startNode = $(startNode[0].childNodes[startOffset]); } else { _$jscoverage['/editor/range.js'].lineData[1513]++; - if (visit595_1513_1(childCount === 0)) { + if (visit606_1513_1(childCount === 0)) { _$jscoverage['/editor/range.js'].lineData[1515]++; startNode = startNode._4ePreviousSourceNode(); } else { @@ -3719,21 +3719,21 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/range.js'].lineData[1524]++; startNode = $(startNode); _$jscoverage['/editor/range.js'].lineData[1529]++; - startNode = visit596_1529_1(startNode._4eNextSourceNode() || startNode); + startNode = visit607_1529_1(startNode._4eNextSourceNode() || startNode); } } } _$jscoverage['/editor/range.js'].lineData[1533]++; - if (visit597_1533_1(endNode[0].nodeType === Dom.NodeType.ELEMENT_NODE)) { + if (visit608_1533_1(endNode[0].nodeType === Dom.NodeType.ELEMENT_NODE)) { _$jscoverage['/editor/range.js'].lineData[1534]++; childCount = endNode[0].childNodes.length; _$jscoverage['/editor/range.js'].lineData[1535]++; - if (visit598_1535_1(childCount > endOffset)) { + if (visit609_1535_1(childCount > endOffset)) { _$jscoverage['/editor/range.js'].lineData[1536]++; endNode = $(endNode[0].childNodes[endOffset])._4ePreviousSourceNode(TRUE); } else { _$jscoverage['/editor/range.js'].lineData[1539]++; - if (visit599_1539_1(childCount === 0)) { + if (visit610_1539_1(childCount === 0)) { _$jscoverage['/editor/range.js'].lineData[1540]++; endNode = endNode._4ePreviousSourceNode(); } else { @@ -3750,7 +3750,7 @@ KISSY.add(function(S, require) { } } _$jscoverage['/editor/range.js'].lineData[1554]++; - if (visit600_1554_1(startNode._4ePosition(endNode) & KEP.POSITION_FOLLOWING)) { + if (visit611_1554_1(startNode._4ePosition(endNode) & KEP.POSITION_FOLLOWING)) { _$jscoverage['/editor/range.js'].lineData[1555]++; startNode = endNode; } @@ -3772,7 +3772,7 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/range.js'].lineData[1575]++; fixedBlock._4eTrim(); _$jscoverage['/editor/range.js'].lineData[1576]++; - if (visit601_1576_1(!UA.ie)) { + if (visit612_1576_1(!UA.ie)) { _$jscoverage['/editor/range.js'].lineData[1577]++; fixedBlock._4eAppendBogus(); } @@ -3788,33 +3788,33 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/range.js'].lineData[1590]++; var self = this, startPath = new ElementPath(self.startContainer), endPath = new ElementPath(self.endContainer), startBlockLimit = startPath.blockLimit, endBlockLimit = endPath.blockLimit, startBlock = startPath.block, endBlock = endPath.block, elementPath = NULL; _$jscoverage['/editor/range.js'].lineData[1600]++; - if (visit602_1600_1(!startBlockLimit.equals(endBlockLimit))) { + if (visit613_1600_1(!startBlockLimit.equals(endBlockLimit))) { _$jscoverage['/editor/range.js'].lineData[1601]++; return NULL; } _$jscoverage['/editor/range.js'].lineData[1605]++; - if (visit603_1605_1(blockTag !== 'br')) { + if (visit614_1605_1(blockTag !== 'br')) { _$jscoverage['/editor/range.js'].lineData[1606]++; - if (visit604_1606_1(!startBlock)) { + if (visit615_1606_1(!startBlock)) { _$jscoverage['/editor/range.js'].lineData[1607]++; startBlock = self.fixBlock(TRUE, blockTag); _$jscoverage['/editor/range.js'].lineData[1608]++; endBlock = new ElementPath(self.endContainer).block; } _$jscoverage['/editor/range.js'].lineData[1611]++; - if (visit605_1611_1(!endBlock)) { + if (visit616_1611_1(!endBlock)) { _$jscoverage['/editor/range.js'].lineData[1612]++; endBlock = self.fixBlock(FALSE, blockTag); } } _$jscoverage['/editor/range.js'].lineData[1617]++; - var isStartOfBlock = visit606_1617_1(startBlock && self.checkStartOfBlock()), isEndOfBlock = visit607_1618_1(endBlock && self.checkEndOfBlock()); + var isStartOfBlock = visit617_1617_1(startBlock && self.checkStartOfBlock()), isEndOfBlock = visit618_1618_1(endBlock && self.checkEndOfBlock()); _$jscoverage['/editor/range.js'].lineData[1621]++; self.deleteContents(); _$jscoverage['/editor/range.js'].lineData[1623]++; - if (visit608_1623_1(startBlock && visit609_1623_2(startBlock[0] === endBlock[0]))) { + if (visit619_1623_1(startBlock && visit620_1623_2(startBlock[0] === endBlock[0]))) { _$jscoverage['/editor/range.js'].lineData[1624]++; - if (visit610_1624_1(isEndOfBlock)) { + if (visit621_1624_1(isEndOfBlock)) { _$jscoverage['/editor/range.js'].lineData[1625]++; elementPath = new ElementPath(self.startContainer); _$jscoverage['/editor/range.js'].lineData[1626]++; @@ -3823,7 +3823,7 @@ KISSY.add(function(S, require) { endBlock = NULL; } else { _$jscoverage['/editor/range.js'].lineData[1629]++; - if (visit611_1629_1(isStartOfBlock)) { + if (visit622_1629_1(isStartOfBlock)) { _$jscoverage['/editor/range.js'].lineData[1630]++; elementPath = new ElementPath(self.startContainer); _$jscoverage['/editor/range.js'].lineData[1631]++; @@ -3834,7 +3834,7 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/range.js'].lineData[1635]++; endBlock = self.splitElement(startBlock); _$jscoverage['/editor/range.js'].lineData[1639]++; - if (visit612_1639_1(!UA.ie && !S.inArray(startBlock.nodeName(), ['ul', 'ol']))) { + if (visit623_1639_1(!UA.ie && !S.inArray(startBlock.nodeName(), ['ul', 'ol']))) { _$jscoverage['/editor/range.js'].lineData[1640]++; startBlock._4eAppendBogus(); } @@ -3854,7 +3854,7 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/range.js'].lineData[1660]++; var self = this; _$jscoverage['/editor/range.js'].lineData[1661]++; - if (visit613_1661_1(!self.collapsed)) { + if (visit624_1661_1(!self.collapsed)) { _$jscoverage['/editor/range.js'].lineData[1662]++; return NULL; } @@ -3879,12 +3879,12 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/range.js'].lineData[1690]++; var next; _$jscoverage['/editor/range.js'].lineData[1692]++; - if (visit614_1692_1(visit615_1692_2(node[0].nodeType === Dom.NodeType.ELEMENT_NODE) && node._4eIsEditable())) { + if (visit625_1692_1(visit626_1692_2(node[0].nodeType === Dom.NodeType.ELEMENT_NODE) && node._4eIsEditable())) { _$jscoverage['/editor/range.js'].lineData[1694]++; next = node[isMoveToEnd ? 'last' : 'first'](nonWhitespaceOrIsBookmark, 1); } _$jscoverage['/editor/range.js'].lineData[1697]++; - if (visit616_1697_1(!childOnly && !next)) { + if (visit627_1697_1(!childOnly && !next)) { _$jscoverage['/editor/range.js'].lineData[1698]++; next = node[isMoveToEnd ? 'prev' : 'next'](nonWhitespaceOrIsBookmark, 1); } @@ -3896,7 +3896,7 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/range.js'].lineData[1706]++; while (el) { _$jscoverage['/editor/range.js'].lineData[1708]++; - if (visit617_1708_1(el[0].nodeType === Dom.NodeType.TEXT_NODE)) { + if (visit628_1708_1(el[0].nodeType === Dom.NodeType.TEXT_NODE)) { _$jscoverage['/editor/range.js'].lineData[1709]++; self.moveToPosition(el, isMoveToEnd ? KER.POSITION_AFTER_END : KER.POSITION_BEFORE_START); _$jscoverage['/editor/range.js'].lineData[1712]++; @@ -3905,7 +3905,7 @@ KISSY.add(function(S, require) { break; } _$jscoverage['/editor/range.js'].lineData[1717]++; - if (visit618_1717_1(visit619_1717_2(el[0].nodeType === Dom.NodeType.ELEMENT_NODE) && el._4eIsEditable())) { + if (visit629_1717_1(visit630_1717_2(el[0].nodeType === Dom.NodeType.ELEMENT_NODE) && el._4eIsEditable())) { _$jscoverage['/editor/range.js'].lineData[1718]++; self.moveToPosition(el, isMoveToEnd ? KER.POSITION_BEFORE_END : KER.POSITION_AFTER_START); _$jscoverage['/editor/range.js'].lineData[1721]++; @@ -3924,7 +3924,7 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/range.js'].lineData[1736]++; self.setStart(node, 0); _$jscoverage['/editor/range.js'].lineData[1737]++; - self.setEnd(node, visit620_1737_1(domNode.nodeType === Dom.NodeType.TEXT_NODE) ? domNode.nodeValue.length : domNode.childNodes.length); + self.setEnd(node, visit631_1737_1(domNode.nodeType === Dom.NodeType.TEXT_NODE) ? domNode.nodeValue.length : domNode.childNodes.length); }, insertNodeByDtd: function(element) { _$jscoverage['/editor/range.js'].functionData[53]++; @@ -3933,15 +3933,15 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/range.js'].lineData[1753]++; self.deleteContents(); _$jscoverage['/editor/range.js'].lineData[1754]++; - if (visit621_1754_1(isBlock)) { + if (visit632_1754_1(isBlock)) { _$jscoverage['/editor/range.js'].lineData[1755]++; current = self.getCommonAncestor(FALSE, TRUE); _$jscoverage['/editor/range.js'].lineData[1756]++; - while (visit622_1756_1((tmpDtd = dtd[current.nodeName()]) && !(visit623_1756_2(tmpDtd && tmpDtd[elementName])))) { + while (visit633_1756_1((tmpDtd = dtd[current.nodeName()]) && !(visit634_1756_2(tmpDtd && tmpDtd[elementName])))) { _$jscoverage['/editor/range.js'].lineData[1757]++; var parent = current.parent(); _$jscoverage['/editor/range.js'].lineData[1760]++; - if (visit624_1760_1(self.checkStartOfBlock() && self.checkEndOfBlock())) { + if (visit635_1760_1(self.checkStartOfBlock() && self.checkEndOfBlock())) { _$jscoverage['/editor/range.js'].lineData[1761]++; self.setStartBefore(current); _$jscoverage['/editor/range.js'].lineData[1762]++; @@ -3956,7 +3956,7 @@ KISSY.add(function(S, require) { current = parent; } _$jscoverage['/editor/range.js'].lineData[1770]++; - if (visit625_1770_1(last)) { + if (visit636_1770_1(last)) { _$jscoverage['/editor/range.js'].lineData[1771]++; self.splitElement(last); } diff --git a/src/editor/coverage/src/editor/render-xtpl.js b/src/editor/coverage/src/editor/render-xtpl.js index d55c178704..4dc42e97d5 100644 --- a/src/editor/coverage/src/editor/render-xtpl.js +++ b/src/editor/coverage/src/editor/render-xtpl.js @@ -235,8 +235,6 @@ if (! _$jscoverage['/editor/render-xtpl.js']) { _$jscoverage['/editor/render-xtpl.js'].lineData[9] = 0; _$jscoverage['/editor/render-xtpl.js'].lineData[10] = 0; _$jscoverage['/editor/render-xtpl.js'].lineData[12] = 0; - _$jscoverage['/editor/render-xtpl.js'].lineData[15] = 0; - _$jscoverage['/editor/render-xtpl.js'].lineData[16] = 0; _$jscoverage['/editor/render-xtpl.js'].lineData[17] = 0; _$jscoverage['/editor/render-xtpl.js'].lineData[18] = 0; _$jscoverage['/editor/render-xtpl.js'].lineData[19] = 0; @@ -254,8 +252,8 @@ if (! _$jscoverage['/editor/render-xtpl.js']) { _$jscoverage['/editor/render-xtpl.js'].lineData[31] = 0; _$jscoverage['/editor/render-xtpl.js'].lineData[32] = 0; _$jscoverage['/editor/render-xtpl.js'].lineData[33] = 0; + _$jscoverage['/editor/render-xtpl.js'].lineData[34] = 0; _$jscoverage['/editor/render-xtpl.js'].lineData[35] = 0; - _$jscoverage['/editor/render-xtpl.js'].lineData[36] = 0; _$jscoverage['/editor/render-xtpl.js'].lineData[37] = 0; _$jscoverage['/editor/render-xtpl.js'].lineData[38] = 0; _$jscoverage['/editor/render-xtpl.js'].lineData[39] = 0; @@ -280,8 +278,8 @@ if (! _$jscoverage['/editor/render-xtpl.js']) { _$jscoverage['/editor/render-xtpl.js'].lineData[58] = 0; _$jscoverage['/editor/render-xtpl.js'].lineData[59] = 0; _$jscoverage['/editor/render-xtpl.js'].lineData[60] = 0; + _$jscoverage['/editor/render-xtpl.js'].lineData[61] = 0; _$jscoverage['/editor/render-xtpl.js'].lineData[62] = 0; - _$jscoverage['/editor/render-xtpl.js'].lineData[63] = 0; _$jscoverage['/editor/render-xtpl.js'].lineData[64] = 0; _$jscoverage['/editor/render-xtpl.js'].lineData[65] = 0; _$jscoverage['/editor/render-xtpl.js'].lineData[66] = 0; @@ -291,8 +289,8 @@ if (! _$jscoverage['/editor/render-xtpl.js']) { _$jscoverage['/editor/render-xtpl.js'].lineData[70] = 0; _$jscoverage['/editor/render-xtpl.js'].lineData[71] = 0; _$jscoverage['/editor/render-xtpl.js'].lineData[72] = 0; + _$jscoverage['/editor/render-xtpl.js'].lineData[73] = 0; _$jscoverage['/editor/render-xtpl.js'].lineData[74] = 0; - _$jscoverage['/editor/render-xtpl.js'].lineData[75] = 0; _$jscoverage['/editor/render-xtpl.js'].lineData[76] = 0; _$jscoverage['/editor/render-xtpl.js'].lineData[77] = 0; _$jscoverage['/editor/render-xtpl.js'].lineData[78] = 0; @@ -303,6 +301,8 @@ if (! _$jscoverage['/editor/render-xtpl.js']) { _$jscoverage['/editor/render-xtpl.js'].lineData[83] = 0; _$jscoverage['/editor/render-xtpl.js'].lineData[84] = 0; _$jscoverage['/editor/render-xtpl.js'].lineData[85] = 0; + _$jscoverage['/editor/render-xtpl.js'].lineData[86] = 0; + _$jscoverage['/editor/render-xtpl.js'].lineData[87] = 0; } if (! _$jscoverage['/editor/render-xtpl.js'].functionData) { _$jscoverage['/editor/render-xtpl.js'].functionData = []; @@ -319,11 +319,11 @@ if (! _$jscoverage['/editor/render-xtpl.js'].branchData) { _$jscoverage['/editor/render-xtpl.js'].branchData['9'][2] = new BranchData(); } _$jscoverage['/editor/render-xtpl.js'].branchData['9'][2].init(165, 29, 'typeof module !== "undefined"'); -function visit627_9_2(result) { +function visit638_9_2(result) { _$jscoverage['/editor/render-xtpl.js'].branchData['9'][2].ranCondition(result); return result; }_$jscoverage['/editor/render-xtpl.js'].branchData['9'][1].init(165, 45, 'typeof module !== "undefined" && module.kissy'); -function visit626_9_1(result) { +function visit637_9_1(result) { _$jscoverage['/editor/render-xtpl.js'].branchData['9'][1].ranCondition(result); return result; }_$jscoverage['/editor/render-xtpl.js'].lineData[2]++; @@ -335,153 +335,153 @@ KISSY.add(function(S, require, exports, module) { _$jscoverage['/editor/render-xtpl.js'].lineData[5]++; var buffer = "", config = this.config, engine = this, moduleWrap, utils = config.utils; _$jscoverage['/editor/render-xtpl.js'].lineData[9]++; - if (visit626_9_1(visit627_9_2(typeof module !== "undefined") && module.kissy)) { + if (visit637_9_1(visit638_9_2(typeof module !== "undefined") && module.kissy)) { _$jscoverage['/editor/render-xtpl.js'].lineData[10]++; moduleWrap = module; } _$jscoverage['/editor/render-xtpl.js'].lineData[12]++; - var runBlockCommandUtil = utils.runBlockCommand, getExpressionUtil = utils.getExpression, getPropertyOrRunCommandUtil = utils.getPropertyOrRunCommand; - _$jscoverage['/editor/render-xtpl.js'].lineData[15]++; - buffer += '
= 0'); -function visit727_723_1(result) { +function visit738_723_1(result) { _$jscoverage['/editor/selection.js'].branchData['723'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['704'][2].init(276, 56, 'startContainer[0].nodeType === Dom.NodeType.ELEMENT_NODE'); -function visit726_704_2(result) { +function visit737_704_2(result) { _$jscoverage['/editor/selection.js'].branchData['704'][2].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['704'][1].init(33, 96, 'startContainer[0].nodeType === Dom.NodeType.ELEMENT_NODE && !startContainer[0].childNodes.length'); -function visit725_704_1(result) { +function visit736_704_1(result) { _$jscoverage['/editor/selection.js'].branchData['704'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['703'][1].init(240, 130, 'self.collapsed && startContainer[0].nodeType === Dom.NodeType.ELEMENT_NODE && !startContainer[0].childNodes.length'); -function visit724_703_1(result) { +function visit735_703_1(result) { _$jscoverage['/editor/selection.js'].branchData['703'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['687'][1].init(21, 3, 'sel'); -function visit723_687_1(result) { +function visit734_687_1(result) { _$jscoverage['/editor/selection.js'].branchData['687'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['683'][1].init(21, 3, 'sel'); -function visit722_683_1(result) { +function visit733_683_1(result) { _$jscoverage['/editor/selection.js'].branchData['683'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['682'][1].init(57, 7, '!OLD_IE'); -function visit721_682_1(result) { +function visit732_682_1(result) { _$jscoverage['/editor/selection.js'].branchData['682'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['672'][1].init(196, 5, 'start'); -function visit720_672_1(result) { +function visit731_672_1(result) { _$jscoverage['/editor/selection.js'].branchData['672'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['651'][1].init(71, 20, 'i < bookmarks.length'); -function visit719_651_1(result) { +function visit730_651_1(result) { _$jscoverage['/editor/selection.js'].branchData['651'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['640'][1].init(632, 42, 'Dom.equals(rangeEnd, bookmarkEnd.parent())'); -function visit718_640_1(result) { +function visit729_640_1(result) { _$jscoverage['/editor/selection.js'].branchData['640'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['637'][1].init(490, 44, 'Dom.equals(rangeEnd, bookmarkStart.parent())'); -function visit717_637_1(result) { +function visit728_637_1(result) { _$jscoverage['/editor/selection.js'].branchData['637'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['634'][1].init(346, 44, 'Dom.equals(rangeStart, bookmarkEnd.parent())'); -function visit716_634_1(result) { +function visit727_634_1(result) { _$jscoverage['/editor/selection.js'].branchData['634'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['631'][1].init(200, 46, 'Dom.equals(rangeStart, bookmarkStart.parent())'); -function visit715_631_1(result) { +function visit726_631_1(result) { _$jscoverage['/editor/selection.js'].branchData['631'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['626'][1].init(492, 10, 'j < length'); -function visit714_626_1(result) { +function visit725_626_1(result) { _$jscoverage['/editor/selection.js'].branchData['626'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['618'][1].init(239, 10, 'i < length'); -function visit713_618_1(result) { +function visit724_618_1(result) { _$jscoverage['/editor/selection.js'].branchData['618'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['616'][1].init(143, 26, 'ranges || self.getRanges()'); -function visit712_616_1(result) { +function visit723_616_1(result) { _$jscoverage['/editor/selection.js'].branchData['616'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['605'][1].init(105, 17, 'i < ranges.length'); -function visit711_605_1(result) { +function visit722_605_1(result) { _$jscoverage['/editor/selection.js'].branchData['605'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['584'][2].init(590, 56, 'startContainer[0].nodeType === Dom.NodeType.ELEMENT_NODE'); -function visit710_584_2(result) { +function visit721_584_2(result) { _$jscoverage['/editor/selection.js'].branchData['584'][2].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['584'][1].init(84, 96, 'startContainer[0].nodeType === Dom.NodeType.ELEMENT_NODE && !startContainer[0].childNodes.length'); -function visit709_584_1(result) { +function visit720_584_1(result) { _$jscoverage['/editor/selection.js'].branchData['584'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['583'][5].init(539, 21, 'UA.opera || UA.webkit'); -function visit708_583_5(result) { +function visit719_583_5(result) { _$jscoverage['/editor/selection.js'].branchData['583'][5].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['583'][4].init(516, 17, 'UA.gecko < 1.0900'); -function visit707_583_4(result) { +function visit718_583_4(result) { _$jscoverage['/editor/selection.js'].branchData['583'][4].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['583'][3].init(504, 29, 'UA.gecko && UA.gecko < 1.0900'); -function visit706_583_3(result) { +function visit717_583_3(result) { _$jscoverage['/editor/selection.js'].branchData['583'][3].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['583'][2].init(504, 56, '(UA.gecko && UA.gecko < 1.0900) || UA.opera || UA.webkit'); -function visit705_583_2(result) { +function visit716_583_2(result) { _$jscoverage['/editor/selection.js'].branchData['583'][2].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['583'][1].init(45, 181, '((UA.gecko && UA.gecko < 1.0900) || UA.opera || UA.webkit) && startContainer[0].nodeType === Dom.NodeType.ELEMENT_NODE && !startContainer[0].childNodes.length'); -function visit704_583_1(result) { +function visit715_583_1(result) { _$jscoverage['/editor/selection.js'].branchData['583'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['582'][1].init(456, 227, 'range.collapsed && ((UA.gecko && UA.gecko < 1.0900) || UA.opera || UA.webkit) && startContainer[0].nodeType === Dom.NodeType.ELEMENT_NODE && !startContainer[0].childNodes.length'); -function visit703_582_1(result) { +function visit714_582_1(result) { _$jscoverage['/editor/selection.js'].branchData['582'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['573'][1].init(190, 17, 'i < ranges.length'); -function visit702_573_1(result) { +function visit713_573_1(result) { _$jscoverage['/editor/selection.js'].branchData['573'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['569'][1].init(65, 4, '!sel'); -function visit701_569_1(result) { +function visit712_569_1(result) { _$jscoverage['/editor/selection.js'].branchData['569'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['561'][1].init(464, 11, 'ranges[0]'); -function visit700_561_1(result) { +function visit711_561_1(result) { _$jscoverage['/editor/selection.js'].branchData['561'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['552'][1].init(21, 17, 'ranges.length > 1'); -function visit699_552_1(result) { +function visit710_552_1(result) { _$jscoverage['/editor/selection.js'].branchData['552'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['551'][1].init(46, 6, 'OLD_IE'); -function visit698_551_1(result) { +function visit709_551_1(result) { _$jscoverage['/editor/selection.js'].branchData['551'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['519'][1].init(106, 6, 'OLD_IE'); -function visit697_519_1(result) { +function visit708_519_1(result) { _$jscoverage['/editor/selection.js'].branchData['519'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['489'][1].init(129, 98, 'styleObjectElements[enclosed.nodeName()] && (selected = enclosed)'); -function visit696_489_1(result) { +function visit707_489_1(result) { _$jscoverage['/editor/selection.js'].branchData['489'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['487'][2].init(76, 50, 'enclosed[0].nodeType === Dom.NodeType.ELEMENT_NODE'); -function visit695_487_2(result) { +function visit706_487_2(result) { _$jscoverage['/editor/selection.js'].branchData['487'][2].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['487'][1].init(70, 228, '(enclosed[0].nodeType === Dom.NodeType.ELEMENT_NODE) && styleObjectElements[enclosed.nodeName()] && (selected = enclosed)'); -function visit694_487_1(result) { +function visit705_487_1(result) { _$jscoverage['/editor/selection.js'].branchData['487'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['486'][2].init(359, 299, '(enclosed = range.getEnclosedNode()) && (enclosed[0].nodeType === Dom.NodeType.ELEMENT_NODE) && styleObjectElements[enclosed.nodeName()] && (selected = enclosed)'); -function visit693_486_2(result) { +function visit704_486_2(result) { _$jscoverage['/editor/selection.js'].branchData['486'][2].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['486'][1].init(40, 309, 'i && !((enclosed = range.getEnclosedNode()) && (enclosed[0].nodeType === Dom.NodeType.ELEMENT_NODE) && styleObjectElements[enclosed.nodeName()] && (selected = enclosed))'); -function visit692_486_1(result) { +function visit703_486_1(result) { _$jscoverage['/editor/selection.js'].branchData['486'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['475'][1].init(566, 5, '!node'); -function visit691_475_1(result) { +function visit702_475_1(result) { _$jscoverage['/editor/selection.js'].branchData['475'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['469'][1].init(84, 27, 'range.item && range.item(0)'); -function visit690_469_1(result) { +function visit701_469_1(result) { _$jscoverage['/editor/selection.js'].branchData['469'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['467'][1].init(278, 6, 'OLD_IE'); -function visit689_467_1(result) { +function visit700_467_1(result) { _$jscoverage['/editor/selection.js'].branchData['467'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['462'][1].init(107, 35, 'cache.selectedElement !== undefined'); -function visit688_462_1(result) { +function visit699_462_1(result) { _$jscoverage['/editor/selection.js'].branchData['462'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['437'][1].init(237, 4, 'node'); -function visit687_437_1(result) { +function visit698_437_1(result) { _$jscoverage['/editor/selection.js'].branchData['437'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['434'][2].init(84, 43, 'node.nodeType !== Dom.NodeType.ELEMENT_NODE'); -function visit686_434_2(result) { +function visit697_434_2(result) { _$jscoverage['/editor/selection.js'].branchData['434'][2].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['434'][1].init(76, 51, 'node && node.nodeType !== Dom.NodeType.ELEMENT_NODE'); -function visit685_434_1(result) { +function visit696_434_1(result) { _$jscoverage['/editor/selection.js'].branchData['434'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['427'][1].init(2086, 6, 'OLD_IE'); -function visit684_427_1(result) { +function visit695_427_1(result) { _$jscoverage['/editor/selection.js'].branchData['427'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['419'][2].init(1620, 44, 'child.nodeType === Dom.NodeType.ELEMENT_NODE'); -function visit683_419_2(result) { +function visit694_419_2(result) { _$jscoverage['/editor/selection.js'].branchData['419'][2].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['419'][1].init(1611, 53, 'child && child.nodeType === Dom.NodeType.ELEMENT_NODE'); -function visit682_419_1(result) { +function visit693_419_1(result) { _$jscoverage['/editor/selection.js'].branchData['419'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['414'][2].init(1374, 46, 'node[0].nodeType !== Dom.NodeType.ELEMENT_NODE'); -function visit681_414_2(result) { +function visit692_414_2(result) { _$jscoverage['/editor/selection.js'].branchData['414'][2].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['414'][1].init(1362, 58, '!node[0] || node[0].nodeType !== Dom.NodeType.ELEMENT_NODE'); -function visit680_414_1(result) { +function visit691_414_1(result) { _$jscoverage['/editor/selection.js'].branchData['414'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['408'][1].init(1110, 46, 'node[0].nodeType !== Dom.NodeType.ELEMENT_NODE'); -function visit679_408_1(result) { +function visit690_408_1(result) { _$jscoverage['/editor/selection.js'].branchData['408'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['398'][3].init(283, 56, 'startContainer[0].nodeType === Dom.NodeType.ELEMENT_NODE'); -function visit678_398_3(result) { +function visit689_398_3(result) { _$jscoverage['/editor/selection.js'].branchData['398'][3].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['398'][2].init(265, 187, 'startOffset === (startContainer[0].nodeType === Dom.NodeType.ELEMENT_NODE ? startContainer[0].childNodes.length : startContainer[0].nodeValue.length)'); -function visit677_398_2(result) { +function visit688_398_2(result) { _$jscoverage['/editor/selection.js'].branchData['398'][2].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['398'][1].init(265, 227, 'startOffset === (startContainer[0].nodeType === Dom.NodeType.ELEMENT_NODE ? startContainer[0].childNodes.length : startContainer[0].nodeValue.length) && !startContainer._4eIsBlockBoundary()'); -function visit676_398_1(result) { +function visit687_398_1(result) { _$jscoverage['/editor/selection.js'].branchData['398'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['388'][1].init(29, 16, '!range.collapsed'); -function visit675_388_1(result) { +function visit686_388_1(result) { _$jscoverage['/editor/selection.js'].branchData['388'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['387'][1].init(104, 5, 'range'); -function visit674_387_1(result) { +function visit685_387_1(result) { _$jscoverage['/editor/selection.js'].branchData['387'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['372'][1].init(68, 32, 'cache.startElement !== undefined'); -function visit673_372_1(result) { +function visit684_372_1(result) { _$jscoverage['/editor/selection.js'].branchData['372'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['349'][1].init(485, 18, 'i < sel.rangeCount'); -function visit672_349_1(result) { +function visit683_349_1(result) { _$jscoverage['/editor/selection.js'].branchData['349'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['345'][1].init(395, 4, '!sel'); -function visit671_345_1(result) { +function visit682_345_1(result) { _$jscoverage['/editor/selection.js'].branchData['345'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['335'][1].init(76, 22, 'cache.ranges && !force'); -function visit670_335_1(result) { +function visit681_335_1(result) { _$jscoverage['/editor/selection.js'].branchData['335'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['317'][3].init(364, 39, 'parentElement.childNodes[j] !== element'); -function visit669_317_3(result) { +function visit680_317_3(result) { _$jscoverage['/editor/selection.js'].branchData['317'][3].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['317'][2].init(325, 35, 'j < parentElement.childNodes.length'); -function visit668_317_2(result) { +function visit679_317_2(result) { _$jscoverage['/editor/selection.js'].branchData['317'][2].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['317'][1].init(325, 78, 'j < parentElement.childNodes.length && parentElement.childNodes[j] !== element'); -function visit667_317_1(result) { +function visit678_317_1(result) { _$jscoverage['/editor/selection.js'].branchData['317'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['309'][1].init(98, 22, 'i < nativeRange.length'); -function visit666_309_1(result) { +function visit677_309_1(result) { _$jscoverage['/editor/selection.js'].branchData['309'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['306'][1].init(1238, 30, 'type === KES.SELECTION_ELEMENT'); -function visit665_306_1(result) { +function visit676_306_1(result) { _$jscoverage['/editor/selection.js'].branchData['306'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['298'][1].init(675, 27, 'type === KES.SELECTION_TEXT'); -function visit664_298_1(result) { +function visit675_298_1(result) { _$jscoverage['/editor/selection.js'].branchData['298'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['294'][1].init(585, 4, '!sel'); -function visit663_294_1(result) { +function visit674_294_1(result) { _$jscoverage['/editor/selection.js'].branchData['294'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['290'][1].init(65, 24, 'sel && sel.createRange()'); -function visit662_290_1(result) { +function visit673_290_1(result) { _$jscoverage['/editor/selection.js'].branchData['290'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['281'][1].init(84, 22, 'cache.ranges && !force'); -function visit661_281_1(result) { +function visit672_281_1(result) { _$jscoverage['/editor/selection.js'].branchData['281'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['265'][1].init(3000, 14, 'distance === 0'); -function visit660_265_1(result) { +function visit671_265_1(result) { _$jscoverage['/editor/selection.js'].branchData['265'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['251'][1].init(32, 12, 'distance > 0'); -function visit659_251_1(result) { +function visit670_251_1(result) { _$jscoverage['/editor/selection.js'].branchData['251'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['237'][1].init(1773, 10, '!testRange'); -function visit658_237_1(result) { +function visit669_237_1(result) { _$jscoverage['/editor/selection.js'].branchData['237'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['229'][1].init(975, 14, '!comparisonEnd'); -function visit657_229_1(result) { +function visit668_229_1(result) { _$jscoverage['/editor/selection.js'].branchData['229'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['226'][4].init(808, 22, 'comparisonStart === -1'); -function visit656_226_4(result) { +function visit667_226_4(result) { _$jscoverage['/editor/selection.js'].branchData['226'][4].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['226'][3].init(785, 19, 'comparisonEnd === 1'); -function visit655_226_3(result) { +function visit666_226_3(result) { _$jscoverage['/editor/selection.js'].branchData['226'][3].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['226'][2].init(785, 45, 'comparisonEnd === 1 && comparisonStart === -1'); -function visit654_226_2(result) { +function visit665_226_2(result) { _$jscoverage['/editor/selection.js'].branchData['226'][2].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['226'][1].init(765, 65, '!comparisonStart || comparisonEnd === 1 && comparisonStart === -1'); -function visit653_226_1(result) { +function visit664_226_1(result) { _$jscoverage['/editor/selection.js'].branchData['226'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['221'][1].init(445, 19, 'comparisonStart > 0'); -function visit652_221_1(result) { +function visit663_221_1(result) { _$jscoverage['/editor/selection.js'].branchData['221'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['211'][1].init(81, 44, 'child.nodeType === Dom.NodeType.ELEMENT_NODE'); -function visit651_211_1(result) { +function visit662_211_1(result) { _$jscoverage['/editor/selection.js'].branchData['211'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['208'][1].init(400, 19, 'i < siblings.length'); -function visit650_208_1(result) { +function visit661_208_1(result) { _$jscoverage['/editor/selection.js'].branchData['208'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['184'][1].init(701, 31, 'sel.createRange().parentElement'); -function visit649_184_1(result) { +function visit660_184_1(result) { _$jscoverage['/editor/selection.js'].branchData['184'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['175'][1].init(236, 20, 'ieType === \'Control\''); -function visit648_175_1(result) { +function visit659_175_1(result) { _$jscoverage['/editor/selection.js'].branchData['175'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['171'][1].init(117, 17, 'ieType === \'Text\''); -function visit647_171_1(result) { +function visit658_171_1(result) { _$jscoverage['/editor/selection.js'].branchData['171'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['161'][1].init(76, 10, 'cache.type'); -function visit646_161_1(result) { +function visit657_161_1(result) { _$jscoverage['/editor/selection.js'].branchData['161'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['150'][2].init(405, 49, 'Number(range.endOffset - range.startOffset) === 1'); -function visit645_150_2(result) { +function visit656_150_2(result) { _$jscoverage['/editor/selection.js'].branchData['150'][2].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['150'][1].init(80, 169, 'Number(range.endOffset - range.startOffset) === 1 && styleObjectElements[startContainer.childNodes[range.startOffset].nodeName.toLowerCase()]'); -function visit644_150_1(result) { +function visit655_150_1(result) { _$jscoverage['/editor/selection.js'].branchData['150'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['149'][2].init(323, 53, 'startContainer.nodeType === Dom.NodeType.ELEMENT_NODE'); -function visit643_149_2(result) { +function visit654_149_2(result) { _$jscoverage['/editor/selection.js'].branchData['149'][2].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['149'][1].init(64, 250, 'startContainer.nodeType === Dom.NodeType.ELEMENT_NODE && Number(range.endOffset - range.startOffset) === 1 && styleObjectElements[startContainer.childNodes[range.startOffset].nodeName.toLowerCase()]'); -function visit642_149_1(result) { +function visit653_149_1(result) { _$jscoverage['/editor/selection.js'].branchData['149'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['148'][2].init(256, 37, 'startContainer === range.endContainer'); -function visit641_148_2(result) { +function visit652_148_2(result) { _$jscoverage['/editor/selection.js'].branchData['148'][2].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['148'][1].init(256, 315, 'startContainer === range.endContainer && startContainer.nodeType === Dom.NodeType.ELEMENT_NODE && Number(range.endOffset - range.startOffset) === 1 && styleObjectElements[startContainer.childNodes[range.startOffset].nodeName.toLowerCase()]'); -function visit640_148_1(result) { +function visit651_148_1(result) { _$jscoverage['/editor/selection.js'].branchData['148'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['141'][1].init(359, 20, 'sel.rangeCount === 1'); -function visit639_141_1(result) { +function visit650_141_1(result) { _$jscoverage['/editor/selection.js'].branchData['141'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['138'][1].init(260, 4, '!sel'); -function visit638_138_1(result) { +function visit649_138_1(result) { _$jscoverage['/editor/selection.js'].branchData['138'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['131'][1].init(76, 10, 'cache.type'); -function visit637_131_1(result) { +function visit648_131_1(result) { _$jscoverage['/editor/selection.js'].branchData['131'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['107'][1].init(79, 64, 'cache.nativeSel || (cache.nativeSel = self.document.selection)'); -function visit636_107_1(result) { +function visit647_107_1(result) { _$jscoverage['/editor/selection.js'].branchData['107'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['102'][1].init(99, 84, 'cache.nativeSel || (cache.nativeSel = Dom.getWindow(self.document).getSelection())'); -function visit635_102_1(result) { +function visit646_102_1(result) { _$jscoverage['/editor/selection.js'].branchData['102'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['55'][2].init(104, 48, 'range.parentElement().ownerDocument !== document'); -function visit634_55_2(result) { +function visit645_55_2(result) { _$jscoverage['/editor/selection.js'].branchData['55'][2].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['55'][1].init(81, 71, 'range.parentElement && range.parentElement().ownerDocument !== document'); -function visit633_55_1(result) { +function visit644_55_1(result) { _$jscoverage['/editor/selection.js'].branchData['55'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['54'][4].init(107, 40, 'range.item(0).ownerDocument !== document'); -function visit632_54_4(result) { +function visit643_54_4(result) { _$jscoverage['/editor/selection.js'].branchData['54'][4].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['54'][3].init(93, 54, 'range.item && range.item(0).ownerDocument !== document'); -function visit631_54_3(result) { +function visit642_54_3(result) { _$jscoverage['/editor/selection.js'].branchData['54'][3].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['54'][2].init(93, 155, '(range.item && range.item(0).ownerDocument !== document) || (range.parentElement && range.parentElement().ownerDocument !== document)'); -function visit630_54_2(result) { +function visit641_54_2(result) { _$jscoverage['/editor/selection.js'].branchData['54'][2].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['54'][1].init(81, 167, '!range || (range.item && range.item(0).ownerDocument !== document) || (range.parentElement && range.parentElement().ownerDocument !== document)'); -function visit629_54_1(result) { +function visit640_54_1(result) { _$jscoverage['/editor/selection.js'].branchData['54'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].branchData['51'][1].init(285, 6, 'OLD_IE'); -function visit628_51_1(result) { +function visit639_51_1(result) { _$jscoverage['/editor/selection.js'].branchData['51'][1].ranCondition(result); return result; }_$jscoverage['/editor/selection.js'].lineData[10]++; @@ -1325,13 +1325,13 @@ KISSY.add(function(S, require) { self._ = { cache: {}}; _$jscoverage['/editor/selection.js'].lineData[51]++; - if (visit628_51_1(OLD_IE)) { + if (visit639_51_1(OLD_IE)) { _$jscoverage['/editor/selection.js'].lineData[52]++; try { _$jscoverage['/editor/selection.js'].lineData[53]++; var range = self.getNative().createRange(); _$jscoverage['/editor/selection.js'].lineData[54]++; - if (visit629_54_1(!range || visit630_54_2((visit631_54_3(range.item && visit632_54_4(range.item(0).ownerDocument !== document))) || (visit633_55_1(range.parentElement && visit634_55_2(range.parentElement().ownerDocument !== document)))))) { + if (visit640_54_1(!range || visit641_54_2((visit642_54_3(range.item && visit643_54_4(range.item(0).ownerDocument !== document))) || (visit644_55_1(range.parentElement && visit645_55_2(range.parentElement().ownerDocument !== document)))))) { _$jscoverage['/editor/selection.js'].lineData[56]++; self.isInvalid = TRUE; } @@ -1370,36 +1370,36 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/selection.js'].lineData[100]++; var self = this, cache = self._.cache; _$jscoverage['/editor/selection.js'].lineData[102]++; - return visit635_102_1(cache.nativeSel || (cache.nativeSel = Dom.getWindow(self.document).getSelection())); + return visit646_102_1(cache.nativeSel || (cache.nativeSel = Dom.getWindow(self.document).getSelection())); } : function() { _$jscoverage['/editor/selection.js'].functionData[3]++; _$jscoverage['/editor/selection.js'].lineData[106]++; var self = this, cache = self._.cache; _$jscoverage['/editor/selection.js'].lineData[107]++; - return visit636_107_1(cache.nativeSel || (cache.nativeSel = self.document.selection)); + return visit647_107_1(cache.nativeSel || (cache.nativeSel = self.document.selection)); }, getType: !OLD_IE ? function() { _$jscoverage['/editor/selection.js'].functionData[4]++; _$jscoverage['/editor/selection.js'].lineData[130]++; var self = this, cache = self._.cache; _$jscoverage['/editor/selection.js'].lineData[131]++; - if (visit637_131_1(cache.type)) { + if (visit648_131_1(cache.type)) { _$jscoverage['/editor/selection.js'].lineData[132]++; return cache.type; } _$jscoverage['/editor/selection.js'].lineData[135]++; var type = KES.SELECTION_TEXT, sel = self.getNative(); _$jscoverage['/editor/selection.js'].lineData[138]++; - if (visit638_138_1(!sel)) { + if (visit649_138_1(!sel)) { _$jscoverage['/editor/selection.js'].lineData[139]++; type = KES.SELECTION_NONE; } else { _$jscoverage['/editor/selection.js'].lineData[141]++; - if (visit639_141_1(sel.rangeCount === 1)) { + if (visit650_141_1(sel.rangeCount === 1)) { _$jscoverage['/editor/selection.js'].lineData[145]++; var range = sel.getRangeAt(0), startContainer = range.startContainer; _$jscoverage['/editor/selection.js'].lineData[148]++; - if (visit640_148_1(visit641_148_2(startContainer === range.endContainer) && visit642_149_1(visit643_149_2(startContainer.nodeType === Dom.NodeType.ELEMENT_NODE) && visit644_150_1(visit645_150_2(Number(range.endOffset - range.startOffset) === 1) && styleObjectElements[startContainer.childNodes[range.startOffset].nodeName.toLowerCase()])))) { + if (visit651_148_1(visit652_148_2(startContainer === range.endContainer) && visit653_149_1(visit654_149_2(startContainer.nodeType === Dom.NodeType.ELEMENT_NODE) && visit655_150_1(visit656_150_2(Number(range.endOffset - range.startOffset) === 1) && styleObjectElements[startContainer.childNodes[range.startOffset].nodeName.toLowerCase()])))) { _$jscoverage['/editor/selection.js'].lineData[152]++; type = KES.SELECTION_ELEMENT; } @@ -1414,7 +1414,7 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/selection.js'].lineData[160]++; var self = this, cache = self._.cache; _$jscoverage['/editor/selection.js'].lineData[161]++; - if (visit646_161_1(cache.type)) { + if (visit657_161_1(cache.type)) { _$jscoverage['/editor/selection.js'].lineData[162]++; return cache.type; } @@ -1425,17 +1425,17 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/selection.js'].lineData[168]++; var sel = self.getNative(), ieType = sel.type; _$jscoverage['/editor/selection.js'].lineData[171]++; - if (visit647_171_1(ieType === 'Text')) { + if (visit658_171_1(ieType === 'Text')) { _$jscoverage['/editor/selection.js'].lineData[172]++; type = KES.SELECTION_TEXT; } _$jscoverage['/editor/selection.js'].lineData[175]++; - if (visit648_175_1(ieType === 'Control')) { + if (visit659_175_1(ieType === 'Control')) { _$jscoverage['/editor/selection.js'].lineData[176]++; type = KES.SELECTION_ELEMENT; } _$jscoverage['/editor/selection.js'].lineData[184]++; - if (visit649_184_1(sel.createRange().parentElement)) { + if (visit660_184_1(sel.createRange().parentElement)) { _$jscoverage['/editor/selection.js'].lineData[185]++; type = KES.SELECTION_TEXT; } @@ -1458,11 +1458,11 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/selection.js'].lineData[205]++; var parent = range.parentElement(), siblings = parent.childNodes, testRange; _$jscoverage['/editor/selection.js'].lineData[208]++; - for (var i = 0; visit650_208_1(i < siblings.length); i++) { + for (var i = 0; visit661_208_1(i < siblings.length); i++) { _$jscoverage['/editor/selection.js'].lineData[209]++; var child = siblings[i]; _$jscoverage['/editor/selection.js'].lineData[211]++; - if (visit651_211_1(child.nodeType === Dom.NodeType.ELEMENT_NODE)) { + if (visit662_211_1(child.nodeType === Dom.NodeType.ELEMENT_NODE)) { _$jscoverage['/editor/selection.js'].lineData[212]++; testRange = range.duplicate(); _$jscoverage['/editor/selection.js'].lineData[214]++; @@ -1472,19 +1472,19 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/selection.js'].lineData[219]++; testRange.collapse(); _$jscoverage['/editor/selection.js'].lineData[221]++; - if (visit652_221_1(comparisonStart > 0)) { + if (visit663_221_1(comparisonStart > 0)) { _$jscoverage['/editor/selection.js'].lineData[222]++; break; } else { _$jscoverage['/editor/selection.js'].lineData[226]++; - if (visit653_226_1(!comparisonStart || visit654_226_2(visit655_226_3(comparisonEnd === 1) && visit656_226_4(comparisonStart === -1)))) { + if (visit664_226_1(!comparisonStart || visit665_226_2(visit666_226_3(comparisonEnd === 1) && visit667_226_4(comparisonStart === -1)))) { _$jscoverage['/editor/selection.js'].lineData[227]++; return { container: parent, offset: i}; } else { _$jscoverage['/editor/selection.js'].lineData[229]++; - if (visit657_229_1(!comparisonEnd)) { + if (visit668_229_1(!comparisonEnd)) { _$jscoverage['/editor/selection.js'].lineData[230]++; return { container: parent, @@ -1497,7 +1497,7 @@ KISSY.add(function(S, require) { } } _$jscoverage['/editor/selection.js'].lineData[237]++; - if (visit658_237_1(!testRange)) { + if (visit669_237_1(!testRange)) { _$jscoverage['/editor/selection.js'].lineData[238]++; testRange = range.duplicate(); _$jscoverage['/editor/selection.js'].lineData[239]++; @@ -1512,7 +1512,7 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/selection.js'].lineData[250]++; try { _$jscoverage['/editor/selection.js'].lineData[251]++; - while (visit659_251_1(distance > 0)) { + while (visit670_251_1(distance > 0)) { _$jscoverage['/editor/selection.js'].lineData[256]++; distance -= siblings[--i].nodeValue.length; } @@ -1521,7 +1521,7 @@ KISSY.add(function(S, require) { distance = 0; } _$jscoverage['/editor/selection.js'].lineData[265]++; - if (visit660_265_1(distance === 0)) { + if (visit671_265_1(distance === 0)) { _$jscoverage['/editor/selection.js'].lineData[266]++; return { container: parent, @@ -1539,19 +1539,19 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/selection.js'].lineData[280]++; var self = this, cache = self._.cache; _$jscoverage['/editor/selection.js'].lineData[281]++; - if (visit661_281_1(cache.ranges && !force)) { + if (visit672_281_1(cache.ranges && !force)) { _$jscoverage['/editor/selection.js'].lineData[282]++; return cache.ranges; } _$jscoverage['/editor/selection.js'].lineData[289]++; - var sel = self.getNative(), nativeRange = visit662_290_1(sel && sel.createRange()), type = self.getType(), range; + var sel = self.getNative(), nativeRange = visit673_290_1(sel && sel.createRange()), type = self.getType(), range; _$jscoverage['/editor/selection.js'].lineData[294]++; - if (visit663_294_1(!sel)) { + if (visit674_294_1(!sel)) { _$jscoverage['/editor/selection.js'].lineData[295]++; return []; } _$jscoverage['/editor/selection.js'].lineData[298]++; - if (visit664_298_1(type === KES.SELECTION_TEXT)) { + if (visit675_298_1(type === KES.SELECTION_TEXT)) { _$jscoverage['/editor/selection.js'].lineData[299]++; range = new KERange(self.document); _$jscoverage['/editor/selection.js'].lineData[300]++; @@ -1568,17 +1568,17 @@ KISSY.add(function(S, require) { return [range]; } else { _$jscoverage['/editor/selection.js'].lineData[306]++; - if (visit665_306_1(type === KES.SELECTION_ELEMENT)) { + if (visit676_306_1(type === KES.SELECTION_ELEMENT)) { _$jscoverage['/editor/selection.js'].lineData[307]++; var retval = cache.ranges = []; _$jscoverage['/editor/selection.js'].lineData[309]++; - for (var i = 0; visit666_309_1(i < nativeRange.length); i++) { + for (var i = 0; visit677_309_1(i < nativeRange.length); i++) { _$jscoverage['/editor/selection.js'].lineData[310]++; var element = nativeRange.item(i), parentElement = element.parentNode, j = 0; _$jscoverage['/editor/selection.js'].lineData[314]++; range = new KERange(self.document); _$jscoverage['/editor/selection.js'].lineData[317]++; - for (; visit667_317_1(visit668_317_2(j < parentElement.childNodes.length) && visit669_317_3(parentElement.childNodes[j] !== element)); j++) { + for (; visit678_317_1(visit679_317_2(j < parentElement.childNodes.length) && visit680_317_3(parentElement.childNodes[j] !== element)); j++) { } _$jscoverage['/editor/selection.js'].lineData[320]++; range.setStart(new Node(parentElement), j); @@ -1601,19 +1601,19 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/selection.js'].lineData[334]++; var self = this, cache = self._.cache; _$jscoverage['/editor/selection.js'].lineData[335]++; - if (visit670_335_1(cache.ranges && !force)) { + if (visit681_335_1(cache.ranges && !force)) { _$jscoverage['/editor/selection.js'].lineData[336]++; return cache.ranges; } _$jscoverage['/editor/selection.js'].lineData[343]++; var ranges = [], sel = self.getNative(); _$jscoverage['/editor/selection.js'].lineData[345]++; - if (visit671_345_1(!sel)) { + if (visit682_345_1(!sel)) { _$jscoverage['/editor/selection.js'].lineData[346]++; return []; } _$jscoverage['/editor/selection.js'].lineData[349]++; - for (var i = 0; visit672_349_1(i < sel.rangeCount); i++) { + for (var i = 0; visit683_349_1(i < sel.rangeCount); i++) { _$jscoverage['/editor/selection.js'].lineData[350]++; var nativeRange = sel.getRangeAt(i), range = new KERange(self.document); _$jscoverage['/editor/selection.js'].lineData[352]++; @@ -1633,7 +1633,7 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/selection.js'].lineData[371]++; var self = this, cache = self._.cache; _$jscoverage['/editor/selection.js'].lineData[372]++; - if (visit673_372_1(cache.startElement !== undefined)) { + if (visit684_372_1(cache.startElement !== undefined)) { _$jscoverage['/editor/selection.js'].lineData[373]++; return cache.startElement; } @@ -1648,9 +1648,9 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/selection.js'].lineData[385]++; var range = self.getRanges()[0]; _$jscoverage['/editor/selection.js'].lineData[387]++; - if (visit674_387_1(range)) { + if (visit685_387_1(range)) { _$jscoverage['/editor/selection.js'].lineData[388]++; - if (visit675_388_1(!range.collapsed)) { + if (visit686_388_1(!range.collapsed)) { _$jscoverage['/editor/selection.js'].lineData[389]++; range.optimize(); _$jscoverage['/editor/selection.js'].lineData[394]++; @@ -1658,7 +1658,7 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/selection.js'].lineData[395]++; var startContainer = range.startContainer, startOffset = range.startOffset; _$jscoverage['/editor/selection.js'].lineData[398]++; - if (visit676_398_1(visit677_398_2(startOffset === (visit678_398_3(startContainer[0].nodeType === Dom.NodeType.ELEMENT_NODE) ? startContainer[0].childNodes.length : startContainer[0].nodeValue.length)) && !startContainer._4eIsBlockBoundary())) { + if (visit687_398_1(visit688_398_2(startOffset === (visit689_398_3(startContainer[0].nodeType === Dom.NodeType.ELEMENT_NODE) ? startContainer[0].childNodes.length : startContainer[0].nodeValue.length)) && !startContainer._4eIsBlockBoundary())) { _$jscoverage['/editor/selection.js'].lineData[400]++; range.setStartAfter(startContainer); } else { @@ -1669,21 +1669,21 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/selection.js'].lineData[406]++; node = range.startContainer; _$jscoverage['/editor/selection.js'].lineData[408]++; - if (visit679_408_1(node[0].nodeType !== Dom.NodeType.ELEMENT_NODE)) { + if (visit690_408_1(node[0].nodeType !== Dom.NodeType.ELEMENT_NODE)) { _$jscoverage['/editor/selection.js'].lineData[409]++; return node.parent(); } _$jscoverage['/editor/selection.js'].lineData[412]++; node = new Node(node[0].childNodes[range.startOffset]); _$jscoverage['/editor/selection.js'].lineData[414]++; - if (visit680_414_1(!node[0] || visit681_414_2(node[0].nodeType !== Dom.NodeType.ELEMENT_NODE))) { + if (visit691_414_1(!node[0] || visit692_414_2(node[0].nodeType !== Dom.NodeType.ELEMENT_NODE))) { _$jscoverage['/editor/selection.js'].lineData[415]++; return range.startContainer; } _$jscoverage['/editor/selection.js'].lineData[418]++; var child = node[0].firstChild; _$jscoverage['/editor/selection.js'].lineData[419]++; - while (visit682_419_1(child && visit683_419_2(child.nodeType === Dom.NodeType.ELEMENT_NODE))) { + while (visit693_419_1(child && visit694_419_2(child.nodeType === Dom.NodeType.ELEMENT_NODE))) { _$jscoverage['/editor/selection.js'].lineData[420]++; node = new Node(child); _$jscoverage['/editor/selection.js'].lineData[421]++; @@ -1694,7 +1694,7 @@ KISSY.add(function(S, require) { } } _$jscoverage['/editor/selection.js'].lineData[427]++; - if (visit684_427_1(OLD_IE)) { + if (visit695_427_1(OLD_IE)) { _$jscoverage['/editor/selection.js'].lineData[428]++; range = sel.createRange(); _$jscoverage['/editor/selection.js'].lineData[429]++; @@ -1705,12 +1705,12 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/selection.js'].lineData[433]++; node = sel.anchorNode; _$jscoverage['/editor/selection.js'].lineData[434]++; - if (visit685_434_1(node && visit686_434_2(node.nodeType !== Dom.NodeType.ELEMENT_NODE))) { + if (visit696_434_1(node && visit697_434_2(node.nodeType !== Dom.NodeType.ELEMENT_NODE))) { _$jscoverage['/editor/selection.js'].lineData[435]++; node = node.parentNode; } _$jscoverage['/editor/selection.js'].lineData[437]++; - if (visit687_437_1(node)) { + if (visit698_437_1(node)) { _$jscoverage['/editor/selection.js'].lineData[438]++; node = new Node(node); } @@ -1726,26 +1726,26 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/selection.js'].lineData[458]++; var self = this, node, cache = self._.cache; _$jscoverage['/editor/selection.js'].lineData[462]++; - if (visit688_462_1(cache.selectedElement !== undefined)) { + if (visit699_462_1(cache.selectedElement !== undefined)) { _$jscoverage['/editor/selection.js'].lineData[463]++; return cache.selectedElement; } _$jscoverage['/editor/selection.js'].lineData[467]++; - if (visit689_467_1(OLD_IE)) { + if (visit700_467_1(OLD_IE)) { _$jscoverage['/editor/selection.js'].lineData[468]++; var range = self.getNative().createRange(); _$jscoverage['/editor/selection.js'].lineData[469]++; - node = visit690_469_1(range.item && range.item(0)); + node = visit701_469_1(range.item && range.item(0)); } _$jscoverage['/editor/selection.js'].lineData[475]++; - if (visit691_475_1(!node)) { + if (visit702_475_1(!node)) { _$jscoverage['/editor/selection.js'].lineData[476]++; node = (function() { _$jscoverage['/editor/selection.js'].functionData[12]++; _$jscoverage['/editor/selection.js'].lineData[477]++; var range = self.getRanges()[0], enclosed, selected; _$jscoverage['/editor/selection.js'].lineData[485]++; - for (var i = 2; visit692_486_1(i && !(visit693_486_2((enclosed = range.getEnclosedNode()) && visit694_487_1((visit695_487_2(enclosed[0].nodeType === Dom.NodeType.ELEMENT_NODE)) && visit696_489_1(styleObjectElements[enclosed.nodeName()] && (selected = enclosed)))))); i--) { + for (var i = 2; visit703_486_1(i && !(visit704_486_2((enclosed = range.getEnclosedNode()) && visit705_487_1((visit706_487_2(enclosed[0].nodeType === Dom.NodeType.ELEMENT_NODE)) && visit707_489_1(styleObjectElements[enclosed.nodeName()] && (selected = enclosed)))))); i--) { _$jscoverage['/editor/selection.js'].lineData[497]++; range.shrink(KER.SHRINK_ELEMENT); } @@ -1771,7 +1771,7 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/selection.js'].lineData[516]++; var range, self = this, doc = self.document; _$jscoverage['/editor/selection.js'].lineData[519]++; - if (visit697_519_1(OLD_IE)) { + if (visit708_519_1(OLD_IE)) { _$jscoverage['/editor/selection.js'].lineData[523]++; try { _$jscoverage['/editor/selection.js'].lineData[525]++; @@ -1812,9 +1812,9 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/selection.js'].lineData[550]++; var self = this; _$jscoverage['/editor/selection.js'].lineData[551]++; - if (visit698_551_1(OLD_IE)) { + if (visit709_551_1(OLD_IE)) { _$jscoverage['/editor/selection.js'].lineData[552]++; - if (visit699_552_1(ranges.length > 1)) { + if (visit710_552_1(ranges.length > 1)) { _$jscoverage['/editor/selection.js'].lineData[554]++; var last = ranges[ranges.length - 1]; _$jscoverage['/editor/selection.js'].lineData[555]++; @@ -1823,7 +1823,7 @@ KISSY.add(function(S, require) { ranges.length = 1; } _$jscoverage['/editor/selection.js'].lineData[561]++; - if (visit700_561_1(ranges[0])) { + if (visit711_561_1(ranges[0])) { _$jscoverage['/editor/selection.js'].lineData[562]++; ranges[0].select(); } @@ -1833,18 +1833,18 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/selection.js'].lineData[568]++; var sel = self.getNative(); _$jscoverage['/editor/selection.js'].lineData[569]++; - if (visit701_569_1(!sel)) { + if (visit712_569_1(!sel)) { _$jscoverage['/editor/selection.js'].lineData[570]++; return; } _$jscoverage['/editor/selection.js'].lineData[572]++; sel.removeAllRanges(); _$jscoverage['/editor/selection.js'].lineData[573]++; - for (var i = 0; visit702_573_1(i < ranges.length); i++) { + for (var i = 0; visit713_573_1(i < ranges.length); i++) { _$jscoverage['/editor/selection.js'].lineData[574]++; var range = ranges[i], nativeRange = self.document.createRange(), startContainer = range.startContainer; _$jscoverage['/editor/selection.js'].lineData[582]++; - if (visit703_582_1(range.collapsed && visit704_583_1((visit705_583_2((visit706_583_3(UA.gecko && visit707_583_4(UA.gecko < 1.0900))) || visit708_583_5(UA.opera || UA.webkit))) && visit709_584_1(visit710_584_2(startContainer[0].nodeType === Dom.NodeType.ELEMENT_NODE) && !startContainer[0].childNodes.length)))) { + if (visit714_582_1(range.collapsed && visit715_583_1((visit716_583_2((visit717_583_3(UA.gecko && visit718_583_4(UA.gecko < 1.0900))) || visit719_583_5(UA.opera || UA.webkit))) && visit720_584_1(visit721_584_2(startContainer[0].nodeType === Dom.NodeType.ELEMENT_NODE) && !startContainer[0].childNodes.length)))) { _$jscoverage['/editor/selection.js'].lineData[586]++; startContainer[0].appendChild(self.document.createTextNode(UA.webkit ? '\u200b' : '')); _$jscoverage['/editor/selection.js'].lineData[589]++; @@ -1868,7 +1868,7 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/selection.js'].lineData[602]++; var bookmarks = [], ranges = this.getRanges(); _$jscoverage['/editor/selection.js'].lineData[605]++; - for (var i = 0; visit711_605_1(i < ranges.length); i++) { + for (var i = 0; visit722_605_1(i < ranges.length); i++) { _$jscoverage['/editor/selection.js'].lineData[606]++; bookmarks.push(ranges[i].createBookmark2(normalized)); } @@ -1880,11 +1880,11 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/selection.js'].lineData[612]++; var self = this, retval = [], doc = self.document, bookmark; _$jscoverage['/editor/selection.js'].lineData[616]++; - ranges = visit712_616_1(ranges || self.getRanges()); + ranges = visit723_616_1(ranges || self.getRanges()); _$jscoverage['/editor/selection.js'].lineData[617]++; var length = ranges.length; _$jscoverage['/editor/selection.js'].lineData[618]++; - for (var i = 0; visit713_618_1(i < length); i++) { + for (var i = 0; visit724_618_1(i < length); i++) { _$jscoverage['/editor/selection.js'].lineData[619]++; retval.push(bookmark = ranges[i].createBookmark(serializable, TRUE)); _$jscoverage['/editor/selection.js'].lineData[620]++; @@ -1892,26 +1892,26 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/selection.js'].lineData[622]++; var bookmarkStart = serializable ? S.one('#' + bookmark.startNode, doc) : bookmark.startNode, bookmarkEnd = serializable ? S.one('#' + bookmark.endNode, doc) : bookmark.endNode; _$jscoverage['/editor/selection.js'].lineData[626]++; - for (var j = i + 1; visit714_626_1(j < length); j++) { + for (var j = i + 1; visit725_626_1(j < length); j++) { _$jscoverage['/editor/selection.js'].lineData[627]++; var dirtyRange = ranges[j], rangeStart = dirtyRange.startContainer, rangeEnd = dirtyRange.endContainer; _$jscoverage['/editor/selection.js'].lineData[631]++; - if (visit715_631_1(Dom.equals(rangeStart, bookmarkStart.parent()))) { + if (visit726_631_1(Dom.equals(rangeStart, bookmarkStart.parent()))) { _$jscoverage['/editor/selection.js'].lineData[632]++; dirtyRange.startOffset++; } _$jscoverage['/editor/selection.js'].lineData[634]++; - if (visit716_634_1(Dom.equals(rangeStart, bookmarkEnd.parent()))) { + if (visit727_634_1(Dom.equals(rangeStart, bookmarkEnd.parent()))) { _$jscoverage['/editor/selection.js'].lineData[635]++; dirtyRange.startOffset++; } _$jscoverage['/editor/selection.js'].lineData[637]++; - if (visit717_637_1(Dom.equals(rangeEnd, bookmarkStart.parent()))) { + if (visit728_637_1(Dom.equals(rangeEnd, bookmarkStart.parent()))) { _$jscoverage['/editor/selection.js'].lineData[638]++; dirtyRange.endOffset++; } _$jscoverage['/editor/selection.js'].lineData[640]++; - if (visit718_640_1(Dom.equals(rangeEnd, bookmarkEnd.parent()))) { + if (visit729_640_1(Dom.equals(rangeEnd, bookmarkEnd.parent()))) { _$jscoverage['/editor/selection.js'].lineData[641]++; dirtyRange.endOffset++; } @@ -1925,7 +1925,7 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/selection.js'].lineData[650]++; var self = this, ranges = []; _$jscoverage['/editor/selection.js'].lineData[651]++; - for (var i = 0; visit719_651_1(i < bookmarks.length); i++) { + for (var i = 0; visit730_651_1(i < bookmarks.length); i++) { _$jscoverage['/editor/selection.js'].lineData[652]++; var range = new KERange(self.document); _$jscoverage['/editor/selection.js'].lineData[653]++; @@ -1950,7 +1950,7 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/selection.js'].lineData[671]++; var start = this.getStartElement(); _$jscoverage['/editor/selection.js'].lineData[672]++; - if (visit720_672_1(start)) { + if (visit731_672_1(start)) { _$jscoverage['/editor/selection.js'].lineData[673]++; start.scrollIntoView(undefined, { alignWithTop: false, @@ -1963,15 +1963,15 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/selection.js'].lineData[681]++; var sel = this.getNative(); _$jscoverage['/editor/selection.js'].lineData[682]++; - if (visit721_682_1(!OLD_IE)) { + if (visit732_682_1(!OLD_IE)) { _$jscoverage['/editor/selection.js'].lineData[683]++; - if (visit722_683_1(sel)) { + if (visit733_683_1(sel)) { _$jscoverage['/editor/selection.js'].lineData[684]++; sel.removeAllRanges(); } } else { _$jscoverage['/editor/selection.js'].lineData[687]++; - if (visit723_687_1(sel)) { + if (visit734_687_1(sel)) { _$jscoverage['/editor/selection.js'].lineData[688]++; sel.clear(); } @@ -1988,7 +1988,7 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/selection.js'].lineData[699]++; var self = this, startContainer = self.startContainer; _$jscoverage['/editor/selection.js'].lineData[703]++; - if (visit724_703_1(self.collapsed && visit725_704_1(visit726_704_2(startContainer[0].nodeType === Dom.NodeType.ELEMENT_NODE) && !startContainer[0].childNodes.length))) { + if (visit735_703_1(self.collapsed && visit736_704_1(visit737_704_2(startContainer[0].nodeType === Dom.NodeType.ELEMENT_NODE) && !startContainer[0].childNodes.length))) { _$jscoverage['/editor/selection.js'].lineData[705]++; startContainer[0].appendChild(self.document.createTextNode(UA.webkit ? '\u200b' : '')); _$jscoverage['/editor/selection.js'].lineData[709]++; @@ -2006,7 +2006,7 @@ KISSY.add(function(S, require) { nativeRange.setEnd(self.endContainer[0], self.endOffset); } catch (e) { _$jscoverage['/editor/selection.js'].lineData[723]++; - if (visit727_723_1(e.toString().indexOf('NS_ERROR_ILLEGAL_VALUE') >= 0)) { + if (visit738_723_1(e.toString().indexOf('NS_ERROR_ILLEGAL_VALUE') >= 0)) { _$jscoverage['/editor/selection.js'].lineData[724]++; self.collapse(TRUE); _$jscoverage['/editor/selection.js'].lineData[725]++; @@ -2027,11 +2027,11 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/selection.js'].lineData[738]++; var self = this, collapsed = self.collapsed, isStartMarkerAlone, dummySpan; _$jscoverage['/editor/selection.js'].lineData[744]++; - if (visit728_747_1(visit729_747_2(self.startContainer[0] === self.endContainer[0]) && visit730_747_3(self.endOffset - self.startOffset === 1))) { + if (visit739_747_1(visit740_747_2(self.startContainer[0] === self.endContainer[0]) && visit741_747_3(self.endOffset - self.startOffset === 1))) { _$jscoverage['/editor/selection.js'].lineData[748]++; var selEl = self.startContainer[0].childNodes[self.startOffset]; _$jscoverage['/editor/selection.js'].lineData[749]++; - if (visit731_749_1(selEl.nodeType === Dom.NodeType.ELEMENT_NODE)) { + if (visit742_749_1(selEl.nodeType === Dom.NodeType.ELEMENT_NODE)) { _$jscoverage['/editor/selection.js'].lineData[750]++; new KESelection(self.document).selectElement(new Node(selEl)); _$jscoverage['/editor/selection.js'].lineData[751]++; @@ -2039,14 +2039,14 @@ KISSY.add(function(S, require) { } } _$jscoverage['/editor/selection.js'].lineData[756]++; - if (visit732_756_1(visit733_756_2(visit734_756_3(self.startContainer[0].nodeType === Dom.NodeType.ELEMENT_NODE) && self.startContainer.nodeName() in nonCells) || visit735_758_1(visit736_758_2(self.endContainer[0].nodeType === Dom.NodeType.ELEMENT_NODE) && self.endContainer.nodeName() in nonCells))) { + if (visit743_756_1(visit744_756_2(visit745_756_3(self.startContainer[0].nodeType === Dom.NodeType.ELEMENT_NODE) && self.startContainer.nodeName() in nonCells) || visit746_758_1(visit747_758_2(self.endContainer[0].nodeType === Dom.NodeType.ELEMENT_NODE) && self.endContainer.nodeName() in nonCells))) { _$jscoverage['/editor/selection.js'].lineData[760]++; self.shrink(KER.SHRINK_ELEMENT, TRUE); } _$jscoverage['/editor/selection.js'].lineData[763]++; var bookmark = self.createBookmark(), startNode = bookmark.startNode, endNode; _$jscoverage['/editor/selection.js'].lineData[767]++; - if (visit737_767_1(!collapsed)) { + if (visit748_767_1(!collapsed)) { _$jscoverage['/editor/selection.js'].lineData[768]++; endNode = bookmark.endNode; } @@ -2057,7 +2057,7 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/selection.js'].lineData[777]++; ieRange.moveStart('character', 1); _$jscoverage['/editor/selection.js'].lineData[779]++; - if (visit738_779_1(endNode)) { + if (visit749_779_1(endNode)) { _$jscoverage['/editor/selection.js'].lineData[781]++; var ieRangeEnd = self.document.body.createTextRange(); _$jscoverage['/editor/selection.js'].lineData[783]++; @@ -2070,12 +2070,12 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/selection.js'].lineData[793]++; var next = startNode[0].nextSibling; _$jscoverage['/editor/selection.js'].lineData[794]++; - while (visit739_794_1(next && !notWhitespaces(next))) { + while (visit750_794_1(next && !notWhitespaces(next))) { _$jscoverage['/editor/selection.js'].lineData[795]++; next = next.nextSibling; } _$jscoverage['/editor/selection.js'].lineData[797]++; - isStartMarkerAlone = (visit740_798_1(!(visit741_798_2(next && visit742_798_3(next.nodeValue && next.nodeValue.match(fillerTextRegex)))) && (visit743_800_1(forceExpand || visit744_800_2(!startNode[0].previousSibling || (visit745_802_1(startNode[0].previousSibling && visit746_803_1(Dom.nodeName(startNode[0].previousSibling) === 'br')))))))); + isStartMarkerAlone = (visit751_798_1(!(visit752_798_2(next && visit753_798_3(next.nodeValue && next.nodeValue.match(fillerTextRegex)))) && (visit754_800_1(forceExpand || visit755_800_2(!startNode[0].previousSibling || (visit756_802_1(startNode[0].previousSibling && visit757_803_1(Dom.nodeName(startNode[0].previousSibling) === 'br')))))))); _$jscoverage['/editor/selection.js'].lineData[813]++; dummySpan = new Node(self.document.createElement('span')); _$jscoverage['/editor/selection.js'].lineData[814]++; @@ -2083,9 +2083,9 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/selection.js'].lineData[815]++; dummySpan.insertBefore(startNode); _$jscoverage['/editor/selection.js'].lineData[816]++; - if (visit747_816_1(isStartMarkerAlone)) { + if (visit758_816_1(isStartMarkerAlone)) { _$jscoverage['/editor/selection.js'].lineData[821]++; - Dom.insertBefore(self.document.createTextNode('\ufeff'), visit748_821_1(startNode[0] || startNode)); + Dom.insertBefore(self.document.createTextNode('\ufeff'), visit759_821_1(startNode[0] || startNode)); } } _$jscoverage['/editor/selection.js'].lineData[826]++; @@ -2093,9 +2093,9 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/selection.js'].lineData[827]++; startNode._4eRemove(); _$jscoverage['/editor/selection.js'].lineData[829]++; - if (visit749_829_1(collapsed)) { + if (visit760_829_1(collapsed)) { _$jscoverage['/editor/selection.js'].lineData[830]++; - if (visit750_830_1(isStartMarkerAlone)) { + if (visit761_830_1(isStartMarkerAlone)) { _$jscoverage['/editor/selection.js'].lineData[832]++; ieRange.moveStart('character', -1); _$jscoverage['/editor/selection.js'].lineData[833]++; @@ -2107,7 +2107,7 @@ KISSY.add(function(S, require) { ieRange.select(); } _$jscoverage['/editor/selection.js'].lineData[839]++; - if (visit751_839_1(dummySpan)) { + if (visit762_839_1(dummySpan)) { _$jscoverage['/editor/selection.js'].lineData[840]++; self.moveToPosition(dummySpan, KER.POSITION_BEFORE_START); _$jscoverage['/editor/selection.js'].lineData[841]++; @@ -2128,7 +2128,7 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/selection.js'].lineData[852]++; var sel = new KESelection(doc); _$jscoverage['/editor/selection.js'].lineData[853]++; - return (visit752_853_1(!sel || sel.isInvalid)) ? NULL : sel; + return (visit763_853_1(!sel || sel.isInvalid)) ? NULL : sel; } _$jscoverage['/editor/selection.js'].lineData[856]++; KESelection.getSelection = getSelection; diff --git a/src/editor/coverage/src/editor/selectionFix.js b/src/editor/coverage/src/editor/selectionFix.js index 782b509333..1c1939aba1 100644 --- a/src/editor/coverage/src/editor/selectionFix.js +++ b/src/editor/coverage/src/editor/selectionFix.js @@ -233,165 +233,164 @@ if (! _$jscoverage['/editor/selectionFix.js']) { _$jscoverage['/editor/selectionFix.js'].lineData[11] = 0; _$jscoverage['/editor/selectionFix.js'].lineData[12] = 0; _$jscoverage['/editor/selectionFix.js'].lineData[13] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[14] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[16] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[15] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[26] = 0; _$jscoverage['/editor/selectionFix.js'].lineData[27] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[28] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[34] = 0; _$jscoverage['/editor/selectionFix.js'].lineData[35] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[36] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[37] = 0; _$jscoverage['/editor/selectionFix.js'].lineData[38] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[39] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[42] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[45] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[41] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[44] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[48] = 0; _$jscoverage['/editor/selectionFix.js'].lineData[49] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[50] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[52] = 0; _$jscoverage['/editor/selectionFix.js'].lineData[53] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[54] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[55] = 0; _$jscoverage['/editor/selectionFix.js'].lineData[56] = 0; _$jscoverage['/editor/selectionFix.js'].lineData[57] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[58] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[61] = 0; _$jscoverage['/editor/selectionFix.js'].lineData[62] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[63] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[66] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[68] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[70] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[65] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[67] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[69] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[71] = 0; _$jscoverage['/editor/selectionFix.js'].lineData[72] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[73] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[76] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[79] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[82] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[75] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[78] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[81] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[87] = 0; _$jscoverage['/editor/selectionFix.js'].lineData[88] = 0; _$jscoverage['/editor/selectionFix.js'].lineData[89] = 0; _$jscoverage['/editor/selectionFix.js'].lineData[90] = 0; _$jscoverage['/editor/selectionFix.js'].lineData[91] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[92] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[94] = 0; _$jscoverage['/editor/selectionFix.js'].lineData[95] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[96] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[99] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[98] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[100] = 0; _$jscoverage['/editor/selectionFix.js'].lineData[101] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[102] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[103] = 0; _$jscoverage['/editor/selectionFix.js'].lineData[104] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[105] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[106] = 0; _$jscoverage['/editor/selectionFix.js'].lineData[107] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[108] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[115] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[116] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[124] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[113] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[114] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[122] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[127] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[128] = 0; _$jscoverage['/editor/selectionFix.js'].lineData[129] = 0; _$jscoverage['/editor/selectionFix.js'].lineData[130] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[131] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[132] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[143] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[152] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[157] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[160] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[161] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[181] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[182] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[185] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[186] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[141] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[150] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[155] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[158] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[159] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[179] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[180] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[183] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[184] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[189] = 0; _$jscoverage['/editor/selectionFix.js'].lineData[191] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[193] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[196] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[197] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[203] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[207] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[210] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[211] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[214] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[217] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[218] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[223] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[224] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[194] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[195] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[201] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[205] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[208] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[209] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[212] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[215] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[216] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[221] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[222] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[246] = 0; _$jscoverage['/editor/selectionFix.js'].lineData[248] = 0; _$jscoverage['/editor/selectionFix.js'].lineData[250] = 0; _$jscoverage['/editor/selectionFix.js'].lineData[252] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[253] = 0; _$jscoverage['/editor/selectionFix.js'].lineData[254] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[255] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[256] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[258] = 0; _$jscoverage['/editor/selectionFix.js'].lineData[260] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[262] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[263] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[276] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[281] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[261] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[274] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[279] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[280] = 0; _$jscoverage['/editor/selectionFix.js'].lineData[282] = 0; _$jscoverage['/editor/selectionFix.js'].lineData[284] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[286] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[291] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[292] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[289] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[290] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[295] = 0; _$jscoverage['/editor/selectionFix.js'].lineData[297] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[299] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[302] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[306] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[300] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[304] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[305] = 0; _$jscoverage['/editor/selectionFix.js'].lineData[307] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[308] = 0; _$jscoverage['/editor/selectionFix.js'].lineData[309] = 0; _$jscoverage['/editor/selectionFix.js'].lineData[310] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[311] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[312] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[317] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[315] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[319] = 0; _$jscoverage['/editor/selectionFix.js'].lineData[321] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[323] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[326] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[338] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[341] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[345] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[346] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[349] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[352] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[353] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[324] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[336] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[339] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[343] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[344] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[347] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[350] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[351] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[355] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[356] = 0; _$jscoverage['/editor/selectionFix.js'].lineData[357] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[358] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[359] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[362] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[363] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[360] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[361] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[367] = 0; _$jscoverage['/editor/selectionFix.js'].lineData[369] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[371] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[377] = 0; _$jscoverage['/editor/selectionFix.js'].lineData[379] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[380] = 0; _$jscoverage['/editor/selectionFix.js'].lineData[381] = 0; _$jscoverage['/editor/selectionFix.js'].lineData[382] = 0; _$jscoverage['/editor/selectionFix.js'].lineData[383] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[384] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[385] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[389] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[395] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[387] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[393] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[394] = 0; _$jscoverage['/editor/selectionFix.js'].lineData[396] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[398] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[407] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[411] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[412] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[405] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[409] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[410] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[414] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[415] = 0; _$jscoverage['/editor/selectionFix.js'].lineData[416] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[417] = 0; _$jscoverage['/editor/selectionFix.js'].lineData[418] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[420] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[421] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[419] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[425] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[426] = 0; _$jscoverage['/editor/selectionFix.js'].lineData[427] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[428] = 0; _$jscoverage['/editor/selectionFix.js'].lineData[429] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[431] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[430] = 0; _$jscoverage['/editor/selectionFix.js'].lineData[432] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[434] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[433] = 0; _$jscoverage['/editor/selectionFix.js'].lineData[435] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[437] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[440] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[438] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[444] = 0; _$jscoverage['/editor/selectionFix.js'].lineData[446] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[448] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[455] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[453] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[458] = 0; _$jscoverage['/editor/selectionFix.js'].lineData[460] = 0; _$jscoverage['/editor/selectionFix.js'].lineData[462] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[463] = 0; _$jscoverage['/editor/selectionFix.js'].lineData[464] = 0; _$jscoverage['/editor/selectionFix.js'].lineData[465] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[466] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[467] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[471] = 0; _$jscoverage['/editor/selectionFix.js'].lineData[473] = 0; _$jscoverage['/editor/selectionFix.js'].lineData[475] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[476] = 0; _$jscoverage['/editor/selectionFix.js'].lineData[477] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[478] = 0; _$jscoverage['/editor/selectionFix.js'].lineData[479] = 0; _$jscoverage['/editor/selectionFix.js'].lineData[481] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[483] = 0; + _$jscoverage['/editor/selectionFix.js'].lineData[482] = 0; _$jscoverage['/editor/selectionFix.js'].lineData[484] = 0; _$jscoverage['/editor/selectionFix.js'].lineData[485] = 0; - _$jscoverage['/editor/selectionFix.js'].lineData[486] = 0; _$jscoverage['/editor/selectionFix.js'].lineData[487] = 0; _$jscoverage['/editor/selectionFix.js'].lineData[488] = 0; _$jscoverage['/editor/selectionFix.js'].lineData[489] = 0; @@ -433,408 +432,403 @@ if (! _$jscoverage['/editor/selectionFix.js'].functionData) { _$jscoverage['/editor/selectionFix.js'].functionData[29] = 0; _$jscoverage['/editor/selectionFix.js'].functionData[30] = 0; _$jscoverage['/editor/selectionFix.js'].functionData[31] = 0; + _$jscoverage['/editor/selectionFix.js'].functionData[32] = 0; } if (! _$jscoverage['/editor/selectionFix.js'].branchData) { _$jscoverage['/editor/selectionFix.js'].branchData = {}; - _$jscoverage['/editor/selectionFix.js'].branchData['53'] = []; - _$jscoverage['/editor/selectionFix.js'].branchData['53'][1] = new BranchData(); - _$jscoverage['/editor/selectionFix.js'].branchData['53'][2] = new BranchData(); - _$jscoverage['/editor/selectionFix.js'].branchData['53'][3] = new BranchData(); - _$jscoverage['/editor/selectionFix.js'].branchData['66'] = []; - _$jscoverage['/editor/selectionFix.js'].branchData['66'][1] = new BranchData(); - _$jscoverage['/editor/selectionFix.js'].branchData['70'] = []; - _$jscoverage['/editor/selectionFix.js'].branchData['70'][1] = new BranchData(); - _$jscoverage['/editor/selectionFix.js'].branchData['72'] = []; - _$jscoverage['/editor/selectionFix.js'].branchData['72'][1] = new BranchData(); + _$jscoverage['/editor/selectionFix.js'].branchData['52'] = []; + _$jscoverage['/editor/selectionFix.js'].branchData['52'][1] = new BranchData(); + _$jscoverage['/editor/selectionFix.js'].branchData['52'][2] = new BranchData(); + _$jscoverage['/editor/selectionFix.js'].branchData['52'][3] = new BranchData(); + _$jscoverage['/editor/selectionFix.js'].branchData['65'] = []; + _$jscoverage['/editor/selectionFix.js'].branchData['65'][1] = new BranchData(); + _$jscoverage['/editor/selectionFix.js'].branchData['69'] = []; + _$jscoverage['/editor/selectionFix.js'].branchData['69'][1] = new BranchData(); + _$jscoverage['/editor/selectionFix.js'].branchData['71'] = []; + _$jscoverage['/editor/selectionFix.js'].branchData['71'][1] = new BranchData(); + _$jscoverage['/editor/selectionFix.js'].branchData['89'] = []; + _$jscoverage['/editor/selectionFix.js'].branchData['89'][1] = new BranchData(); _$jscoverage['/editor/selectionFix.js'].branchData['90'] = []; _$jscoverage['/editor/selectionFix.js'].branchData['90'][1] = new BranchData(); - _$jscoverage['/editor/selectionFix.js'].branchData['91'] = []; - _$jscoverage['/editor/selectionFix.js'].branchData['91'][1] = new BranchData(); - _$jscoverage['/editor/selectionFix.js'].branchData['95'] = []; - _$jscoverage['/editor/selectionFix.js'].branchData['95'][1] = new BranchData(); - _$jscoverage['/editor/selectionFix.js'].branchData['102'] = []; - _$jscoverage['/editor/selectionFix.js'].branchData['102'][1] = new BranchData(); - _$jscoverage['/editor/selectionFix.js'].branchData['125'] = []; - _$jscoverage['/editor/selectionFix.js'].branchData['125'][1] = new BranchData(); - _$jscoverage['/editor/selectionFix.js'].branchData['131'] = []; - _$jscoverage['/editor/selectionFix.js'].branchData['131'][1] = new BranchData(); - _$jscoverage['/editor/selectionFix.js'].branchData['185'] = []; - _$jscoverage['/editor/selectionFix.js'].branchData['185'][1] = new BranchData(); - _$jscoverage['/editor/selectionFix.js'].branchData['191'] = []; - _$jscoverage['/editor/selectionFix.js'].branchData['191'][1] = new BranchData(); - _$jscoverage['/editor/selectionFix.js'].branchData['196'] = []; - _$jscoverage['/editor/selectionFix.js'].branchData['196'][1] = new BranchData(); - _$jscoverage['/editor/selectionFix.js'].branchData['217'] = []; - _$jscoverage['/editor/selectionFix.js'].branchData['217'][1] = new BranchData(); + _$jscoverage['/editor/selectionFix.js'].branchData['94'] = []; + _$jscoverage['/editor/selectionFix.js'].branchData['94'][1] = new BranchData(); + _$jscoverage['/editor/selectionFix.js'].branchData['101'] = []; + _$jscoverage['/editor/selectionFix.js'].branchData['101'][1] = new BranchData(); + _$jscoverage['/editor/selectionFix.js'].branchData['123'] = []; + _$jscoverage['/editor/selectionFix.js'].branchData['123'][1] = new BranchData(); + _$jscoverage['/editor/selectionFix.js'].branchData['129'] = []; + _$jscoverage['/editor/selectionFix.js'].branchData['129'][1] = new BranchData(); + _$jscoverage['/editor/selectionFix.js'].branchData['183'] = []; + _$jscoverage['/editor/selectionFix.js'].branchData['183'][1] = new BranchData(); + _$jscoverage['/editor/selectionFix.js'].branchData['189'] = []; + _$jscoverage['/editor/selectionFix.js'].branchData['189'][1] = new BranchData(); + _$jscoverage['/editor/selectionFix.js'].branchData['194'] = []; + _$jscoverage['/editor/selectionFix.js'].branchData['194'][1] = new BranchData(); + _$jscoverage['/editor/selectionFix.js'].branchData['215'] = []; + _$jscoverage['/editor/selectionFix.js'].branchData['215'][1] = new BranchData(); + _$jscoverage['/editor/selectionFix.js'].branchData['260'] = []; + _$jscoverage['/editor/selectionFix.js'].branchData['260'][1] = new BranchData(); _$jscoverage['/editor/selectionFix.js'].branchData['262'] = []; _$jscoverage['/editor/selectionFix.js'].branchData['262'][1] = new BranchData(); - _$jscoverage['/editor/selectionFix.js'].branchData['264'] = []; - _$jscoverage['/editor/selectionFix.js'].branchData['264'][1] = new BranchData(); - _$jscoverage['/editor/selectionFix.js'].branchData['265'] = []; - _$jscoverage['/editor/selectionFix.js'].branchData['265'][1] = new BranchData(); - _$jscoverage['/editor/selectionFix.js'].branchData['276'] = []; - _$jscoverage['/editor/selectionFix.js'].branchData['276'][1] = new BranchData(); - _$jscoverage['/editor/selectionFix.js'].branchData['276'][2] = new BranchData(); - _$jscoverage['/editor/selectionFix.js'].branchData['276'][3] = new BranchData(); - _$jscoverage['/editor/selectionFix.js'].branchData['281'] = []; - _$jscoverage['/editor/selectionFix.js'].branchData['281'][1] = new BranchData(); + _$jscoverage['/editor/selectionFix.js'].branchData['263'] = []; + _$jscoverage['/editor/selectionFix.js'].branchData['263'][1] = new BranchData(); + _$jscoverage['/editor/selectionFix.js'].branchData['274'] = []; + _$jscoverage['/editor/selectionFix.js'].branchData['274'][1] = new BranchData(); + _$jscoverage['/editor/selectionFix.js'].branchData['274'][2] = new BranchData(); + _$jscoverage['/editor/selectionFix.js'].branchData['274'][3] = new BranchData(); + _$jscoverage['/editor/selectionFix.js'].branchData['279'] = []; + _$jscoverage['/editor/selectionFix.js'].branchData['279'][1] = new BranchData(); + _$jscoverage['/editor/selectionFix.js'].branchData['290'] = []; + _$jscoverage['/editor/selectionFix.js'].branchData['290'][1] = new BranchData(); + _$jscoverage['/editor/selectionFix.js'].branchData['290'][2] = new BranchData(); + _$jscoverage['/editor/selectionFix.js'].branchData['290'][3] = new BranchData(); + _$jscoverage['/editor/selectionFix.js'].branchData['290'][4] = new BranchData(); + _$jscoverage['/editor/selectionFix.js'].branchData['291'] = []; + _$jscoverage['/editor/selectionFix.js'].branchData['291'][1] = new BranchData(); _$jscoverage['/editor/selectionFix.js'].branchData['292'] = []; _$jscoverage['/editor/selectionFix.js'].branchData['292'][1] = new BranchData(); - _$jscoverage['/editor/selectionFix.js'].branchData['292'][2] = new BranchData(); - _$jscoverage['/editor/selectionFix.js'].branchData['292'][3] = new BranchData(); - _$jscoverage['/editor/selectionFix.js'].branchData['292'][4] = new BranchData(); _$jscoverage['/editor/selectionFix.js'].branchData['293'] = []; _$jscoverage['/editor/selectionFix.js'].branchData['293'][1] = new BranchData(); - _$jscoverage['/editor/selectionFix.js'].branchData['294'] = []; - _$jscoverage['/editor/selectionFix.js'].branchData['294'][1] = new BranchData(); - _$jscoverage['/editor/selectionFix.js'].branchData['295'] = []; - _$jscoverage['/editor/selectionFix.js'].branchData['295'][1] = new BranchData(); - _$jscoverage['/editor/selectionFix.js'].branchData['299'] = []; - _$jscoverage['/editor/selectionFix.js'].branchData['299'][1] = new BranchData(); - _$jscoverage['/editor/selectionFix.js'].branchData['353'] = []; - _$jscoverage['/editor/selectionFix.js'].branchData['353'][1] = new BranchData(); - _$jscoverage['/editor/selectionFix.js'].branchData['353'][2] = new BranchData(); - _$jscoverage['/editor/selectionFix.js'].branchData['359'] = []; - _$jscoverage['/editor/selectionFix.js'].branchData['359'][1] = new BranchData(); - _$jscoverage['/editor/selectionFix.js'].branchData['363'] = []; - _$jscoverage['/editor/selectionFix.js'].branchData['363'][1] = new BranchData(); - _$jscoverage['/editor/selectionFix.js'].branchData['375'] = []; - _$jscoverage['/editor/selectionFix.js'].branchData['375'][1] = new BranchData(); - _$jscoverage['/editor/selectionFix.js'].branchData['379'] = []; - _$jscoverage['/editor/selectionFix.js'].branchData['379'][1] = new BranchData(); - _$jscoverage['/editor/selectionFix.js'].branchData['383'] = []; - _$jscoverage['/editor/selectionFix.js'].branchData['383'][1] = new BranchData(); - _$jscoverage['/editor/selectionFix.js'].branchData['389'] = []; - _$jscoverage['/editor/selectionFix.js'].branchData['389'][1] = new BranchData(); + _$jscoverage['/editor/selectionFix.js'].branchData['297'] = []; + _$jscoverage['/editor/selectionFix.js'].branchData['297'][1] = new BranchData(); + _$jscoverage['/editor/selectionFix.js'].branchData['351'] = []; + _$jscoverage['/editor/selectionFix.js'].branchData['351'][1] = new BranchData(); + _$jscoverage['/editor/selectionFix.js'].branchData['351'][2] = new BranchData(); + _$jscoverage['/editor/selectionFix.js'].branchData['357'] = []; + _$jscoverage['/editor/selectionFix.js'].branchData['357'][1] = new BranchData(); + _$jscoverage['/editor/selectionFix.js'].branchData['361'] = []; + _$jscoverage['/editor/selectionFix.js'].branchData['361'][1] = new BranchData(); + _$jscoverage['/editor/selectionFix.js'].branchData['373'] = []; + _$jscoverage['/editor/selectionFix.js'].branchData['373'][1] = new BranchData(); + _$jscoverage['/editor/selectionFix.js'].branchData['377'] = []; + _$jscoverage['/editor/selectionFix.js'].branchData['377'][1] = new BranchData(); + _$jscoverage['/editor/selectionFix.js'].branchData['381'] = []; + _$jscoverage['/editor/selectionFix.js'].branchData['381'][1] = new BranchData(); + _$jscoverage['/editor/selectionFix.js'].branchData['387'] = []; + _$jscoverage['/editor/selectionFix.js'].branchData['387'][1] = new BranchData(); + _$jscoverage['/editor/selectionFix.js'].branchData['393'] = []; + _$jscoverage['/editor/selectionFix.js'].branchData['393'][1] = new BranchData(); + _$jscoverage['/editor/selectionFix.js'].branchData['394'] = []; + _$jscoverage['/editor/selectionFix.js'].branchData['394'][1] = new BranchData(); _$jscoverage['/editor/selectionFix.js'].branchData['395'] = []; _$jscoverage['/editor/selectionFix.js'].branchData['395'][1] = new BranchData(); _$jscoverage['/editor/selectionFix.js'].branchData['396'] = []; _$jscoverage['/editor/selectionFix.js'].branchData['396'][1] = new BranchData(); - _$jscoverage['/editor/selectionFix.js'].branchData['397'] = []; - _$jscoverage['/editor/selectionFix.js'].branchData['397'][1] = new BranchData(); _$jscoverage['/editor/selectionFix.js'].branchData['398'] = []; _$jscoverage['/editor/selectionFix.js'].branchData['398'][1] = new BranchData(); _$jscoverage['/editor/selectionFix.js'].branchData['400'] = []; _$jscoverage['/editor/selectionFix.js'].branchData['400'][1] = new BranchData(); + _$jscoverage['/editor/selectionFix.js'].branchData['400'][2] = new BranchData(); + _$jscoverage['/editor/selectionFix.js'].branchData['400'][3] = new BranchData(); + _$jscoverage['/editor/selectionFix.js'].branchData['400'][4] = new BranchData(); _$jscoverage['/editor/selectionFix.js'].branchData['402'] = []; _$jscoverage['/editor/selectionFix.js'].branchData['402'][1] = new BranchData(); _$jscoverage['/editor/selectionFix.js'].branchData['402'][2] = new BranchData(); - _$jscoverage['/editor/selectionFix.js'].branchData['402'][3] = new BranchData(); - _$jscoverage['/editor/selectionFix.js'].branchData['402'][4] = new BranchData(); - _$jscoverage['/editor/selectionFix.js'].branchData['404'] = []; - _$jscoverage['/editor/selectionFix.js'].branchData['404'][1] = new BranchData(); - _$jscoverage['/editor/selectionFix.js'].branchData['404'][2] = new BranchData(); - _$jscoverage['/editor/selectionFix.js'].branchData['411'] = []; - _$jscoverage['/editor/selectionFix.js'].branchData['411'][1] = new BranchData(); - _$jscoverage['/editor/selectionFix.js'].branchData['411'][2] = new BranchData(); - _$jscoverage['/editor/selectionFix.js'].branchData['416'] = []; - _$jscoverage['/editor/selectionFix.js'].branchData['416'][1] = new BranchData(); - _$jscoverage['/editor/selectionFix.js'].branchData['417'] = []; - _$jscoverage['/editor/selectionFix.js'].branchData['417'][1] = new BranchData(); - _$jscoverage['/editor/selectionFix.js'].branchData['421'] = []; - _$jscoverage['/editor/selectionFix.js'].branchData['421'][1] = new BranchData(); + _$jscoverage['/editor/selectionFix.js'].branchData['409'] = []; + _$jscoverage['/editor/selectionFix.js'].branchData['409'][1] = new BranchData(); + _$jscoverage['/editor/selectionFix.js'].branchData['409'][2] = new BranchData(); + _$jscoverage['/editor/selectionFix.js'].branchData['414'] = []; + _$jscoverage['/editor/selectionFix.js'].branchData['414'][1] = new BranchData(); + _$jscoverage['/editor/selectionFix.js'].branchData['415'] = []; + _$jscoverage['/editor/selectionFix.js'].branchData['415'][1] = new BranchData(); + _$jscoverage['/editor/selectionFix.js'].branchData['419'] = []; + _$jscoverage['/editor/selectionFix.js'].branchData['419'][1] = new BranchData(); + _$jscoverage['/editor/selectionFix.js'].branchData['423'] = []; + _$jscoverage['/editor/selectionFix.js'].branchData['423'][1] = new BranchData(); _$jscoverage['/editor/selectionFix.js'].branchData['425'] = []; _$jscoverage['/editor/selectionFix.js'].branchData['425'][1] = new BranchData(); _$jscoverage['/editor/selectionFix.js'].branchData['427'] = []; _$jscoverage['/editor/selectionFix.js'].branchData['427'][1] = new BranchData(); - _$jscoverage['/editor/selectionFix.js'].branchData['429'] = []; - _$jscoverage['/editor/selectionFix.js'].branchData['429'][1] = new BranchData(); - _$jscoverage['/editor/selectionFix.js'].branchData['430'] = []; - _$jscoverage['/editor/selectionFix.js'].branchData['430'][1] = new BranchData(); - _$jscoverage['/editor/selectionFix.js'].branchData['430'][2] = new BranchData(); - _$jscoverage['/editor/selectionFix.js'].branchData['435'] = []; - _$jscoverage['/editor/selectionFix.js'].branchData['435'][1] = new BranchData(); - _$jscoverage['/editor/selectionFix.js'].branchData['436'] = []; - _$jscoverage['/editor/selectionFix.js'].branchData['436'][1] = new BranchData(); - _$jscoverage['/editor/selectionFix.js'].branchData['436'][2] = new BranchData(); + _$jscoverage['/editor/selectionFix.js'].branchData['428'] = []; + _$jscoverage['/editor/selectionFix.js'].branchData['428'][1] = new BranchData(); + _$jscoverage['/editor/selectionFix.js'].branchData['428'][2] = new BranchData(); + _$jscoverage['/editor/selectionFix.js'].branchData['433'] = []; + _$jscoverage['/editor/selectionFix.js'].branchData['433'][1] = new BranchData(); + _$jscoverage['/editor/selectionFix.js'].branchData['434'] = []; + _$jscoverage['/editor/selectionFix.js'].branchData['434'][1] = new BranchData(); + _$jscoverage['/editor/selectionFix.js'].branchData['434'][2] = new BranchData(); + _$jscoverage['/editor/selectionFix.js'].branchData['462'] = []; + _$jscoverage['/editor/selectionFix.js'].branchData['462'][1] = new BranchData(); _$jscoverage['/editor/selectionFix.js'].branchData['464'] = []; _$jscoverage['/editor/selectionFix.js'].branchData['464'][1] = new BranchData(); - _$jscoverage['/editor/selectionFix.js'].branchData['466'] = []; - _$jscoverage['/editor/selectionFix.js'].branchData['466'][1] = new BranchData(); - _$jscoverage['/editor/selectionFix.js'].branchData['477'] = []; - _$jscoverage['/editor/selectionFix.js'].branchData['477'][1] = new BranchData(); - _$jscoverage['/editor/selectionFix.js'].branchData['483'] = []; - _$jscoverage['/editor/selectionFix.js'].branchData['483'][1] = new BranchData(); - _$jscoverage['/editor/selectionFix.js'].branchData['486'] = []; - _$jscoverage['/editor/selectionFix.js'].branchData['486'][1] = new BranchData(); - _$jscoverage['/editor/selectionFix.js'].branchData['487'] = []; - _$jscoverage['/editor/selectionFix.js'].branchData['487'][1] = new BranchData(); + _$jscoverage['/editor/selectionFix.js'].branchData['475'] = []; + _$jscoverage['/editor/selectionFix.js'].branchData['475'][1] = new BranchData(); + _$jscoverage['/editor/selectionFix.js'].branchData['481'] = []; + _$jscoverage['/editor/selectionFix.js'].branchData['481'][1] = new BranchData(); + _$jscoverage['/editor/selectionFix.js'].branchData['488'] = []; + _$jscoverage['/editor/selectionFix.js'].branchData['488'][1] = new BranchData(); } -_$jscoverage['/editor/selectionFix.js'].branchData['487'][1].init(179, 6, '!range'); -function visit821_487_1(result) { - _$jscoverage['/editor/selectionFix.js'].branchData['487'][1].ranCondition(result); +_$jscoverage['/editor/selectionFix.js'].branchData['488'][1].init(33, 11, 'savedRanges'); +function visit831_488_1(result) { + _$jscoverage['/editor/selectionFix.js'].branchData['488'][1].ranCondition(result); return result; -}_$jscoverage['/editor/selectionFix.js'].branchData['486'][1].init(108, 37, 'selection && selection.getRanges()[0]'); -function visit820_486_1(result) { - _$jscoverage['/editor/selectionFix.js'].branchData['486'][1].ranCondition(result); +}_$jscoverage['/editor/selectionFix.js'].branchData['481'][1].init(163, 5, 'UA.ie'); +function visit830_481_1(result) { + _$jscoverage['/editor/selectionFix.js'].branchData['481'][1].ranCondition(result); return result; -}_$jscoverage['/editor/selectionFix.js'].branchData['483'][1].init(149, 16, 'UA.ieMode === 11'); -function visit819_483_1(result) { - _$jscoverage['/editor/selectionFix.js'].branchData['483'][1].ranCondition(result); +}_$jscoverage['/editor/selectionFix.js'].branchData['475'][1].init(84, 18, 'document.selection'); +function visit829_475_1(result) { + _$jscoverage['/editor/selectionFix.js'].branchData['475'][1].ranCondition(result); return result; -}_$jscoverage['/editor/selectionFix.js'].branchData['477'][1].init(84, 18, 'document.selection'); -function visit818_477_1(result) { - _$jscoverage['/editor/selectionFix.js'].branchData['477'][1].ranCondition(result); - return result; -}_$jscoverage['/editor/selectionFix.js'].branchData['466'][1].init(98, 6, '!UA.ie'); -function visit817_466_1(result) { - _$jscoverage['/editor/selectionFix.js'].branchData['466'][1].ranCondition(result); - return result; -}_$jscoverage['/editor/selectionFix.js'].branchData['464'][1].init(4141, 41, 'lastPath.blockLimit.nodeName() !== \'body\''); -function visit816_464_1(result) { +}_$jscoverage['/editor/selectionFix.js'].branchData['464'][1].init(98, 6, '!UA.ie'); +function visit828_464_1(result) { _$jscoverage['/editor/selectionFix.js'].branchData['464'][1].ranCondition(result); return result; -}_$jscoverage['/editor/selectionFix.js'].branchData['436'][2].init(149, 49, 'element[0].nodeType === Dom.NodeType.ELEMENT_NODE'); -function visit815_436_2(result) { - _$jscoverage['/editor/selectionFix.js'].branchData['436'][2].ranCondition(result); +}_$jscoverage['/editor/selectionFix.js'].branchData['462'][1].init(4141, 41, 'lastPath.blockLimit.nodeName() !== \'body\''); +function visit827_462_1(result) { + _$jscoverage['/editor/selectionFix.js'].branchData['462'][1].ranCondition(result); return result; -}_$jscoverage['/editor/selectionFix.js'].branchData['436'][1].init(42, 81, 'element[0].nodeType === Dom.NodeType.ELEMENT_NODE && !cannotCursorPlaced[element]'); -function visit814_436_1(result) { - _$jscoverage['/editor/selectionFix.js'].branchData['436'][1].ranCondition(result); +}_$jscoverage['/editor/selectionFix.js'].branchData['434'][2].init(149, 49, 'element[0].nodeType === Dom.NodeType.ELEMENT_NODE'); +function visit826_434_2(result) { + _$jscoverage['/editor/selectionFix.js'].branchData['434'][2].ranCondition(result); return result; -}_$jscoverage['/editor/selectionFix.js'].branchData['435'][1].init(104, 124, 'element && element[0].nodeType === Dom.NodeType.ELEMENT_NODE && !cannotCursorPlaced[element]'); -function visit813_435_1(result) { - _$jscoverage['/editor/selectionFix.js'].branchData['435'][1].ranCondition(result); +}_$jscoverage['/editor/selectionFix.js'].branchData['434'][1].init(42, 81, 'element[0].nodeType === Dom.NodeType.ELEMENT_NODE && !cannotCursorPlaced[element]'); +function visit825_434_1(result) { + _$jscoverage['/editor/selectionFix.js'].branchData['434'][1].ranCondition(result); return result; -}_$jscoverage['/editor/selectionFix.js'].branchData['430'][2].init(141, 49, 'element[0].nodeType === Dom.NodeType.ELEMENT_NODE'); -function visit812_430_2(result) { - _$jscoverage['/editor/selectionFix.js'].branchData['430'][2].ranCondition(result); +}_$jscoverage['/editor/selectionFix.js'].branchData['433'][1].init(104, 124, 'element && element[0].nodeType === Dom.NodeType.ELEMENT_NODE && !cannotCursorPlaced[element]'); +function visit824_433_1(result) { + _$jscoverage['/editor/selectionFix.js'].branchData['433'][1].ranCondition(result); return result; -}_$jscoverage['/editor/selectionFix.js'].branchData['430'][1].init(38, 83, 'element[0].nodeType === Dom.NodeType.ELEMENT_NODE && !cannotCursorPlaced[element]'); -function visit811_430_1(result) { - _$jscoverage['/editor/selectionFix.js'].branchData['430'][1].ranCondition(result); +}_$jscoverage['/editor/selectionFix.js'].branchData['428'][2].init(141, 49, 'element[0].nodeType === Dom.NodeType.ELEMENT_NODE'); +function visit823_428_2(result) { + _$jscoverage['/editor/selectionFix.js'].branchData['428'][2].ranCondition(result); return result; -}_$jscoverage['/editor/selectionFix.js'].branchData['429'][1].init(100, 122, 'element && element[0].nodeType === Dom.NodeType.ELEMENT_NODE && !cannotCursorPlaced[element]'); -function visit810_429_1(result) { - _$jscoverage['/editor/selectionFix.js'].branchData['429'][1].ranCondition(result); +}_$jscoverage['/editor/selectionFix.js'].branchData['428'][1].init(38, 83, 'element[0].nodeType === Dom.NodeType.ELEMENT_NODE && !cannotCursorPlaced[element]'); +function visit822_428_1(result) { + _$jscoverage['/editor/selectionFix.js'].branchData['428'][1].ranCondition(result); return result; -}_$jscoverage['/editor/selectionFix.js'].branchData['427'][1].init(80, 28, 'isBlankParagraph(fixedBlock)'); -function visit809_427_1(result) { +}_$jscoverage['/editor/selectionFix.js'].branchData['427'][1].init(100, 122, 'element && element[0].nodeType === Dom.NodeType.ELEMENT_NODE && !cannotCursorPlaced[element]'); +function visit821_427_1(result) { _$jscoverage['/editor/selectionFix.js'].branchData['427'][1].ranCondition(result); return result; -}_$jscoverage['/editor/selectionFix.js'].branchData['425'][1].init(216, 35, 'fixedBlock[0] !== body[0].lastChild'); -function visit808_425_1(result) { +}_$jscoverage['/editor/selectionFix.js'].branchData['425'][1].init(80, 28, 'isBlankParagraph(fixedBlock)'); +function visit820_425_1(result) { _$jscoverage['/editor/selectionFix.js'].branchData['425'][1].ranCondition(result); return result; -}_$jscoverage['/editor/selectionFix.js'].branchData['421'][1].init(210, 252, 'fixedBlock && fixedBlock[0] !== body[0].lastChild'); -function visit807_421_1(result) { - _$jscoverage['/editor/selectionFix.js'].branchData['421'][1].ranCondition(result); +}_$jscoverage['/editor/selectionFix.js'].branchData['423'][1].init(216, 35, 'fixedBlock[0] !== body[0].lastChild'); +function visit819_423_1(result) { + _$jscoverage['/editor/selectionFix.js'].branchData['423'][1].ranCondition(result); return result; -}_$jscoverage['/editor/selectionFix.js'].branchData['417'][1].init(21, 42, 'range.startContainer.nodeName() === \'html\''); -function visit806_417_1(result) { - _$jscoverage['/editor/selectionFix.js'].branchData['417'][1].ranCondition(result); +}_$jscoverage['/editor/selectionFix.js'].branchData['419'][1].init(210, 252, 'fixedBlock && fixedBlock[0] !== body[0].lastChild'); +function visit818_419_1(result) { + _$jscoverage['/editor/selectionFix.js'].branchData['419'][1].ranCondition(result); return result; -}_$jscoverage['/editor/selectionFix.js'].branchData['416'][1].init(1869, 32, 'blockLimit.nodeName() === \'body\''); -function visit805_416_1(result) { - _$jscoverage['/editor/selectionFix.js'].branchData['416'][1].ranCondition(result); +}_$jscoverage['/editor/selectionFix.js'].branchData['415'][1].init(21, 42, 'range.startContainer.nodeName() === \'html\''); +function visit817_415_1(result) { + _$jscoverage['/editor/selectionFix.js'].branchData['415'][1].ranCondition(result); return result; -}_$jscoverage['/editor/selectionFix.js'].branchData['411'][2].init(1749, 30, '!range.collapsed || path.block'); -function visit804_411_2(result) { - _$jscoverage['/editor/selectionFix.js'].branchData['411'][2].ranCondition(result); +}_$jscoverage['/editor/selectionFix.js'].branchData['414'][1].init(1869, 32, 'blockLimit.nodeName() === \'body\''); +function visit816_414_1(result) { + _$jscoverage['/editor/selectionFix.js'].branchData['414'][1].ranCondition(result); return result; -}_$jscoverage['/editor/selectionFix.js'].branchData['411'][1].init(1739, 40, '!range || !range.collapsed || path.block'); -function visit803_411_1(result) { - _$jscoverage['/editor/selectionFix.js'].branchData['411'][1].ranCondition(result); +}_$jscoverage['/editor/selectionFix.js'].branchData['409'][2].init(1749, 30, '!range.collapsed || path.block'); +function visit815_409_2(result) { + _$jscoverage['/editor/selectionFix.js'].branchData['409'][2].ranCondition(result); return result; -}_$jscoverage['/editor/selectionFix.js'].branchData['404'][2].init(461, 30, 'pathBlock.nodeName() !== \'pre\''); -function visit802_404_2(result) { - _$jscoverage['/editor/selectionFix.js'].branchData['404'][2].ranCondition(result); +}_$jscoverage['/editor/selectionFix.js'].branchData['409'][1].init(1739, 40, '!range || !range.collapsed || path.block'); +function visit814_409_1(result) { + _$jscoverage['/editor/selectionFix.js'].branchData['409'][1].ranCondition(result); return result; -}_$jscoverage['/editor/selectionFix.js'].branchData['404'][1].init(130, 121, 'pathBlock.nodeName() !== \'pre\' && !pathBlock._4eGetBogus()'); -function visit801_404_1(result) { - _$jscoverage['/editor/selectionFix.js'].branchData['404'][1].ranCondition(result); +}_$jscoverage['/editor/selectionFix.js'].branchData['402'][2].init(461, 30, 'pathBlock.nodeName() !== \'pre\''); +function visit813_402_2(result) { + _$jscoverage['/editor/selectionFix.js'].branchData['402'][2].ranCondition(result); return result; -}_$jscoverage['/editor/selectionFix.js'].branchData['402'][4].init(344, 26, 'lastNode[0].nodeType === 1'); -function visit800_402_4(result) { - _$jscoverage['/editor/selectionFix.js'].branchData['402'][4].ranCondition(result); +}_$jscoverage['/editor/selectionFix.js'].branchData['402'][1].init(130, 121, 'pathBlock.nodeName() !== \'pre\' && !pathBlock._4eGetBogus()'); +function visit812_402_1(result) { + _$jscoverage['/editor/selectionFix.js'].branchData['402'][1].ranCondition(result); return result; -}_$jscoverage['/editor/selectionFix.js'].branchData['402'][3].init(344, 59, 'lastNode[0].nodeType === 1 && lastNode._4eIsBlockBoundary()'); -function visit799_402_3(result) { - _$jscoverage['/editor/selectionFix.js'].branchData['402'][3].ranCondition(result); +}_$jscoverage['/editor/selectionFix.js'].branchData['400'][4].init(344, 26, 'lastNode[0].nodeType === 1'); +function visit811_400_4(result) { + _$jscoverage['/editor/selectionFix.js'].branchData['400'][4].ranCondition(result); return result; -}_$jscoverage['/editor/selectionFix.js'].branchData['402'][2].init(332, 71, 'lastNode && lastNode[0].nodeType === 1 && lastNode._4eIsBlockBoundary()'); -function visit798_402_2(result) { - _$jscoverage['/editor/selectionFix.js'].branchData['402'][2].ranCondition(result); +}_$jscoverage['/editor/selectionFix.js'].branchData['400'][3].init(344, 59, 'lastNode[0].nodeType === 1 && lastNode._4eIsBlockBoundary()'); +function visit810_400_3(result) { + _$jscoverage['/editor/selectionFix.js'].branchData['400'][3].ranCondition(result); return result; -}_$jscoverage['/editor/selectionFix.js'].branchData['402'][1].init(98, 252, '!(lastNode && lastNode[0].nodeType === 1 && lastNode._4eIsBlockBoundary()) && pathBlock.nodeName() !== \'pre\' && !pathBlock._4eGetBogus()'); -function visit797_402_1(result) { - _$jscoverage['/editor/selectionFix.js'].branchData['402'][1].ranCondition(result); +}_$jscoverage['/editor/selectionFix.js'].branchData['400'][2].init(332, 71, 'lastNode && lastNode[0].nodeType === 1 && lastNode._4eIsBlockBoundary()'); +function visit809_400_2(result) { + _$jscoverage['/editor/selectionFix.js'].branchData['400'][2].ranCondition(result); return result; -}_$jscoverage['/editor/selectionFix.js'].branchData['400'][1].init(70, 351, 'pathBlock._4eIsBlockBoundary() && !(lastNode && lastNode[0].nodeType === 1 && lastNode._4eIsBlockBoundary()) && pathBlock.nodeName() !== \'pre\' && !pathBlock._4eGetBogus()'); -function visit796_400_1(result) { +}_$jscoverage['/editor/selectionFix.js'].branchData['400'][1].init(98, 252, '!(lastNode && lastNode[0].nodeType === 1 && lastNode._4eIsBlockBoundary()) && pathBlock.nodeName() !== \'pre\' && !pathBlock._4eGetBogus()'); +function visit808_400_1(result) { _$jscoverage['/editor/selectionFix.js'].branchData['400'][1].ranCondition(result); return result; -}_$jscoverage['/editor/selectionFix.js'].branchData['398'][1].init(156, 422, 'pathBlock && pathBlock._4eIsBlockBoundary() && !(lastNode && lastNode[0].nodeType === 1 && lastNode._4eIsBlockBoundary()) && pathBlock.nodeName() !== \'pre\' && !pathBlock._4eGetBogus()'); -function visit795_398_1(result) { +}_$jscoverage['/editor/selectionFix.js'].branchData['398'][1].init(70, 351, 'pathBlock._4eIsBlockBoundary() && !(lastNode && lastNode[0].nodeType === 1 && lastNode._4eIsBlockBoundary()) && pathBlock.nodeName() !== \'pre\' && !pathBlock._4eGetBogus()'); +function visit807_398_1(result) { _$jscoverage['/editor/selectionFix.js'].branchData['398'][1].ranCondition(result); return result; -}_$jscoverage['/editor/selectionFix.js'].branchData['397'][1].init(77, 39, 'pathBlock && pathBlock.last(isNotEmpty)'); -function visit794_397_1(result) { - _$jscoverage['/editor/selectionFix.js'].branchData['397'][1].ranCondition(result); - return result; -}_$jscoverage['/editor/selectionFix.js'].branchData['396'][1].init(33, 29, 'path.block || path.blockLimit'); -function visit793_396_1(result) { +}_$jscoverage['/editor/selectionFix.js'].branchData['396'][1].init(156, 422, 'pathBlock && pathBlock._4eIsBlockBoundary() && !(lastNode && lastNode[0].nodeType === 1 && lastNode._4eIsBlockBoundary()) && pathBlock.nodeName() !== \'pre\' && !pathBlock._4eGetBogus()'); +function visit806_396_1(result) { _$jscoverage['/editor/selectionFix.js'].branchData['396'][1].ranCondition(result); return result; -}_$jscoverage['/editor/selectionFix.js'].branchData['395'][1].init(1049, 8, 'UA.gecko'); -function visit792_395_1(result) { +}_$jscoverage['/editor/selectionFix.js'].branchData['395'][1].init(77, 39, 'pathBlock && pathBlock.last(isNotEmpty)'); +function visit805_395_1(result) { _$jscoverage['/editor/selectionFix.js'].branchData['395'][1].ranCondition(result); return result; -}_$jscoverage['/editor/selectionFix.js'].branchData['389'][1].init(779, 18, 'blockLimit || body'); -function visit791_389_1(result) { - _$jscoverage['/editor/selectionFix.js'].branchData['389'][1].ranCondition(result); +}_$jscoverage['/editor/selectionFix.js'].branchData['394'][1].init(33, 29, 'path.block || path.blockLimit'); +function visit804_394_1(result) { + _$jscoverage['/editor/selectionFix.js'].branchData['394'][1].ranCondition(result); return result; -}_$jscoverage['/editor/selectionFix.js'].branchData['383'][1].init(198, 5, 'range'); -function visit790_383_1(result) { - _$jscoverage['/editor/selectionFix.js'].branchData['383'][1].ranCondition(result); +}_$jscoverage['/editor/selectionFix.js'].branchData['393'][1].init(1049, 8, 'UA.gecko'); +function visit803_393_1(result) { + _$jscoverage['/editor/selectionFix.js'].branchData['393'][1].ranCondition(result); return result; -}_$jscoverage['/editor/selectionFix.js'].branchData['379'][1].init(419, 8, '!body[0]'); -function visit789_379_1(result) { - _$jscoverage['/editor/selectionFix.js'].branchData['379'][1].ranCondition(result); +}_$jscoverage['/editor/selectionFix.js'].branchData['387'][1].init(779, 18, 'blockLimit || body'); +function visit802_387_1(result) { + _$jscoverage['/editor/selectionFix.js'].branchData['387'][1].ranCondition(result); return result; -}_$jscoverage['/editor/selectionFix.js'].branchData['375'][1].init(189, 37, 'selection && selection.getRanges()[0]'); -function visit788_375_1(result) { - _$jscoverage['/editor/selectionFix.js'].branchData['375'][1].ranCondition(result); +}_$jscoverage['/editor/selectionFix.js'].branchData['381'][1].init(198, 5, 'range'); +function visit801_381_1(result) { + _$jscoverage['/editor/selectionFix.js'].branchData['381'][1].ranCondition(result); return result; -}_$jscoverage['/editor/selectionFix.js'].branchData['363'][1].init(20, 44, 'isNotWhitespace(node) && isNotBookmark(node)'); -function visit787_363_1(result) { - _$jscoverage['/editor/selectionFix.js'].branchData['363'][1].ranCondition(result); +}_$jscoverage['/editor/selectionFix.js'].branchData['377'][1].init(419, 8, '!body[0]'); +function visit800_377_1(result) { + _$jscoverage['/editor/selectionFix.js'].branchData['377'][1].ranCondition(result); return result; -}_$jscoverage['/editor/selectionFix.js'].branchData['359'][1].init(60, 64, 'element._4eIsBlockBoundary() && dtd.$empty[element.nodeName()]'); -function visit786_359_1(result) { - _$jscoverage['/editor/selectionFix.js'].branchData['359'][1].ranCondition(result); +}_$jscoverage['/editor/selectionFix.js'].branchData['373'][1].init(189, 37, 'selection && selection.getRanges()[0]'); +function visit799_373_1(result) { + _$jscoverage['/editor/selectionFix.js'].branchData['373'][1].ranCondition(result); return result; -}_$jscoverage['/editor/selectionFix.js'].branchData['353'][2].init(45, 19, 'node.nodeType !== 8'); -function visit785_353_2(result) { - _$jscoverage['/editor/selectionFix.js'].branchData['353'][2].ranCondition(result); +}_$jscoverage['/editor/selectionFix.js'].branchData['361'][1].init(20, 44, 'isNotWhitespace(node) && isNotBookmark(node)'); +function visit798_361_1(result) { + _$jscoverage['/editor/selectionFix.js'].branchData['361'][1].ranCondition(result); return result; -}_$jscoverage['/editor/selectionFix.js'].branchData['353'][1].init(20, 44, 'isNotWhitespace(node) && node.nodeType !== 8'); -function visit784_353_1(result) { - _$jscoverage['/editor/selectionFix.js'].branchData['353'][1].ranCondition(result); +}_$jscoverage['/editor/selectionFix.js'].branchData['357'][1].init(60, 64, 'element._4eIsBlockBoundary() && dtd.$empty[element.nodeName()]'); +function visit797_357_1(result) { + _$jscoverage['/editor/selectionFix.js'].branchData['357'][1].ranCondition(result); return result; -}_$jscoverage['/editor/selectionFix.js'].branchData['299'][1].init(1837, 33, 'nativeSel && sel.getRanges()[0]'); -function visit783_299_1(result) { - _$jscoverage['/editor/selectionFix.js'].branchData['299'][1].ranCondition(result); +}_$jscoverage['/editor/selectionFix.js'].branchData['351'][2].init(45, 19, 'node.nodeType !== 8'); +function visit796_351_2(result) { + _$jscoverage['/editor/selectionFix.js'].branchData['351'][2].ranCondition(result); return result; -}_$jscoverage['/editor/selectionFix.js'].branchData['295'][1].init(64, 108, '(parentTag = parentTag.nodeName) && parentTag.toLowerCase() in {\n input: 1, \n textarea: 1}'); -function visit782_295_1(result) { - _$jscoverage['/editor/selectionFix.js'].branchData['295'][1].ranCondition(result); +}_$jscoverage['/editor/selectionFix.js'].branchData['351'][1].init(20, 44, 'isNotWhitespace(node) && node.nodeType !== 8'); +function visit795_351_1(result) { + _$jscoverage['/editor/selectionFix.js'].branchData['351'][1].ranCondition(result); return result; -}_$jscoverage['/editor/selectionFix.js'].branchData['294'][1].init(62, 173, '(parentTag = parentTag.parentElement()) && (parentTag = parentTag.nodeName) && parentTag.toLowerCase() in {\n input: 1, \n textarea: 1}'); -function visit781_294_1(result) { - _$jscoverage['/editor/selectionFix.js'].branchData['294'][1].ranCondition(result); +}_$jscoverage['/editor/selectionFix.js'].branchData['297'][1].init(1837, 33, 'nativeSel && sel.getRanges()[0]'); +function visit794_297_1(result) { + _$jscoverage['/editor/selectionFix.js'].branchData['297'][1].ranCondition(result); return result; -}_$jscoverage['/editor/selectionFix.js'].branchData['293'][1].init(53, 236, '(parentTag = nativeSel.createRange()) && (parentTag = parentTag.parentElement()) && (parentTag = parentTag.nodeName) && parentTag.toLowerCase() in {\n input: 1, \n textarea: 1}'); -function visit780_293_1(result) { +}_$jscoverage['/editor/selectionFix.js'].branchData['293'][1].init(64, 108, '(parentTag = parentTag.nodeName) && parentTag.toLowerCase() in {\n input: 1, \n textarea: 1}'); +function visit793_293_1(result) { _$jscoverage['/editor/selectionFix.js'].branchData['293'][1].ranCondition(result); return result; -}_$jscoverage['/editor/selectionFix.js'].branchData['292'][4].init(1468, 28, 'nativeSel.type !== \'Control\''); -function visit779_292_4(result) { - _$jscoverage['/editor/selectionFix.js'].branchData['292'][4].ranCondition(result); +}_$jscoverage['/editor/selectionFix.js'].branchData['292'][1].init(62, 173, '(parentTag = parentTag.parentElement()) && (parentTag = parentTag.nodeName) && parentTag.toLowerCase() in {\n input: 1, \n textarea: 1}'); +function visit792_292_1(result) { + _$jscoverage['/editor/selectionFix.js'].branchData['292'][1].ranCondition(result); return result; -}_$jscoverage['/editor/selectionFix.js'].branchData['292'][3].init(1468, 290, 'nativeSel.type !== \'Control\' && (parentTag = nativeSel.createRange()) && (parentTag = parentTag.parentElement()) && (parentTag = parentTag.nodeName) && parentTag.toLowerCase() in {\n input: 1, \n textarea: 1}'); -function visit778_292_3(result) { - _$jscoverage['/editor/selectionFix.js'].branchData['292'][3].ranCondition(result); +}_$jscoverage['/editor/selectionFix.js'].branchData['291'][1].init(53, 236, '(parentTag = nativeSel.createRange()) && (parentTag = parentTag.parentElement()) && (parentTag = parentTag.nodeName) && parentTag.toLowerCase() in {\n input: 1, \n textarea: 1}'); +function visit791_291_1(result) { + _$jscoverage['/editor/selectionFix.js'].branchData['291'][1].ranCondition(result); return result; -}_$jscoverage['/editor/selectionFix.js'].branchData['292'][2].init(1450, 308, 'nativeSel.type && nativeSel.type !== \'Control\' && (parentTag = nativeSel.createRange()) && (parentTag = parentTag.parentElement()) && (parentTag = parentTag.nodeName) && parentTag.toLowerCase() in {\n input: 1, \n textarea: 1}'); -function visit777_292_2(result) { - _$jscoverage['/editor/selectionFix.js'].branchData['292'][2].ranCondition(result); +}_$jscoverage['/editor/selectionFix.js'].branchData['290'][4].init(1468, 28, 'nativeSel.type !== \'Control\''); +function visit790_290_4(result) { + _$jscoverage['/editor/selectionFix.js'].branchData['290'][4].ranCondition(result); return result; -}_$jscoverage['/editor/selectionFix.js'].branchData['292'][1].init(1437, 321, 'nativeSel && nativeSel.type && nativeSel.type !== \'Control\' && (parentTag = nativeSel.createRange()) && (parentTag = parentTag.parentElement()) && (parentTag = parentTag.nodeName) && parentTag.toLowerCase() in {\n input: 1, \n textarea: 1}'); -function visit776_292_1(result) { - _$jscoverage['/editor/selectionFix.js'].branchData['292'][1].ranCondition(result); +}_$jscoverage['/editor/selectionFix.js'].branchData['290'][3].init(1468, 290, 'nativeSel.type !== \'Control\' && (parentTag = nativeSel.createRange()) && (parentTag = parentTag.parentElement()) && (parentTag = parentTag.nodeName) && parentTag.toLowerCase() in {\n input: 1, \n textarea: 1}'); +function visit789_290_3(result) { + _$jscoverage['/editor/selectionFix.js'].branchData['290'][3].ranCondition(result); return result; -}_$jscoverage['/editor/selectionFix.js'].branchData['281'][1].init(276, 39, '!doc.queryCommandEnabled(\'InsertImage\')'); -function visit775_281_1(result) { - _$jscoverage['/editor/selectionFix.js'].branchData['281'][1].ranCondition(result); +}_$jscoverage['/editor/selectionFix.js'].branchData['290'][2].init(1450, 308, 'nativeSel.type && nativeSel.type !== \'Control\' && (parentTag = nativeSel.createRange()) && (parentTag = parentTag.parentElement()) && (parentTag = parentTag.nodeName) && parentTag.toLowerCase() in {\n input: 1, \n textarea: 1}'); +function visit788_290_2(result) { + _$jscoverage['/editor/selectionFix.js'].branchData['290'][2].ranCondition(result); return result; -}_$jscoverage['/editor/selectionFix.js'].branchData['276'][3].init(714, 27, 'type === KES.SELECTION_NONE'); -function visit774_276_3(result) { - _$jscoverage['/editor/selectionFix.js'].branchData['276'][3].ranCondition(result); +}_$jscoverage['/editor/selectionFix.js'].branchData['290'][1].init(1437, 321, 'nativeSel && nativeSel.type && nativeSel.type !== \'Control\' && (parentTag = nativeSel.createRange()) && (parentTag = parentTag.parentElement()) && (parentTag = parentTag.nodeName) && parentTag.toLowerCase() in {\n input: 1, \n textarea: 1}'); +function visit787_290_1(result) { + _$jscoverage['/editor/selectionFix.js'].branchData['290'][1].ranCondition(result); return result; -}_$jscoverage['/editor/selectionFix.js'].branchData['276'][2].init(701, 40, 'nativeSel && type === KES.SELECTION_NONE'); -function visit773_276_2(result) { - _$jscoverage['/editor/selectionFix.js'].branchData['276'][2].ranCondition(result); +}_$jscoverage['/editor/selectionFix.js'].branchData['279'][1].init(276, 39, '!doc.queryCommandEnabled(\'InsertImage\')'); +function visit786_279_1(result) { + _$jscoverage['/editor/selectionFix.js'].branchData['279'][1].ranCondition(result); return result; -}_$jscoverage['/editor/selectionFix.js'].branchData['276'][1].init(691, 50, 'testIt && nativeSel && type === KES.SELECTION_NONE'); -function visit772_276_1(result) { - _$jscoverage['/editor/selectionFix.js'].branchData['276'][1].ranCondition(result); +}_$jscoverage['/editor/selectionFix.js'].branchData['274'][3].init(714, 27, 'type === KES.SELECTION_NONE'); +function visit785_274_3(result) { + _$jscoverage['/editor/selectionFix.js'].branchData['274'][3].ranCondition(result); return result; -}_$jscoverage['/editor/selectionFix.js'].branchData['265'][1].init(113, 20, 'sel && doc.selection'); -function visit771_265_1(result) { - _$jscoverage['/editor/selectionFix.js'].branchData['265'][1].ranCondition(result); +}_$jscoverage['/editor/selectionFix.js'].branchData['274'][2].init(701, 40, 'nativeSel && type === KES.SELECTION_NONE'); +function visit784_274_2(result) { + _$jscoverage['/editor/selectionFix.js'].branchData['274'][2].ranCondition(result); return result; -}_$jscoverage['/editor/selectionFix.js'].branchData['264'][1].init(59, 20, 'sel && sel.getType()'); -function visit770_264_1(result) { - _$jscoverage['/editor/selectionFix.js'].branchData['264'][1].ranCondition(result); +}_$jscoverage['/editor/selectionFix.js'].branchData['274'][1].init(691, 50, 'testIt && nativeSel && type === KES.SELECTION_NONE'); +function visit783_274_1(result) { + _$jscoverage['/editor/selectionFix.js'].branchData['274'][1].ranCondition(result); return result; -}_$jscoverage['/editor/selectionFix.js'].branchData['262'][1].init(56, 11, 'saveEnabled'); -function visit769_262_1(result) { +}_$jscoverage['/editor/selectionFix.js'].branchData['263'][1].init(113, 20, 'sel && doc.selection'); +function visit782_263_1(result) { + _$jscoverage['/editor/selectionFix.js'].branchData['263'][1].ranCondition(result); + return result; +}_$jscoverage['/editor/selectionFix.js'].branchData['262'][1].init(59, 20, 'sel && sel.getType()'); +function visit781_262_1(result) { _$jscoverage['/editor/selectionFix.js'].branchData['262'][1].ranCondition(result); return result; -}_$jscoverage['/editor/selectionFix.js'].branchData['217'][1].init(178, 17, 'evt.relatedTarget'); -function visit768_217_1(result) { - _$jscoverage['/editor/selectionFix.js'].branchData['217'][1].ranCondition(result); +}_$jscoverage['/editor/selectionFix.js'].branchData['260'][1].init(56, 11, 'saveEnabled'); +function visit780_260_1(result) { + _$jscoverage['/editor/selectionFix.js'].branchData['260'][1].ranCondition(result); return result; -}_$jscoverage['/editor/selectionFix.js'].branchData['196'][1].init(119, 14, 'restoreEnabled'); -function visit767_196_1(result) { - _$jscoverage['/editor/selectionFix.js'].branchData['196'][1].ranCondition(result); +}_$jscoverage['/editor/selectionFix.js'].branchData['215'][1].init(178, 17, 'evt.relatedTarget'); +function visit779_215_1(result) { + _$jscoverage['/editor/selectionFix.js'].branchData['215'][1].ranCondition(result); return result; -}_$jscoverage['/editor/selectionFix.js'].branchData['191'][1].init(364, 10, 'savedRange'); -function visit766_191_1(result) { - _$jscoverage['/editor/selectionFix.js'].branchData['191'][1].ranCondition(result); +}_$jscoverage['/editor/selectionFix.js'].branchData['194'][1].init(119, 14, 'restoreEnabled'); +function visit778_194_1(result) { + _$jscoverage['/editor/selectionFix.js'].branchData['194'][1].ranCondition(result); return result; -}_$jscoverage['/editor/selectionFix.js'].branchData['185'][1].init(200, 23, 't.nodeName() !== \'body\''); -function visit765_185_1(result) { - _$jscoverage['/editor/selectionFix.js'].branchData['185'][1].ranCondition(result); +}_$jscoverage['/editor/selectionFix.js'].branchData['189'][1].init(364, 10, 'savedRange'); +function visit777_189_1(result) { + _$jscoverage['/editor/selectionFix.js'].branchData['189'][1].ranCondition(result); return result; -}_$jscoverage['/editor/selectionFix.js'].branchData['131'][1].init(67, 23, 't.nodeName() === \'html\''); -function visit764_131_1(result) { - _$jscoverage['/editor/selectionFix.js'].branchData['131'][1].ranCondition(result); +}_$jscoverage['/editor/selectionFix.js'].branchData['183'][1].init(200, 23, 't.nodeName() !== \'body\''); +function visit776_183_1(result) { + _$jscoverage['/editor/selectionFix.js'].branchData['183'][1].ranCondition(result); return result; -}_$jscoverage['/editor/selectionFix.js'].branchData['125'][1].init(30, 15, 'S.UA.ieMode < 8'); -function visit763_125_1(result) { - _$jscoverage['/editor/selectionFix.js'].branchData['125'][1].ranCondition(result); +}_$jscoverage['/editor/selectionFix.js'].branchData['129'][1].init(67, 23, 't.nodeName() === \'html\''); +function visit775_129_1(result) { + _$jscoverage['/editor/selectionFix.js'].branchData['129'][1].ranCondition(result); return result; -}_$jscoverage['/editor/selectionFix.js'].branchData['102'][1].init(506, 8, 'startRng'); -function visit762_102_1(result) { - _$jscoverage['/editor/selectionFix.js'].branchData['102'][1].ranCondition(result); +}_$jscoverage['/editor/selectionFix.js'].branchData['123'][1].init(30, 15, 'S.UA.ieMode < 8'); +function visit774_123_1(result) { + _$jscoverage['/editor/selectionFix.js'].branchData['123'][1].ranCondition(result); return result; -}_$jscoverage['/editor/selectionFix.js'].branchData['95'][1].init(228, 37, 'html.scrollHeight > html.clientHeight'); -function visit761_95_1(result) { - _$jscoverage['/editor/selectionFix.js'].branchData['95'][1].ranCondition(result); +}_$jscoverage['/editor/selectionFix.js'].branchData['101'][1].init(506, 8, 'startRng'); +function visit773_101_1(result) { + _$jscoverage['/editor/selectionFix.js'].branchData['101'][1].ranCondition(result); return result; -}_$jscoverage['/editor/selectionFix.js'].branchData['91'][1].init(21, 7, 'started'); -function visit760_91_1(result) { - _$jscoverage['/editor/selectionFix.js'].branchData['91'][1].ranCondition(result); +}_$jscoverage['/editor/selectionFix.js'].branchData['94'][1].init(228, 37, 'html.scrollHeight > html.clientHeight'); +function visit772_94_1(result) { + _$jscoverage['/editor/selectionFix.js'].branchData['94'][1].ranCondition(result); return result; -}_$jscoverage['/editor/selectionFix.js'].branchData['90'][1].init(61, 17, 'e.target === html'); -function visit759_90_1(result) { +}_$jscoverage['/editor/selectionFix.js'].branchData['90'][1].init(21, 7, 'started'); +function visit771_90_1(result) { _$jscoverage['/editor/selectionFix.js'].branchData['90'][1].ranCondition(result); return result; -}_$jscoverage['/editor/selectionFix.js'].branchData['72'][1].init(119, 55, 'pointRng.compareEndPoints(\'StartToStart\', startRng) > 0'); -function visit758_72_1(result) { - _$jscoverage['/editor/selectionFix.js'].branchData['72'][1].ranCondition(result); +}_$jscoverage['/editor/selectionFix.js'].branchData['89'][1].init(61, 17, 'e.target === html'); +function visit770_89_1(result) { + _$jscoverage['/editor/selectionFix.js'].branchData['89'][1].ranCondition(result); + return result; +}_$jscoverage['/editor/selectionFix.js'].branchData['71'][1].init(119, 55, 'pointRng.compareEndPoints(\'StartToStart\', startRng) > 0'); +function visit769_71_1(result) { + _$jscoverage['/editor/selectionFix.js'].branchData['71'][1].ranCondition(result); return result; -}_$jscoverage['/editor/selectionFix.js'].branchData['70'][1].init(133, 8, 'pointRng'); -function visit757_70_1(result) { - _$jscoverage['/editor/selectionFix.js'].branchData['70'][1].ranCondition(result); +}_$jscoverage['/editor/selectionFix.js'].branchData['69'][1].init(133, 8, 'pointRng'); +function visit768_69_1(result) { + _$jscoverage['/editor/selectionFix.js'].branchData['69'][1].ranCondition(result); return result; -}_$jscoverage['/editor/selectionFix.js'].branchData['66'][1].init(94, 8, 'e.button'); -function visit756_66_1(result) { - _$jscoverage['/editor/selectionFix.js'].branchData['66'][1].ranCondition(result); +}_$jscoverage['/editor/selectionFix.js'].branchData['65'][1].init(94, 8, 'e.button'); +function visit767_65_1(result) { + _$jscoverage['/editor/selectionFix.js'].branchData['65'][1].ranCondition(result); return result; -}_$jscoverage['/editor/selectionFix.js'].branchData['53'][3].init(165, 45, 'rng.compareEndPoints(\'StartToEnd\', rng) === 0'); -function visit755_53_3(result) { - _$jscoverage['/editor/selectionFix.js'].branchData['53'][3].ranCondition(result); +}_$jscoverage['/editor/selectionFix.js'].branchData['52'][3].init(165, 45, 'rng.compareEndPoints(\'StartToEnd\', rng) === 0'); +function visit766_52_3(result) { + _$jscoverage['/editor/selectionFix.js'].branchData['52'][3].ranCondition(result); return result; -}_$jscoverage['/editor/selectionFix.js'].branchData['53'][2].init(152, 58, '!rng.item && rng.compareEndPoints(\'StartToEnd\', rng) === 0'); -function visit754_53_2(result) { - _$jscoverage['/editor/selectionFix.js'].branchData['53'][2].ranCondition(result); +}_$jscoverage['/editor/selectionFix.js'].branchData['52'][2].init(152, 58, '!rng.item && rng.compareEndPoints(\'StartToEnd\', rng) === 0'); +function visit765_52_2(result) { + _$jscoverage['/editor/selectionFix.js'].branchData['52'][2].ranCondition(result); return result; -}_$jscoverage['/editor/selectionFix.js'].branchData['53'][1].init(140, 70, 'startRng && !rng.item && rng.compareEndPoints(\'StartToEnd\', rng) === 0'); -function visit753_53_1(result) { - _$jscoverage['/editor/selectionFix.js'].branchData['53'][1].ranCondition(result); +}_$jscoverage['/editor/selectionFix.js'].branchData['52'][1].init(140, 70, 'startRng && !rng.item && rng.compareEndPoints(\'StartToEnd\', rng) === 0'); +function visit764_52_1(result) { + _$jscoverage['/editor/selectionFix.js'].branchData['52'][1].ranCondition(result); return result; }_$jscoverage['/editor/selectionFix.js'].lineData[10]++; KISSY.add(function(S, require) { @@ -844,436 +838,436 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/selectionFix.js'].lineData[12]++; require('./selection'); _$jscoverage['/editor/selectionFix.js'].lineData[13]++; - var KERange = require('./range'); - _$jscoverage['/editor/selectionFix.js'].lineData[14]++; var Node = require('node'); - _$jscoverage['/editor/selectionFix.js'].lineData[16]++; + _$jscoverage['/editor/selectionFix.js'].lineData[15]++; var TRUE = true, FALSE = false, NULL = null, UA = S.UA, Dom = S.DOM, KES = Editor.SelectionType; - _$jscoverage['/editor/selectionFix.js'].lineData[27]++; + _$jscoverage['/editor/selectionFix.js'].lineData[26]++; function fixCursorForIE(editor) { _$jscoverage['/editor/selectionFix.js'].functionData[1]++; - _$jscoverage['/editor/selectionFix.js'].lineData[28]++; + _$jscoverage['/editor/selectionFix.js'].lineData[27]++; var started, win = editor.get('window')[0], $doc = editor.get('document'), doc = $doc[0], startRng; - _$jscoverage['/editor/selectionFix.js'].lineData[35]++; + _$jscoverage['/editor/selectionFix.js'].lineData[34]++; function rngFromPoint(x, y) { _$jscoverage['/editor/selectionFix.js'].functionData[2]++; - _$jscoverage['/editor/selectionFix.js'].lineData[36]++; + _$jscoverage['/editor/selectionFix.js'].lineData[35]++; var rng = doc.body.createTextRange(); - _$jscoverage['/editor/selectionFix.js'].lineData[38]++; + _$jscoverage['/editor/selectionFix.js'].lineData[37]++; try { - _$jscoverage['/editor/selectionFix.js'].lineData[39]++; + _$jscoverage['/editor/selectionFix.js'].lineData[38]++; rng.moveToPoint(x, y); } catch (ex) { - _$jscoverage['/editor/selectionFix.js'].lineData[42]++; + _$jscoverage['/editor/selectionFix.js'].lineData[41]++; rng = NULL; } - _$jscoverage['/editor/selectionFix.js'].lineData[45]++; + _$jscoverage['/editor/selectionFix.js'].lineData[44]++; return rng; } - _$jscoverage['/editor/selectionFix.js'].lineData[49]++; + _$jscoverage['/editor/selectionFix.js'].lineData[48]++; function endSelection() { _$jscoverage['/editor/selectionFix.js'].functionData[3]++; - _$jscoverage['/editor/selectionFix.js'].lineData[50]++; + _$jscoverage['/editor/selectionFix.js'].lineData[49]++; var rng = doc.selection.createRange(); - _$jscoverage['/editor/selectionFix.js'].lineData[53]++; - if (visit753_53_1(startRng && visit754_53_2(!rng.item && visit755_53_3(rng.compareEndPoints('StartToEnd', rng) === 0)))) { - _$jscoverage['/editor/selectionFix.js'].lineData[54]++; + _$jscoverage['/editor/selectionFix.js'].lineData[52]++; + if (visit764_52_1(startRng && visit765_52_2(!rng.item && visit766_52_3(rng.compareEndPoints('StartToEnd', rng) === 0)))) { + _$jscoverage['/editor/selectionFix.js'].lineData[53]++; startRng.select(); } - _$jscoverage['/editor/selectionFix.js'].lineData[56]++; + _$jscoverage['/editor/selectionFix.js'].lineData[55]++; $doc.detach('mouseup', endSelection); - _$jscoverage['/editor/selectionFix.js'].lineData[57]++; + _$jscoverage['/editor/selectionFix.js'].lineData[56]++; $doc.detach('mousemove', selectionChange); - _$jscoverage['/editor/selectionFix.js'].lineData[58]++; + _$jscoverage['/editor/selectionFix.js'].lineData[57]++; startRng = started = 0; } - _$jscoverage['/editor/selectionFix.js'].lineData[62]++; + _$jscoverage['/editor/selectionFix.js'].lineData[61]++; function selectionChange(e) { _$jscoverage['/editor/selectionFix.js'].functionData[4]++; - _$jscoverage['/editor/selectionFix.js'].lineData[63]++; + _$jscoverage['/editor/selectionFix.js'].lineData[62]++; var pointRng; - _$jscoverage['/editor/selectionFix.js'].lineData[66]++; - if (visit756_66_1(e.button)) { - _$jscoverage['/editor/selectionFix.js'].lineData[68]++; + _$jscoverage['/editor/selectionFix.js'].lineData[65]++; + if (visit767_65_1(e.button)) { + _$jscoverage['/editor/selectionFix.js'].lineData[67]++; pointRng = rngFromPoint(e.pageX, e.pageY); - _$jscoverage['/editor/selectionFix.js'].lineData[70]++; - if (visit757_70_1(pointRng)) { - _$jscoverage['/editor/selectionFix.js'].lineData[72]++; - if (visit758_72_1(pointRng.compareEndPoints('StartToStart', startRng) > 0)) { - _$jscoverage['/editor/selectionFix.js'].lineData[73]++; + _$jscoverage['/editor/selectionFix.js'].lineData[69]++; + if (visit768_69_1(pointRng)) { + _$jscoverage['/editor/selectionFix.js'].lineData[71]++; + if (visit769_71_1(pointRng.compareEndPoints('StartToStart', startRng) > 0)) { + _$jscoverage['/editor/selectionFix.js'].lineData[72]++; pointRng.setEndPoint('StartToStart', startRng); } else { - _$jscoverage['/editor/selectionFix.js'].lineData[76]++; + _$jscoverage['/editor/selectionFix.js'].lineData[75]++; pointRng.setEndPoint('EndToEnd', startRng); } - _$jscoverage['/editor/selectionFix.js'].lineData[79]++; + _$jscoverage['/editor/selectionFix.js'].lineData[78]++; pointRng.select(); } } else { - _$jscoverage['/editor/selectionFix.js'].lineData[82]++; + _$jscoverage['/editor/selectionFix.js'].lineData[81]++; endSelection(); } } - _$jscoverage['/editor/selectionFix.js'].lineData[88]++; + _$jscoverage['/editor/selectionFix.js'].lineData[87]++; $doc.on('mousedown contextmenu', function(e) { _$jscoverage['/editor/selectionFix.js'].functionData[5]++; - _$jscoverage['/editor/selectionFix.js'].lineData[89]++; + _$jscoverage['/editor/selectionFix.js'].lineData[88]++; var html = doc.documentElement; - _$jscoverage['/editor/selectionFix.js'].lineData[90]++; - if (visit759_90_1(e.target === html)) { - _$jscoverage['/editor/selectionFix.js'].lineData[91]++; - if (visit760_91_1(started)) { - _$jscoverage['/editor/selectionFix.js'].lineData[92]++; + _$jscoverage['/editor/selectionFix.js'].lineData[89]++; + if (visit770_89_1(e.target === html)) { + _$jscoverage['/editor/selectionFix.js'].lineData[90]++; + if (visit771_90_1(started)) { + _$jscoverage['/editor/selectionFix.js'].lineData[91]++; endSelection(); } - _$jscoverage['/editor/selectionFix.js'].lineData[95]++; - if (visit761_95_1(html.scrollHeight > html.clientHeight)) { - _$jscoverage['/editor/selectionFix.js'].lineData[96]++; + _$jscoverage['/editor/selectionFix.js'].lineData[94]++; + if (visit772_94_1(html.scrollHeight > html.clientHeight)) { + _$jscoverage['/editor/selectionFix.js'].lineData[95]++; return; } - _$jscoverage['/editor/selectionFix.js'].lineData[99]++; + _$jscoverage['/editor/selectionFix.js'].lineData[98]++; started = 1; - _$jscoverage['/editor/selectionFix.js'].lineData[101]++; + _$jscoverage['/editor/selectionFix.js'].lineData[100]++; startRng = rngFromPoint(e.pageX, e.pageY); - _$jscoverage['/editor/selectionFix.js'].lineData[102]++; - if (visit762_102_1(startRng)) { - _$jscoverage['/editor/selectionFix.js'].lineData[104]++; + _$jscoverage['/editor/selectionFix.js'].lineData[101]++; + if (visit773_101_1(startRng)) { + _$jscoverage['/editor/selectionFix.js'].lineData[103]++; $doc.on('mouseup', endSelection); - _$jscoverage['/editor/selectionFix.js'].lineData[105]++; + _$jscoverage['/editor/selectionFix.js'].lineData[104]++; $doc.on('mousemove', selectionChange); - _$jscoverage['/editor/selectionFix.js'].lineData[107]++; + _$jscoverage['/editor/selectionFix.js'].lineData[106]++; win.focus(); - _$jscoverage['/editor/selectionFix.js'].lineData[108]++; + _$jscoverage['/editor/selectionFix.js'].lineData[107]++; startRng.select(); } } }); } - _$jscoverage['/editor/selectionFix.js'].lineData[115]++; + _$jscoverage['/editor/selectionFix.js'].lineData[113]++; function fixSelectionForIEWhenDocReady(editor) { _$jscoverage['/editor/selectionFix.js'].functionData[6]++; - _$jscoverage['/editor/selectionFix.js'].lineData[116]++; + _$jscoverage['/editor/selectionFix.js'].lineData[114]++; var doc = editor.get('document')[0], body = new Node(doc.body), html = new Node(doc.documentElement); - _$jscoverage['/editor/selectionFix.js'].lineData[124]++; - if (visit763_125_1(S.UA.ieMode < 8)) { - _$jscoverage['/editor/selectionFix.js'].lineData[129]++; + _$jscoverage['/editor/selectionFix.js'].lineData[122]++; + if (visit774_123_1(S.UA.ieMode < 8)) { + _$jscoverage['/editor/selectionFix.js'].lineData[127]++; html.on('click', function(evt) { _$jscoverage['/editor/selectionFix.js'].functionData[7]++; - _$jscoverage['/editor/selectionFix.js'].lineData[130]++; + _$jscoverage['/editor/selectionFix.js'].lineData[128]++; var t = new Node(evt.target); - _$jscoverage['/editor/selectionFix.js'].lineData[131]++; - if (visit764_131_1(t.nodeName() === 'html')) { - _$jscoverage['/editor/selectionFix.js'].lineData[132]++; + _$jscoverage['/editor/selectionFix.js'].lineData[129]++; + if (visit775_129_1(t.nodeName() === 'html')) { + _$jscoverage['/editor/selectionFix.js'].lineData[130]++; editor.getSelection().getNative().createRange().select(); } }); } - _$jscoverage['/editor/selectionFix.js'].lineData[143]++; + _$jscoverage['/editor/selectionFix.js'].lineData[141]++; var savedRange, saveEnabled, restoreEnabled = TRUE; - _$jscoverage['/editor/selectionFix.js'].lineData[152]++; + _$jscoverage['/editor/selectionFix.js'].lineData[150]++; html.on('mousedown', function() { _$jscoverage['/editor/selectionFix.js'].functionData[8]++; - _$jscoverage['/editor/selectionFix.js'].lineData[157]++; + _$jscoverage['/editor/selectionFix.js'].lineData[155]++; restoreEnabled = FALSE; }); - _$jscoverage['/editor/selectionFix.js'].lineData[160]++; + _$jscoverage['/editor/selectionFix.js'].lineData[158]++; html.on('mouseup', function() { _$jscoverage['/editor/selectionFix.js'].functionData[9]++; - _$jscoverage['/editor/selectionFix.js'].lineData[161]++; + _$jscoverage['/editor/selectionFix.js'].lineData[159]++; restoreEnabled = TRUE; }); - _$jscoverage['/editor/selectionFix.js'].lineData[181]++; + _$jscoverage['/editor/selectionFix.js'].lineData[179]++; body.on('focusin', function(evt) { _$jscoverage['/editor/selectionFix.js'].functionData[10]++; - _$jscoverage['/editor/selectionFix.js'].lineData[182]++; + _$jscoverage['/editor/selectionFix.js'].lineData[180]++; var t = new Node(evt.target); - _$jscoverage['/editor/selectionFix.js'].lineData[185]++; - if (visit765_185_1(t.nodeName() !== 'body')) { - _$jscoverage['/editor/selectionFix.js'].lineData[186]++; + _$jscoverage['/editor/selectionFix.js'].lineData[183]++; + if (visit776_183_1(t.nodeName() !== 'body')) { + _$jscoverage['/editor/selectionFix.js'].lineData[184]++; return; } - _$jscoverage['/editor/selectionFix.js'].lineData[191]++; - if (visit766_191_1(savedRange)) { - _$jscoverage['/editor/selectionFix.js'].lineData[193]++; + _$jscoverage['/editor/selectionFix.js'].lineData[189]++; + if (visit777_189_1(savedRange)) { + _$jscoverage['/editor/selectionFix.js'].lineData[191]++; try { - _$jscoverage['/editor/selectionFix.js'].lineData[196]++; - if (visit767_196_1(restoreEnabled)) { - _$jscoverage['/editor/selectionFix.js'].lineData[197]++; + _$jscoverage['/editor/selectionFix.js'].lineData[194]++; + if (visit778_194_1(restoreEnabled)) { + _$jscoverage['/editor/selectionFix.js'].lineData[195]++; savedRange.select(); } } catch (e) { } - _$jscoverage['/editor/selectionFix.js'].lineData[203]++; + _$jscoverage['/editor/selectionFix.js'].lineData[201]++; savedRange = NULL; } }); - _$jscoverage['/editor/selectionFix.js'].lineData[207]++; + _$jscoverage['/editor/selectionFix.js'].lineData[205]++; body.on('focus', function() { _$jscoverage['/editor/selectionFix.js'].functionData[11]++; - _$jscoverage['/editor/selectionFix.js'].lineData[210]++; + _$jscoverage['/editor/selectionFix.js'].lineData[208]++; saveEnabled = TRUE; - _$jscoverage['/editor/selectionFix.js'].lineData[211]++; + _$jscoverage['/editor/selectionFix.js'].lineData[209]++; saveSelection(); }); - _$jscoverage['/editor/selectionFix.js'].lineData[214]++; + _$jscoverage['/editor/selectionFix.js'].lineData[212]++; body.on('beforedeactivate', function(evt) { _$jscoverage['/editor/selectionFix.js'].functionData[12]++; - _$jscoverage['/editor/selectionFix.js'].lineData[217]++; - if (visit768_217_1(evt.relatedTarget)) { - _$jscoverage['/editor/selectionFix.js'].lineData[218]++; + _$jscoverage['/editor/selectionFix.js'].lineData[215]++; + if (visit779_215_1(evt.relatedTarget)) { + _$jscoverage['/editor/selectionFix.js'].lineData[216]++; return; } - _$jscoverage['/editor/selectionFix.js'].lineData[223]++; + _$jscoverage['/editor/selectionFix.js'].lineData[221]++; saveEnabled = FALSE; - _$jscoverage['/editor/selectionFix.js'].lineData[224]++; + _$jscoverage['/editor/selectionFix.js'].lineData[222]++; restoreEnabled = TRUE; }); - _$jscoverage['/editor/selectionFix.js'].lineData[248]++; + _$jscoverage['/editor/selectionFix.js'].lineData[246]++; body.on('mousedown', function() { _$jscoverage['/editor/selectionFix.js'].functionData[13]++; - _$jscoverage['/editor/selectionFix.js'].lineData[250]++; + _$jscoverage['/editor/selectionFix.js'].lineData[248]++; saveEnabled = FALSE; }); - _$jscoverage['/editor/selectionFix.js'].lineData[252]++; + _$jscoverage['/editor/selectionFix.js'].lineData[250]++; body.on('mouseup', function() { _$jscoverage['/editor/selectionFix.js'].functionData[14]++; - _$jscoverage['/editor/selectionFix.js'].lineData[254]++; + _$jscoverage['/editor/selectionFix.js'].lineData[252]++; saveEnabled = TRUE; - _$jscoverage['/editor/selectionFix.js'].lineData[255]++; + _$jscoverage['/editor/selectionFix.js'].lineData[253]++; setTimeout(function() { _$jscoverage['/editor/selectionFix.js'].functionData[15]++; - _$jscoverage['/editor/selectionFix.js'].lineData[256]++; + _$jscoverage['/editor/selectionFix.js'].lineData[254]++; saveSelection(TRUE); }, 0); }); - _$jscoverage['/editor/selectionFix.js'].lineData[260]++; + _$jscoverage['/editor/selectionFix.js'].lineData[258]++; function saveSelection(testIt) { _$jscoverage['/editor/selectionFix.js'].functionData[16]++; - _$jscoverage['/editor/selectionFix.js'].lineData[262]++; - if (visit769_262_1(saveEnabled)) { - _$jscoverage['/editor/selectionFix.js'].lineData[263]++; - var sel = editor.getSelection(), type = visit770_264_1(sel && sel.getType()), nativeSel = visit771_265_1(sel && doc.selection); - _$jscoverage['/editor/selectionFix.js'].lineData[276]++; - if (visit772_276_1(testIt && visit773_276_2(nativeSel && visit774_276_3(type === KES.SELECTION_NONE)))) { - _$jscoverage['/editor/selectionFix.js'].lineData[281]++; - if (visit775_281_1(!doc.queryCommandEnabled('InsertImage'))) { - _$jscoverage['/editor/selectionFix.js'].lineData[282]++; + _$jscoverage['/editor/selectionFix.js'].lineData[260]++; + if (visit780_260_1(saveEnabled)) { + _$jscoverage['/editor/selectionFix.js'].lineData[261]++; + var sel = editor.getSelection(), type = visit781_262_1(sel && sel.getType()), nativeSel = visit782_263_1(sel && doc.selection); + _$jscoverage['/editor/selectionFix.js'].lineData[274]++; + if (visit783_274_1(testIt && visit784_274_2(nativeSel && visit785_274_3(type === KES.SELECTION_NONE)))) { + _$jscoverage['/editor/selectionFix.js'].lineData[279]++; + if (visit786_279_1(!doc.queryCommandEnabled('InsertImage'))) { + _$jscoverage['/editor/selectionFix.js'].lineData[280]++; setTimeout(function() { _$jscoverage['/editor/selectionFix.js'].functionData[17]++; - _$jscoverage['/editor/selectionFix.js'].lineData[284]++; + _$jscoverage['/editor/selectionFix.js'].lineData[282]++; saveSelection(TRUE); }, 50); - _$jscoverage['/editor/selectionFix.js'].lineData[286]++; + _$jscoverage['/editor/selectionFix.js'].lineData[284]++; return; } } - _$jscoverage['/editor/selectionFix.js'].lineData[291]++; + _$jscoverage['/editor/selectionFix.js'].lineData[289]++; var parentTag; - _$jscoverage['/editor/selectionFix.js'].lineData[292]++; - if (visit776_292_1(nativeSel && visit777_292_2(nativeSel.type && visit778_292_3(visit779_292_4(nativeSel.type !== 'Control') && visit780_293_1((parentTag = nativeSel.createRange()) && visit781_294_1((parentTag = parentTag.parentElement()) && visit782_295_1((parentTag = parentTag.nodeName) && parentTag.toLowerCase() in { + _$jscoverage['/editor/selectionFix.js'].lineData[290]++; + if (visit787_290_1(nativeSel && visit788_290_2(nativeSel.type && visit789_290_3(visit790_290_4(nativeSel.type !== 'Control') && visit791_291_1((parentTag = nativeSel.createRange()) && visit792_292_1((parentTag = parentTag.parentElement()) && visit793_293_1((parentTag = parentTag.nodeName) && parentTag.toLowerCase() in { input: 1, textarea: 1}))))))) { - _$jscoverage['/editor/selectionFix.js'].lineData[297]++; + _$jscoverage['/editor/selectionFix.js'].lineData[295]++; return; } - _$jscoverage['/editor/selectionFix.js'].lineData[299]++; - savedRange = visit783_299_1(nativeSel && sel.getRanges()[0]); - _$jscoverage['/editor/selectionFix.js'].lineData[302]++; + _$jscoverage['/editor/selectionFix.js'].lineData[297]++; + savedRange = visit794_297_1(nativeSel && sel.getRanges()[0]); + _$jscoverage['/editor/selectionFix.js'].lineData[300]++; editor.checkSelectionChange(); } } - _$jscoverage['/editor/selectionFix.js'].lineData[306]++; + _$jscoverage['/editor/selectionFix.js'].lineData[304]++; body.on('keydown', function() { _$jscoverage['/editor/selectionFix.js'].functionData[18]++; - _$jscoverage['/editor/selectionFix.js'].lineData[307]++; + _$jscoverage['/editor/selectionFix.js'].lineData[305]++; saveEnabled = FALSE; }); - _$jscoverage['/editor/selectionFix.js'].lineData[309]++; + _$jscoverage['/editor/selectionFix.js'].lineData[307]++; body.on('keyup', function() { _$jscoverage['/editor/selectionFix.js'].functionData[19]++; - _$jscoverage['/editor/selectionFix.js'].lineData[310]++; + _$jscoverage['/editor/selectionFix.js'].lineData[308]++; saveEnabled = TRUE; - _$jscoverage['/editor/selectionFix.js'].lineData[311]++; + _$jscoverage['/editor/selectionFix.js'].lineData[309]++; setTimeout(function() { _$jscoverage['/editor/selectionFix.js'].functionData[20]++; - _$jscoverage['/editor/selectionFix.js'].lineData[312]++; + _$jscoverage['/editor/selectionFix.js'].lineData[310]++; saveSelection(); }, 0); }); } - _$jscoverage['/editor/selectionFix.js'].lineData[317]++; + _$jscoverage['/editor/selectionFix.js'].lineData[315]++; function fireSelectionChangeForStandard(editor) { _$jscoverage['/editor/selectionFix.js'].functionData[21]++; - _$jscoverage['/editor/selectionFix.js'].lineData[321]++; + _$jscoverage['/editor/selectionFix.js'].lineData[319]++; function monitor() { _$jscoverage['/editor/selectionFix.js'].functionData[22]++; - _$jscoverage['/editor/selectionFix.js'].lineData[323]++; + _$jscoverage['/editor/selectionFix.js'].lineData[321]++; editor.checkSelectionChange(); } - _$jscoverage['/editor/selectionFix.js'].lineData[326]++; + _$jscoverage['/editor/selectionFix.js'].lineData[324]++; editor.get('document').on('mouseup keyup ' + 'selectionchange', monitor); } - _$jscoverage['/editor/selectionFix.js'].lineData[338]++; + _$jscoverage['/editor/selectionFix.js'].lineData[336]++; function monitorSelectionChange(editor) { _$jscoverage['/editor/selectionFix.js'].functionData[23]++; - _$jscoverage['/editor/selectionFix.js'].lineData[341]++; + _$jscoverage['/editor/selectionFix.js'].lineData[339]++; var emptyParagraphRegexp = /\s*<(p|div|address|h\d|center)[^>]*>\s*(?:]*>| |\u00A0| |())?\s*(:?<\/\1>)?(?=\s*$|<\/body>)/gi; - _$jscoverage['/editor/selectionFix.js'].lineData[345]++; + _$jscoverage['/editor/selectionFix.js'].lineData[343]++; function isBlankParagraph(block) { _$jscoverage['/editor/selectionFix.js'].functionData[24]++; - _$jscoverage['/editor/selectionFix.js'].lineData[346]++; + _$jscoverage['/editor/selectionFix.js'].lineData[344]++; return block.outerHtml().match(emptyParagraphRegexp); } - _$jscoverage['/editor/selectionFix.js'].lineData[349]++; + _$jscoverage['/editor/selectionFix.js'].lineData[347]++; var isNotWhitespace = Editor.Walker.whitespaces(TRUE), isNotBookmark = Editor.Walker.bookmark(FALSE, TRUE); - _$jscoverage['/editor/selectionFix.js'].lineData[352]++; + _$jscoverage['/editor/selectionFix.js'].lineData[350]++; var nextValidEl = function(node) { _$jscoverage['/editor/selectionFix.js'].functionData[25]++; - _$jscoverage['/editor/selectionFix.js'].lineData[353]++; - return visit784_353_1(isNotWhitespace(node) && visit785_353_2(node.nodeType !== 8)); + _$jscoverage['/editor/selectionFix.js'].lineData[351]++; + return visit795_351_1(isNotWhitespace(node) && visit796_351_2(node.nodeType !== 8)); }; - _$jscoverage['/editor/selectionFix.js'].lineData[357]++; + _$jscoverage['/editor/selectionFix.js'].lineData[355]++; function cannotCursorPlaced(element) { _$jscoverage['/editor/selectionFix.js'].functionData[26]++; - _$jscoverage['/editor/selectionFix.js'].lineData[358]++; + _$jscoverage['/editor/selectionFix.js'].lineData[356]++; var dtd = Editor.XHTML_DTD; - _$jscoverage['/editor/selectionFix.js'].lineData[359]++; - return visit786_359_1(element._4eIsBlockBoundary() && dtd.$empty[element.nodeName()]); + _$jscoverage['/editor/selectionFix.js'].lineData[357]++; + return visit797_357_1(element._4eIsBlockBoundary() && dtd.$empty[element.nodeName()]); } - _$jscoverage['/editor/selectionFix.js'].lineData[362]++; + _$jscoverage['/editor/selectionFix.js'].lineData[360]++; function isNotEmpty(node) { _$jscoverage['/editor/selectionFix.js'].functionData[27]++; - _$jscoverage['/editor/selectionFix.js'].lineData[363]++; - return visit787_363_1(isNotWhitespace(node) && isNotBookmark(node)); + _$jscoverage['/editor/selectionFix.js'].lineData[361]++; + return visit798_361_1(isNotWhitespace(node) && isNotBookmark(node)); } - _$jscoverage['/editor/selectionFix.js'].lineData[369]++; + _$jscoverage['/editor/selectionFix.js'].lineData[367]++; editor.on('selectionChange', function(ev) { _$jscoverage['/editor/selectionFix.js'].functionData[28]++; - _$jscoverage['/editor/selectionFix.js'].lineData[371]++; - var path = ev.path, editorDoc = editor.get('document')[0], body = new Node(editorDoc.body), selection = ev.selection, range = visit788_375_1(selection && selection.getRanges()[0]), blockLimit = path.blockLimit; - _$jscoverage['/editor/selectionFix.js'].lineData[379]++; - if (visit789_379_1(!body[0])) { - _$jscoverage['/editor/selectionFix.js'].lineData[381]++; + _$jscoverage['/editor/selectionFix.js'].lineData[369]++; + var path = ev.path, editorDoc = editor.get('document')[0], body = new Node(editorDoc.body), selection = ev.selection, range = visit799_373_1(selection && selection.getRanges()[0]), blockLimit = path.blockLimit; + _$jscoverage['/editor/selectionFix.js'].lineData[377]++; + if (visit800_377_1(!body[0])) { + _$jscoverage['/editor/selectionFix.js'].lineData[379]++; editorDoc.documentElement.appendChild(editorDoc.createElement('body')); - _$jscoverage['/editor/selectionFix.js'].lineData[382]++; + _$jscoverage['/editor/selectionFix.js'].lineData[380]++; body = new Node(editorDoc.body); - _$jscoverage['/editor/selectionFix.js'].lineData[383]++; - if (visit790_383_1(range)) { - _$jscoverage['/editor/selectionFix.js'].lineData[384]++; + _$jscoverage['/editor/selectionFix.js'].lineData[381]++; + if (visit801_381_1(range)) { + _$jscoverage['/editor/selectionFix.js'].lineData[382]++; range.setStart(body, 0); - _$jscoverage['/editor/selectionFix.js'].lineData[385]++; + _$jscoverage['/editor/selectionFix.js'].lineData[383]++; range.collapse(1); } } - _$jscoverage['/editor/selectionFix.js'].lineData[389]++; - blockLimit = visit791_389_1(blockLimit || body); - _$jscoverage['/editor/selectionFix.js'].lineData[395]++; - if (visit792_395_1(UA.gecko)) { + _$jscoverage['/editor/selectionFix.js'].lineData[387]++; + blockLimit = visit802_387_1(blockLimit || body); + _$jscoverage['/editor/selectionFix.js'].lineData[393]++; + if (visit803_393_1(UA.gecko)) { + _$jscoverage['/editor/selectionFix.js'].lineData[394]++; + var pathBlock = visit804_394_1(path.block || path.blockLimit), lastNode = visit805_395_1(pathBlock && pathBlock.last(isNotEmpty)); _$jscoverage['/editor/selectionFix.js'].lineData[396]++; - var pathBlock = visit793_396_1(path.block || path.blockLimit), lastNode = visit794_397_1(pathBlock && pathBlock.last(isNotEmpty)); - _$jscoverage['/editor/selectionFix.js'].lineData[398]++; - if (visit795_398_1(pathBlock && visit796_400_1(pathBlock._4eIsBlockBoundary() && visit797_402_1(!(visit798_402_2(lastNode && visit799_402_3(visit800_402_4(lastNode[0].nodeType === 1) && lastNode._4eIsBlockBoundary()))) && visit801_404_1(visit802_404_2(pathBlock.nodeName() !== 'pre') && !pathBlock._4eGetBogus()))))) { - _$jscoverage['/editor/selectionFix.js'].lineData[407]++; + if (visit806_396_1(pathBlock && visit807_398_1(pathBlock._4eIsBlockBoundary() && visit808_400_1(!(visit809_400_2(lastNode && visit810_400_3(visit811_400_4(lastNode[0].nodeType === 1) && lastNode._4eIsBlockBoundary()))) && visit812_402_1(visit813_402_2(pathBlock.nodeName() !== 'pre') && !pathBlock._4eGetBogus()))))) { + _$jscoverage['/editor/selectionFix.js'].lineData[405]++; pathBlock._4eAppendBogus(); } } - _$jscoverage['/editor/selectionFix.js'].lineData[411]++; - if (visit803_411_1(!range || visit804_411_2(!range.collapsed || path.block))) { - _$jscoverage['/editor/selectionFix.js'].lineData[412]++; + _$jscoverage['/editor/selectionFix.js'].lineData[409]++; + if (visit814_409_1(!range || visit815_409_2(!range.collapsed || path.block))) { + _$jscoverage['/editor/selectionFix.js'].lineData[410]++; return; } - _$jscoverage['/editor/selectionFix.js'].lineData[416]++; - if (visit805_416_1(blockLimit.nodeName() === 'body')) { - _$jscoverage['/editor/selectionFix.js'].lineData[417]++; - if (visit806_417_1(range.startContainer.nodeName() === 'html')) { - _$jscoverage['/editor/selectionFix.js'].lineData[418]++; + _$jscoverage['/editor/selectionFix.js'].lineData[414]++; + if (visit816_414_1(blockLimit.nodeName() === 'body')) { + _$jscoverage['/editor/selectionFix.js'].lineData[415]++; + if (visit817_415_1(range.startContainer.nodeName() === 'html')) { + _$jscoverage['/editor/selectionFix.js'].lineData[416]++; range.setStart(body, 0); } - _$jscoverage['/editor/selectionFix.js'].lineData[420]++; + _$jscoverage['/editor/selectionFix.js'].lineData[418]++; var fixedBlock = range.fixBlock(TRUE, 'p'); - _$jscoverage['/editor/selectionFix.js'].lineData[421]++; - if (visit807_421_1(fixedBlock && visit808_425_1(fixedBlock[0] !== body[0].lastChild))) { - _$jscoverage['/editor/selectionFix.js'].lineData[427]++; - if (visit809_427_1(isBlankParagraph(fixedBlock))) { - _$jscoverage['/editor/selectionFix.js'].lineData[428]++; + _$jscoverage['/editor/selectionFix.js'].lineData[419]++; + if (visit818_419_1(fixedBlock && visit819_423_1(fixedBlock[0] !== body[0].lastChild))) { + _$jscoverage['/editor/selectionFix.js'].lineData[425]++; + if (visit820_425_1(isBlankParagraph(fixedBlock))) { + _$jscoverage['/editor/selectionFix.js'].lineData[426]++; var element = fixedBlock.next(nextValidEl, 1); - _$jscoverage['/editor/selectionFix.js'].lineData[429]++; - if (visit810_429_1(element && visit811_430_1(visit812_430_2(element[0].nodeType === Dom.NodeType.ELEMENT_NODE) && !cannotCursorPlaced[element]))) { - _$jscoverage['/editor/selectionFix.js'].lineData[431]++; + _$jscoverage['/editor/selectionFix.js'].lineData[427]++; + if (visit821_427_1(element && visit822_428_1(visit823_428_2(element[0].nodeType === Dom.NodeType.ELEMENT_NODE) && !cannotCursorPlaced[element]))) { + _$jscoverage['/editor/selectionFix.js'].lineData[429]++; range.moveToElementEditablePosition(element); - _$jscoverage['/editor/selectionFix.js'].lineData[432]++; + _$jscoverage['/editor/selectionFix.js'].lineData[430]++; fixedBlock._4eRemove(); } else { - _$jscoverage['/editor/selectionFix.js'].lineData[434]++; + _$jscoverage['/editor/selectionFix.js'].lineData[432]++; element = fixedBlock.prev(nextValidEl, 1); - _$jscoverage['/editor/selectionFix.js'].lineData[435]++; - if (visit813_435_1(element && visit814_436_1(visit815_436_2(element[0].nodeType === Dom.NodeType.ELEMENT_NODE) && !cannotCursorPlaced[element]))) { - _$jscoverage['/editor/selectionFix.js'].lineData[437]++; + _$jscoverage['/editor/selectionFix.js'].lineData[433]++; + if (visit824_433_1(element && visit825_434_1(visit826_434_2(element[0].nodeType === Dom.NodeType.ELEMENT_NODE) && !cannotCursorPlaced[element]))) { + _$jscoverage['/editor/selectionFix.js'].lineData[435]++; range.moveToElementEditablePosition(element, isBlankParagraph(element) ? FALSE : TRUE); - _$jscoverage['/editor/selectionFix.js'].lineData[440]++; + _$jscoverage['/editor/selectionFix.js'].lineData[438]++; fixedBlock._4eRemove(); } } } } - _$jscoverage['/editor/selectionFix.js'].lineData[446]++; + _$jscoverage['/editor/selectionFix.js'].lineData[444]++; range.select(); - _$jscoverage['/editor/selectionFix.js'].lineData[448]++; + _$jscoverage['/editor/selectionFix.js'].lineData[446]++; editor.notifySelectionChange(); } - _$jscoverage['/editor/selectionFix.js'].lineData[455]++; + _$jscoverage['/editor/selectionFix.js'].lineData[453]++; var doc = editor.get('document')[0], lastRange = new Editor.Range(doc), lastPath, editBlock; - _$jscoverage['/editor/selectionFix.js'].lineData[460]++; + _$jscoverage['/editor/selectionFix.js'].lineData[458]++; lastRange.moveToElementEditablePosition(body, TRUE); - _$jscoverage['/editor/selectionFix.js'].lineData[462]++; + _$jscoverage['/editor/selectionFix.js'].lineData[460]++; lastPath = new Editor.ElementPath(lastRange.startContainer); - _$jscoverage['/editor/selectionFix.js'].lineData[464]++; - if (visit816_464_1(lastPath.blockLimit.nodeName() !== 'body')) { - _$jscoverage['/editor/selectionFix.js'].lineData[465]++; + _$jscoverage['/editor/selectionFix.js'].lineData[462]++; + if (visit827_462_1(lastPath.blockLimit.nodeName() !== 'body')) { + _$jscoverage['/editor/selectionFix.js'].lineData[463]++; editBlock = new Node(doc.createElement('p')).appendTo(body); - _$jscoverage['/editor/selectionFix.js'].lineData[466]++; - if (visit817_466_1(!UA.ie)) { - _$jscoverage['/editor/selectionFix.js'].lineData[467]++; + _$jscoverage['/editor/selectionFix.js'].lineData[464]++; + if (visit828_464_1(!UA.ie)) { + _$jscoverage['/editor/selectionFix.js'].lineData[465]++; editBlock._4eAppendBogus(); } } }); } - _$jscoverage['/editor/selectionFix.js'].lineData[473]++; + _$jscoverage['/editor/selectionFix.js'].lineData[471]++; return { init: function(editor) { _$jscoverage['/editor/selectionFix.js'].functionData[29]++; - _$jscoverage['/editor/selectionFix.js'].lineData[475]++; + _$jscoverage['/editor/selectionFix.js'].lineData[473]++; editor.docReady(function() { _$jscoverage['/editor/selectionFix.js'].functionData[30]++; - _$jscoverage['/editor/selectionFix.js'].lineData[477]++; - if (visit818_477_1(document.selection)) { - _$jscoverage['/editor/selectionFix.js'].lineData[478]++; + _$jscoverage['/editor/selectionFix.js'].lineData[475]++; + if (visit829_475_1(document.selection)) { + _$jscoverage['/editor/selectionFix.js'].lineData[476]++; fixCursorForIE(editor); - _$jscoverage['/editor/selectionFix.js'].lineData[479]++; + _$jscoverage['/editor/selectionFix.js'].lineData[477]++; fixSelectionForIEWhenDocReady(editor); } else { - _$jscoverage['/editor/selectionFix.js'].lineData[481]++; + _$jscoverage['/editor/selectionFix.js'].lineData[479]++; fireSelectionChangeForStandard(editor); - _$jscoverage['/editor/selectionFix.js'].lineData[483]++; - if (visit819_483_1(UA.ieMode === 11)) { + _$jscoverage['/editor/selectionFix.js'].lineData[481]++; + if (visit830_481_1(UA.ie)) { + _$jscoverage['/editor/selectionFix.js'].lineData[482]++; + var savedRanges, doc = editor.get('document'); _$jscoverage['/editor/selectionFix.js'].lineData[484]++; - editor.get('document').on('focusin', function(e) { + doc.on('focusout', function() { _$jscoverage['/editor/selectionFix.js'].functionData[31]++; _$jscoverage['/editor/selectionFix.js'].lineData[485]++; - var selection = editor.getSelection(); - _$jscoverage['/editor/selectionFix.js'].lineData[486]++; - var range = visit820_486_1(selection && selection.getRanges()[0]); - _$jscoverage['/editor/selectionFix.js'].lineData[487]++; - if (visit821_487_1(!range)) { - _$jscoverage['/editor/selectionFix.js'].lineData[488]++; - range = new KERange(this); + savedRanges = editor.getSelection().getRanges(); +}); + _$jscoverage['/editor/selectionFix.js'].lineData[487]++; + doc.on('focusin', function() { + _$jscoverage['/editor/selectionFix.js'].functionData[32]++; + _$jscoverage['/editor/selectionFix.js'].lineData[488]++; + if (visit831_488_1(savedRanges)) { _$jscoverage['/editor/selectionFix.js'].lineData[489]++; - range.setStart(Node.all(e.target), 0); + var selection = editor.getSelection(); _$jscoverage['/editor/selectionFix.js'].lineData[490]++; - range.collapse(1); + selection.selectRanges(savedRanges); _$jscoverage['/editor/selectionFix.js'].lineData[491]++; - range.select(); + savedRanges = null; } }); } diff --git a/src/editor/coverage/src/editor/styles.js b/src/editor/coverage/src/editor/styles.js index c916c8b539..cad13bad47 100644 --- a/src/editor/coverage/src/editor/styles.js +++ b/src/editor/coverage/src/editor/styles.js @@ -1167,939 +1167,939 @@ if (! _$jscoverage['/editor/styles.js'].branchData) { _$jscoverage['/editor/styles.js'].branchData['1377'][4] = new BranchData(); } _$jscoverage['/editor/styles.js'].branchData['1377'][4].init(261, 48, 'lastChild.nodeType === Dom.NodeType.ELEMENT_NODE'); -function visit1055_1377_4(result) { +function visit1065_1377_4(result) { _$jscoverage['/editor/styles.js'].branchData['1377'][4].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1377'][3].init(233, 24, 'firstChild !== lastChild'); -function visit1054_1377_3(result) { +function visit1064_1377_3(result) { _$jscoverage['/editor/styles.js'].branchData['1377'][3].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1377'][2].init(233, 76, 'firstChild !== lastChild && lastChild.nodeType === Dom.NodeType.ELEMENT_NODE'); -function visit1053_1377_2(result) { +function visit1063_1377_2(result) { _$jscoverage['/editor/styles.js'].branchData['1377'][2].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1377'][1].init(220, 89, 'lastChild && firstChild !== lastChild && lastChild.nodeType === Dom.NodeType.ELEMENT_NODE'); -function visit1052_1377_1(result) { +function visit1062_1377_1(result) { _$jscoverage['/editor/styles.js'].branchData['1377'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1373'][1].init(75, 49, 'firstChild.nodeType === Dom.NodeType.ELEMENT_NODE'); -function visit1051_1373_1(result) { +function visit1061_1373_1(result) { _$jscoverage['/editor/styles.js'].branchData['1373'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1371'][1].init(309, 10, 'firstChild'); -function visit1050_1371_1(result) { +function visit1060_1371_1(result) { _$jscoverage['/editor/styles.js'].branchData['1371'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1363'][1].init(115, 27, '!element._4eHasAttributes()'); -function visit1049_1363_1(result) { +function visit1059_1363_1(result) { _$jscoverage['/editor/styles.js'].branchData['1363'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1349'][3].init(116, 31, 'actualStyleValue === styleValue'); -function visit1048_1349_3(result) { +function visit1058_1349_3(result) { _$jscoverage['/editor/styles.js'].branchData['1349'][3].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1349'][2].init(82, 30, 'typeof styleValue === \'string\''); -function visit1047_1349_2(result) { +function visit1057_1349_2(result) { _$jscoverage['/editor/styles.js'].branchData['1349'][2].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1349'][1].init(82, 65, 'typeof styleValue === \'string\' && actualStyleValue === styleValue'); -function visit1046_1349_1(result) { +function visit1056_1349_1(result) { _$jscoverage['/editor/styles.js'].branchData['1349'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1348'][2].init(181, 51, 'styleValue.test && styleValue.test(actualAttrValue)'); -function visit1045_1348_2(result) { +function visit1055_1348_2(result) { _$jscoverage['/editor/styles.js'].branchData['1348'][2].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1348'][1].init(102, 150, '(styleValue.test && styleValue.test(actualAttrValue)) || (typeof styleValue === \'string\' && actualStyleValue === styleValue)'); -function visit1044_1348_1(result) { +function visit1054_1348_1(result) { _$jscoverage['/editor/styles.js'].branchData['1348'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1346'][2].init(76, 19, 'styleValue === NULL'); -function visit1043_1346_2(result) { +function visit1053_1346_2(result) { _$jscoverage['/editor/styles.js'].branchData['1346'][2].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1346'][1].init(76, 253, 'styleValue === NULL || (styleValue.test && styleValue.test(actualAttrValue)) || (typeof styleValue === \'string\' && actualStyleValue === styleValue)'); -function visit1042_1346_1(result) { +function visit1052_1346_1(result) { _$jscoverage['/editor/styles.js'].branchData['1346'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1341'][1].init(25, 17, 'i < styles.length'); -function visit1041_1341_1(result) { +function visit1051_1341_1(result) { _$jscoverage['/editor/styles.js'].branchData['1341'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1340'][1].init(1145, 6, 'styles'); -function visit1040_1340_1(result) { +function visit1050_1340_1(result) { _$jscoverage['/editor/styles.js'].branchData['1340'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1338'][1].init(1101, 29, 'overrides && overrides.styles'); -function visit1039_1338_1(result) { +function visit1049_1338_1(result) { _$jscoverage['/editor/styles.js'].branchData['1338'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1331'][3].init(110, 28, 'actualAttrValue === attValue'); -function visit1038_1331_3(result) { +function visit1048_1331_3(result) { _$jscoverage['/editor/styles.js'].branchData['1331'][3].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1331'][2].init(78, 28, 'typeof attValue === \'string\''); -function visit1037_1331_2(result) { +function visit1047_1331_2(result) { _$jscoverage['/editor/styles.js'].branchData['1331'][2].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1331'][1].init(78, 60, 'typeof attValue === \'string\' && actualAttrValue === attValue'); -function visit1036_1331_1(result) { +function visit1046_1331_1(result) { _$jscoverage['/editor/styles.js'].branchData['1331'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1330'][2].init(522, 47, 'attValue.test && attValue.test(actualAttrValue)'); -function visit1035_1330_2(result) { +function visit1045_1330_2(result) { _$jscoverage['/editor/styles.js'].branchData['1330'][2].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1330'][1].init(46, 141, '(attValue.test && attValue.test(actualAttrValue)) || (typeof attValue === \'string\' && actualAttrValue === attValue)'); -function visit1034_1330_1(result) { +function visit1044_1330_1(result) { _$jscoverage['/editor/styles.js'].branchData['1330'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1329'][2].init(473, 17, 'attValue === NULL'); -function visit1033_1329_2(result) { +function visit1043_1329_2(result) { _$jscoverage['/editor/styles.js'].branchData['1329'][2].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1329'][1].init(473, 188, 'attValue === NULL || (attValue.test && attValue.test(actualAttrValue)) || (typeof attValue === \'string\' && actualAttrValue === attValue)'); -function visit1032_1329_1(result) { +function visit1042_1329_1(result) { _$jscoverage['/editor/styles.js'].branchData['1329'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1317'][1].init(25, 21, 'i < attributes.length'); -function visit1031_1317_1(result) { +function visit1041_1317_1(result) { _$jscoverage['/editor/styles.js'].branchData['1317'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1316'][1].init(106, 10, 'attributes'); -function visit1030_1316_1(result) { +function visit1040_1316_1(result) { _$jscoverage['/editor/styles.js'].branchData['1316'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1314'][1].init(48, 33, 'overrides && overrides.attributes'); -function visit1029_1314_1(result) { +function visit1039_1314_1(result) { _$jscoverage['/editor/styles.js'].branchData['1314'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1297'][1].init(114, 6, 'i >= 0'); -function visit1028_1297_1(result) { +function visit1038_1297_1(result) { _$jscoverage['/editor/styles.js'].branchData['1297'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1295'][1].init(18, 33, 'overrideElement !== style.element'); -function visit1027_1295_1(result) { +function visit1037_1295_1(result) { _$jscoverage['/editor/styles.js'].branchData['1295'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1287'][1].init(253, 8, '--i >= 0'); -function visit1026_1287_1(result) { +function visit1036_1287_1(result) { _$jscoverage['/editor/styles.js'].branchData['1287'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1262'][1].init(297, 41, 'removeEmpty || !!element.style(styleName)'); -function visit1025_1262_1(result) { +function visit1035_1262_1(result) { _$jscoverage['/editor/styles.js'].branchData['1262'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1258'][1].init(47, 84, 'element.style(styleName) !== normalizeProperty(styleName, styles[styleName], TRUE)'); -function visit1024_1258_1(result) { +function visit1034_1258_1(result) { _$jscoverage['/editor/styles.js'].branchData['1258'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1257'][1].init(94, 132, 'style._.definition.fullMatch && element.style(styleName) !== normalizeProperty(styleName, styles[styleName], TRUE)'); -function visit1023_1257_1(result) { +function visit1033_1257_1(result) { _$jscoverage['/editor/styles.js'].branchData['1257'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1249'][1].init(299, 41, 'removeEmpty || !!element.hasAttr(attName)'); -function visit1022_1249_1(result) { +function visit1032_1249_1(result) { _$jscoverage['/editor/styles.js'].branchData['1249'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1245'][4].init(138, 91, 'element.attr(attName) !== normalizeProperty(attName, attributes[attName])'); -function visit1021_1245_4(result) { +function visit1031_1245_4(result) { _$jscoverage['/editor/styles.js'].branchData['1245'][4].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1245'][3].init(81, 19, 'attName === \'class\''); -function visit1020_1245_3(result) { +function visit1030_1245_3(result) { _$jscoverage['/editor/styles.js'].branchData['1245'][3].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1245'][2].init(81, 51, 'attName === \'class\' || style._.definition.fullMatch'); -function visit1019_1245_2(result) { +function visit1029_1245_2(result) { _$jscoverage['/editor/styles.js'].branchData['1245'][2].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1245'][1].init(81, 148, '(attName === \'class\' || style._.definition.fullMatch) && element.attr(attName) !== normalizeProperty(attName, attributes[attName])'); -function visit1018_1245_1(result) { +function visit1028_1245_1(result) { _$jscoverage['/editor/styles.js'].branchData['1245'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1238'][1].init(447, 70, 'S.isEmptyObject(attributes) && S.isEmptyObject(styles)'); -function visit1017_1238_1(result) { +function visit1027_1238_1(result) { _$jscoverage['/editor/styles.js'].branchData['1238'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1236'][2].init(70, 20, 'overrides[\'*\'] || {}'); -function visit1016_1236_2(result) { +function visit1026_1236_2(result) { _$jscoverage['/editor/styles.js'].branchData['1236'][2].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1236'][1].init(36, 54, 'overrides[element.nodeName()] || overrides[\'*\'] || {}'); -function visit1015_1236_1(result) { +function visit1025_1236_1(result) { _$jscoverage['/editor/styles.js'].branchData['1236'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1234'][2].init(74, 20, 'overrides[\'*\'] || {}'); -function visit1014_1234_2(result) { +function visit1024_1234_2(result) { _$jscoverage['/editor/styles.js'].branchData['1234'][2].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1234'][1].init(40, 54, 'overrides[element.nodeName()] || overrides[\'*\'] || {}'); -function visit1013_1234_1(result) { +function visit1023_1234_1(result) { _$jscoverage['/editor/styles.js'].branchData['1234'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1215'][1].init(43, 23, 'overrideEl.styles || []'); -function visit1012_1215_1(result) { +function visit1022_1215_1(result) { _$jscoverage['/editor/styles.js'].branchData['1215'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1210'][1].init(1710, 6, 'styles'); -function visit1011_1210_1(result) { +function visit1021_1210_1(result) { _$jscoverage['/editor/styles.js'].branchData['1210'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1200'][1].init(47, 27, 'overrideEl.attributes || []'); -function visit1010_1200_1(result) { +function visit1020_1200_1(result) { _$jscoverage['/editor/styles.js'].branchData['1200'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1195'][1].init(990, 5, 'attrs'); -function visit1009_1195_1(result) { +function visit1019_1195_1(result) { _$jscoverage['/editor/styles.js'].branchData['1195'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1192'][1].init(886, 81, 'overrides[elementName] || (overrides[elementName] = {})'); -function visit1008_1192_1(result) { +function visit1018_1192_1(result) { _$jscoverage['/editor/styles.js'].branchData['1192'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1177'][1].init(229, 28, 'typeof override === \'string\''); -function visit1007_1177_1(result) { +function visit1017_1177_1(result) { _$jscoverage['/editor/styles.js'].branchData['1177'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1170'][1].init(338, 21, 'i < definition.length'); -function visit1006_1170_1(result) { +function visit1016_1170_1(result) { _$jscoverage['/editor/styles.js'].branchData['1170'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1165'][1].init(170, 22, '!S.isArray(definition)'); -function visit1005_1165_1(result) { +function visit1015_1165_1(result) { _$jscoverage['/editor/styles.js'].branchData['1165'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1162'][1].init(203, 10, 'definition'); -function visit1004_1162_1(result) { +function visit1014_1162_1(result) { _$jscoverage['/editor/styles.js'].branchData['1162'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1155'][1].init(13, 17, 'style._.overrides'); -function visit1003_1155_1(result) { +function visit1013_1155_1(result) { _$jscoverage['/editor/styles.js'].branchData['1155'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1133'][1].init(17, 14, '!attribs.style'); -function visit1002_1133_1(result) { +function visit1012_1133_1(result) { _$jscoverage['/editor/styles.js'].branchData['1133'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1132'][1].init(627, 9, 'styleText'); -function visit1001_1132_1(result) { +function visit1011_1132_1(result) { _$jscoverage['/editor/styles.js'].branchData['1132'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1121'][1].init(327, 12, 'styleAttribs'); -function visit1000_1121_1(result) { +function visit1010_1121_1(result) { _$jscoverage['/editor/styles.js'].branchData['1121'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1112'][1].init(115, 7, 'attribs'); -function visit999_1112_1(result) { +function visit1009_1112_1(result) { _$jscoverage['/editor/styles.js'].branchData['1112'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1091'][1].init(320, 24, 'temp.style.cssText || \'\''); -function visit998_1091_1(result) { +function visit1008_1091_1(result) { _$jscoverage['/editor/styles.js'].branchData['1091'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1085'][1].init(41, 25, 'nativeNormalize !== FALSE'); -function visit997_1085_1(result) { +function visit1007_1085_1(result) { _$jscoverage['/editor/styles.js'].branchData['1085'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1075'][3].init(31, 28, 'target[name] === \'inherit\''); -function visit996_1075_3(result) { +function visit1006_1075_3(result) { _$jscoverage['/editor/styles.js'].branchData['1075'][3].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1075'][2].init(94, 28, 'source[name] === \'inherit\''); -function visit995_1075_2(result) { +function visit1005_1075_2(result) { _$jscoverage['/editor/styles.js'].branchData['1075'][2].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1075'][1].init(56, 60, 'source[name] === \'inherit\' || target[name] === \'inherit\''); -function visit994_1075_1(result) { +function visit1004_1075_1(result) { _$jscoverage['/editor/styles.js'].branchData['1075'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1074'][2].init(35, 33, 'target[name] === source[name]'); -function visit993_1074_2(result) { +function visit1003_1074_2(result) { _$jscoverage['/editor/styles.js'].branchData['1074'][2].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1074'][1].init(35, 117, 'target[name] === source[name] || source[name] === \'inherit\' || target[name] === \'inherit\''); -function visit992_1074_1(result) { +function visit1002_1074_1(result) { _$jscoverage['/editor/styles.js'].branchData['1074'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1073'][2].init(122, 155, 'name in target && (target[name] === source[name] || source[name] === \'inherit\' || target[name] === \'inherit\')'); -function visit991_1073_2(result) { +function visit1001_1073_2(result) { _$jscoverage['/editor/styles.js'].branchData['1073'][2].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1073'][1].init(119, 160, '!(name in target && (target[name] === source[name] || source[name] === \'inherit\' || target[name] === \'inherit\'))'); -function visit990_1073_1(result) { +function visit1000_1073_1(result) { _$jscoverage['/editor/styles.js'].branchData['1073'][1].ranCondition(result); return result; -}_$jscoverage['/editor/styles.js'].branchData['1066'][1].init(110, 19, 'target === \'string\''); -function visit989_1066_1(result) { +}_$jscoverage['/editor/styles.js'].branchData['1066'][1].init(110, 26, 'typeof target === \'string\''); +function visit999_1066_1(result) { _$jscoverage['/editor/styles.js'].branchData['1066'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1063'][1].init(13, 26, 'typeof source === \'string\''); -function visit988_1063_1(result) { +function visit998_1063_1(result) { _$jscoverage['/editor/styles.js'].branchData['1063'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1038'][2].init(896, 50, 'nextNode[0].nodeType === Dom.NodeType.ELEMENT_NODE'); -function visit987_1038_2(result) { +function visit997_1038_2(result) { _$jscoverage['/editor/styles.js'].branchData['1038'][2].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1038'][1].init(896, 106, 'nextNode[0].nodeType === Dom.NodeType.ELEMENT_NODE && nextNode.contains(startNode)'); -function visit986_1038_1(result) { +function visit996_1038_1(result) { _$jscoverage['/editor/styles.js'].branchData['1038'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1028'][1].init(56, 53, 'overrides[currentNode.nodeName()] || overrides[\'*\']'); -function visit985_1028_1(result) { +function visit995_1028_1(result) { _$jscoverage['/editor/styles.js'].branchData['1028'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1022'][1].init(97, 39, 'currentNode.nodeName() === this.element'); -function visit984_1022_1(result) { +function visit994_1022_1(result) { _$jscoverage['/editor/styles.js'].branchData['1022'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1019'][2].init(305, 53, 'currentNode[0].nodeType === Dom.NodeType.ELEMENT_NODE'); -function visit983_1019_2(result) { +function visit993_1019_2(result) { _$jscoverage['/editor/styles.js'].branchData['1019'][2].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1019'][1].init(37, 116, 'currentNode[0].nodeType === Dom.NodeType.ELEMENT_NODE && this.checkElementRemovable(currentNode)'); -function visit982_1019_1(result) { +function visit992_1019_1(result) { _$jscoverage['/editor/styles.js'].branchData['1019'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1018'][1].init(265, 154, 'currentNode[0] && currentNode[0].nodeType === Dom.NodeType.ELEMENT_NODE && this.checkElementRemovable(currentNode)'); -function visit981_1018_1(result) { +function visit991_1018_1(result) { _$jscoverage['/editor/styles.js'].branchData['1018'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1012'][1].init(1929, 29, 'currentNode[0] !== endNode[0]'); -function visit980_1012_1(result) { +function visit990_1012_1(result) { _$jscoverage['/editor/styles.js'].branchData['1012'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1003'][1].init(1235, 10, 'breakStart'); -function visit979_1003_1(result) { +function visit989_1003_1(result) { _$jscoverage['/editor/styles.js'].branchData['1003'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['1000'][1].init(1131, 8, 'breakEnd'); -function visit978_1000_1(result) { +function visit988_1000_1(result) { _$jscoverage['/editor/styles.js'].branchData['1000'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['995'][1].init(244, 33, 'me.checkElementRemovable(element)'); -function visit977_995_1(result) { +function visit987_995_1(result) { _$jscoverage['/editor/styles.js'].branchData['995'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['991'][1].init(52, 30, 'element === endPath.blockLimit'); -function visit976_991_1(result) { +function visit986_991_1(result) { _$jscoverage['/editor/styles.js'].branchData['991'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['990'][2].init(79, 25, 'element === endPath.block'); -function visit975_990_2(result) { +function visit985_990_2(result) { _$jscoverage['/editor/styles.js'].branchData['990'][2].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['990'][1].init(79, 83, 'element === endPath.block || element === endPath.blockLimit'); -function visit974_990_1(result) { +function visit984_990_1(result) { _$jscoverage['/editor/styles.js'].branchData['990'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['987'][1].init(710, 27, 'i < endPath.elements.length'); -function visit973_987_1(result) { +function visit983_987_1(result) { _$jscoverage['/editor/styles.js'].branchData['987'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['983'][1].init(250, 33, 'me.checkElementRemovable(element)'); -function visit972_983_1(result) { +function visit982_983_1(result) { _$jscoverage['/editor/styles.js'].branchData['983'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['979'][1].init(54, 32, 'element === startPath.blockLimit'); -function visit971_979_1(result) { +function visit981_979_1(result) { _$jscoverage['/editor/styles.js'].branchData['979'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['978'][2].init(81, 27, 'element === startPath.block'); -function visit970_978_2(result) { +function visit980_978_2(result) { _$jscoverage['/editor/styles.js'].branchData['978'][2].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['978'][1].init(81, 87, 'element === startPath.block || element === startPath.blockLimit'); -function visit969_978_1(result) { +function visit979_978_1(result) { _$jscoverage['/editor/styles.js'].branchData['978'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['975'][1].init(272, 29, 'i < startPath.elements.length'); -function visit968_975_1(result) { +function visit978_975_1(result) { _$jscoverage['/editor/styles.js'].branchData['975'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['953'][1].init(1330, 9, 'UA.webkit'); -function visit967_953_1(result) { +function visit977_953_1(result) { _$jscoverage['/editor/styles.js'].branchData['953'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['949'][1].init(63, 16, 'tmp === \'\\u200b\''); -function visit966_949_1(result) { +function visit976_949_1(result) { _$jscoverage['/editor/styles.js'].branchData['949'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['947'][1].init(1079, 80, '!tmp || tmp === \'\\u200b\''); -function visit965_947_1(result) { +function visit975_947_1(result) { _$jscoverage['/editor/styles.js'].branchData['947'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['942'][1].init(14, 33, 'boundaryElement.match === \'start\''); -function visit964_942_1(result) { +function visit974_942_1(result) { _$jscoverage['/editor/styles.js'].branchData['942'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['930'][1].init(266, 16, 'newElement.match'); -function visit963_930_1(result) { +function visit973_930_1(result) { _$jscoverage['/editor/styles.js'].branchData['930'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['926'][1].init(87, 34, 'newElement.equals(boundaryElement)'); -function visit962_926_1(result) { +function visit972_926_1(result) { _$jscoverage['/editor/styles.js'].branchData['926'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['922'][1].init(2574, 15, 'boundaryElement'); -function visit961_922_1(result) { +function visit971_922_1(result) { _$jscoverage['/editor/styles.js'].branchData['922'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['910'][1].init(56, 51, '_overrides[element.nodeName()] || _overrides[\'*\']'); -function visit960_910_1(result) { +function visit970_910_1(result) { _$jscoverage['/editor/styles.js'].branchData['910'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['907'][1].init(644, 35, 'element.nodeName() !== this.element'); -function visit959_907_1(result) { +function visit969_907_1(result) { _$jscoverage['/editor/styles.js'].branchData['907'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['893'][1].init(248, 30, 'startOfElement || endOfElement'); -function visit958_893_1(result) { +function visit968_893_1(result) { _$jscoverage['/editor/styles.js'].branchData['893'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['891'][1].init(107, 93, '!endOfElement && range.checkBoundaryOfElement(element, KER.START)'); -function visit957_891_1(result) { +function visit967_891_1(result) { _$jscoverage['/editor/styles.js'].branchData['891'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['889'][1].init(540, 35, 'this.checkElementRemovable(element)'); -function visit956_889_1(result) { +function visit966_889_1(result) { _$jscoverage['/editor/styles.js'].branchData['889'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['886'][3].init(439, 32, 'element === startPath.blockLimit'); -function visit955_886_3(result) { +function visit965_886_3(result) { _$jscoverage['/editor/styles.js'].branchData['886'][3].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['886'][2].init(408, 27, 'element === startPath.block'); -function visit954_886_2(result) { +function visit964_886_2(result) { _$jscoverage['/editor/styles.js'].branchData['886'][2].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['886'][1].init(408, 63, 'element === startPath.block || element === startPath.blockLimit'); -function visit953_886_1(result) { +function visit963_886_1(result) { _$jscoverage['/editor/styles.js'].branchData['886'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['878'][2].init(220, 29, 'i < startPath.elements.length'); -function visit952_878_2(result) { +function visit962_878_2(result) { _$jscoverage['/editor/styles.js'].branchData['878'][2].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['878'][1].init(220, 68, 'i < startPath.elements.length && (element = startPath.elements[i])'); -function visit951_878_1(result) { +function visit961_878_1(result) { _$jscoverage['/editor/styles.js'].branchData['878'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['871'][1].init(304, 15, 'range.collapsed'); -function visit950_871_1(result) { +function visit960_871_1(result) { _$jscoverage['/editor/styles.js'].branchData['871'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['825'][1].init(1163, 6, '!UA.ie'); -function visit949_825_1(result) { +function visit959_825_1(result) { _$jscoverage['/editor/styles.js'].branchData['825'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['804'][1].init(2646, 9, 'styleNode'); -function visit948_804_1(result) { +function visit958_804_1(result) { _$jscoverage['/editor/styles.js'].branchData['804'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['795'][1].init(1505, 29, '!styleNode._4eHasAttributes()'); -function visit947_795_1(result) { +function visit957_795_1(result) { _$jscoverage['/editor/styles.js'].branchData['795'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['786'][1].init(220, 36, 'styleNode.style(styleName) === value'); -function visit946_786_1(result) { +function visit956_786_1(result) { _$jscoverage['/editor/styles.js'].branchData['786'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['782'][1].init(34, 77, 'removeList.blockedStyles[styleName] || !(value = parent.style(styleName))'); -function visit945_782_1(result) { +function visit955_782_1(result) { _$jscoverage['/editor/styles.js'].branchData['782'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['768'][1].init(216, 33, 'styleNode.attr(attName) === value'); -function visit944_768_1(result) { +function visit954_768_1(result) { _$jscoverage['/editor/styles.js'].branchData['768'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['764'][1].init(34, 73, 'removeList.blockedAttrs[attName] || !(value = parent.attr(styleName))'); -function visit943_764_1(result) { +function visit953_764_1(result) { _$jscoverage['/editor/styles.js'].branchData['764'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['761'][1].init(25, 33, 'parent.nodeName() === elementName'); -function visit942_761_1(result) { +function visit952_761_1(result) { _$jscoverage['/editor/styles.js'].branchData['761'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['760'][3].init(804, 25, 'styleNode[0] && parent[0]'); -function visit941_760_3(result) { +function visit951_760_3(result) { _$jscoverage['/editor/styles.js'].branchData['760'][3].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['760'][2].init(794, 35, 'parent && styleNode[0] && parent[0]'); -function visit940_760_2(result) { +function visit950_760_2(result) { _$jscoverage['/editor/styles.js'].branchData['760'][2].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['760'][1].init(781, 48, 'styleNode && parent && styleNode[0] && parent[0]'); -function visit939_760_1(result) { +function visit949_760_1(result) { _$jscoverage['/editor/styles.js'].branchData['760'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['739'][2].init(6216, 35, 'styleRange && !styleRange.collapsed'); -function visit938_739_2(result) { +function visit948_739_2(result) { _$jscoverage['/editor/styles.js'].branchData['739'][2].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['739'][1].init(6202, 49, 'applyStyle && styleRange && !styleRange.collapsed'); -function visit937_739_1(result) { +function visit947_739_1(result) { _$jscoverage['/editor/styles.js'].branchData['739'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['718'][1].init(401, 43, '!def.childRule || def.childRule(parentNode)'); -function visit936_718_1(result) { +function visit946_718_1(result) { _$jscoverage['/editor/styles.js'].branchData['718'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['713'][2].init(1128, 396, '(parentNode._4ePosition(firstNode) | KEP.POSITION_FOLLOWING | KEP.POSITION_IDENTICAL | KEP.POSITION_IS_CONTAINED) === (KEP.POSITION_FOLLOWING + KEP.POSITION_IDENTICAL + KEP.POSITION_IS_CONTAINED)'); -function visit935_713_2(result) { +function visit945_713_2(result) { _$jscoverage['/editor/styles.js'].branchData['713'][2].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['713'][1].init(150, 447, '(parentNode._4ePosition(firstNode) | KEP.POSITION_FOLLOWING | KEP.POSITION_IDENTICAL | KEP.POSITION_IS_CONTAINED) === (KEP.POSITION_FOLLOWING + KEP.POSITION_IDENTICAL + KEP.POSITION_IS_CONTAINED) && (!def.childRule || def.childRule(parentNode))'); -function visit934_713_1(result) { +function visit944_713_1(result) { _$jscoverage['/editor/styles.js'].branchData['713'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['711'][2].init(976, 107, '(parentNode = includedNode.parent()) && dtd[parentNode.nodeName()]'); -function visit933_711_2(result) { +function visit943_711_2(result) { _$jscoverage['/editor/styles.js'].branchData['711'][2].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['711'][1].init(90, 598, '((parentNode = includedNode.parent()) && dtd[parentNode.nodeName()]) && (parentNode._4ePosition(firstNode) | KEP.POSITION_FOLLOWING | KEP.POSITION_IDENTICAL | KEP.POSITION_IS_CONTAINED) === (KEP.POSITION_FOLLOWING + KEP.POSITION_IDENTICAL + KEP.POSITION_IS_CONTAINED) && (!def.childRule || def.childRule(parentNode))'); -function visit932_711_1(result) { +function visit942_711_1(result) { _$jscoverage['/editor/styles.js'].branchData['711'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['710'][1].init(40, 689, '(applyStyle = !includedNode.next(notBookmark, 1)) && ((parentNode = includedNode.parent()) && dtd[parentNode.nodeName()]) && (parentNode._4ePosition(firstNode) | KEP.POSITION_FOLLOWING | KEP.POSITION_IDENTICAL | KEP.POSITION_IS_CONTAINED) === (KEP.POSITION_FOLLOWING + KEP.POSITION_IDENTICAL + KEP.POSITION_IS_CONTAINED) && (!def.childRule || def.childRule(parentNode))'); -function visit931_710_1(result) { +function visit941_710_1(result) { _$jscoverage['/editor/styles.js'].branchData['710'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['695'][2].init(68, 38, 'nodeType === Dom.NodeType.ELEMENT_NODE'); -function visit930_695_2(result) { +function visit940_695_2(result) { _$jscoverage['/editor/styles.js'].branchData['695'][2].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['695'][1].init(68, 75, 'nodeType === Dom.NodeType.ELEMENT_NODE && !currentNode[0].childNodes.length'); -function visit929_695_1(result) { +function visit939_695_1(result) { _$jscoverage['/editor/styles.js'].branchData['695'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['694'][2].init(1192, 35, 'nodeType === Dom.NodeType.TEXT_NODE'); -function visit928_694_2(result) { +function visit938_694_2(result) { _$jscoverage['/editor/styles.js'].branchData['694'][2].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['694'][1].init(1192, 146, 'nodeType === Dom.NodeType.TEXT_NODE || (nodeType === Dom.NodeType.ELEMENT_NODE && !currentNode[0].childNodes.length)'); -function visit927_694_1(result) { +function visit937_694_1(result) { _$jscoverage['/editor/styles.js'].branchData['694'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['680'][3].init(92, 408, '(currentNode._4ePosition(lastNode) | (KEP.POSITION_PRECEDING | KEP.POSITION_IDENTICAL | KEP.POSITION_IS_CONTAINED)) === (KEP.POSITION_PRECEDING + KEP.POSITION_IDENTICAL + KEP.POSITION_IS_CONTAINED)'); -function visit926_680_3(result) { +function visit936_680_3(result) { _$jscoverage['/editor/styles.js'].branchData['680'][3].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['680'][2].init(57, 443, '!DTD.$removeEmpty[nodeName] || (currentNode._4ePosition(lastNode) | (KEP.POSITION_PRECEDING | KEP.POSITION_IDENTICAL | KEP.POSITION_IS_CONTAINED)) === (KEP.POSITION_PRECEDING + KEP.POSITION_IDENTICAL + KEP.POSITION_IS_CONTAINED)'); -function visit925_680_2(result) { +function visit935_680_2(result) { _$jscoverage['/editor/styles.js'].branchData['680'][2].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['680'][1].init(44, 456, '!nodeName || !DTD.$removeEmpty[nodeName] || (currentNode._4ePosition(lastNode) | (KEP.POSITION_PRECEDING | KEP.POSITION_IDENTICAL | KEP.POSITION_IS_CONTAINED)) === (KEP.POSITION_PRECEDING + KEP.POSITION_IDENTICAL + KEP.POSITION_IS_CONTAINED)'); -function visit924_680_1(result) { +function visit934_680_1(result) { _$jscoverage['/editor/styles.js'].branchData['680'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['679'][1].init(337, 535, '!styleRange && (!nodeName || !DTD.$removeEmpty[nodeName] || (currentNode._4ePosition(lastNode) | (KEP.POSITION_PRECEDING | KEP.POSITION_IDENTICAL | KEP.POSITION_IS_CONTAINED)) === (KEP.POSITION_PRECEDING + KEP.POSITION_IDENTICAL + KEP.POSITION_IS_CONTAINED))'); -function visit923_679_1(result) { +function visit933_679_1(result) { _$jscoverage['/editor/styles.js'].branchData['679'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['674'][1].init(133, 48, '!def.parentRule || def.parentRule(currentParent)'); -function visit922_674_1(result) { +function visit932_674_1(result) { _$jscoverage['/editor/styles.js'].branchData['674'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['672'][4].init(-1, 65, 'DTD[currentParent.nodeName()] || DTD.span'); -function visit921_672_4(result) { +function visit931_672_4(result) { _$jscoverage['/editor/styles.js'].branchData['672'][4].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['673'][1].init(-1, 126, '(DTD[currentParent.nodeName()] || DTD.span)[elementName] || isUnknownElement'); -function visit920_673_1(result) { +function visit930_673_1(result) { _$jscoverage['/editor/styles.js'].branchData['673'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['672'][3].init(1286, 184, '((DTD[currentParent.nodeName()] || DTD.span)[elementName] || isUnknownElement) && (!def.parentRule || def.parentRule(currentParent))'); -function visit919_672_3(result) { +function visit929_672_3(result) { _$jscoverage['/editor/styles.js'].branchData['672'][3].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['672'][2].init(1262, 208, 'currentParent[0] && ((DTD[currentParent.nodeName()] || DTD.span)[elementName] || isUnknownElement) && (!def.parentRule || def.parentRule(currentParent))'); -function visit918_672_2(result) { +function visit928_672_2(result) { _$jscoverage['/editor/styles.js'].branchData['672'][2].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['672'][1].init(1245, 225, 'currentParent && currentParent[0] && ((DTD[currentParent.nodeName()] || DTD.span)[elementName] || isUnknownElement) && (!def.parentRule || def.parentRule(currentParent))'); -function visit917_672_1(result) { +function visit927_672_1(result) { _$jscoverage['/editor/styles.js'].branchData['672'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['663'][1].init(46, 40, 'currentParent.nodeName() === elementName'); -function visit916_663_1(result) { +function visit926_663_1(result) { _$jscoverage['/editor/styles.js'].branchData['663'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['662'][2].init(650, 19, 'elementName === \'a\''); -function visit915_662_2(result) { +function visit925_662_2(result) { _$jscoverage['/editor/styles.js'].branchData['662'][2].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['662'][1].init(40, 87, 'elementName === \'a\' && currentParent.nodeName() === elementName'); -function visit914_662_1(result) { +function visit924_662_1(result) { _$jscoverage['/editor/styles.js'].branchData['662'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['661'][1].init(607, 128, 'currentParent && elementName === \'a\' && currentParent.nodeName() === elementName'); -function visit913_661_1(result) { +function visit923_661_1(result) { _$jscoverage['/editor/styles.js'].branchData['661'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['648'][1].init(377, 44, '!def.childRule || def.childRule(currentNode)'); -function visit912_648_1(result) { +function visit922_648_1(result) { _$jscoverage['/editor/styles.js'].branchData['648'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['642'][2].init(81, 348, '(currentNode._4ePosition(lastNode) | (KEP.POSITION_PRECEDING | KEP.POSITION_IDENTICAL | KEP.POSITION_IS_CONTAINED)) === (KEP.POSITION_PRECEDING + KEP.POSITION_IDENTICAL + KEP.POSITION_IS_CONTAINED)'); -function visit911_642_2(result) { +function visit921_642_2(result) { _$jscoverage['/editor/styles.js'].branchData['642'][2].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['642'][1].init(44, 424, '(currentNode._4ePosition(lastNode) | (KEP.POSITION_PRECEDING | KEP.POSITION_IDENTICAL | KEP.POSITION_IS_CONTAINED)) === (KEP.POSITION_PRECEDING + KEP.POSITION_IDENTICAL + KEP.POSITION_IS_CONTAINED) && (!def.childRule || def.childRule(currentNode))'); -function visit910_642_1(result) { +function visit920_642_1(result) { _$jscoverage['/editor/styles.js'].branchData['642'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['641'][1].init(-1, 469, 'dtd[nodeName] && (currentNode._4ePosition(lastNode) | (KEP.POSITION_PRECEDING | KEP.POSITION_IDENTICAL | KEP.POSITION_IS_CONTAINED)) === (KEP.POSITION_PRECEDING + KEP.POSITION_IDENTICAL + KEP.POSITION_IS_CONTAINED) && (!def.childRule || def.childRule(currentNode))'); -function visit909_641_1(result) { +function visit919_641_1(result) { _$jscoverage['/editor/styles.js'].branchData['641'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['640'][1].init(475, 526, '!nodeName || (dtd[nodeName] && (currentNode._4ePosition(lastNode) | (KEP.POSITION_PRECEDING | KEP.POSITION_IDENTICAL | KEP.POSITION_IS_CONTAINED)) === (KEP.POSITION_PRECEDING + KEP.POSITION_IDENTICAL + KEP.POSITION_IS_CONTAINED) && (!def.childRule || def.childRule(currentNode)))'); -function visit908_640_1(result) { +function visit918_640_1(result) { _$jscoverage['/editor/styles.js'].branchData['640'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['634'][1].init(205, 44, 'nodeName && currentNode.attr(\'_ke_bookmark\')'); -function visit907_634_1(result) { +function visit917_634_1(result) { _$jscoverage['/editor/styles.js'].branchData['634'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['631'][1].init(70, 38, 'nodeType === Dom.NodeType.ELEMENT_NODE'); -function visit906_631_1(result) { +function visit916_631_1(result) { _$jscoverage['/editor/styles.js'].branchData['631'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['625'][1].init(54, 33, 'Dom.equals(currentNode, lastNode)'); -function visit905_625_1(result) { +function visit915_625_1(result) { _$jscoverage['/editor/styles.js'].branchData['625'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['622'][1].init(1384, 29, 'currentNode && currentNode[0]'); -function visit904_622_1(result) { +function visit914_622_1(result) { _$jscoverage['/editor/styles.js'].branchData['622'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['602'][1].init(758, 4, '!dtd'); -function visit903_602_1(result) { +function visit913_602_1(result) { _$jscoverage['/editor/styles.js'].branchData['602'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['588'][1].init(78, 15, 'range.collapsed'); -function visit902_588_1(result) { +function visit912_588_1(result) { _$jscoverage['/editor/styles.js'].branchData['588'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['561'][1].init(149, 7, '!offset'); -function visit901_561_1(result) { +function visit911_561_1(result) { _$jscoverage['/editor/styles.js'].branchData['561'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['558'][1].init(21, 18, 'match.length === 1'); -function visit900_558_1(result) { +function visit910_558_1(result) { _$jscoverage['/editor/styles.js'].branchData['558'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['547'][1].init(99, 19, 'i < preHTMLs.length'); -function visit899_547_1(result) { +function visit909_547_1(result) { _$jscoverage['/editor/styles.js'].branchData['547'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['533'][1].init(807, 5, 'UA.ie'); -function visit898_533_1(result) { +function visit908_533_1(result) { _$jscoverage['/editor/styles.js'].branchData['533'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['518'][1].init(96, 34, 'previousBlock.nodeName() === \'pre\''); -function visit897_518_1(result) { +function visit907_518_1(result) { _$jscoverage['/editor/styles.js'].branchData['518'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['517'][2].init(45, 131, '(previousBlock = preBlock._4ePreviousSourceNode(TRUE, Dom.NodeType.ELEMENT_NODE)) && previousBlock.nodeName() === \'pre\''); -function visit896_517_2(result) { +function visit906_517_2(result) { _$jscoverage['/editor/styles.js'].branchData['517'][2].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['517'][1].init(40, 138, '!((previousBlock = preBlock._4ePreviousSourceNode(TRUE, Dom.NodeType.ELEMENT_NODE)) && previousBlock.nodeName() === \'pre\')'); -function visit895_517_1(result) { +function visit905_517_1(result) { _$jscoverage['/editor/styles.js'].branchData['517'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['508'][1].init(621, 13, 'newBlockIsPre'); -function visit894_508_1(result) { +function visit904_508_1(result) { _$jscoverage['/editor/styles.js'].branchData['508'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['499'][1].init(318, 9, 'isFromPre'); -function visit893_499_1(result) { +function visit903_499_1(result) { _$jscoverage['/editor/styles.js'].branchData['499'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['496'][1].init(232, 7, 'isToPre'); -function visit892_496_1(result) { +function visit902_496_1(result) { _$jscoverage['/editor/styles.js'].branchData['496'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['494'][1].init(179, 28, '!newBlockIsPre && blockIsPre'); -function visit891_494_1(result) { +function visit901_494_1(result) { _$jscoverage['/editor/styles.js'].branchData['494'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['493'][1].init(125, 28, 'newBlockIsPre && !blockIsPre'); -function visit890_493_1(result) { +function visit900_493_1(result) { _$jscoverage['/editor/styles.js'].branchData['493'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['492'][1].init(75, 26, 'block.nodeName === (\'pre\')'); -function visit889_492_1(result) { +function visit899_492_1(result) { _$jscoverage['/editor/styles.js'].branchData['492'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['491'][1].init(29, 29, 'newBlock.nodeName === (\'pre\')'); -function visit888_491_1(result) { +function visit898_491_1(result) { _$jscoverage['/editor/styles.js'].branchData['491'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['452'][1].init(944, 5, 'UA.ie'); -function visit887_452_1(result) { +function visit897_452_1(result) { _$jscoverage['/editor/styles.js'].branchData['452'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['423'][1].init(104, 2, 'm2'); -function visit886_423_1(result) { +function visit896_423_1(result) { _$jscoverage['/editor/styles.js'].branchData['423'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['420'][1].init(21, 2, 'm1'); -function visit885_420_1(result) { +function visit895_420_1(result) { _$jscoverage['/editor/styles.js'].branchData['420'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['386'][1].init(364, 6, 'styles'); -function visit884_386_1(result) { +function visit894_386_1(result) { _$jscoverage['/editor/styles.js'].branchData['386'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['378'][1].init(183, 10, 'attributes'); -function visit883_378_1(result) { +function visit893_378_1(result) { _$jscoverage['/editor/styles.js'].branchData['378'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['365'][1].init(436, 7, 'element'); -function visit882_365_1(result) { +function visit892_365_1(result) { _$jscoverage['/editor/styles.js'].branchData['365'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['357'][1].init(180, 19, 'elementName === \'*\''); -function visit881_357_1(result) { +function visit891_357_1(result) { _$jscoverage['/editor/styles.js'].branchData['357'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['340'][1].init(1087, 17, 'stylesText.length'); -function visit880_340_1(result) { +function visit890_340_1(result) { _$jscoverage['/editor/styles.js'].branchData['340'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['329'][1].init(245, 22, 'styleVal === \'inherit\''); -function visit879_329_1(result) { +function visit889_329_1(result) { _$jscoverage['/editor/styles.js'].branchData['329'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['319'][1].init(397, 17, 'stylesText.length'); -function visit878_319_1(result) { +function visit888_319_1(result) { _$jscoverage['/editor/styles.js'].branchData['319'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['316'][2].init(276, 62, 'styleDefinition.attributes && styleDefinition.attributes.style'); -function visit877_316_2(result) { +function visit887_316_2(result) { _$jscoverage['/editor/styles.js'].branchData['316'][2].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['316'][1].init(276, 70, '(styleDefinition.attributes && styleDefinition.attributes.style) || \'\''); -function visit876_316_1(result) { +function visit886_316_1(result) { _$jscoverage['/editor/styles.js'].branchData['316'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['309'][1].init(117, 9, 'stylesDef'); -function visit875_309_1(result) { +function visit885_309_1(result) { _$jscoverage['/editor/styles.js'].branchData['309'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['296'][1].init(501, 41, 'this.checkElementRemovable(element, TRUE)'); -function visit874_296_1(result) { +function visit884_296_1(result) { _$jscoverage['/editor/styles.js'].branchData['296'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['292'][2].init(328, 31, 'this.type === KEST.STYLE_OBJECT'); -function visit873_292_2(result) { +function visit883_292_2(result) { _$jscoverage['/editor/styles.js'].branchData['292'][2].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['292'][1].init(328, 76, 'this.type === KEST.STYLE_OBJECT && !(element.nodeName() in objectElements)'); -function visit872_292_1(result) { +function visit882_292_1(result) { _$jscoverage['/editor/styles.js'].branchData['292'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['287'][3].init(116, 113, 'Dom.equals(element, elementPath.block) || Dom.equals(element, elementPath.blockLimit)'); -function visit871_287_3(result) { +function visit881_287_3(result) { _$jscoverage['/editor/styles.js'].branchData['287'][3].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['287'][2].init(79, 31, 'this.type === KEST.STYLE_INLINE'); -function visit870_287_2(result) { +function visit880_287_2(result) { _$jscoverage['/editor/styles.js'].branchData['287'][2].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['287'][1].init(79, 152, 'this.type === KEST.STYLE_INLINE && (Dom.equals(element, elementPath.block) || Dom.equals(element, elementPath.blockLimit))'); -function visit869_287_1(result) { +function visit879_287_1(result) { _$jscoverage['/editor/styles.js'].branchData['287'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['284'][1].init(128, 19, 'i < elements.length'); -function visit868_284_1(result) { +function visit878_284_1(result) { _$jscoverage['/editor/styles.js'].branchData['284'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['277'][1].init(77, 43, 'elementPath.block || elementPath.blockLimit'); -function visit867_277_1(result) { +function visit877_277_1(result) { _$jscoverage['/editor/styles.js'].branchData['277'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['260'][1].init(102, 52, 'styleValue.test && styleValue.test(actualStyleValue)'); -function visit866_260_1(result) { +function visit876_260_1(result) { _$jscoverage['/editor/styles.js'].branchData['260'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['259'][6].init(151, 31, 'actualStyleValue === styleValue'); -function visit865_259_6(result) { +function visit875_259_6(result) { _$jscoverage['/editor/styles.js'].branchData['259'][6].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['259'][5].init(117, 30, 'typeof styleValue === \'string\''); -function visit864_259_5(result) { +function visit874_259_5(result) { _$jscoverage['/editor/styles.js'].branchData['259'][5].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['259'][4].init(117, 65, 'typeof styleValue === \'string\' && actualStyleValue === styleValue'); -function visit863_259_4(result) { +function visit873_259_4(result) { _$jscoverage['/editor/styles.js'].branchData['259'][4].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['259'][3].init(117, 155, '(typeof styleValue === \'string\' && actualStyleValue === styleValue) || styleValue.test && styleValue.test(actualStyleValue)'); -function visit862_259_3(result) { +function visit872_259_3(result) { _$jscoverage['/editor/styles.js'].branchData['259'][3].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['259'][2].init(92, 19, 'styleValue === NULL'); -function visit861_259_2(result) { +function visit871_259_2(result) { _$jscoverage['/editor/styles.js'].branchData['259'][2].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['259'][1].init(92, 180, 'styleValue === NULL || (typeof styleValue === \'string\' && actualStyleValue === styleValue) || styleValue.test && styleValue.test(actualStyleValue)'); -function visit860_259_1(result) { +function visit870_259_1(result) { _$jscoverage['/editor/styles.js'].branchData['259'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['257'][1].init(154, 16, 'actualStyleValue'); -function visit859_257_1(result) { +function visit869_257_1(result) { _$jscoverage['/editor/styles.js'].branchData['257'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['254'][1].init(33, 17, 'i < styles.length'); -function visit858_254_1(result) { +function visit868_254_1(result) { _$jscoverage['/editor/styles.js'].branchData['254'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['253'][1].init(1368, 6, 'styles'); -function visit857_253_1(result) { +function visit867_253_1(result) { _$jscoverage['/editor/styles.js'].branchData['253'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['247'][1].init(97, 47, 'attValue.test && attValue.test(actualAttrValue)'); -function visit856_247_1(result) { +function visit866_247_1(result) { _$jscoverage['/editor/styles.js'].branchData['247'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['246'][4].init(621, 28, 'actualAttrValue === attValue'); -function visit855_246_4(result) { +function visit865_246_4(result) { _$jscoverage['/editor/styles.js'].branchData['246'][4].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['246'][3].init(589, 28, 'typeof attValue === \'string\''); -function visit854_246_3(result) { +function visit864_246_3(result) { _$jscoverage['/editor/styles.js'].branchData['246'][3].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['246'][2].init(589, 60, 'typeof attValue === \'string\' && actualAttrValue === attValue'); -function visit853_246_2(result) { +function visit863_246_2(result) { _$jscoverage['/editor/styles.js'].branchData['246'][2].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['246'][1].init(54, 145, '(typeof attValue === \'string\' && actualAttrValue === attValue) || attValue.test && attValue.test(actualAttrValue)'); -function visit852_246_1(result) { +function visit862_246_1(result) { _$jscoverage['/editor/styles.js'].branchData['246'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['245'][2].init(532, 17, 'attValue === NULL'); -function visit851_245_2(result) { +function visit861_245_2(result) { _$jscoverage['/editor/styles.js'].branchData['245'][2].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['245'][1].init(532, 200, 'attValue === NULL || (typeof attValue === \'string\' && actualAttrValue === attValue) || attValue.test && attValue.test(actualAttrValue)'); -function visit850_245_1(result) { +function visit860_245_1(result) { _$jscoverage['/editor/styles.js'].branchData['245'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['237'][1].init(147, 15, 'actualAttrValue'); -function visit849_237_1(result) { +function visit859_237_1(result) { _$jscoverage['/editor/styles.js'].branchData['237'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['234'][1].init(33, 18, 'i < attribs.length'); -function visit848_234_1(result) { +function visit858_234_1(result) { _$jscoverage['/editor/styles.js'].branchData['234'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['233'][1].init(237, 7, 'attribs'); -function visit847_233_1(result) { +function visit857_233_1(result) { _$jscoverage['/editor/styles.js'].branchData['233'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['230'][1].init(96, 66, '!(attribs = override.attributes) && !(styles = override.styles)'); -function visit846_230_1(result) { +function visit856_230_1(result) { _$jscoverage['/editor/styles.js'].branchData['230'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['228'][1].init(1773, 8, 'override'); -function visit845_228_1(result) { +function visit855_228_1(result) { _$jscoverage['/editor/styles.js'].branchData['228'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['226'][1].init(81, 49, 'overrides[element.nodeName()] || overrides[\'*\']'); -function visit844_226_1(result) { +function visit854_226_1(result) { _$jscoverage['/editor/styles.js'].branchData['226'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['214'][1].init(797, 9, 'fullMatch'); -function visit843_214_1(result) { +function visit853_214_1(result) { _$jscoverage['/editor/styles.js'].branchData['214'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['209'][1].init(623, 9, 'fullMatch'); -function visit842_209_1(result) { +function visit852_209_1(result) { _$jscoverage['/editor/styles.js'].branchData['209'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['205'][1].init(33, 10, '!fullMatch'); -function visit841_205_1(result) { +function visit851_205_1(result) { _$jscoverage['/editor/styles.js'].branchData['205'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['204'][1].init(184, 34, 'attribs[attName] === elementAttr'); -function visit840_204_1(result) { +function visit850_204_1(result) { _$jscoverage['/editor/styles.js'].branchData['204'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['201'][2].init(219, 19, 'attName === \'style\''); -function visit839_201_2(result) { +function visit849_201_2(result) { _$jscoverage['/editor/styles.js'].branchData['201'][2].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['201'][1].init(219, 219, 'attName === \'style\' ? compareCssText(attribs[attName], normalizeCssText(elementAttr, FALSE)) : attribs[attName] === elementAttr'); -function visit838_201_1(result) { +function visit848_201_1(result) { _$jscoverage['/editor/styles.js'].branchData['201'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['200'][1].init(162, 27, 'element.attr(attName) || \'\''); -function visit837_200_1(result) { +function visit847_200_1(result) { _$jscoverage['/editor/styles.js'].branchData['200'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['196'][1].init(30, 21, 'attName === \'_length\''); -function visit836_196_1(result) { +function visit846_196_1(result) { _$jscoverage['/editor/styles.js'].branchData['196'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['193'][1].init(262, 15, 'attribs._length'); -function visit835_193_1(result) { +function visit845_193_1(result) { _$jscoverage['/editor/styles.js'].branchData['193'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['187'][1].init(85, 41, '!fullMatch && !element._4eHasAttributes()'); -function visit834_187_1(result) { +function visit844_187_1(result) { _$jscoverage['/editor/styles.js'].branchData['187'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['185'][1].init(255, 35, 'element.nodeName() === this.element'); -function visit833_185_1(result) { +function visit843_185_1(result) { _$jscoverage['/editor/styles.js'].branchData['185'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['177'][1].init(17, 8, '!element'); -function visit832_177_1(result) { +function visit842_177_1(result) { _$jscoverage['/editor/styles.js'].branchData['177'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['169'][1].init(38, 31, 'self.type === KEST.STYLE_INLINE'); -function visit831_169_1(result) { +function visit841_169_1(result) { _$jscoverage['/editor/styles.js'].branchData['169'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['159'][1].init(90, 31, 'self.type === KEST.STYLE_OBJECT'); -function visit830_159_1(result) { +function visit840_159_1(result) { _$jscoverage['/editor/styles.js'].branchData['159'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['157'][1].init(92, 30, 'self.type === KEST.STYLE_BLOCK'); -function visit829_157_1(result) { +function visit839_157_1(result) { _$jscoverage['/editor/styles.js'].branchData['157'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['155'][1].init(35, 31, 'this.type === KEST.STYLE_INLINE'); -function visit828_155_1(result) { +function visit838_155_1(result) { _$jscoverage['/editor/styles.js'].branchData['155'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['134'][1].init(447, 17, 'i < ranges.length'); -function visit827_134_1(result) { +function visit837_134_1(result) { _$jscoverage['/editor/styles.js'].branchData['134'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['113'][2].init(300, 19, 'element === \'#text\''); -function visit826_113_2(result) { +function visit836_113_2(result) { _$jscoverage['/editor/styles.js'].branchData['113'][2].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['113'][1].init(300, 47, 'element === \'#text\' || blockElements[element]'); -function visit825_113_1(result) { +function visit835_113_1(result) { _$jscoverage['/editor/styles.js'].branchData['113'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['111'][1].init(217, 30, 'styleDefinition.element || \'*\''); -function visit824_111_1(result) { +function visit834_111_1(result) { _$jscoverage['/editor/styles.js'].branchData['111'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['106'][1].init(13, 15, 'variablesValues'); -function visit823_106_1(result) { +function visit833_106_1(result) { _$jscoverage['/editor/styles.js'].branchData['106'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].branchData['88'][1].init(17, 34, 'typeof (list[item]) === \'string\''); -function visit822_88_1(result) { +function visit832_88_1(result) { _$jscoverage['/editor/styles.js'].branchData['88'][1].ranCondition(result); return result; }_$jscoverage['/editor/styles.js'].lineData[10]++; @@ -2159,7 +2159,7 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/styles.js'].lineData[87]++; for (var item in list) { _$jscoverage['/editor/styles.js'].lineData[88]++; - if (visit822_88_1(typeof (list[item]) === 'string')) { + if (visit832_88_1(typeof (list[item]) === 'string')) { _$jscoverage['/editor/styles.js'].lineData[90]++; list[item] = list[item].replace(varRegex, function(match, varName) { _$jscoverage['/editor/styles.js'].functionData[3]++; @@ -2176,16 +2176,16 @@ KISSY.add(function(S, require) { function KEStyle(styleDefinition, variablesValues) { _$jscoverage['/editor/styles.js'].functionData[4]++; _$jscoverage['/editor/styles.js'].lineData[106]++; - if (visit823_106_1(variablesValues)) { + if (visit833_106_1(variablesValues)) { _$jscoverage['/editor/styles.js'].lineData[107]++; styleDefinition = S.clone(styleDefinition); _$jscoverage['/editor/styles.js'].lineData[108]++; replaceVariables(styleDefinition, variablesValues); } _$jscoverage['/editor/styles.js'].lineData[111]++; - var element = this.element = this.element = (visit824_111_1(styleDefinition.element || '*')).toLowerCase(); + var element = this.element = this.element = (visit834_111_1(styleDefinition.element || '*')).toLowerCase(); _$jscoverage['/editor/styles.js'].lineData[113]++; - this.type = this.type = (visit825_113_1(visit826_113_2(element === '#text') || blockElements[element])) ? KEST.STYLE_BLOCK : objectElements[element] ? KEST.STYLE_OBJECT : KEST.STYLE_INLINE; + this.type = this.type = (visit835_113_1(visit836_113_2(element === '#text') || blockElements[element])) ? KEST.STYLE_BLOCK : objectElements[element] ? KEST.STYLE_OBJECT : KEST.STYLE_INLINE; _$jscoverage['/editor/styles.js'].lineData[118]++; this._ = { 'definition': styleDefinition}; @@ -2202,7 +2202,7 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/styles.js'].lineData[133]++; var ranges = selection.getRanges(); _$jscoverage['/editor/styles.js'].lineData[134]++; - for (var i = 0; visit827_134_1(i < ranges.length); i++) { + for (var i = 0; visit837_134_1(i < ranges.length); i++) { _$jscoverage['/editor/styles.js'].lineData[136]++; func.call(self, ranges[i]); } @@ -2227,19 +2227,19 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/styles.js'].lineData[153]++; var self = this; _$jscoverage['/editor/styles.js'].lineData[154]++; - return (self.applyToRange = visit828_155_1(this.type === KEST.STYLE_INLINE) ? applyInlineStyle : visit829_157_1(self.type === KEST.STYLE_BLOCK) ? applyBlockStyle : visit830_159_1(self.type === KEST.STYLE_OBJECT) ? NULL : NULL).call(self, range); + return (self.applyToRange = visit838_155_1(this.type === KEST.STYLE_INLINE) ? applyInlineStyle : visit839_157_1(self.type === KEST.STYLE_BLOCK) ? applyBlockStyle : visit840_159_1(self.type === KEST.STYLE_OBJECT) ? NULL : NULL).call(self, range); }, removeFromRange: function(range) { _$jscoverage['/editor/styles.js'].functionData[9]++; _$jscoverage['/editor/styles.js'].lineData[167]++; var self = this; _$jscoverage['/editor/styles.js'].lineData[168]++; - return (self.removeFromRange = visit831_169_1(self.type === KEST.STYLE_INLINE) ? removeInlineStyle : NULL).call(self, range); + return (self.removeFromRange = visit841_169_1(self.type === KEST.STYLE_INLINE) ? removeInlineStyle : NULL).call(self, range); }, checkElementRemovable: function(element, fullMatch) { _$jscoverage['/editor/styles.js'].functionData[10]++; _$jscoverage['/editor/styles.js'].lineData[177]++; - if (visit832_177_1(!element)) { + if (visit842_177_1(!element)) { _$jscoverage['/editor/styles.js'].lineData[178]++; return FALSE; } @@ -2248,42 +2248,42 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/styles.js'].lineData[181]++; var def = this._.definition, attribs, styles; _$jscoverage['/editor/styles.js'].lineData[185]++; - if (visit833_185_1(element.nodeName() === this.element)) { + if (visit843_185_1(element.nodeName() === this.element)) { _$jscoverage['/editor/styles.js'].lineData[187]++; - if (visit834_187_1(!fullMatch && !element._4eHasAttributes())) { + if (visit844_187_1(!fullMatch && !element._4eHasAttributes())) { _$jscoverage['/editor/styles.js'].lineData[188]++; return TRUE; } _$jscoverage['/editor/styles.js'].lineData[191]++; attribs = getAttributesForComparison(def); _$jscoverage['/editor/styles.js'].lineData[193]++; - if (visit835_193_1(attribs._length)) { + if (visit845_193_1(attribs._length)) { _$jscoverage['/editor/styles.js'].lineData[194]++; for (attName in attribs) { _$jscoverage['/editor/styles.js'].lineData[196]++; - if (visit836_196_1(attName === '_length')) { + if (visit846_196_1(attName === '_length')) { _$jscoverage['/editor/styles.js'].lineData[197]++; continue; } _$jscoverage['/editor/styles.js'].lineData[200]++; - var elementAttr = visit837_200_1(element.attr(attName) || ''); + var elementAttr = visit847_200_1(element.attr(attName) || ''); _$jscoverage['/editor/styles.js'].lineData[201]++; - if (visit838_201_1(visit839_201_2(attName === 'style') ? compareCssText(attribs[attName], normalizeCssText(elementAttr, FALSE)) : visit840_204_1(attribs[attName] === elementAttr))) { + if (visit848_201_1(visit849_201_2(attName === 'style') ? compareCssText(attribs[attName], normalizeCssText(elementAttr, FALSE)) : visit850_204_1(attribs[attName] === elementAttr))) { _$jscoverage['/editor/styles.js'].lineData[205]++; - if (visit841_205_1(!fullMatch)) { + if (visit851_205_1(!fullMatch)) { _$jscoverage['/editor/styles.js'].lineData[206]++; return TRUE; } } else { _$jscoverage['/editor/styles.js'].lineData[209]++; - if (visit842_209_1(fullMatch)) { + if (visit852_209_1(fullMatch)) { _$jscoverage['/editor/styles.js'].lineData[210]++; return FALSE; } } } _$jscoverage['/editor/styles.js'].lineData[214]++; - if (visit843_214_1(fullMatch)) { + if (visit853_214_1(fullMatch)) { _$jscoverage['/editor/styles.js'].lineData[215]++; return TRUE; } @@ -2293,28 +2293,28 @@ KISSY.add(function(S, require) { } } _$jscoverage['/editor/styles.js'].lineData[224]++; - var overrides = getOverrides(this), i, override = visit844_226_1(overrides[element.nodeName()] || overrides['*']); + var overrides = getOverrides(this), i, override = visit854_226_1(overrides[element.nodeName()] || overrides['*']); _$jscoverage['/editor/styles.js'].lineData[228]++; - if (visit845_228_1(override)) { + if (visit855_228_1(override)) { _$jscoverage['/editor/styles.js'].lineData[230]++; - if (visit846_230_1(!(attribs = override.attributes) && !(styles = override.styles))) { + if (visit856_230_1(!(attribs = override.attributes) && !(styles = override.styles))) { _$jscoverage['/editor/styles.js'].lineData[231]++; return TRUE; } _$jscoverage['/editor/styles.js'].lineData[233]++; - if (visit847_233_1(attribs)) { + if (visit857_233_1(attribs)) { _$jscoverage['/editor/styles.js'].lineData[234]++; - for (i = 0; visit848_234_1(i < attribs.length); i++) { + for (i = 0; visit858_234_1(i < attribs.length); i++) { _$jscoverage['/editor/styles.js'].lineData[235]++; attName = attribs[i][0]; _$jscoverage['/editor/styles.js'].lineData[236]++; var actualAttrValue = element.attr(attName); _$jscoverage['/editor/styles.js'].lineData[237]++; - if (visit849_237_1(actualAttrValue)) { + if (visit859_237_1(actualAttrValue)) { _$jscoverage['/editor/styles.js'].lineData[238]++; var attValue = attribs[i][1]; _$jscoverage['/editor/styles.js'].lineData[245]++; - if (visit850_245_1(visit851_245_2(attValue === NULL) || visit852_246_1((visit853_246_2(visit854_246_3(typeof attValue === 'string') && visit855_246_4(actualAttrValue === attValue))) || visit856_247_1(attValue.test && attValue.test(actualAttrValue))))) { + if (visit860_245_1(visit861_245_2(attValue === NULL) || visit862_246_1((visit863_246_2(visit864_246_3(typeof attValue === 'string') && visit865_246_4(actualAttrValue === attValue))) || visit866_247_1(attValue.test && attValue.test(actualAttrValue))))) { _$jscoverage['/editor/styles.js'].lineData[248]++; return TRUE; } @@ -2322,19 +2322,19 @@ KISSY.add(function(S, require) { } } _$jscoverage['/editor/styles.js'].lineData[253]++; - if (visit857_253_1(styles)) { + if (visit867_253_1(styles)) { _$jscoverage['/editor/styles.js'].lineData[254]++; - for (i = 0; visit858_254_1(i < styles.length); i++) { + for (i = 0; visit868_254_1(i < styles.length); i++) { _$jscoverage['/editor/styles.js'].lineData[255]++; var styleName = styles[i][0]; _$jscoverage['/editor/styles.js'].lineData[256]++; var actualStyleValue = element.css(styleName); _$jscoverage['/editor/styles.js'].lineData[257]++; - if (visit859_257_1(actualStyleValue)) { + if (visit869_257_1(actualStyleValue)) { _$jscoverage['/editor/styles.js'].lineData[258]++; var styleValue = styles[i][1]; _$jscoverage['/editor/styles.js'].lineData[259]++; - if (visit860_259_1(visit861_259_2(styleValue === NULL) || visit862_259_3((visit863_259_4(visit864_259_5(typeof styleValue === 'string') && visit865_259_6(actualStyleValue === styleValue))) || visit866_260_1(styleValue.test && styleValue.test(actualStyleValue))))) { + if (visit870_259_1(visit871_259_2(styleValue === NULL) || visit872_259_3((visit873_259_4(visit874_259_5(typeof styleValue === 'string') && visit875_259_6(actualStyleValue === styleValue))) || visit876_260_1(styleValue.test && styleValue.test(actualStyleValue))))) { _$jscoverage['/editor/styles.js'].lineData[261]++; return TRUE; } @@ -2351,27 +2351,27 @@ KISSY.add(function(S, require) { switch (this.type) { case KEST.STYLE_BLOCK: _$jscoverage['/editor/styles.js'].lineData[277]++; - return this.checkElementRemovable(visit867_277_1(elementPath.block || elementPath.blockLimit), TRUE); + return this.checkElementRemovable(visit877_277_1(elementPath.block || elementPath.blockLimit), TRUE); case KEST.STYLE_OBJECT: case KEST.STYLE_INLINE: _$jscoverage['/editor/styles.js'].lineData[282]++; var elements = elementPath.elements; _$jscoverage['/editor/styles.js'].lineData[284]++; - for (var i = 0, element; visit868_284_1(i < elements.length); i++) { + for (var i = 0, element; visit878_284_1(i < elements.length); i++) { _$jscoverage['/editor/styles.js'].lineData[285]++; element = elements[i]; _$jscoverage['/editor/styles.js'].lineData[287]++; - if (visit869_287_1(visit870_287_2(this.type === KEST.STYLE_INLINE) && (visit871_287_3(Dom.equals(element, elementPath.block) || Dom.equals(element, elementPath.blockLimit))))) { + if (visit879_287_1(visit880_287_2(this.type === KEST.STYLE_INLINE) && (visit881_287_3(Dom.equals(element, elementPath.block) || Dom.equals(element, elementPath.blockLimit))))) { _$jscoverage['/editor/styles.js'].lineData[289]++; continue; } _$jscoverage['/editor/styles.js'].lineData[292]++; - if (visit872_292_1(visit873_292_2(this.type === KEST.STYLE_OBJECT) && !(element.nodeName() in objectElements))) { + if (visit882_292_1(visit883_292_2(this.type === KEST.STYLE_OBJECT) && !(element.nodeName() in objectElements))) { _$jscoverage['/editor/styles.js'].lineData[293]++; continue; } _$jscoverage['/editor/styles.js'].lineData[296]++; - if (visit874_296_1(this.checkElementRemovable(element, TRUE))) { + if (visit884_296_1(this.checkElementRemovable(element, TRUE))) { _$jscoverage['/editor/styles.js'].lineData[297]++; return TRUE; } @@ -2386,16 +2386,16 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/styles.js'].lineData[308]++; var stylesDef = styleDefinition._ST; _$jscoverage['/editor/styles.js'].lineData[309]++; - if (visit875_309_1(stylesDef)) { + if (visit885_309_1(stylesDef)) { _$jscoverage['/editor/styles.js'].lineData[310]++; return stylesDef; } _$jscoverage['/editor/styles.js'].lineData[313]++; stylesDef = styleDefinition.styles; _$jscoverage['/editor/styles.js'].lineData[316]++; - var stylesText = visit876_316_1((visit877_316_2(styleDefinition.attributes && styleDefinition.attributes.style)) || ''), specialStylesText = ''; + var stylesText = visit886_316_1((visit887_316_2(styleDefinition.attributes && styleDefinition.attributes.style)) || ''), specialStylesText = ''; _$jscoverage['/editor/styles.js'].lineData[319]++; - if (visit878_319_1(stylesText.length)) { + if (visit888_319_1(stylesText.length)) { _$jscoverage['/editor/styles.js'].lineData[320]++; stylesText = stylesText.replace(semicolonFixRegex, ';'); } @@ -2404,7 +2404,7 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/styles.js'].lineData[325]++; var styleVal = stylesDef[style], text = (style + ':' + styleVal).replace(semicolonFixRegex, ';'); _$jscoverage['/editor/styles.js'].lineData[329]++; - if (visit879_329_1(styleVal === 'inherit')) { + if (visit889_329_1(styleVal === 'inherit')) { _$jscoverage['/editor/styles.js'].lineData[330]++; specialStylesText += text; } else { @@ -2413,7 +2413,7 @@ KISSY.add(function(S, require) { } } _$jscoverage['/editor/styles.js'].lineData[340]++; - if (visit880_340_1(stylesText.length)) { + if (visit890_340_1(stylesText.length)) { _$jscoverage['/editor/styles.js'].lineData[341]++; stylesText = normalizeCssText(stylesText); } @@ -2430,14 +2430,14 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/styles.js'].lineData[352]++; var el, elementName = style.element; _$jscoverage['/editor/styles.js'].lineData[357]++; - if (visit881_357_1(elementName === '*')) { + if (visit891_357_1(elementName === '*')) { _$jscoverage['/editor/styles.js'].lineData[358]++; elementName = 'span'; } _$jscoverage['/editor/styles.js'].lineData[362]++; el = new Node(targetDocument.createElement(elementName)); _$jscoverage['/editor/styles.js'].lineData[365]++; - if (visit882_365_1(element)) { + if (visit892_365_1(element)) { _$jscoverage['/editor/styles.js'].lineData[366]++; element._4eCopyAttributes(el); } @@ -2450,7 +2450,7 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/styles.js'].lineData[373]++; var def = style._.definition, attributes = def.attributes, styles = KEStyle.getStyleText(def); _$jscoverage['/editor/styles.js'].lineData[378]++; - if (visit883_378_1(attributes)) { + if (visit893_378_1(attributes)) { _$jscoverage['/editor/styles.js'].lineData[379]++; for (var att in attributes) { _$jscoverage['/editor/styles.js'].lineData[380]++; @@ -2458,7 +2458,7 @@ KISSY.add(function(S, require) { } } _$jscoverage['/editor/styles.js'].lineData[386]++; - if (visit884_386_1(styles)) { + if (visit894_386_1(styles)) { _$jscoverage['/editor/styles.js'].lineData[387]++; el[0].style.cssText = styles; } @@ -2495,12 +2495,12 @@ KISSY.add(function(S, require) { str = str.replace(/(^]+_ke_bookmark.*?\/span>)|(]+_ke_bookmark.*?\/span>$)/gi, function(str, m1, m2) { _$jscoverage['/editor/styles.js'].functionData[17]++; _$jscoverage['/editor/styles.js'].lineData[420]++; - if (visit885_420_1(m1)) { + if (visit895_420_1(m1)) { _$jscoverage['/editor/styles.js'].lineData[421]++; headBookmark = m1; } _$jscoverage['/editor/styles.js'].lineData[423]++; - if (visit886_423_1(m2)) { + if (visit896_423_1(m2)) { _$jscoverage['/editor/styles.js'].lineData[424]++; tailBookmark = m2; } @@ -2524,7 +2524,7 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/styles.js'].lineData[449]++; preHTML = preHTML.replace(/]*>/gi, '\n'); _$jscoverage['/editor/styles.js'].lineData[452]++; - if (visit887_452_1(UA.ie)) { + if (visit897_452_1(UA.ie)) { _$jscoverage['/editor/styles.js'].lineData[453]++; var temp = block[0].ownerDocument.createElement('div'); _$jscoverage['/editor/styles.js'].lineData[454]++; @@ -2566,14 +2566,14 @@ KISSY.add(function(S, require) { function replaceBlock(block, newBlock) { _$jscoverage['/editor/styles.js'].functionData[22]++; _$jscoverage['/editor/styles.js'].lineData[491]++; - var newBlockIsPre = visit888_491_1(newBlock.nodeName === ('pre')), blockIsPre = visit889_492_1(block.nodeName === ('pre')), isToPre = visit890_493_1(newBlockIsPre && !blockIsPre), isFromPre = visit891_494_1(!newBlockIsPre && blockIsPre); + var newBlockIsPre = visit898_491_1(newBlock.nodeName === ('pre')), blockIsPre = visit899_492_1(block.nodeName === ('pre')), isToPre = visit900_493_1(newBlockIsPre && !blockIsPre), isFromPre = visit901_494_1(!newBlockIsPre && blockIsPre); _$jscoverage['/editor/styles.js'].lineData[496]++; - if (visit892_496_1(isToPre)) { + if (visit902_496_1(isToPre)) { _$jscoverage['/editor/styles.js'].lineData[497]++; newBlock = toPre(block, newBlock); } else { _$jscoverage['/editor/styles.js'].lineData[499]++; - if (visit893_499_1(isFromPre)) { + if (visit903_499_1(isFromPre)) { _$jscoverage['/editor/styles.js'].lineData[501]++; newBlock = fromPres(splitIntoPres(block), newBlock); } else { @@ -2584,7 +2584,7 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/styles.js'].lineData[507]++; block[0].parentNode.replaceChild(newBlock[0], block[0]); _$jscoverage['/editor/styles.js'].lineData[508]++; - if (visit894_508_1(newBlockIsPre)) { + if (visit904_508_1(newBlockIsPre)) { _$jscoverage['/editor/styles.js'].lineData[510]++; mergePre(newBlock); } @@ -2595,14 +2595,14 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/styles.js'].lineData[516]++; var previousBlock; _$jscoverage['/editor/styles.js'].lineData[517]++; - if (visit895_517_1(!(visit896_517_2((previousBlock = preBlock._4ePreviousSourceNode(TRUE, Dom.NodeType.ELEMENT_NODE)) && visit897_518_1(previousBlock.nodeName() === 'pre'))))) { + if (visit905_517_1(!(visit906_517_2((previousBlock = preBlock._4ePreviousSourceNode(TRUE, Dom.NodeType.ELEMENT_NODE)) && visit907_518_1(previousBlock.nodeName() === 'pre'))))) { _$jscoverage['/editor/styles.js'].lineData[519]++; return; } _$jscoverage['/editor/styles.js'].lineData[529]++; var mergedHTML = replace(previousBlock.html(), /\n$/, '') + '\n\n' + replace(preBlock.html(), /^\n/, ''); _$jscoverage['/editor/styles.js'].lineData[533]++; - if (visit898_533_1(UA.ie)) { + if (visit908_533_1(UA.ie)) { _$jscoverage['/editor/styles.js'].lineData[534]++; preBlock.outerHtml('
' + mergedHTML + '
'); } else { @@ -2618,7 +2618,7 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/styles.js'].lineData[546]++; var docFrag = newBlock[0].ownerDocument.createDocumentFragment(); _$jscoverage['/editor/styles.js'].lineData[547]++; - for (var i = 0; visit899_547_1(i < preHTMLs.length); i++) { + for (var i = 0; visit909_547_1(i < preHTMLs.length); i++) { _$jscoverage['/editor/styles.js'].lineData[548]++; var blockHTML = preHTMLs[i]; _$jscoverage['/editor/styles.js'].lineData[552]++; @@ -2631,12 +2631,12 @@ KISSY.add(function(S, require) { blockHTML = replace(blockHTML, /^[ \t]+|[ \t]+$/g, function(match, offset) { _$jscoverage['/editor/styles.js'].functionData[25]++; _$jscoverage['/editor/styles.js'].lineData[558]++; - if (visit900_558_1(match.length === 1)) { + if (visit910_558_1(match.length === 1)) { _$jscoverage['/editor/styles.js'].lineData[559]++; return ' '; } else { _$jscoverage['/editor/styles.js'].lineData[561]++; - if (visit901_561_1(!offset)) { + if (visit911_561_1(!offset)) { _$jscoverage['/editor/styles.js'].lineData[562]++; return new Array(match.length).join(' ') + ' '; } else { @@ -2669,7 +2669,7 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/styles.js'].lineData[585]++; var self = this, document = range.document; _$jscoverage['/editor/styles.js'].lineData[588]++; - if (visit902_588_1(range.collapsed)) { + if (visit912_588_1(range.collapsed)) { _$jscoverage['/editor/styles.js'].lineData[590]++; var collapsedElement = getElement(this, document, undefined); _$jscoverage['/editor/styles.js'].lineData[592]++; @@ -2682,7 +2682,7 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/styles.js'].lineData[597]++; var elementName = this.element, def = this._.definition, isUnknownElement, dtd = DTD[elementName]; _$jscoverage['/editor/styles.js'].lineData[602]++; - if (visit903_602_1(!dtd)) { + if (visit913_602_1(!dtd)) { _$jscoverage['/editor/styles.js'].lineData[603]++; isUnknownElement = TRUE; _$jscoverage['/editor/styles.js'].lineData[604]++; @@ -2697,31 +2697,31 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/styles.js'].lineData[616]++; var boundaryNodes = range.createBookmark(), firstNode = boundaryNodes.startNode, lastNode = boundaryNodes.endNode, currentNode = firstNode, styleRange; _$jscoverage['/editor/styles.js'].lineData[622]++; - while (visit904_622_1(currentNode && currentNode[0])) { + while (visit914_622_1(currentNode && currentNode[0])) { _$jscoverage['/editor/styles.js'].lineData[623]++; var applyStyle = FALSE; _$jscoverage['/editor/styles.js'].lineData[625]++; - if (visit905_625_1(Dom.equals(currentNode, lastNode))) { + if (visit915_625_1(Dom.equals(currentNode, lastNode))) { _$jscoverage['/editor/styles.js'].lineData[626]++; currentNode = NULL; _$jscoverage['/editor/styles.js'].lineData[627]++; applyStyle = TRUE; } else { _$jscoverage['/editor/styles.js'].lineData[630]++; - var nodeType = currentNode[0].nodeType, nodeName = visit906_631_1(nodeType === Dom.NodeType.ELEMENT_NODE) ? currentNode.nodeName() : NULL; + var nodeType = currentNode[0].nodeType, nodeName = visit916_631_1(nodeType === Dom.NodeType.ELEMENT_NODE) ? currentNode.nodeName() : NULL; _$jscoverage['/editor/styles.js'].lineData[634]++; - if (visit907_634_1(nodeName && currentNode.attr('_ke_bookmark'))) { + if (visit917_634_1(nodeName && currentNode.attr('_ke_bookmark'))) { _$jscoverage['/editor/styles.js'].lineData[635]++; currentNode = currentNode._4eNextSourceNode(TRUE); _$jscoverage['/editor/styles.js'].lineData[636]++; continue; } _$jscoverage['/editor/styles.js'].lineData[640]++; - if (visit908_640_1(!nodeName || (visit909_641_1(dtd[nodeName] && visit910_642_1(visit911_642_2((currentNode._4ePosition(lastNode) | (KEP.POSITION_PRECEDING | KEP.POSITION_IDENTICAL | KEP.POSITION_IS_CONTAINED)) === (KEP.POSITION_PRECEDING + KEP.POSITION_IDENTICAL + KEP.POSITION_IS_CONTAINED)) && (visit912_648_1(!def.childRule || def.childRule(currentNode)))))))) { + if (visit918_640_1(!nodeName || (visit919_641_1(dtd[nodeName] && visit920_642_1(visit921_642_2((currentNode._4ePosition(lastNode) | (KEP.POSITION_PRECEDING | KEP.POSITION_IDENTICAL | KEP.POSITION_IS_CONTAINED)) === (KEP.POSITION_PRECEDING + KEP.POSITION_IDENTICAL + KEP.POSITION_IS_CONTAINED)) && (visit922_648_1(!def.childRule || def.childRule(currentNode)))))))) { _$jscoverage['/editor/styles.js'].lineData[650]++; var currentParent = currentNode.parent(); _$jscoverage['/editor/styles.js'].lineData[661]++; - if (visit913_661_1(currentParent && visit914_662_1(visit915_662_2(elementName === 'a') && visit916_663_1(currentParent.nodeName() === elementName)))) { + if (visit923_661_1(currentParent && visit924_662_1(visit925_662_2(elementName === 'a') && visit926_663_1(currentParent.nodeName() === elementName)))) { _$jscoverage['/editor/styles.js'].lineData[664]++; var tmpANode = getElement(self, document, undefined); _$jscoverage['/editor/styles.js'].lineData[665]++; @@ -2732,20 +2732,20 @@ KISSY.add(function(S, require) { tmpANode._4eMergeSiblings(); } else { _$jscoverage['/editor/styles.js'].lineData[672]++; - if (visit917_672_1(currentParent && visit918_672_2(currentParent[0] && visit919_672_3((visit920_673_1((visit921_672_4(DTD[currentParent.nodeName()] || DTD.span))[elementName] || isUnknownElement)) && (visit922_674_1(!def.parentRule || def.parentRule(currentParent))))))) { + if (visit927_672_1(currentParent && visit928_672_2(currentParent[0] && visit929_672_3((visit930_673_1((visit931_672_4(DTD[currentParent.nodeName()] || DTD.span))[elementName] || isUnknownElement)) && (visit932_674_1(!def.parentRule || def.parentRule(currentParent))))))) { _$jscoverage['/editor/styles.js'].lineData[679]++; - if (visit923_679_1(!styleRange && (visit924_680_1(!nodeName || visit925_680_2(!DTD.$removeEmpty[nodeName] || visit926_680_3((currentNode._4ePosition(lastNode) | (KEP.POSITION_PRECEDING | KEP.POSITION_IDENTICAL | KEP.POSITION_IS_CONTAINED)) === (KEP.POSITION_PRECEDING + KEP.POSITION_IDENTICAL + KEP.POSITION_IS_CONTAINED))))))) { + if (visit933_679_1(!styleRange && (visit934_680_1(!nodeName || visit935_680_2(!DTD.$removeEmpty[nodeName] || visit936_680_3((currentNode._4ePosition(lastNode) | (KEP.POSITION_PRECEDING | KEP.POSITION_IDENTICAL | KEP.POSITION_IS_CONTAINED)) === (KEP.POSITION_PRECEDING + KEP.POSITION_IDENTICAL + KEP.POSITION_IS_CONTAINED))))))) { _$jscoverage['/editor/styles.js'].lineData[688]++; styleRange = new KERange(document); _$jscoverage['/editor/styles.js'].lineData[689]++; styleRange.setStartBefore(currentNode); } _$jscoverage['/editor/styles.js'].lineData[694]++; - if (visit927_694_1(visit928_694_2(nodeType === Dom.NodeType.TEXT_NODE) || (visit929_695_1(visit930_695_2(nodeType === Dom.NodeType.ELEMENT_NODE) && !currentNode[0].childNodes.length)))) { + if (visit937_694_1(visit938_694_2(nodeType === Dom.NodeType.TEXT_NODE) || (visit939_695_1(visit940_695_2(nodeType === Dom.NodeType.ELEMENT_NODE) && !currentNode[0].childNodes.length)))) { _$jscoverage['/editor/styles.js'].lineData[696]++; var includedNode = currentNode, parentNode = null; _$jscoverage['/editor/styles.js'].lineData[709]++; - while (visit931_710_1((applyStyle = !includedNode.next(notBookmark, 1)) && visit932_711_1((visit933_711_2((parentNode = includedNode.parent()) && dtd[parentNode.nodeName()])) && visit934_713_1(visit935_713_2((parentNode._4ePosition(firstNode) | KEP.POSITION_FOLLOWING | KEP.POSITION_IDENTICAL | KEP.POSITION_IS_CONTAINED) === (KEP.POSITION_FOLLOWING + KEP.POSITION_IDENTICAL + KEP.POSITION_IS_CONTAINED)) && (visit936_718_1(!def.childRule || def.childRule(parentNode))))))) { + while (visit941_710_1((applyStyle = !includedNode.next(notBookmark, 1)) && visit942_711_1((visit943_711_2((parentNode = includedNode.parent()) && dtd[parentNode.nodeName()])) && visit944_713_1(visit945_713_2((parentNode._4ePosition(firstNode) | KEP.POSITION_FOLLOWING | KEP.POSITION_IDENTICAL | KEP.POSITION_IS_CONTAINED) === (KEP.POSITION_FOLLOWING + KEP.POSITION_IDENTICAL + KEP.POSITION_IS_CONTAINED)) && (visit946_718_1(!def.childRule || def.childRule(parentNode))))))) { _$jscoverage['/editor/styles.js'].lineData[719]++; includedNode = parentNode; } @@ -2765,7 +2765,7 @@ KISSY.add(function(S, require) { currentNode = currentNode._4eNextSourceNode(); } _$jscoverage['/editor/styles.js'].lineData[739]++; - if (visit937_739_1(applyStyle && visit938_739_2(styleRange && !styleRange.collapsed))) { + if (visit947_739_1(applyStyle && visit948_739_2(styleRange && !styleRange.collapsed))) { _$jscoverage['/editor/styles.js'].lineData[741]++; var styleNode = getElement(self, document, undefined), parent = styleRange.getCommonAncestor(); _$jscoverage['/editor/styles.js'].lineData[747]++; @@ -2777,18 +2777,18 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/styles.js'].lineData[756]++; var attName, styleName = null, value; _$jscoverage['/editor/styles.js'].lineData[760]++; - while (visit939_760_1(styleNode && visit940_760_2(parent && visit941_760_3(styleNode[0] && parent[0])))) { + while (visit949_760_1(styleNode && visit950_760_2(parent && visit951_760_3(styleNode[0] && parent[0])))) { _$jscoverage['/editor/styles.js'].lineData[761]++; - if (visit942_761_1(parent.nodeName() === elementName)) { + if (visit952_761_1(parent.nodeName() === elementName)) { _$jscoverage['/editor/styles.js'].lineData[762]++; for (attName in def.attributes) { _$jscoverage['/editor/styles.js'].lineData[764]++; - if (visit943_764_1(removeList.blockedAttrs[attName] || !(value = parent.attr(styleName)))) { + if (visit953_764_1(removeList.blockedAttrs[attName] || !(value = parent.attr(styleName)))) { _$jscoverage['/editor/styles.js'].lineData[765]++; continue; } _$jscoverage['/editor/styles.js'].lineData[768]++; - if (visit944_768_1(styleNode.attr(attName) === value)) { + if (visit954_768_1(styleNode.attr(attName) === value)) { _$jscoverage['/editor/styles.js'].lineData[770]++; styleNode.removeAttr(attName); } else { @@ -2799,12 +2799,12 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/styles.js'].lineData[780]++; for (styleName in def.styles) { _$jscoverage['/editor/styles.js'].lineData[782]++; - if (visit945_782_1(removeList.blockedStyles[styleName] || !(value = parent.style(styleName)))) { + if (visit955_782_1(removeList.blockedStyles[styleName] || !(value = parent.style(styleName)))) { _$jscoverage['/editor/styles.js'].lineData[783]++; continue; } _$jscoverage['/editor/styles.js'].lineData[786]++; - if (visit946_786_1(styleNode.style(styleName) === value)) { + if (visit956_786_1(styleNode.style(styleName) === value)) { _$jscoverage['/editor/styles.js'].lineData[788]++; styleNode.style(styleName, ''); } else { @@ -2813,7 +2813,7 @@ KISSY.add(function(S, require) { } } _$jscoverage['/editor/styles.js'].lineData[795]++; - if (visit947_795_1(!styleNode._4eHasAttributes())) { + if (visit957_795_1(!styleNode._4eHasAttributes())) { _$jscoverage['/editor/styles.js'].lineData[796]++; styleNode = NULL; _$jscoverage['/editor/styles.js'].lineData[797]++; @@ -2824,7 +2824,7 @@ KISSY.add(function(S, require) { parent = parent.parent(); } _$jscoverage['/editor/styles.js'].lineData[804]++; - if (visit948_804_1(styleNode)) { + if (visit958_804_1(styleNode)) { _$jscoverage['/editor/styles.js'].lineData[806]++; styleNode[0].appendChild(styleRange.extractContents()); _$jscoverage['/editor/styles.js'].lineData[810]++; @@ -2834,7 +2834,7 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/styles.js'].lineData[817]++; styleNode._4eMergeSiblings(); _$jscoverage['/editor/styles.js'].lineData[825]++; - if (visit949_825_1(!UA.ie)) { + if (visit959_825_1(!UA.ie)) { _$jscoverage['/editor/styles.js'].lineData[826]++; styleNode[0].normalize(); } @@ -2871,22 +2871,22 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/styles.js'].lineData[868]++; var bookmark = range.createBookmark(), startNode = bookmark.startNode; _$jscoverage['/editor/styles.js'].lineData[871]++; - if (visit950_871_1(range.collapsed)) { + if (visit960_871_1(range.collapsed)) { _$jscoverage['/editor/styles.js'].lineData[873]++; var startPath = new ElementPath(startNode.parent()), boundaryElement; _$jscoverage['/editor/styles.js'].lineData[878]++; - for (var i = 0, element; visit951_878_1(visit952_878_2(i < startPath.elements.length) && (element = startPath.elements[i])); i++) { + for (var i = 0, element; visit961_878_1(visit962_878_2(i < startPath.elements.length) && (element = startPath.elements[i])); i++) { _$jscoverage['/editor/styles.js'].lineData[886]++; - if (visit953_886_1(visit954_886_2(element === startPath.block) || visit955_886_3(element === startPath.blockLimit))) { + if (visit963_886_1(visit964_886_2(element === startPath.block) || visit965_886_3(element === startPath.blockLimit))) { _$jscoverage['/editor/styles.js'].lineData[887]++; break; } _$jscoverage['/editor/styles.js'].lineData[889]++; - if (visit956_889_1(this.checkElementRemovable(element))) { + if (visit966_889_1(this.checkElementRemovable(element))) { _$jscoverage['/editor/styles.js'].lineData[890]++; - var endOfElement = range.checkBoundaryOfElement(element, KER.END), startOfElement = visit957_891_1(!endOfElement && range.checkBoundaryOfElement(element, KER.START)); + var endOfElement = range.checkBoundaryOfElement(element, KER.END), startOfElement = visit967_891_1(!endOfElement && range.checkBoundaryOfElement(element, KER.START)); _$jscoverage['/editor/styles.js'].lineData[893]++; - if (visit958_893_1(startOfElement || endOfElement)) { + if (visit968_893_1(startOfElement || endOfElement)) { _$jscoverage['/editor/styles.js'].lineData[894]++; boundaryElement = element; _$jscoverage['/editor/styles.js'].lineData[895]++; @@ -2895,11 +2895,11 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/styles.js'].lineData[903]++; element._4eMergeSiblings(); _$jscoverage['/editor/styles.js'].lineData[907]++; - if (visit959_907_1(element.nodeName() !== this.element)) { + if (visit969_907_1(element.nodeName() !== this.element)) { _$jscoverage['/editor/styles.js'].lineData[908]++; var _overrides = getOverrides(this); _$jscoverage['/editor/styles.js'].lineData[909]++; - removeOverrides(element, visit960_910_1(_overrides[element.nodeName()] || _overrides['*'])); + removeOverrides(element, visit970_910_1(_overrides[element.nodeName()] || _overrides['*'])); } else { _$jscoverage['/editor/styles.js'].lineData[912]++; removeFromElement(this, element); @@ -2908,7 +2908,7 @@ KISSY.add(function(S, require) { } } _$jscoverage['/editor/styles.js'].lineData[922]++; - if (visit961_922_1(boundaryElement)) { + if (visit971_922_1(boundaryElement)) { _$jscoverage['/editor/styles.js'].lineData[923]++; var clonedElement = startNode; _$jscoverage['/editor/styles.js'].lineData[924]++; @@ -2916,12 +2916,12 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/styles.js'].lineData[925]++; var newElement = startPath.elements[i]; _$jscoverage['/editor/styles.js'].lineData[926]++; - if (visit962_926_1(newElement.equals(boundaryElement))) { + if (visit972_926_1(newElement.equals(boundaryElement))) { _$jscoverage['/editor/styles.js'].lineData[927]++; break; } else { _$jscoverage['/editor/styles.js'].lineData[930]++; - if (visit963_930_1(newElement.match)) { + if (visit973_930_1(newElement.match)) { _$jscoverage['/editor/styles.js'].lineData[931]++; continue; } else { @@ -2935,16 +2935,16 @@ KISSY.add(function(S, require) { clonedElement = newElement; } _$jscoverage['/editor/styles.js'].lineData[943]++; - clonedElement[visit964_942_1(boundaryElement.match === 'start') ? 'insertBefore' : 'insertAfter'](boundaryElement); + clonedElement[visit974_942_1(boundaryElement.match === 'start') ? 'insertBefore' : 'insertAfter'](boundaryElement); _$jscoverage['/editor/styles.js'].lineData[946]++; var tmp = boundaryElement.html(); _$jscoverage['/editor/styles.js'].lineData[947]++; - if (visit965_947_1(!tmp || visit966_949_1(tmp === '\u200b'))) { + if (visit975_947_1(!tmp || visit976_949_1(tmp === '\u200b'))) { _$jscoverage['/editor/styles.js'].lineData[950]++; boundaryElement.remove(); } else { _$jscoverage['/editor/styles.js'].lineData[953]++; - if (visit967_953_1(UA.webkit)) { + if (visit977_953_1(UA.webkit)) { _$jscoverage['/editor/styles.js'].lineData[954]++; $(range.document.createTextNode('\u200b')).insertBefore(clonedElement); } @@ -2959,42 +2959,42 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/styles.js'].lineData[970]++; var startPath = new ElementPath(startNode.parent()), endPath = new ElementPath(endNode.parent()), breakStart = NULL, element, breakEnd = NULL; _$jscoverage['/editor/styles.js'].lineData[975]++; - for (var i = 0; visit968_975_1(i < startPath.elements.length); i++) { + for (var i = 0; visit978_975_1(i < startPath.elements.length); i++) { _$jscoverage['/editor/styles.js'].lineData[976]++; element = startPath.elements[i]; _$jscoverage['/editor/styles.js'].lineData[978]++; - if (visit969_978_1(visit970_978_2(element === startPath.block) || visit971_979_1(element === startPath.blockLimit))) { + if (visit979_978_1(visit980_978_2(element === startPath.block) || visit981_979_1(element === startPath.blockLimit))) { _$jscoverage['/editor/styles.js'].lineData[980]++; break; } _$jscoverage['/editor/styles.js'].lineData[983]++; - if (visit972_983_1(me.checkElementRemovable(element))) { + if (visit982_983_1(me.checkElementRemovable(element))) { _$jscoverage['/editor/styles.js'].lineData[984]++; breakStart = element; } } _$jscoverage['/editor/styles.js'].lineData[987]++; - for (i = 0; visit973_987_1(i < endPath.elements.length); i++) { + for (i = 0; visit983_987_1(i < endPath.elements.length); i++) { _$jscoverage['/editor/styles.js'].lineData[988]++; element = endPath.elements[i]; _$jscoverage['/editor/styles.js'].lineData[990]++; - if (visit974_990_1(visit975_990_2(element === endPath.block) || visit976_991_1(element === endPath.blockLimit))) { + if (visit984_990_1(visit985_990_2(element === endPath.block) || visit986_991_1(element === endPath.blockLimit))) { _$jscoverage['/editor/styles.js'].lineData[992]++; break; } _$jscoverage['/editor/styles.js'].lineData[995]++; - if (visit977_995_1(me.checkElementRemovable(element))) { + if (visit987_995_1(me.checkElementRemovable(element))) { _$jscoverage['/editor/styles.js'].lineData[996]++; breakEnd = element; } } _$jscoverage['/editor/styles.js'].lineData[1000]++; - if (visit978_1000_1(breakEnd)) { + if (visit988_1000_1(breakEnd)) { _$jscoverage['/editor/styles.js'].lineData[1001]++; endNode._4eBreakParent(breakEnd); } _$jscoverage['/editor/styles.js'].lineData[1003]++; - if (visit979_1003_1(breakStart)) { + if (visit989_1003_1(breakStart)) { _$jscoverage['/editor/styles.js'].lineData[1004]++; startNode._4eBreakParent(breakStart); } @@ -3004,23 +3004,23 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/styles.js'].lineData[1011]++; var currentNode = new Node(startNode[0].nextSibling); _$jscoverage['/editor/styles.js'].lineData[1012]++; - while (visit980_1012_1(currentNode[0] !== endNode[0])) { + while (visit990_1012_1(currentNode[0] !== endNode[0])) { _$jscoverage['/editor/styles.js'].lineData[1017]++; var nextNode = currentNode._4eNextSourceNode(); _$jscoverage['/editor/styles.js'].lineData[1018]++; - if (visit981_1018_1(currentNode[0] && visit982_1019_1(visit983_1019_2(currentNode[0].nodeType === Dom.NodeType.ELEMENT_NODE) && this.checkElementRemovable(currentNode)))) { + if (visit991_1018_1(currentNode[0] && visit992_1019_1(visit993_1019_2(currentNode[0].nodeType === Dom.NodeType.ELEMENT_NODE) && this.checkElementRemovable(currentNode)))) { _$jscoverage['/editor/styles.js'].lineData[1022]++; - if (visit984_1022_1(currentNode.nodeName() === this.element)) { + if (visit994_1022_1(currentNode.nodeName() === this.element)) { _$jscoverage['/editor/styles.js'].lineData[1023]++; removeFromElement(this, currentNode); } else { _$jscoverage['/editor/styles.js'].lineData[1026]++; var overrides = getOverrides(this); _$jscoverage['/editor/styles.js'].lineData[1027]++; - removeOverrides(currentNode, visit985_1028_1(overrides[currentNode.nodeName()] || overrides['*'])); + removeOverrides(currentNode, visit995_1028_1(overrides[currentNode.nodeName()] || overrides['*'])); } _$jscoverage['/editor/styles.js'].lineData[1038]++; - if (visit986_1038_1(visit987_1038_2(nextNode[0].nodeType === Dom.NodeType.ELEMENT_NODE) && nextNode.contains(startNode))) { + if (visit996_1038_1(visit997_1038_2(nextNode[0].nodeType === Dom.NodeType.ELEMENT_NODE) && nextNode.contains(startNode))) { _$jscoverage['/editor/styles.js'].lineData[1040]++; breakNodes(); _$jscoverage['/editor/styles.js'].lineData[1041]++; @@ -3054,19 +3054,19 @@ KISSY.add(function(S, require) { function compareCssText(source, target) { _$jscoverage['/editor/styles.js'].functionData[32]++; _$jscoverage['/editor/styles.js'].lineData[1063]++; - if (visit988_1063_1(typeof source === 'string')) { + if (visit998_1063_1(typeof source === 'string')) { _$jscoverage['/editor/styles.js'].lineData[1064]++; source = parseStyleText(source); } _$jscoverage['/editor/styles.js'].lineData[1066]++; - if (visit989_1066_1(target === 'string')) { + if (visit999_1066_1(typeof target === 'string')) { _$jscoverage['/editor/styles.js'].lineData[1067]++; target = parseStyleText(target); } _$jscoverage['/editor/styles.js'].lineData[1069]++; for (var name in source) { _$jscoverage['/editor/styles.js'].lineData[1073]++; - if (visit990_1073_1(!(visit991_1073_2(name in target && (visit992_1074_1(visit993_1074_2(target[name] === source[name]) || visit994_1075_1(visit995_1075_2(source[name] === 'inherit') || visit996_1075_3(target[name] === 'inherit')))))))) { + if (visit1000_1073_1(!(visit1001_1073_2(name in target && (visit1002_1074_1(visit1003_1074_2(target[name] === source[name]) || visit1004_1075_1(visit1005_1075_2(source[name] === 'inherit') || visit1006_1075_3(target[name] === 'inherit')))))))) { _$jscoverage['/editor/styles.js'].lineData[1076]++; return FALSE; } @@ -3080,13 +3080,13 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/styles.js'].lineData[1084]++; var styleText = ''; _$jscoverage['/editor/styles.js'].lineData[1085]++; - if (visit997_1085_1(nativeNormalize !== FALSE)) { + if (visit1007_1085_1(nativeNormalize !== FALSE)) { _$jscoverage['/editor/styles.js'].lineData[1088]++; var temp = document.createElement('span'); _$jscoverage['/editor/styles.js'].lineData[1089]++; temp.style.cssText = unParsedCssText; _$jscoverage['/editor/styles.js'].lineData[1091]++; - styleText = visit998_1091_1(temp.style.cssText || ''); + styleText = visit1008_1091_1(temp.style.cssText || ''); } else { _$jscoverage['/editor/styles.js'].lineData[1094]++; styleText = unParsedCssText; @@ -3100,7 +3100,7 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/styles.js'].lineData[1111]++; var attribs = styleDefinition._AC; _$jscoverage['/editor/styles.js'].lineData[1112]++; - if (visit999_1112_1(attribs)) { + if (visit1009_1112_1(attribs)) { _$jscoverage['/editor/styles.js'].lineData[1113]++; return attribs; } @@ -3109,7 +3109,7 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/styles.js'].lineData[1117]++; var length = 0, styleAttribs = styleDefinition.attributes; _$jscoverage['/editor/styles.js'].lineData[1121]++; - if (visit1000_1121_1(styleAttribs)) { + if (visit1010_1121_1(styleAttribs)) { _$jscoverage['/editor/styles.js'].lineData[1122]++; for (var styleAtt in styleAttribs) { _$jscoverage['/editor/styles.js'].lineData[1124]++; @@ -3121,9 +3121,9 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/styles.js'].lineData[1131]++; var styleText = KEStyle.getStyleText(styleDefinition); _$jscoverage['/editor/styles.js'].lineData[1132]++; - if (visit1001_1132_1(styleText)) { + if (visit1011_1132_1(styleText)) { _$jscoverage['/editor/styles.js'].lineData[1133]++; - if (visit1002_1133_1(!attribs.style)) { + if (visit1012_1133_1(!attribs.style)) { _$jscoverage['/editor/styles.js'].lineData[1134]++; length++; } @@ -3141,21 +3141,21 @@ KISSY.add(function(S, require) { function getOverrides(style) { _$jscoverage['/editor/styles.js'].functionData[35]++; _$jscoverage['/editor/styles.js'].lineData[1155]++; - if (visit1003_1155_1(style._.overrides)) { + if (visit1013_1155_1(style._.overrides)) { _$jscoverage['/editor/styles.js'].lineData[1156]++; return style._.overrides; } _$jscoverage['/editor/styles.js'].lineData[1159]++; var overrides = (style._.overrides = {}), definition = style._.definition.overrides; _$jscoverage['/editor/styles.js'].lineData[1162]++; - if (visit1004_1162_1(definition)) { + if (visit1014_1162_1(definition)) { _$jscoverage['/editor/styles.js'].lineData[1165]++; - if (visit1005_1165_1(!S.isArray(definition))) { + if (visit1015_1165_1(!S.isArray(definition))) { _$jscoverage['/editor/styles.js'].lineData[1166]++; definition = [definition]; } _$jscoverage['/editor/styles.js'].lineData[1170]++; - for (var i = 0; visit1006_1170_1(i < definition.length); i++) { + for (var i = 0; visit1016_1170_1(i < definition.length); i++) { _$jscoverage['/editor/styles.js'].lineData[1171]++; var override = definition[i]; _$jscoverage['/editor/styles.js'].lineData[1172]++; @@ -3165,7 +3165,7 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/styles.js'].lineData[1174]++; var attrs, styles; _$jscoverage['/editor/styles.js'].lineData[1177]++; - if (visit1007_1177_1(typeof override === 'string')) { + if (visit1017_1177_1(typeof override === 'string')) { _$jscoverage['/editor/styles.js'].lineData[1178]++; elementName = override.toLowerCase(); } else { @@ -3177,11 +3177,11 @@ KISSY.add(function(S, require) { styles = override.styles; } _$jscoverage['/editor/styles.js'].lineData[1192]++; - overrideEl = visit1008_1192_1(overrides[elementName] || (overrides[elementName] = {})); + overrideEl = visit1018_1192_1(overrides[elementName] || (overrides[elementName] = {})); _$jscoverage['/editor/styles.js'].lineData[1195]++; - if (visit1009_1195_1(attrs)) { + if (visit1019_1195_1(attrs)) { _$jscoverage['/editor/styles.js'].lineData[1199]++; - var overrideAttrs = (overrideEl.attributes = visit1010_1200_1(overrideEl.attributes || [])); + var overrideAttrs = (overrideEl.attributes = visit1020_1200_1(overrideEl.attributes || [])); _$jscoverage['/editor/styles.js'].lineData[1201]++; for (var attName in attrs) { _$jscoverage['/editor/styles.js'].lineData[1205]++; @@ -3189,9 +3189,9 @@ KISSY.add(function(S, require) { } } _$jscoverage['/editor/styles.js'].lineData[1210]++; - if (visit1011_1210_1(styles)) { + if (visit1021_1210_1(styles)) { _$jscoverage['/editor/styles.js'].lineData[1214]++; - var overrideStyles = (overrideEl.styles = visit1012_1215_1(overrideEl.styles || [])); + var overrideStyles = (overrideEl.styles = visit1022_1215_1(overrideEl.styles || [])); _$jscoverage['/editor/styles.js'].lineData[1216]++; for (var styleName in styles) { _$jscoverage['/editor/styles.js'].lineData[1220]++; @@ -3207,28 +3207,28 @@ KISSY.add(function(S, require) { function removeFromElement(style, element) { _$jscoverage['/editor/styles.js'].functionData[36]++; _$jscoverage['/editor/styles.js'].lineData[1231]++; - var def = style._.definition, overrides = getOverrides(style), attributes = S.merge(def.attributes, (visit1013_1234_1(overrides[element.nodeName()] || visit1014_1234_2(overrides['*'] || {}))).attributes), styles = S.merge(def.styles, (visit1015_1236_1(overrides[element.nodeName()] || visit1016_1236_2(overrides['*'] || {}))).styles), removeEmpty = visit1017_1238_1(S.isEmptyObject(attributes) && S.isEmptyObject(styles)); + var def = style._.definition, overrides = getOverrides(style), attributes = S.merge(def.attributes, (visit1023_1234_1(overrides[element.nodeName()] || visit1024_1234_2(overrides['*'] || {}))).attributes), styles = S.merge(def.styles, (visit1025_1236_1(overrides[element.nodeName()] || visit1026_1236_2(overrides['*'] || {}))).styles), removeEmpty = visit1027_1238_1(S.isEmptyObject(attributes) && S.isEmptyObject(styles)); _$jscoverage['/editor/styles.js'].lineData[1242]++; for (var attName in attributes) { _$jscoverage['/editor/styles.js'].lineData[1245]++; - if (visit1018_1245_1((visit1019_1245_2(visit1020_1245_3(attName === 'class') || style._.definition.fullMatch)) && visit1021_1245_4(element.attr(attName) !== normalizeProperty(attName, attributes[attName])))) { + if (visit1028_1245_1((visit1029_1245_2(visit1030_1245_3(attName === 'class') || style._.definition.fullMatch)) && visit1031_1245_4(element.attr(attName) !== normalizeProperty(attName, attributes[attName])))) { _$jscoverage['/editor/styles.js'].lineData[1247]++; continue; } _$jscoverage['/editor/styles.js'].lineData[1249]++; - removeEmpty = visit1022_1249_1(removeEmpty || !!element.hasAttr(attName)); + removeEmpty = visit1032_1249_1(removeEmpty || !!element.hasAttr(attName)); _$jscoverage['/editor/styles.js'].lineData[1250]++; element.removeAttr(attName); } _$jscoverage['/editor/styles.js'].lineData[1254]++; for (var styleName in styles) { _$jscoverage['/editor/styles.js'].lineData[1257]++; - if (visit1023_1257_1(style._.definition.fullMatch && visit1024_1258_1(element.style(styleName) !== normalizeProperty(styleName, styles[styleName], TRUE)))) { + if (visit1033_1257_1(style._.definition.fullMatch && visit1034_1258_1(element.style(styleName) !== normalizeProperty(styleName, styles[styleName], TRUE)))) { _$jscoverage['/editor/styles.js'].lineData[1259]++; continue; } _$jscoverage['/editor/styles.js'].lineData[1262]++; - removeEmpty = visit1025_1262_1(removeEmpty || !!element.style(styleName)); + removeEmpty = visit1035_1262_1(removeEmpty || !!element.style(styleName)); _$jscoverage['/editor/styles.js'].lineData[1264]++; element.style(styleName, ''); } @@ -3251,18 +3251,18 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/styles.js'].lineData[1281]++; var overrides = getOverrides(style), innerElements = element.all(style.element); _$jscoverage['/editor/styles.js'].lineData[1287]++; - for (var i = innerElements.length; visit1026_1287_1(--i >= 0); ) { + for (var i = innerElements.length; visit1036_1287_1(--i >= 0); ) { _$jscoverage['/editor/styles.js'].lineData[1288]++; removeFromElement(style, new Node(innerElements[i])); } _$jscoverage['/editor/styles.js'].lineData[1293]++; for (var overrideElement in overrides) { _$jscoverage['/editor/styles.js'].lineData[1295]++; - if (visit1027_1295_1(overrideElement !== style.element)) { + if (visit1037_1295_1(overrideElement !== style.element)) { _$jscoverage['/editor/styles.js'].lineData[1296]++; innerElements = element.all(overrideElement); _$jscoverage['/editor/styles.js'].lineData[1297]++; - for (i = innerElements.length - 1; visit1028_1297_1(i >= 0); i--) { + for (i = innerElements.length - 1; visit1038_1297_1(i >= 0); i--) { _$jscoverage['/editor/styles.js'].lineData[1298]++; var innerElement = new Node(innerElements[i]); _$jscoverage['/editor/styles.js'].lineData[1299]++; @@ -3275,11 +3275,11 @@ KISSY.add(function(S, require) { function removeOverrides(element, overrides) { _$jscoverage['/editor/styles.js'].functionData[39]++; _$jscoverage['/editor/styles.js'].lineData[1313]++; - var i, actualAttrValue, attributes = visit1029_1314_1(overrides && overrides.attributes); + var i, actualAttrValue, attributes = visit1039_1314_1(overrides && overrides.attributes); _$jscoverage['/editor/styles.js'].lineData[1316]++; - if (visit1030_1316_1(attributes)) { + if (visit1040_1316_1(attributes)) { _$jscoverage['/editor/styles.js'].lineData[1317]++; - for (i = 0; visit1031_1317_1(i < attributes.length); i++) { + for (i = 0; visit1041_1317_1(i < attributes.length); i++) { _$jscoverage['/editor/styles.js'].lineData[1318]++; var attName = attributes[i][0]; _$jscoverage['/editor/styles.js'].lineData[1320]++; @@ -3287,7 +3287,7 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/styles.js'].lineData[1321]++; var attValue = attributes[i][1]; _$jscoverage['/editor/styles.js'].lineData[1329]++; - if (visit1032_1329_1(visit1033_1329_2(attValue === NULL) || visit1034_1330_1((visit1035_1330_2(attValue.test && attValue.test(actualAttrValue))) || (visit1036_1331_1(visit1037_1331_2(typeof attValue === 'string') && visit1038_1331_3(actualAttrValue === attValue)))))) { + if (visit1042_1329_1(visit1043_1329_2(attValue === NULL) || visit1044_1330_1((visit1045_1330_2(attValue.test && attValue.test(actualAttrValue))) || (visit1046_1331_1(visit1047_1331_2(typeof attValue === 'string') && visit1048_1331_3(actualAttrValue === attValue)))))) { _$jscoverage['/editor/styles.js'].lineData[1332]++; element[0].removeAttribute(attName); } @@ -3295,11 +3295,11 @@ KISSY.add(function(S, require) { } } _$jscoverage['/editor/styles.js'].lineData[1338]++; - var styles = visit1039_1338_1(overrides && overrides.styles); + var styles = visit1049_1338_1(overrides && overrides.styles); _$jscoverage['/editor/styles.js'].lineData[1340]++; - if (visit1040_1340_1(styles)) { + if (visit1050_1340_1(styles)) { _$jscoverage['/editor/styles.js'].lineData[1341]++; - for (i = 0; visit1041_1341_1(i < styles.length); i++) { + for (i = 0; visit1051_1341_1(i < styles.length); i++) { _$jscoverage['/editor/styles.js'].lineData[1342]++; var styleName = styles[i][0], actualStyleValue; _$jscoverage['/editor/styles.js'].lineData[1344]++; @@ -3307,7 +3307,7 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/styles.js'].lineData[1345]++; var styleValue = styles[i][1]; _$jscoverage['/editor/styles.js'].lineData[1346]++; - if (visit1042_1346_1(visit1043_1346_2(styleValue === NULL) || visit1044_1348_1((visit1045_1348_2(styleValue.test && styleValue.test(actualAttrValue))) || (visit1046_1349_1(visit1047_1349_2(typeof styleValue === 'string') && visit1048_1349_3(actualStyleValue === styleValue)))))) { + if (visit1052_1346_1(visit1053_1346_2(styleValue === NULL) || visit1054_1348_1((visit1055_1348_2(styleValue.test && styleValue.test(actualAttrValue))) || (visit1056_1349_1(visit1057_1349_2(typeof styleValue === 'string') && visit1058_1349_3(actualStyleValue === styleValue)))))) { _$jscoverage['/editor/styles.js'].lineData[1350]++; element.css(styleName, ''); } @@ -3321,20 +3321,20 @@ KISSY.add(function(S, require) { function removeNoAttribsElement(element) { _$jscoverage['/editor/styles.js'].functionData[40]++; _$jscoverage['/editor/styles.js'].lineData[1363]++; - if (visit1049_1363_1(!element._4eHasAttributes())) { + if (visit1059_1363_1(!element._4eHasAttributes())) { _$jscoverage['/editor/styles.js'].lineData[1366]++; var firstChild = element[0].firstChild, lastChild = element[0].lastChild; _$jscoverage['/editor/styles.js'].lineData[1369]++; element._4eRemove(TRUE); _$jscoverage['/editor/styles.js'].lineData[1371]++; - if (visit1050_1371_1(firstChild)) { + if (visit1060_1371_1(firstChild)) { _$jscoverage['/editor/styles.js'].lineData[1373]++; - if (visit1051_1373_1(firstChild.nodeType === Dom.NodeType.ELEMENT_NODE)) { + if (visit1061_1373_1(firstChild.nodeType === Dom.NodeType.ELEMENT_NODE)) { _$jscoverage['/editor/styles.js'].lineData[1374]++; Dom._4eMergeSiblings(firstChild); } _$jscoverage['/editor/styles.js'].lineData[1377]++; - if (visit1052_1377_1(lastChild && visit1053_1377_2(visit1054_1377_3(firstChild !== lastChild) && visit1055_1377_4(lastChild.nodeType === Dom.NodeType.ELEMENT_NODE)))) { + if (visit1062_1377_1(lastChild && visit1063_1377_2(visit1064_1377_3(firstChild !== lastChild) && visit1065_1377_4(lastChild.nodeType === Dom.NodeType.ELEMENT_NODE)))) { _$jscoverage['/editor/styles.js'].lineData[1378]++; Dom._4eMergeSiblings(lastChild); } diff --git a/src/editor/coverage/src/editor/utils.js b/src/editor/coverage/src/editor/utils.js index 184470393a..f7e5cbfb38 100644 --- a/src/editor/coverage/src/editor/utils.js +++ b/src/editor/coverage/src/editor/utils.js @@ -421,107 +421,107 @@ if (! _$jscoverage['/editor/utils.js'].branchData) { _$jscoverage['/editor/utils.js'].branchData['228'][1] = new BranchData(); } _$jscoverage['/editor/utils.js'].branchData['228'][1].init(143, 8, 'r.remove'); -function visit1081_228_1(result) { +function visit1091_228_1(result) { _$jscoverage['/editor/utils.js'].branchData['228'][1].ranCondition(result); return result; }_$jscoverage['/editor/utils.js'].branchData['225'][1].init(29, 9, 'r.destroy'); -function visit1080_225_1(result) { +function visit1090_225_1(result) { _$jscoverage['/editor/utils.js'].branchData['225'][1].ranCondition(result); return result; }_$jscoverage['/editor/utils.js'].branchData['222'][1].init(61, 23, 'typeof r === \'function\''); -function visit1079_222_1(result) { +function visit1089_222_1(result) { _$jscoverage['/editor/utils.js'].branchData['222'][1].ranCondition(result); return result; }_$jscoverage['/editor/utils.js'].branchData['220'][1].init(77, 14, 'i < res.length'); -function visit1078_220_1(result) { +function visit1088_220_1(result) { _$jscoverage['/editor/utils.js'].branchData['220'][1].ranCondition(result); return result; }_$jscoverage['/editor/utils.js'].branchData['219'][1].init(27, 16, 'this.__res || []'); -function visit1077_219_1(result) { +function visit1087_219_1(result) { _$jscoverage['/editor/utils.js'].branchData['219'][1].ranCondition(result); return result; }_$jscoverage['/editor/utils.js'].branchData['213'][1].init(30, 16, 'this.__res || []'); -function visit1076_213_1(result) { +function visit1086_213_1(result) { _$jscoverage['/editor/utils.js'].branchData['213'][1].ranCondition(result); return result; }_$jscoverage['/editor/utils.js'].branchData['201'][2].init(63, 25, 'ret[0] && ret[0].nodeType'); -function visit1075_201_2(result) { +function visit1085_201_2(result) { _$jscoverage['/editor/utils.js'].branchData['201'][2].ranCondition(result); return result; }_$jscoverage['/editor/utils.js'].branchData['201'][1].init(41, 48, 'ret.__IS_NODELIST || (ret[0] && ret[0].nodeType)'); -function visit1074_201_1(result) { +function visit1084_201_1(result) { _$jscoverage['/editor/utils.js'].branchData['201'][1].ranCondition(result); return result; }_$jscoverage['/editor/utils.js'].branchData['200'][1].init(37, 14, 'S.isArray(ret)'); -function visit1073_200_1(result) { +function visit1083_200_1(result) { _$jscoverage['/editor/utils.js'].branchData['200'][1].ranCondition(result); return result; }_$jscoverage['/editor/utils.js'].branchData['197'][2].init(231, 31, 'ret.nodeType || S.isWindow(ret)'); -function visit1072_197_2(result) { +function visit1082_197_2(result) { _$jscoverage['/editor/utils.js'].branchData['197'][2].ranCondition(result); return result; }_$jscoverage['/editor/utils.js'].branchData['197'][1].init(223, 40, 'ret && (ret.nodeType || S.isWindow(ret))'); -function visit1071_197_1(result) { +function visit1081_197_1(result) { _$jscoverage['/editor/utils.js'].branchData['197'][1].ranCondition(result); return result; }_$jscoverage['/editor/utils.js'].branchData['180'][1].init(21, 5, 'UA.ie'); -function visit1070_180_1(result) { +function visit1080_180_1(result) { _$jscoverage['/editor/utils.js'].branchData['180'][1].ranCondition(result); return result; }_$jscoverage['/editor/utils.js'].branchData['167'][1].init(65, 23, 'typeof v === \'function\''); -function visit1069_167_1(result) { +function visit1079_167_1(result) { _$jscoverage['/editor/utils.js'].branchData['167'][1].ranCondition(result); return result; }_$jscoverage['/editor/utils.js'].branchData['151'][1].init(85, 25, 'S.trim(inp.val()) === tip'); -function visit1068_151_1(result) { +function visit1078_151_1(result) { _$jscoverage['/editor/utils.js'].branchData['151'][1].ranCondition(result); return result; }_$jscoverage['/editor/utils.js'].branchData['144'][1].init(25, 18, '!S.trim(inp.val())'); -function visit1067_144_1(result) { +function visit1077_144_1(result) { _$jscoverage['/editor/utils.js'].branchData['144'][1].ranCondition(result); return result; }_$jscoverage['/editor/utils.js'].branchData['140'][1].init(67, 6, '!UA.ie'); -function visit1066_140_1(result) { +function visit1076_140_1(result) { _$jscoverage['/editor/utils.js'].branchData['140'][1].ranCondition(result); return result; }_$jscoverage['/editor/utils.js'].branchData['126'][1].init(25, 35, 'inp.hasClass(\'ks-editor-input-tip\')'); -function visit1065_126_1(result) { +function visit1075_126_1(result) { _$jscoverage['/editor/utils.js'].branchData['126'][1].ranCondition(result); return result; }_$jscoverage['/editor/utils.js'].branchData['125'][1].init(21, 17, 'val === undefined'); -function visit1064_125_1(result) { +function visit1074_125_1(result) { _$jscoverage['/editor/utils.js'].branchData['125'][1].ranCondition(result); return result; }_$jscoverage['/editor/utils.js'].branchData['119'][1].init(231, 6, '!UA.ie'); -function visit1063_119_1(result) { +function visit1073_119_1(result) { _$jscoverage['/editor/utils.js'].branchData['119'][1].ranCondition(result); return result; }_$jscoverage['/editor/utils.js'].branchData['116'][1].init(80, 20, 'placeholder && UA.ie'); -function visit1062_116_1(result) { +function visit1072_116_1(result) { _$jscoverage['/editor/utils.js'].branchData['116'][1].ranCondition(result); return result; }_$jscoverage['/editor/utils.js'].branchData['100'][1].init(259, 37, 'verify && !new RegExp(verify).test(v)'); -function visit1061_100_1(result) { +function visit1071_100_1(result) { _$jscoverage['/editor/utils.js'].branchData['100'][1].ranCondition(result); return result; }_$jscoverage['/editor/utils.js'].branchData['95'][1].init(33, 17, 'i < inputs.length'); -function visit1060_95_1(result) { +function visit1070_95_1(result) { _$jscoverage['/editor/utils.js'].branchData['95'][1].ranCondition(result); return result; }_$jscoverage['/editor/utils.js'].branchData['64'][1].init(93, 10, 'i < length'); -function visit1059_64_1(result) { +function visit1069_64_1(result) { _$jscoverage['/editor/utils.js'].branchData['64'][1].ranCondition(result); return result; }_$jscoverage['/editor/utils.js'].branchData['27'][1].init(25, 23, 'url.indexOf(\'?\') !== -1'); -function visit1058_27_1(result) { +function visit1068_27_1(result) { _$jscoverage['/editor/utils.js'].branchData['27'][1].ranCondition(result); return result; }_$jscoverage['/editor/utils.js'].branchData['26'][1].init(180, 24, 'url.indexOf(\'?t\') === -1'); -function visit1057_26_1(result) { +function visit1067_26_1(result) { _$jscoverage['/editor/utils.js'].branchData['26'][1].ranCondition(result); return result; }_$jscoverage['/editor/utils.js'].branchData['23'][1].init(60, 13, '!Config.debug'); -function visit1056_23_1(result) { +function visit1066_23_1(result) { _$jscoverage['/editor/utils.js'].branchData['23'][1].ranCondition(result); return result; }_$jscoverage['/editor/utils.js'].lineData[6]++; @@ -538,14 +538,14 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/utils.js'].lineData[22]++; var Config = S.Config; _$jscoverage['/editor/utils.js'].lineData[23]++; - if (visit1056_23_1(!Config.debug)) { + if (visit1066_23_1(!Config.debug)) { _$jscoverage['/editor/utils.js'].lineData[24]++; url = url.replace(/\.(js|css)/i, '-min.$1'); } _$jscoverage['/editor/utils.js'].lineData[26]++; - if (visit1057_26_1(url.indexOf('?t') === -1)) { + if (visit1067_26_1(url.indexOf('?t') === -1)) { _$jscoverage['/editor/utils.js'].lineData[27]++; - if (visit1058_27_1(url.indexOf('?') !== -1)) { + if (visit1068_27_1(url.indexOf('?') !== -1)) { _$jscoverage['/editor/utils.js'].lineData[28]++; url += '&'; } else { @@ -556,7 +556,7 @@ KISSY.add(function(S, require) { url += 't=' + encodeURIComponent(Config.tag); } _$jscoverage['/editor/utils.js'].lineData[34]++; - return Config.base + 'editor/' + url; + return S.config('base') + 'editor/' + url; }, lazyRun: function(obj, before, after) { _$jscoverage['/editor/utils.js'].functionData[2]++; @@ -597,7 +597,7 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/utils.js'].lineData[63]++; var returnValue; _$jscoverage['/editor/utils.js'].lineData[64]++; - for (var i = 0, length = arguments.length; visit1059_64_1(i < length); i++) { + for (var i = 0, length = arguments.length; visit1069_64_1(i < length); i++) { _$jscoverage['/editor/utils.js'].lineData[65]++; var lambda = arguments[i]; _$jscoverage['/editor/utils.js'].lineData[66]++; @@ -638,11 +638,11 @@ KISSY.add(function(S, require) { verifyInputs: function(inputs) { _$jscoverage['/editor/utils.js'].functionData[10]++; _$jscoverage['/editor/utils.js'].lineData[95]++; - for (var i = 0; visit1060_95_1(i < inputs.length); i++) { + for (var i = 0; visit1070_95_1(i < inputs.length); i++) { _$jscoverage['/editor/utils.js'].lineData[96]++; var input = new Node(inputs[i]), v = S.trim(Utils.valInput(input)), verify = input.attr('data-verify'), warning = input.attr('data-warning'); _$jscoverage['/editor/utils.js'].lineData[100]++; - if (visit1061_100_1(verify && !new RegExp(verify).test(v))) { + if (visit1071_100_1(verify && !new RegExp(verify).test(v))) { _$jscoverage['/editor/utils.js'].lineData[102]++; alert(warning); _$jscoverage['/editor/utils.js'].lineData[103]++; @@ -664,14 +664,14 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/utils.js'].lineData[115]++; var placeholder = inp.attr('placeholder'); _$jscoverage['/editor/utils.js'].lineData[116]++; - if (visit1062_116_1(placeholder && UA.ie)) { + if (visit1072_116_1(placeholder && UA.ie)) { _$jscoverage['/editor/utils.js'].lineData[117]++; inp.addClass('ks-editor-input-tip'); _$jscoverage['/editor/utils.js'].lineData[118]++; inp.val(placeholder); } else { _$jscoverage['/editor/utils.js'].lineData[119]++; - if (visit1063_119_1(!UA.ie)) { + if (visit1073_119_1(!UA.ie)) { _$jscoverage['/editor/utils.js'].lineData[120]++; inp.val(''); } @@ -680,9 +680,9 @@ KISSY.add(function(S, require) { valInput: function(inp, val) { _$jscoverage['/editor/utils.js'].functionData[13]++; _$jscoverage['/editor/utils.js'].lineData[125]++; - if (visit1064_125_1(val === undefined)) { + if (visit1074_125_1(val === undefined)) { _$jscoverage['/editor/utils.js'].lineData[126]++; - if (visit1065_126_1(inp.hasClass('ks-editor-input-tip'))) { + if (visit1075_126_1(inp.hasClass('ks-editor-input-tip'))) { _$jscoverage['/editor/utils.js'].lineData[127]++; return ''; } else { @@ -703,7 +703,7 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/utils.js'].lineData[139]++; inp.attr('placeholder', tip); _$jscoverage['/editor/utils.js'].lineData[140]++; - if (visit1066_140_1(!UA.ie)) { + if (visit1076_140_1(!UA.ie)) { _$jscoverage['/editor/utils.js'].lineData[141]++; return; } @@ -711,7 +711,7 @@ KISSY.add(function(S, require) { inp.on('blur', function() { _$jscoverage['/editor/utils.js'].functionData[15]++; _$jscoverage['/editor/utils.js'].lineData[144]++; - if (visit1067_144_1(!S.trim(inp.val()))) { + if (visit1077_144_1(!S.trim(inp.val()))) { _$jscoverage['/editor/utils.js'].lineData[145]++; inp.addClass('ks-editor-input-tip'); _$jscoverage['/editor/utils.js'].lineData[146]++; @@ -724,7 +724,7 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/utils.js'].lineData[150]++; inp.removeClass('ks-editor-input-tip'); _$jscoverage['/editor/utils.js'].lineData[151]++; - if (visit1068_151_1(S.trim(inp.val()) === tip)) { + if (visit1078_151_1(S.trim(inp.val()) === tip)) { _$jscoverage['/editor/utils.js'].lineData[152]++; inp.val(''); } @@ -739,7 +739,7 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/utils.js'].lineData[166]++; var v = params[p]; _$jscoverage['/editor/utils.js'].lineData[167]++; - if (visit1069_167_1(typeof v === 'function')) { + if (visit1079_167_1(typeof v === 'function')) { _$jscoverage['/editor/utils.js'].lineData[168]++; params[p] = v(); } @@ -750,7 +750,7 @@ KISSY.add(function(S, require) { preventFocus: function(el) { _$jscoverage['/editor/utils.js'].functionData[18]++; _$jscoverage['/editor/utils.js'].lineData[180]++; - if (visit1070_180_1(UA.ie)) { + if (visit1080_180_1(UA.ie)) { _$jscoverage['/editor/utils.js'].lineData[182]++; el.unselectable(); } else { @@ -777,14 +777,14 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/utils.js'].lineData[196]++; var ret = editorDom[dm].apply(NULL, args); _$jscoverage['/editor/utils.js'].lineData[197]++; - if (visit1071_197_1(ret && (visit1072_197_2(ret.nodeType || S.isWindow(ret))))) { + if (visit1081_197_1(ret && (visit1082_197_2(ret.nodeType || S.isWindow(ret))))) { _$jscoverage['/editor/utils.js'].lineData[198]++; return new Node(ret); } else { _$jscoverage['/editor/utils.js'].lineData[200]++; - if (visit1073_200_1(S.isArray(ret))) { + if (visit1083_200_1(S.isArray(ret))) { _$jscoverage['/editor/utils.js'].lineData[201]++; - if (visit1074_201_1(ret.__IS_NODELIST || (visit1075_201_2(ret[0] && ret[0].nodeType)))) { + if (visit1084_201_1(ret.__IS_NODELIST || (visit1085_201_2(ret[0] && ret[0].nodeType)))) { _$jscoverage['/editor/utils.js'].lineData[202]++; return new Node(ret); } @@ -799,7 +799,7 @@ KISSY.add(function(S, require) { addRes: function() { _$jscoverage['/editor/utils.js'].functionData[22]++; _$jscoverage['/editor/utils.js'].lineData[213]++; - this.__res = visit1076_213_1(this.__res || []); + this.__res = visit1086_213_1(this.__res || []); _$jscoverage['/editor/utils.js'].lineData[214]++; var res = this.__res; _$jscoverage['/editor/utils.js'].lineData[215]++; @@ -808,23 +808,23 @@ KISSY.add(function(S, require) { destroyRes: function() { _$jscoverage['/editor/utils.js'].functionData[23]++; _$jscoverage['/editor/utils.js'].lineData[219]++; - var res = visit1077_219_1(this.__res || []); + var res = visit1087_219_1(this.__res || []); _$jscoverage['/editor/utils.js'].lineData[220]++; - for (var i = 0; visit1078_220_1(i < res.length); i++) { + for (var i = 0; visit1088_220_1(i < res.length); i++) { _$jscoverage['/editor/utils.js'].lineData[221]++; var r = res[i]; _$jscoverage['/editor/utils.js'].lineData[222]++; - if (visit1079_222_1(typeof r === 'function')) { + if (visit1089_222_1(typeof r === 'function')) { _$jscoverage['/editor/utils.js'].lineData[223]++; r(); } else { _$jscoverage['/editor/utils.js'].lineData[225]++; - if (visit1080_225_1(r.destroy)) { + if (visit1090_225_1(r.destroy)) { _$jscoverage['/editor/utils.js'].lineData[226]++; r.destroy(); } else { _$jscoverage['/editor/utils.js'].lineData[228]++; - if (visit1081_228_1(r.remove)) { + if (visit1091_228_1(r.remove)) { _$jscoverage['/editor/utils.js'].lineData[229]++; r.remove(); } diff --git a/src/editor/coverage/src/editor/walker.js b/src/editor/coverage/src/editor/walker.js index 75a881320d..4ff78d0f9c 100644 --- a/src/editor/coverage/src/editor/walker.js +++ b/src/editor/coverage/src/editor/walker.js @@ -471,235 +471,235 @@ if (! _$jscoverage['/editor/walker.js'].branchData) { _$jscoverage['/editor/walker.js'].branchData['364'][4] = new BranchData(); } _$jscoverage['/editor/walker.js'].branchData['364'][4].init(239, 22, 'tail[0].nodeType === 3'); -function visit1139_364_4(result) { +function visit1149_364_4(result) { _$jscoverage['/editor/walker.js'].branchData['364'][4].ranCondition(result); return result; }_$jscoverage['/editor/walker.js'].branchData['364'][3].init(239, 57, 'tail[0].nodeType === 3 && tailNbspRegex.test(tail.text())'); -function visit1138_364_3(result) { +function visit1148_364_3(result) { _$jscoverage['/editor/walker.js'].branchData['364'][3].ranCondition(result); return result; }_$jscoverage['/editor/walker.js'].branchData['364'][2].init(212, 24, 'tail.nodeName() === \'br\''); -function visit1137_364_2(result) { +function visit1147_364_2(result) { _$jscoverage['/editor/walker.js'].branchData['364'][2].ranCondition(result); return result; }_$jscoverage['/editor/walker.js'].branchData['364'][1].init(193, 105, 'tail && (!UA.ie ? tail.nodeName() === \'br\' : tail[0].nodeType === 3 && tailNbspRegex.test(tail.text()))'); -function visit1136_364_1(result) { +function visit1146_364_1(result) { _$jscoverage['/editor/walker.js'].branchData['364'][1].ranCondition(result); return result; }_$jscoverage['/editor/walker.js'].branchData['362'][1].init(70, 23, 'tail && toSkip(tail[0])'); -function visit1135_362_1(result) { +function visit1145_362_1(result) { _$jscoverage['/editor/walker.js'].branchData['362'][1].ranCondition(result); return result; }_$jscoverage['/editor/walker.js'].branchData['354'][1].init(42, 46, 'name in dtd.$inline && !(name in dtd.$empty)'); -function visit1134_354_1(result) { +function visit1144_354_1(result) { _$jscoverage['/editor/walker.js'].branchData['354'][1].ranCondition(result); return result; }_$jscoverage['/editor/walker.js'].branchData['353'][2].init(141, 19, 'node.nodeType === 1'); -function visit1133_353_2(result) { +function visit1143_353_2(result) { _$jscoverage['/editor/walker.js'].branchData['353'][2].ranCondition(result); return result; }_$jscoverage['/editor/walker.js'].branchData['353'][1].init(38, 89, 'node.nodeType === 1 && name in dtd.$inline && !(name in dtd.$empty)'); -function visit1132_353_1(result) { +function visit1142_353_1(result) { _$jscoverage['/editor/walker.js'].branchData['353'][1].ranCondition(result); return result; }_$jscoverage['/editor/walker.js'].branchData['352'][1].init(35, 128, 'isWhitespaces(node) || node.nodeType === 1 && name in dtd.$inline && !(name in dtd.$empty)'); -function visit1131_352_1(result) { +function visit1141_352_1(result) { _$jscoverage['/editor/walker.js'].branchData['352'][1].ranCondition(result); return result; }_$jscoverage['/editor/walker.js'].branchData['351'][1].init(63, 164, 'isBookmark(node) || isWhitespaces(node) || node.nodeType === 1 && name in dtd.$inline && !(name in dtd.$empty)'); -function visit1130_351_1(result) { +function visit1140_351_1(result) { _$jscoverage['/editor/walker.js'].branchData['351'][1].ranCondition(result); return result; }_$jscoverage['/editor/walker.js'].branchData['340'][2].init(59, 43, 'node.nodeType === Dom.NodeType.ELEMENT_NODE'); -function visit1129_340_2(result) { +function visit1139_340_2(result) { _$jscoverage['/editor/walker.js'].branchData['340'][2].ranCondition(result); return result; }_$jscoverage['/editor/walker.js'].branchData['340'][1].init(39, 65, 'node.nodeType === Dom.NodeType.ELEMENT_NODE && !node.offsetHeight'); -function visit1128_340_1(result) { +function visit1138_340_1(result) { _$jscoverage['/editor/walker.js'].branchData['340'][1].ranCondition(result); return result; }_$jscoverage['/editor/walker.js'].branchData['339'][1].init(373, 105, 'whitespace(node) || node.nodeType === Dom.NodeType.ELEMENT_NODE && !node.offsetHeight'); -function visit1127_339_1(result) { +function visit1137_339_1(result) { _$jscoverage['/editor/walker.js'].branchData['339'][1].ranCondition(result); return result; }_$jscoverage['/editor/walker.js'].branchData['323'][2].init(36, 40, 'node.nodeType === Dom.NodeType.TEXT_NODE'); -function visit1126_323_2(result) { +function visit1136_323_2(result) { _$jscoverage['/editor/walker.js'].branchData['323'][2].ranCondition(result); return result; }_$jscoverage['/editor/walker.js'].branchData['323'][1].init(36, 67, 'node.nodeType === Dom.NodeType.TEXT_NODE && !S.trim(node.nodeValue)'); -function visit1125_323_1(result) { +function visit1135_323_1(result) { _$jscoverage['/editor/walker.js'].branchData['323'][1].ranCondition(result); return result; }_$jscoverage['/editor/walker.js'].branchData['310'][1].init(355, 34, 'isBookmark || isBookmarkNode(node)'); -function visit1124_310_1(result) { +function visit1134_310_1(result) { _$jscoverage['/editor/walker.js'].branchData['310'][1].ranCondition(result); return result; }_$jscoverage['/editor/walker.js'].branchData['307'][1].init(65, 72, '(parent = node.parentNode) && isBookmarkNode(parent)'); -function visit1123_307_1(result) { +function visit1133_307_1(result) { _$jscoverage['/editor/walker.js'].branchData['307'][1].ranCondition(result); return result; }_$jscoverage['/editor/walker.js'].branchData['306'][2].init(120, 40, 'node.nodeType === Dom.NodeType.TEXT_NODE'); -function visit1122_306_2(result) { +function visit1132_306_2(result) { _$jscoverage['/editor/walker.js'].branchData['306'][2].ranCondition(result); return result; }_$jscoverage['/editor/walker.js'].branchData['306'][1].init(120, 138, 'node.nodeType === Dom.NodeType.TEXT_NODE && (parent = node.parentNode) && isBookmarkNode(parent)'); -function visit1121_306_1(result) { +function visit1131_306_1(result) { _$jscoverage['/editor/walker.js'].branchData['306'][1].ranCondition(result); return result; }_$jscoverage['/editor/walker.js'].branchData['299'][2].init(25, 29, 'Dom.nodeName(node) === \'span\''); -function visit1120_299_2(result) { +function visit1130_299_2(result) { _$jscoverage['/editor/walker.js'].branchData['299'][2].ranCondition(result); return result; }_$jscoverage['/editor/walker.js'].branchData['299'][1].init(25, 83, 'Dom.nodeName(node) === \'span\' && Dom.attr(node, \'_ke_bookmark\')'); -function visit1119_299_1(result) { +function visit1129_299_1(result) { _$jscoverage['/editor/walker.js'].branchData['299'][1].ranCondition(result); return result; }_$jscoverage['/editor/walker.js'].branchData['283'][2].init(26, 43, 'node.nodeType === Dom.NodeType.ELEMENT_NODE'); -function visit1118_283_2(result) { +function visit1128_283_2(result) { _$jscoverage['/editor/walker.js'].branchData['283'][2].ranCondition(result); return result; }_$jscoverage['/editor/walker.js'].branchData['283'][1].init(26, 112, 'node.nodeType === Dom.NodeType.ELEMENT_NODE && Dom._4eIsBlockBoundary(node, customNodeNames)'); -function visit1117_283_1(result) { +function visit1127_283_1(result) { _$jscoverage['/editor/walker.js'].branchData['283'][1].ranCondition(result); return result; }_$jscoverage['/editor/walker.js'].branchData['241'][1].init(76, 40, 'iterate.call(this, TRUE, TRUE) !== FALSE'); -function visit1116_241_1(result) { +function visit1126_241_1(result) { _$jscoverage['/editor/walker.js'].branchData['241'][1].ranCondition(result); return result; }_$jscoverage['/editor/walker.js'].branchData['230'][1].init(20, 41, 'iterate.call(this, FALSE, TRUE) !== FALSE'); -function visit1115_230_1(result) { +function visit1125_230_1(result) { _$jscoverage['/editor/walker.js'].branchData['230'][1].ranCondition(result); return result; }_$jscoverage['/editor/walker.js'].branchData['142'][1].init(226, 38, 'breakOnFalseRetFalse && self.evaluator'); -function visit1114_142_1(result) { +function visit1124_142_1(result) { _$jscoverage['/editor/walker.js'].branchData['142'][1].ranCondition(result); return result; }_$jscoverage['/editor/walker.js'].branchData['139'][1].init(21, 21, '!breakOnFalseRetFalse'); -function visit1113_139_1(result) { +function visit1123_139_1(result) { _$jscoverage['/editor/walker.js'].branchData['139'][1].ranCondition(result); return result; }_$jscoverage['/editor/walker.js'].branchData['138'][2].init(69, 33, 'self.evaluator(node[0]) !== FALSE'); -function visit1112_138_2(result) { +function visit1122_138_2(result) { _$jscoverage['/editor/walker.js'].branchData['138'][2].ranCondition(result); return result; }_$jscoverage['/editor/walker.js'].branchData['138'][1].init(50, 52, '!self.evaluator || self.evaluator(node[0]) !== FALSE'); -function visit1111_138_1(result) { +function visit1121_138_1(result) { _$jscoverage['/editor/walker.js'].branchData['138'][1].ranCondition(result); return result; }_$jscoverage['/editor/walker.js'].branchData['136'][1].init(4054, 19, 'node && !self._.end'); -function visit1110_136_1(result) { +function visit1120_136_1(result) { _$jscoverage['/editor/walker.js'].branchData['136'][1].ranCondition(result); return result; }_$jscoverage['/editor/walker.js'].branchData['130'][1].init(30, 43, 'guard(range.startContainer, TRUE) === FALSE'); -function visit1109_130_1(result) { +function visit1119_130_1(result) { _$jscoverage['/editor/walker.js'].branchData['130'][1].ranCondition(result); return result; }_$jscoverage['/editor/walker.js'].branchData['126'][1].init(25, 24, 'guard(node[0]) === FALSE'); -function visit1108_126_1(result) { +function visit1118_126_1(result) { _$jscoverage['/editor/walker.js'].branchData['126'][1].ranCondition(result); return result; }_$jscoverage['/editor/walker.js'].branchData['125'][1].init(139, 11, 'node.length'); -function visit1107_125_1(result) { +function visit1117_125_1(result) { _$jscoverage['/editor/walker.js'].branchData['125'][1].ranCondition(result); return result; }_$jscoverage['/editor/walker.js'].branchData['117'][1].init(30, 27, 'guard(node, TRUE) === FALSE'); -function visit1106_117_1(result) { +function visit1116_117_1(result) { _$jscoverage['/editor/walker.js'].branchData['117'][1].ranCondition(result); return result; }_$jscoverage['/editor/walker.js'].branchData['113'][1].init(103, 24, 'guard(node[0]) === FALSE'); -function visit1105_113_1(result) { +function visit1115_113_1(result) { _$jscoverage['/editor/walker.js'].branchData['113'][1].ranCondition(result); return result; }_$jscoverage['/editor/walker.js'].branchData['111'][1].init(64, 19, 'range.endOffset > 0'); -function visit1104_111_1(result) { +function visit1114_111_1(result) { _$jscoverage['/editor/walker.js'].branchData['111'][1].ranCondition(result); return result; }_$jscoverage['/editor/walker.js'].branchData['109'][1].init(68, 3, 'rtl'); -function visit1103_109_1(result) { +function visit1113_109_1(result) { _$jscoverage['/editor/walker.js'].branchData['109'][1].ranCondition(result); return result; }_$jscoverage['/editor/walker.js'].branchData['104'][1].init(2849, 12, 'self.current'); -function visit1102_104_1(result) { +function visit1112_104_1(result) { _$jscoverage['/editor/walker.js'].branchData['104'][1].ranCondition(result); return result; }_$jscoverage['/editor/walker.js'].branchData['94'][1].init(21, 36, 'stopGuard(node, movingOut) === FALSE'); -function visit1101_94_1(result) { +function visit1111_94_1(result) { _$jscoverage['/editor/walker.js'].branchData['94'][1].ranCondition(result); return result; }_$jscoverage['/editor/walker.js'].branchData['92'][1].init(2530, 9, 'userGuard'); -function visit1100_92_1(result) { +function visit1110_92_1(result) { _$jscoverage['/editor/walker.js'].branchData['92'][1].ranCondition(result); return result; }_$jscoverage['/editor/walker.js'].branchData['83'][1].init(288, 19, 'node !== blockerRTL'); -function visit1099_83_1(result) { +function visit1109_83_1(result) { _$jscoverage['/editor/walker.js'].branchData['83'][1].ranCondition(result); return result; }_$jscoverage['/editor/walker.js'].branchData['78'][4].init(102, 29, 'Dom.nodeName(node) === \'body\''); -function visit1098_78_4(result) { +function visit1108_78_4(result) { _$jscoverage['/editor/walker.js'].branchData['78'][4].ranCondition(result); return result; }_$jscoverage['/editor/walker.js'].branchData['78'][3].init(81, 17, 'limitRTL === node'); -function visit1097_78_3(result) { +function visit1107_78_3(result) { _$jscoverage['/editor/walker.js'].branchData['78'][3].ranCondition(result); return result; }_$jscoverage['/editor/walker.js'].branchData['78'][2].init(81, 50, 'limitRTL === node || Dom.nodeName(node) === \'body\''); -function visit1096_78_2(result) { +function visit1106_78_2(result) { _$jscoverage['/editor/walker.js'].branchData['78'][2].ranCondition(result); return result; }_$jscoverage['/editor/walker.js'].branchData['78'][1].init(67, 65, 'movingOut && (limitRTL === node || Dom.nodeName(node) === \'body\')'); -function visit1095_78_1(result) { +function visit1105_78_1(result) { _$jscoverage['/editor/walker.js'].branchData['78'][1].ranCondition(result); return result; }_$jscoverage['/editor/walker.js'].branchData['73'][3].init(70, 21, 'range.startOffset > 0'); -function visit1094_73_3(result) { +function visit1104_73_3(result) { _$jscoverage['/editor/walker.js'].branchData['73'][3].ranCondition(result); return result; }_$jscoverage['/editor/walker.js'].branchData['73'][2].init(70, 89, '(range.startOffset > 0) && limitRTL.childNodes[range.startOffset - 1]'); -function visit1093_73_2(result) { +function visit1103_73_2(result) { _$jscoverage['/editor/walker.js'].branchData['73'][2].ranCondition(result); return result; }_$jscoverage['/editor/walker.js'].branchData['73'][1].init(70, 97, '(range.startOffset > 0) && limitRTL.childNodes[range.startOffset - 1] || null'); -function visit1092_73_1(result) { +function visit1102_73_1(result) { _$jscoverage['/editor/walker.js'].branchData['73'][1].ranCondition(result); return result; }_$jscoverage['/editor/walker.js'].branchData['70'][1].init(1607, 23, 'rtl && !self._.guardRTL'); -function visit1091_70_1(result) { +function visit1101_70_1(result) { _$jscoverage['/editor/walker.js'].branchData['70'][1].ranCondition(result); return result; }_$jscoverage['/editor/walker.js'].branchData['64'][1].init(288, 19, 'node !== blockerLTR'); -function visit1090_64_1(result) { +function visit1100_64_1(result) { _$jscoverage['/editor/walker.js'].branchData['64'][1].ranCondition(result); return result; }_$jscoverage['/editor/walker.js'].branchData['59'][4].init(102, 29, 'Dom.nodeName(node) === \'body\''); -function visit1089_59_4(result) { +function visit1099_59_4(result) { _$jscoverage['/editor/walker.js'].branchData['59'][4].ranCondition(result); return result; }_$jscoverage['/editor/walker.js'].branchData['59'][3].init(81, 17, 'limitLTR === node'); -function visit1088_59_3(result) { +function visit1098_59_3(result) { _$jscoverage['/editor/walker.js'].branchData['59'][3].ranCondition(result); return result; }_$jscoverage['/editor/walker.js'].branchData['59'][2].init(81, 50, 'limitLTR === node || Dom.nodeName(node) === \'body\''); -function visit1087_59_2(result) { +function visit1097_59_2(result) { _$jscoverage['/editor/walker.js'].branchData['59'][2].ranCondition(result); return result; }_$jscoverage['/editor/walker.js'].branchData['59'][1].init(67, 65, 'movingOut && (limitLTR === node || Dom.nodeName(node) === \'body\')'); -function visit1086_59_1(result) { +function visit1096_59_1(result) { _$jscoverage['/editor/walker.js'].branchData['59'][1].ranCondition(result); return result; }_$jscoverage['/editor/walker.js'].branchData['52'][1].init(883, 24, '!rtl && !self._.guardLTR'); -function visit1085_52_1(result) { +function visit1095_52_1(result) { _$jscoverage['/editor/walker.js'].branchData['52'][1].ranCondition(result); return result; }_$jscoverage['/editor/walker.js'].branchData['45'][1].init(259, 15, 'range.collapsed'); -function visit1084_45_1(result) { +function visit1094_45_1(result) { _$jscoverage['/editor/walker.js'].branchData['45'][1].ranCondition(result); return result; }_$jscoverage['/editor/walker.js'].branchData['37'][1].init(439, 13, '!self._.start'); -function visit1083_37_1(result) { +function visit1093_37_1(result) { _$jscoverage['/editor/walker.js'].branchData['37'][1].ranCondition(result); return result; }_$jscoverage['/editor/walker.js'].branchData['25'][1].init(89, 10, 'self._.end'); -function visit1082_25_1(result) { +function visit1092_25_1(result) { _$jscoverage['/editor/walker.js'].branchData['25'][1].ranCondition(result); return result; }_$jscoverage['/editor/walker.js'].lineData[11]++; @@ -715,20 +715,20 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/walker.js'].lineData[23]++; var self = this; _$jscoverage['/editor/walker.js'].lineData[25]++; - if (visit1082_25_1(self._.end)) { + if (visit1092_25_1(self._.end)) { _$jscoverage['/editor/walker.js'].lineData[26]++; return NULL; } _$jscoverage['/editor/walker.js'].lineData[28]++; var node, range = self.range, guard, userGuard = self.guard, type = self.type, getSourceNodeFn = (rtl ? '_4ePreviousSourceNode' : '_4eNextSourceNode'); _$jscoverage['/editor/walker.js'].lineData[37]++; - if (visit1083_37_1(!self._.start)) { + if (visit1093_37_1(!self._.start)) { _$jscoverage['/editor/walker.js'].lineData[38]++; self._.start = 1; _$jscoverage['/editor/walker.js'].lineData[42]++; range.trim(); _$jscoverage['/editor/walker.js'].lineData[45]++; - if (visit1084_45_1(range.collapsed)) { + if (visit1094_45_1(range.collapsed)) { _$jscoverage['/editor/walker.js'].lineData[46]++; self.end(); _$jscoverage['/editor/walker.js'].lineData[47]++; @@ -736,46 +736,46 @@ KISSY.add(function(S, require) { } } _$jscoverage['/editor/walker.js'].lineData[52]++; - if (visit1085_52_1(!rtl && !self._.guardLTR)) { + if (visit1095_52_1(!rtl && !self._.guardLTR)) { _$jscoverage['/editor/walker.js'].lineData[54]++; var limitLTR = range.endContainer[0], blockerLTR = limitLTR.childNodes[range.endOffset]; _$jscoverage['/editor/walker.js'].lineData[57]++; this._.guardLTR = function(node, movingOut) { _$jscoverage['/editor/walker.js'].functionData[2]++; _$jscoverage['/editor/walker.js'].lineData[59]++; - if (visit1086_59_1(movingOut && (visit1087_59_2(visit1088_59_3(limitLTR === node) || visit1089_59_4(Dom.nodeName(node) === 'body'))))) { + if (visit1096_59_1(movingOut && (visit1097_59_2(visit1098_59_3(limitLTR === node) || visit1099_59_4(Dom.nodeName(node) === 'body'))))) { _$jscoverage['/editor/walker.js'].lineData[60]++; return false; } _$jscoverage['/editor/walker.js'].lineData[64]++; - return visit1090_64_1(node !== blockerLTR); + return visit1100_64_1(node !== blockerLTR); }; } _$jscoverage['/editor/walker.js'].lineData[70]++; - if (visit1091_70_1(rtl && !self._.guardRTL)) { + if (visit1101_70_1(rtl && !self._.guardRTL)) { _$jscoverage['/editor/walker.js'].lineData[72]++; - var limitRTL = range.startContainer[0], blockerRTL = visit1092_73_1(visit1093_73_2((visit1094_73_3(range.startOffset > 0)) && limitRTL.childNodes[range.startOffset - 1]) || null); + var limitRTL = range.startContainer[0], blockerRTL = visit1102_73_1(visit1103_73_2((visit1104_73_3(range.startOffset > 0)) && limitRTL.childNodes[range.startOffset - 1]) || null); _$jscoverage['/editor/walker.js'].lineData[76]++; self._.guardRTL = function(node, movingOut) { _$jscoverage['/editor/walker.js'].functionData[3]++; _$jscoverage['/editor/walker.js'].lineData[78]++; - if (visit1095_78_1(movingOut && (visit1096_78_2(visit1097_78_3(limitRTL === node) || visit1098_78_4(Dom.nodeName(node) === 'body'))))) { + if (visit1105_78_1(movingOut && (visit1106_78_2(visit1107_78_3(limitRTL === node) || visit1108_78_4(Dom.nodeName(node) === 'body'))))) { _$jscoverage['/editor/walker.js'].lineData[79]++; return false; } _$jscoverage['/editor/walker.js'].lineData[83]++; - return visit1099_83_1(node !== blockerRTL); + return visit1109_83_1(node !== blockerRTL); }; } _$jscoverage['/editor/walker.js'].lineData[88]++; var stopGuard = rtl ? self._.guardRTL : self._.guardLTR; _$jscoverage['/editor/walker.js'].lineData[92]++; - if (visit1100_92_1(userGuard)) { + if (visit1110_92_1(userGuard)) { _$jscoverage['/editor/walker.js'].lineData[93]++; guard = function(node, movingOut) { _$jscoverage['/editor/walker.js'].functionData[4]++; _$jscoverage['/editor/walker.js'].lineData[94]++; - if (visit1101_94_1(stopGuard(node, movingOut) === FALSE)) { + if (visit1111_94_1(stopGuard(node, movingOut) === FALSE)) { _$jscoverage['/editor/walker.js'].lineData[95]++; return FALSE; } @@ -787,26 +787,26 @@ KISSY.add(function(S, require) { guard = stopGuard; } _$jscoverage['/editor/walker.js'].lineData[104]++; - if (visit1102_104_1(self.current)) { + if (visit1112_104_1(self.current)) { _$jscoverage['/editor/walker.js'].lineData[105]++; node = this.current[getSourceNodeFn](FALSE, type, guard); } else { _$jscoverage['/editor/walker.js'].lineData[109]++; - if (visit1103_109_1(rtl)) { + if (visit1113_109_1(rtl)) { _$jscoverage['/editor/walker.js'].lineData[110]++; node = range.endContainer; _$jscoverage['/editor/walker.js'].lineData[111]++; - if (visit1104_111_1(range.endOffset > 0)) { + if (visit1114_111_1(range.endOffset > 0)) { _$jscoverage['/editor/walker.js'].lineData[112]++; node = new Node(node[0].childNodes[range.endOffset - 1]); _$jscoverage['/editor/walker.js'].lineData[113]++; - if (visit1105_113_1(guard(node[0]) === FALSE)) { + if (visit1115_113_1(guard(node[0]) === FALSE)) { _$jscoverage['/editor/walker.js'].lineData[114]++; node = NULL; } } else { _$jscoverage['/editor/walker.js'].lineData[117]++; - node = (visit1106_117_1(guard(node, TRUE) === FALSE)) ? NULL : node._4ePreviousSourceNode(TRUE, type, guard, undefined); + node = (visit1116_117_1(guard(node, TRUE) === FALSE)) ? NULL : node._4ePreviousSourceNode(TRUE, type, guard, undefined); } } else { _$jscoverage['/editor/walker.js'].lineData[122]++; @@ -814,32 +814,32 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/walker.js'].lineData[123]++; node = new Node(node[0].childNodes[range.startOffset]); _$jscoverage['/editor/walker.js'].lineData[125]++; - if (visit1107_125_1(node.length)) { + if (visit1117_125_1(node.length)) { _$jscoverage['/editor/walker.js'].lineData[126]++; - if (visit1108_126_1(guard(node[0]) === FALSE)) { + if (visit1118_126_1(guard(node[0]) === FALSE)) { _$jscoverage['/editor/walker.js'].lineData[127]++; node = NULL; } } else { _$jscoverage['/editor/walker.js'].lineData[130]++; - node = (visit1109_130_1(guard(range.startContainer, TRUE) === FALSE)) ? NULL : range.startContainer._4eNextSourceNode(TRUE, type, guard, undefined); + node = (visit1119_130_1(guard(range.startContainer, TRUE) === FALSE)) ? NULL : range.startContainer._4eNextSourceNode(TRUE, type, guard, undefined); } } } _$jscoverage['/editor/walker.js'].lineData[136]++; - while (visit1110_136_1(node && !self._.end)) { + while (visit1120_136_1(node && !self._.end)) { _$jscoverage['/editor/walker.js'].lineData[137]++; self.current = node; _$jscoverage['/editor/walker.js'].lineData[138]++; - if (visit1111_138_1(!self.evaluator || visit1112_138_2(self.evaluator(node[0]) !== FALSE))) { + if (visit1121_138_1(!self.evaluator || visit1122_138_2(self.evaluator(node[0]) !== FALSE))) { _$jscoverage['/editor/walker.js'].lineData[139]++; - if (visit1113_139_1(!breakOnFalseRetFalse)) { + if (visit1123_139_1(!breakOnFalseRetFalse)) { _$jscoverage['/editor/walker.js'].lineData[140]++; return node; } } else { _$jscoverage['/editor/walker.js'].lineData[142]++; - if (visit1114_142_1(breakOnFalseRetFalse && self.evaluator)) { + if (visit1124_142_1(breakOnFalseRetFalse && self.evaluator)) { _$jscoverage['/editor/walker.js'].lineData[143]++; return FALSE; } @@ -899,12 +899,12 @@ KISSY.add(function(S, require) { checkForward: function() { _$jscoverage['/editor/walker.js'].functionData[10]++; _$jscoverage['/editor/walker.js'].lineData[230]++; - return visit1115_230_1(iterate.call(this, FALSE, TRUE) !== FALSE); + return visit1125_230_1(iterate.call(this, FALSE, TRUE) !== FALSE); }, checkBackward: function() { _$jscoverage['/editor/walker.js'].functionData[11]++; _$jscoverage['/editor/walker.js'].lineData[241]++; - return visit1116_241_1(iterate.call(this, TRUE, TRUE) !== FALSE); + return visit1126_241_1(iterate.call(this, TRUE, TRUE) !== FALSE); }, lastForward: function() { _$jscoverage['/editor/walker.js'].functionData[12]++; @@ -932,7 +932,7 @@ KISSY.add(function(S, require) { return function(node) { _$jscoverage['/editor/walker.js'].functionData[16]++; _$jscoverage['/editor/walker.js'].lineData[283]++; - return !(visit1117_283_1(visit1118_283_2(node.nodeType === Dom.NodeType.ELEMENT_NODE) && Dom._4eIsBlockBoundary(node, customNodeNames))); + return !(visit1127_283_1(visit1128_283_2(node.nodeType === Dom.NodeType.ELEMENT_NODE) && Dom._4eIsBlockBoundary(node, customNodeNames))); }; }, bookmark: function(contentOnly, isReject) { @@ -941,7 +941,7 @@ KISSY.add(function(S, require) { function isBookmarkNode(node) { _$jscoverage['/editor/walker.js'].functionData[18]++; _$jscoverage['/editor/walker.js'].lineData[299]++; - return visit1119_299_1(visit1120_299_2(Dom.nodeName(node) === 'span') && Dom.attr(node, '_ke_bookmark')); + return visit1129_299_1(visit1130_299_2(Dom.nodeName(node) === 'span') && Dom.attr(node, '_ke_bookmark')); } _$jscoverage['/editor/walker.js'].lineData[303]++; return function(node) { @@ -949,9 +949,9 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/walker.js'].lineData[304]++; var isBookmark, parent; _$jscoverage['/editor/walker.js'].lineData[306]++; - isBookmark = (visit1121_306_1(visit1122_306_2(node.nodeType === Dom.NodeType.TEXT_NODE) && visit1123_307_1((parent = node.parentNode) && isBookmarkNode(parent)))); + isBookmark = (visit1131_306_1(visit1132_306_2(node.nodeType === Dom.NodeType.TEXT_NODE) && visit1133_307_1((parent = node.parentNode) && isBookmarkNode(parent)))); _$jscoverage['/editor/walker.js'].lineData[310]++; - isBookmark = contentOnly ? isBookmark : visit1124_310_1(isBookmark || isBookmarkNode(node)); + isBookmark = contentOnly ? isBookmark : visit1134_310_1(isBookmark || isBookmarkNode(node)); _$jscoverage['/editor/walker.js'].lineData[313]++; return !!(isReject ^ isBookmark); }; @@ -962,7 +962,7 @@ KISSY.add(function(S, require) { return function(node) { _$jscoverage['/editor/walker.js'].functionData[21]++; _$jscoverage['/editor/walker.js'].lineData[323]++; - var isWhitespace = visit1125_323_1(visit1126_323_2(node.nodeType === Dom.NodeType.TEXT_NODE) && !S.trim(node.nodeValue)); + var isWhitespace = visit1135_323_1(visit1136_323_2(node.nodeType === Dom.NodeType.TEXT_NODE) && !S.trim(node.nodeValue)); _$jscoverage['/editor/walker.js'].lineData[324]++; return !!(isReject ^ isWhitespace); }; @@ -975,7 +975,7 @@ KISSY.add(function(S, require) { return function(node) { _$jscoverage['/editor/walker.js'].functionData[23]++; _$jscoverage['/editor/walker.js'].lineData[339]++; - var isInvisible = visit1127_339_1(whitespace(node) || visit1128_340_1(visit1129_340_2(node.nodeType === Dom.NodeType.ELEMENT_NODE) && !node.offsetHeight)); + var isInvisible = visit1137_339_1(whitespace(node) || visit1138_340_1(visit1139_340_2(node.nodeType === Dom.NodeType.ELEMENT_NODE) && !node.offsetHeight)); _$jscoverage['/editor/walker.js'].lineData[341]++; return !!(isReject ^ isInvisible); }; @@ -986,7 +986,7 @@ KISSY.add(function(S, require) { _$jscoverage['/editor/walker.js'].lineData[350]++; var name = Dom.nodeName(node); _$jscoverage['/editor/walker.js'].lineData[351]++; - return visit1130_351_1(isBookmark(node) || visit1131_352_1(isWhitespaces(node) || visit1132_353_1(visit1133_353_2(node.nodeType === 1) && visit1134_354_1(name in dtd.$inline && !(name in dtd.$empty))))); + return visit1140_351_1(isBookmark(node) || visit1141_352_1(isWhitespaces(node) || visit1142_353_1(visit1143_353_2(node.nodeType === 1) && visit1144_354_1(name in dtd.$inline && !(name in dtd.$empty))))); }; _$jscoverage['/editor/walker.js'].lineData[358]++; function getBogus(tail) { @@ -995,9 +995,9 @@ KISSY.add(function(S, require) { do { _$jscoverage['/editor/walker.js'].lineData[361]++; tail = tail._4ePreviousSourceNode(); - } while (visit1135_362_1(tail && toSkip(tail[0]))); + } while (visit1145_362_1(tail && toSkip(tail[0]))); _$jscoverage['/editor/walker.js'].lineData[364]++; - if (visit1136_364_1(tail && (!UA.ie ? visit1137_364_2(tail.nodeName() === 'br') : visit1138_364_3(visit1139_364_4(tail[0].nodeType === 3) && tailNbspRegex.test(tail.text()))))) { + if (visit1146_364_1(tail && (!UA.ie ? visit1147_364_2(tail.nodeName() === 'br') : visit1148_364_3(visit1149_364_4(tail[0].nodeType === 3) && tailNbspRegex.test(tail.text()))))) { _$jscoverage['/editor/walker.js'].lineData[365]++; return tail[0]; } diff --git a/src/editor/coverage/src/editor/z-index-manager.js b/src/editor/coverage/src/editor/z-index-manager.js index 0b60d44be0..adddf6dfa1 100644 --- a/src/editor/coverage/src/editor/z-index-manager.js +++ b/src/editor/coverage/src/editor/z-index-manager.js @@ -247,7 +247,7 @@ if (! _$jscoverage['/editor/z-index-manager.js'].branchData) { _$jscoverage['/editor/z-index-manager.js'].branchData['48'][1] = new BranchData(); } _$jscoverage['/editor/z-index-manager.js'].branchData['48'][1].init(17, 33, 'Editor.Config.baseZIndex || 10000'); -function visit1140_48_1(result) { +function visit1150_48_1(result) { _$jscoverage['/editor/z-index-manager.js'].branchData['48'][1].ranCondition(result); return result; }_$jscoverage['/editor/z-index-manager.js'].lineData[6]++; @@ -269,7 +269,7 @@ KISSY.add(function(S, require) { Editor.baseZIndex = function(z) { _$jscoverage['/editor/z-index-manager.js'].functionData[1]++; _$jscoverage['/editor/z-index-manager.js'].lineData[48]++; - return (visit1140_48_1(Editor.Config.baseZIndex || 10000)) + z; + return (visit1150_48_1(Editor.Config.baseZIndex || 10000)) + z; }; _$jscoverage['/editor/z-index-manager.js'].lineData[51]++; return ZIndexManager; diff --git a/src/editor/meta/deps.js b/src/editor/meta/deps.js index f4eb053932..21f9ebf188 100644 --- a/src/editor/meta/deps.js +++ b/src/editor/meta/deps.js @@ -1,4 +1,4 @@ /*Generated By KISSY Module Compiler*/ config({ -'editor': {requires: ['node','html-parser','component/control']} +'editor': {requires: ['node','html-parser','component/control','ua']} }); diff --git a/src/editor/src/editor.js b/src/editor/src/editor.js index d700ff21da..c2d39d1fdf 100644 --- a/src/editor/src/editor.js +++ b/src/editor/src/editor.js @@ -1071,8 +1071,8 @@ KISSY.add(function (S, require, exports, module) { function prepareIFrameHTML(id, customStyle, customLink, data) { var links = '', - i, - innerCssFile = Utils.debugUrl('theme/editor-iframe.css'); + i; + var innerCssFile = Utils.debugUrl('theme/editor-iframe.css'); customLink = customLink.concat([]); customLink.unshift(innerCssFile); for (i = 0; i < customLink.length; i++) { @@ -1106,6 +1106,7 @@ KISSY.add(function (S, require, exports, module) { '' }); } + var saveLater = S.buffer(function () { this.execCommand('save'); }, 50); @@ -1198,6 +1199,7 @@ KISSY.add(function (S, require, exports, module) { }); iframe.remove(); } + // ------------------------------------------------------------------- end private }); /** diff --git a/src/editor/src/editor/enterKey.js b/src/editor/src/editor/enterKey.js index 915744fd8a..80d6a2be91 100644 --- a/src/editor/src/editor/enterKey.js +++ b/src/editor/src/editor/enterKey.js @@ -8,12 +8,15 @@ For licensing, see LICENSE.html or http://ckeditor.com/license */ KISSY.add(function (S, require) { + var util = S; var Node = require('node'); + var $ = Node.all; + var UA = require('ua'); var Walker = require('./walker'); var Editor = require('./base'); var ElementPath = require('./elementPath'); - var OLD_IE = S.UA.ieMode < 11; - var headerTagRegex = /^h[1-6]$/, + var OLD_IE = UA.ieMode < 11; + var headerPreTagRegex = /^(?:h[1-6])|(?:pre)$/i, dtd = Editor.XHTML_DTD; function getRange(editor) { @@ -31,15 +34,14 @@ KISSY.add(function (S, require) { // Get the range for the current selection. var range = getRange(editor); var doc = range.document; + var path = new ElementPath(range.startContainer), + isStartOfBlock = range.checkStartOfBlock(), + isEndOfBlock = range.checkEndOfBlock(), + block = path.block; // Exit the list when we're inside an empty list item block. (#5376) - if (range.checkStartOfBlock() && range.checkEndOfBlock()) { - var path = new ElementPath(range.startContainer), - block = path.block; - //只有两层? - if (block && - ( block.nodeName() === 'li' || block.parent().nodeName() === 'li' ) - - ) { + if (isStartOfBlock && isEndOfBlock) { + // 只有两层? + if (block && (block.nodeName() === 'li' || block.parent().nodeName() === 'li')) { if (editor.hasCommand('outdent')) { editor.execCommand('save'); editor.execCommand('outdent'); @@ -49,6 +51,26 @@ KISSY.add(function (S, require) { return false; } } + } else if (block && block.nodeName() === 'pre') { + // Don't split
 if we're in the middle of it, add \r or br
+            if (!isEndOfBlock) {
+                // insert '\r'
+                var lineBreak = UA.ieMode < 9 ? $(doc.createTextNode('\r')) : $(doc.createElement('br'));
+                range.insertNode(lineBreak);
+                if (UA.ieMode < 9) {
+                    // empty character to force wrap line in ie<9
+                    lineBreak = $(doc.createTextNode('\ufeff')).insertAfter(lineBreak);
+                    range.setStartAt(lineBreak, Editor.RangeType.POSITION_AFTER_START);
+                } else {
+                    range.setStartAfter(lineBreak);
+                }
+                range.collapse(true);
+                range.select();
+                if (UA.ieMode < 9) {
+                    lineBreak[0].nodeValue = '';
+                }
+                return;
+            }
         }
 
         // Determine the block element to be used.
@@ -57,7 +79,7 @@ KISSY.add(function (S, require) {
         // Split the range.
         var splitInfo = range.splitBlock(blockTag);
 
-        if (!splitInfo){
+        if (!splitInfo) {
             return true;
         }
 
@@ -65,8 +87,8 @@ KISSY.add(function (S, require) {
         var previousBlock = splitInfo.previousBlock,
             nextBlock = splitInfo.nextBlock;
 
-        var isStartOfBlock = splitInfo.wasStartOfBlock,
-            isEndOfBlock = splitInfo.wasEndOfBlock;
+        isStartOfBlock = splitInfo.wasStartOfBlock;
+        isEndOfBlock = splitInfo.wasEndOfBlock;
 
         var node;
 
@@ -77,13 +99,12 @@ KISSY.add(function (S, require) {
                 nextBlock._4eBreakParent(node);
                 nextBlock._4eMove(nextBlock.next(), true);
             }
-        }
-        else if (previousBlock && ( node = previousBlock.parent() ) && node.nodeName() === 'li') {
+        } else if (previousBlock && (node = previousBlock.parent()) && node.nodeName() === 'li') {
             previousBlock._4eBreakParent(node);
             range.moveToElementEditablePosition(previousBlock.next());
             previousBlock._4eMove(previousBlock.prev());
         }
-        
+
         var newBlock;
 
         // If we have both the previous and next blocks, it means that the
@@ -94,34 +115,31 @@ KISSY.add(function (S, require) {
             // child, we'll need to append a filler (
/NBSP) or the list item // wouldn't be editable. (#1420) if (nextBlock.nodeName() === 'li' && - ( node = nextBlock.first(Walker.invisible(true)) ) && - S.inArray(node.nodeName(), ['ul', 'ol'])){ + (node = nextBlock.first(Walker.invisible(true))) && + util.inArray(node.nodeName(), ['ul', 'ol'])) { (OLD_IE ? new Node(doc.createTextNode('\xa0')) : new Node(doc.createElement('br'))).insertBefore(node); } // Move the selection to the end block. - if (nextBlock){ + if (nextBlock) { range.moveToElementEditablePosition(nextBlock); } - } - else { - - + } else { if (previousBlock) { // Do not enter this block if it's a header tag, or we are in // a Shift+Enter (#77). Create a new block element instead // (later in the code). - if (previousBlock.nodeName() === 'li' || !headerTagRegex.test(previousBlock.nodeName())) { + // end of pre, start p + if (previousBlock.nodeName() === 'li' || !(headerPreTagRegex.test(previousBlock.nodeName()))) { // Otherwise, duplicate the previous block. newBlock = previousBlock.clone(); } - } - else if (nextBlock){ + } else if (nextBlock) { newBlock = nextBlock.clone(); } - if (!newBlock){ + if (!newBlock) { newBlock = new Node('<' + blockTag + '>', null, doc); } @@ -134,7 +152,7 @@ KISSY.add(function (S, require) { var element = elementPath.elements[ i ]; if (element.equals(elementPath.block) || - element.equals(elementPath.blockLimit)){ + element.equals(elementPath.blockLimit)) { break; } //
  • ^
  • @@ -146,7 +164,7 @@ KISSY.add(function (S, require) { } } - if (!OLD_IE){ + if (!OLD_IE) { newBlock._4eAppendBogus(); } @@ -157,7 +175,7 @@ KISSY.add(function (S, require) { // The previousBlock check has been included because it may be // empty if we have fixed a block-less space (like ENTER into an // empty table cell). - if (OLD_IE && isStartOfBlock && ( !isEndOfBlock || !previousBlock[0].childNodes.length )) { + if (OLD_IE && isStartOfBlock && (!isEndOfBlock || !previousBlock[0].childNodes.length)) { // Move the selection to the new block. range.moveToElementEditablePosition(isEndOfBlock ? previousBlock : newBlock); range.select(); @@ -183,8 +201,7 @@ KISSY.add(function (S, require) { onlyScrollIfNeeded: true }); range.deleteContents(); - } - else { + } else { // We may use the above scroll logic for the new block case // too, but it gives some weird result with Opera. newBlock.scrollIntoView(undefined, { @@ -225,4 +242,4 @@ KISSY.add(function (S, require) { }); } }; -}); +}); \ No newline at end of file diff --git a/src/editor/src/editor/htmlDataProcessor.js b/src/editor/src/editor/htmlDataProcessor.js index 1f7896e1fa..ebcdf4f8bd 100644 --- a/src/editor/src/editor/htmlDataProcessor.js +++ b/src/editor/src/editor/htmlDataProcessor.js @@ -8,44 +8,54 @@ For licensing, see LICENSE.html or http://ckeditor.com/license */ KISSY.add(function (S, require) { - var Editor = require('./base'); var HtmlParser = require('html-parser'); - var OLD_IE = S.UA.ieMode < 11; + var UA = require('ua'); + var OLD_IE = UA.ieMode < 11; + var Node = require('node'); + var dtd = HtmlParser.DTD; + var NodeType = Node.NodeType; + var util = S; + + // + function isEmptyElement(el) { + if (!dtd.$removeEmpty[el.nodeName]) { + return false; + } + var childNodes = el.childNodes, + i, child, + l = childNodes.length; + if (l) { + for (i = 0; i < l; i++) { + child = childNodes[i]; + var nodeType = child.nodeType; + if (!(nodeType === NodeType.TEXT_NODE && !child.nodeValue)) { + return false; + } + if (!isEmptyElement(child)) { + return false; + } + } + return true; + } else { + return true; + } + } + return { init: function (editor) { - var Node = S.Node, - UA = S.UA, - htmlFilter = new HtmlParser.Filter(), + var htmlFilter = new HtmlParser.Filter(), dataFilter = new HtmlParser.Filter(); // remove empty inline element function filterInline(element) { - var childNodes = element.childNodes, - i, - child, - allEmpty, - l = childNodes.length; - if (l) { - allEmpty = 1; - for (i = 0; i < l; i++) { - child = childNodes[i]; - if (!(child.nodeType === S.DOM.NodeType.TEXT_NODE && !child.nodeValue)) { - allEmpty = 0; - break; - } - } - return allEmpty ? false : undefined; - } else { - return false; - } + return !isEmptyElement(element); } (function () { - function wrapAsComment(element) { var html = HtmlParser.serialize(element); return new HtmlParser.Comment(protectedSourceMarker + - encodeURIComponent(html).replace(/--/g,'%2D%2D')); + encodeURIComponent(html).replace(/--/g, '%2D%2D')); } // 过滤外边来的 html @@ -71,9 +81,9 @@ KISSY.add(function (S, require) { var defaultHTMLFilterRules = { tagNames: [ // Remove the "ke:" namespace prefix. - [ ( /^ke:/ ), '' ], + [(/^ke:/), ''], // Ignore tags. - [ ( /^\?xml:namespace$/ ), '' ] + [(/^\?xml:namespace$/), ''] ], tags: { $: function (element) { @@ -82,10 +92,10 @@ KISSY.add(function (S, require) { if (attributes.length) { // 先把真正属性去掉,后面会把 _ke_saved 后缀去掉的! // Remove duplicated attributes - #3789. - var attributeNames = [ 'name', 'href', 'src' ], + var attributeNames = ['name', 'href', 'src'], savedAttributeName; for (var i = 0; i < attributeNames.length; i++) { - savedAttributeName = '_keSaved_' + attributeNames[ i ]; + savedAttributeName = '_keSaved_' + attributeNames[i]; if (element.getAttribute(savedAttributeName)) { element.removeAttribute(attributeNames[i]); } @@ -126,7 +136,7 @@ KISSY.add(function (S, require) { attributes: { // 清除空style style: function (v) { - if (!S.trim(v)) { + if (!util.trim(v)) { return false; } return undefined; @@ -136,17 +146,17 @@ KISSY.add(function (S, require) { // 把保存的作为真正的属性,替换掉原来的 // replace(/^_keSaved_/,"") // _keSavedHref -> href - [ ( /^_keSaved_/ ), '' ], - [ ( /^ke_on/ ), 'on' ], - [ ( /^_ke.*/ ), '' ], - [ ( /^ke:.*$/ ), '' ], + [(/^_keSaved_/), ''], + [(/^ke_on/), 'on'], + [(/^_ke.*/), ''], + [(/^ke:.*$/), ''], // kissy 相关 - [ ( /^_ks.*/ ), '' ] + [(/^_ks.*/), ''] ], comment: function (contents) { // If this is a comment for protected source. if (contents.substr(0, protectedSourceMarker.length) === protectedSourceMarker) { - contents = S.trim(S.urlDecode(contents.substr(protectedSourceMarker.length))); + contents = util.trim(util.urlDecode(contents.substr(protectedSourceMarker.length))); return HtmlParser.parse(contents).childNodes[0]; } return undefined; @@ -157,8 +167,7 @@ KISSY.add(function (S, require) { // them back to lower case. // bug: style='background:url(www.G.cn)' => style='background:url(www.g.cn)' // 只对 propertyName 小写 - defaultHTMLFilterRules.attributes.style = function (value // , element - ) { + defaultHTMLFilterRules.attributes.style = function (value) { return value.replace(/(^|;)([^:]+)/g, function (match) { return match.toLowerCase(); }); @@ -185,9 +194,11 @@ KISSY.add(function (S, require) { function lastNoneSpaceChild(block) { var childNodes = block.childNodes, lastIndex = childNodes.length, - last = childNodes[ lastIndex - 1 ]; - while (last && last.nodeType === 3 && !S.trim(last.nodeValue)) { - last = childNodes[ --lastIndex ]; + last = childNodes[lastIndex - 1]; + while (last && + (last.nodeType === 3 && !util.trim(last.nodeValue) || + last.nodeType === 1 && isEmptyElement(last))) { + last = childNodes[--lastIndex]; } return last; } @@ -197,8 +208,7 @@ KISSY.add(function (S, require) { if (lastChild) { if (lastChild.nodeType === 1 && lastChild.nodeName === 'br') { block.removeChild(lastChild); - } - else if (lastChild.nodeType === 3 && tailNbspRegex.test(lastChild.nodeValue)) { + } else if (lastChild.nodeType === 3 && tailNbspRegex.test(lastChild.nodeValue)) { block.removeChild(lastChild); } } @@ -237,13 +247,12 @@ KISSY.add(function (S, require) { } // Find out the list of block-like tags that can contain
    . - var dtd = Editor.XHTML_DTD; - var blockLikeTags = S.merge( + var blockLikeTags = util.merge( dtd.$block, dtd.$listItem, dtd.$tableContent), i; for (i in blockLikeTags) { - if (!( 'br' in dtd[i] )) { + if (!('br' in dtd[i])) { delete blockLikeTags[i]; } } @@ -251,19 +260,18 @@ KISSY.add(function (S, require) { // We just avoid filler in
     right now.
                     // TODO: Support filler for 
    , line break is also occupy line height.
                     delete blockLikeTags.pre;
    -                var defaultDataBlockFilterRules = { tags: {} };
    -                var defaultHTMLBlockFilterRules = { tags: {} };
    +                var defaultDataBlockFilterRules = {tags: {}};
    +                var defaultHTMLBlockFilterRules = {tags: {}};
     
                     for (i in blockLikeTags) {
    -                    defaultDataBlockFilterRules.tags[ i ] = extendBlockForDisplay;
    -                    defaultHTMLBlockFilterRules.tags[ i ] = extendBlockForOutput;
    +                    defaultDataBlockFilterRules.tags[i] = extendBlockForDisplay;
    +                    defaultHTMLBlockFilterRules.tags[i] = extendBlockForOutput;
                     }
     
                     dataFilter.addRules(defaultDataBlockFilterRules);
                     htmlFilter.addRules(defaultHTMLBlockFilterRules);
                 })();
     
    -
                 // html-parser fragment 中的 entities 处理
                 // el.innerHTML=" "
                 // http://yiminghe.javaeye.com/blog/788929
    @@ -275,7 +283,6 @@ KISSY.add(function (S, require) {
                     }
                 });
     
    -
                 var protectElementRegex = /<(a|area|img|input)\b([^>]*)>/gi,
                     protectAttributeRegex = /\b(href|src|name)\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|(?:[^ "'>]+))/gi;
                 // ie 6-7 会将 关于 url 的 content value 替换为 dom value
    @@ -316,7 +323,7 @@ KISSY.add(function (S, require) {
     
                 function unprotectElements(html) {
                     return html.replace(encodedElementsRegex, function (match, encoded) {
    -                    return S.urlDecode(encoded);
    +                    return util.urlDecode(encoded);
                     });
                 }
     
    diff --git a/src/editor/src/editor/plugin-meta.js b/src/editor/src/editor/plugin-meta.js
    index c11871b5e9..eb92f6926c 100644
    --- a/src/editor/src/editor/plugin-meta.js
    +++ b/src/editor/src/editor/plugin-meta.js
    @@ -88,7 +88,7 @@ config({
     });
     /*Generated By KISSY Module Compiler*/
     config({
    -'editor/plugin/flash-common/base-class': {requires: ['editor/plugin/flash-common/utils','base','editor','editor/plugin/dialog-loader','editor/plugin/bubble']}
    +'editor/plugin/flash-common/base-class': {requires: ['editor/plugin/flash-common/utils','base','editor','editor/plugin/dialog-loader','editor/plugin/bubble','editor/plugin/contextmenu']}
     });
     /*Generated By KISSY Module Compiler*/
     config({
    @@ -148,7 +148,7 @@ config({
     });
     /*Generated By KISSY Module Compiler*/
     config({
    -'editor/plugin/image': {requires: ['editor/plugin/button','editor','editor/plugin/bubble','editor/plugin/dialog-loader']}
    +'editor/plugin/image': {requires: ['editor/plugin/button','editor','editor/plugin/bubble','editor/plugin/dialog-loader','editor/plugin/contextmenu']}
     });
     /*Generated By KISSY Module Compiler*/
     config({
    @@ -344,7 +344,7 @@ config({
     });
     /*Generated By KISSY Module Compiler*/
     config({
    -'editor/plugin/video/dialog': {requires: ['editor','editor/plugin/flash/dialog','editor/plugin/menubutton']}
    +'editor/plugin/video/dialog': {requires: ['editor','io','editor/plugin/flash/dialog','editor/plugin/menubutton']}
     });
     /*Generated By KISSY Module Compiler*/
     config({
    diff --git a/src/editor/src/editor/range.js b/src/editor/src/editor/range.js
    index c1ef76e76c..e17d22160f 100644
    --- a/src/editor/src/editor/range.js
    +++ b/src/editor/src/editor/range.js
    @@ -1287,7 +1287,7 @@ KISSY.add(function (S, require) {
                 }
     
                 return function (unit) {
    -                var self = this;
    +                var self = this, enlargeable;
                     switch (unit) {
                         case KER.ENLARGE_ELEMENT :
     
    @@ -1377,7 +1377,7 @@ KISSY.add(function (S, require) {
                             blockBoundary = NULL;
                             // End the range right before the block boundary node.
     
    -                        var enlargeable = walker.lastForward();
    +                        enlargeable = walker.lastForward();
     
                             // It's the body which stop the enlarging if no block boundary found.
                             blockBoundary = blockBoundary || body;
    diff --git a/src/editor/src/editor/render-xtpl.js b/src/editor/src/editor/render-xtpl.js
    index 3fd42202ee..e1ae3e7df0 100644
    --- a/src/editor/src/editor/render-xtpl.js
    +++ b/src/editor/src/editor/render-xtpl.js
    @@ -1,6 +1,6 @@
     /** Compiled By kissy-xtemplate */
     KISSY.add(function (S, require, exports, module) {
    -        /*jshint quotmark: false, unused:false, indent:false*/
    +        /*jshint quotmark:false, loopfunc:true, indent:false, asi:true, unused:false, boss:true*/
             return function (scope, S, undefined) {
                 var buffer = "",
                     config = this.config,
    @@ -10,21 +10,23 @@ KISSY.add(function (S, require, exports, module) {
                     moduleWrap = module;
                 }
                 var runBlockCommandUtil = utils.runBlockCommand,
    -                getExpressionUtil = utils.getExpression,
    +                renderOutputUtil = utils.renderOutput,
    +                getPropertyUtil = utils.getProperty,
    +                runInlineCommandUtil = utils.runInlineCommand,
                     getPropertyOrRunCommandUtil = utils.getPropertyOrRunCommand;
                 buffer += '
    ' + type + ''); + var type = visit3_52_1(element.attr('_ke_real_element_type') || element.nodeName()), a = new Node('' + type + ''); _$jscoverage['/element-path.js'].lineData[60]++; self._cache.push(a); _$jscoverage['/element-path.js'].lineData[62]++; diff --git a/src/editor/sub-modules/plugin/element-path/src/element-path.js b/src/editor/sub-modules/plugin/element-path/src/element-path.js index 9760cc5879..da370ff055 100644 --- a/src/editor/sub-modules/plugin/element-path/src/element-path.js +++ b/src/editor/sub-modules/plugin/element-path/src/element-path.js @@ -49,7 +49,7 @@ KISSY.add(function (S, require) { for (i = 0; i < elements.length; i++) { element = elements[i]; // 考虑 fake objects - var type = element.attr('_keRealElementType') || element.nodeName(), + var type = element.attr('_ke_real_element_type') || element.nodeName(), a = new Node('', attributes, self.get('document')[0]); }, restoreRealElement: function(fakeElement) { _$jscoverage['/fake-objects.js'].functionData[2]++; - _$jscoverage['/fake-objects.js'].lineData[53]++; - if (visit8_53_1(fakeElement.attr('_keRealNodeType') !== Dom.NodeType.ELEMENT_NODE)) { - _$jscoverage['/fake-objects.js'].lineData[54]++; + _$jscoverage['/fake-objects.js'].lineData[54]++; + if (visit8_54_1(parseInt(fakeElement.attr('_ke_real_node_type'), 10) !== Dom.NodeType.ELEMENT_NODE)) { + _$jscoverage['/fake-objects.js'].lineData[55]++; return null; } - _$jscoverage['/fake-objects.js'].lineData[57]++; - var html = (S.urlDecode(fakeElement.attr('_keRealElement'))); - _$jscoverage['/fake-objects.js'].lineData[59]++; - var temp = new Node('
    ', null, this.get('document')[0]); + _$jscoverage['/fake-objects.js'].lineData[58]++; + var html = (S.urlDecode(fakeElement.attr('_ke_real_element'))); _$jscoverage['/fake-objects.js'].lineData[60]++; + var temp = new Node('
    ', null, this.get('document')[0]); + _$jscoverage['/fake-objects.js'].lineData[61]++; temp.html(html); - _$jscoverage['/fake-objects.js'].lineData[62]++; + _$jscoverage['/fake-objects.js'].lineData[63]++; return temp.first().remove(); }}); - _$jscoverage['/fake-objects.js'].lineData[66]++; + _$jscoverage['/fake-objects.js'].lineData[67]++; var htmlFilterRules = { tags: { $: function(element) { _$jscoverage['/fake-objects.js'].functionData[3]++; - _$jscoverage['/fake-objects.js'].lineData[70]++; - var realHTML = element.getAttribute('_keRealElement'); - _$jscoverage['/fake-objects.js'].lineData[72]++; + _$jscoverage['/fake-objects.js'].lineData[71]++; + var realHTML = element.getAttribute('_ke_real_element'); + _$jscoverage['/fake-objects.js'].lineData[73]++; var realFragment; - _$jscoverage['/fake-objects.js'].lineData[74]++; - if (visit9_74_1(realHTML)) { - _$jscoverage['/fake-objects.js'].lineData[75]++; + _$jscoverage['/fake-objects.js'].lineData[75]++; + if (visit9_75_1(realHTML)) { + _$jscoverage['/fake-objects.js'].lineData[76]++; realFragment = new HtmlParser.Parser(S.urlDecode(realHTML)).parse(); } - _$jscoverage['/fake-objects.js'].lineData[78]++; - var realElement = visit10_78_1(realFragment && realFragment.childNodes[0]); - _$jscoverage['/fake-objects.js'].lineData[82]++; - if (visit11_82_1(realElement)) { - _$jscoverage['/fake-objects.js'].lineData[83]++; - var style = element.getAttribute('style'); + _$jscoverage['/fake-objects.js'].lineData[79]++; + var realElement = visit10_79_1(realFragment && realFragment.childNodes[0]); + _$jscoverage['/fake-objects.js'].lineData[83]++; + if (visit11_83_1(realElement)) { _$jscoverage['/fake-objects.js'].lineData[84]++; - if (visit12_84_1(style)) { - _$jscoverage['/fake-objects.js'].lineData[86]++; - var match = /(?:^|\s)width\s*:\s*(\d+)/i.exec(style), width = visit13_87_1(match && match[1]); - _$jscoverage['/fake-objects.js'].lineData[90]++; + var style = element.getAttribute('style'); + _$jscoverage['/fake-objects.js'].lineData[85]++; + if (visit12_85_1(style)) { + _$jscoverage['/fake-objects.js'].lineData[87]++; + var match = /(?:^|\s)width\s*:\s*(\d+)/i.exec(style), width = visit13_88_1(match && match[1]); + _$jscoverage['/fake-objects.js'].lineData[91]++; match = /(?:^|\s)height\s*:\s*(\d+)/i.exec(style); - _$jscoverage['/fake-objects.js'].lineData[92]++; - var height = visit14_92_1(match && match[1]); - _$jscoverage['/fake-objects.js'].lineData[94]++; - if (visit15_94_1(width)) { - _$jscoverage['/fake-objects.js'].lineData[95]++; + _$jscoverage['/fake-objects.js'].lineData[93]++; + var height = visit14_93_1(match && match[1]); + _$jscoverage['/fake-objects.js'].lineData[95]++; + if (visit15_95_1(width)) { + _$jscoverage['/fake-objects.js'].lineData[96]++; realElement.setAttribute('width', width); } - _$jscoverage['/fake-objects.js'].lineData[97]++; - if (visit16_97_1(height)) { - _$jscoverage['/fake-objects.js'].lineData[98]++; + _$jscoverage['/fake-objects.js'].lineData[98]++; + if (visit16_98_1(height)) { + _$jscoverage['/fake-objects.js'].lineData[99]++; realElement.setAttribute('height', height); } } - _$jscoverage['/fake-objects.js'].lineData[101]++; + _$jscoverage['/fake-objects.js'].lineData[102]++; return realElement; } }}}; - _$jscoverage['/fake-objects.js'].lineData[108]++; + _$jscoverage['/fake-objects.js'].lineData[109]++; return { init: function(editor) { _$jscoverage['/fake-objects.js'].functionData[4]++; - _$jscoverage['/fake-objects.js'].lineData[110]++; - var dataProcessor = editor.htmlDataProcessor, htmlFilter = visit17_111_1(dataProcessor && dataProcessor.htmlFilter); - _$jscoverage['/fake-objects.js'].lineData[113]++; - if (visit18_113_1(dataProcessor.createFakeParserElement)) { - _$jscoverage['/fake-objects.js'].lineData[114]++; + _$jscoverage['/fake-objects.js'].lineData[111]++; + var dataProcessor = editor.htmlDataProcessor, htmlFilter = visit17_112_1(dataProcessor && dataProcessor.htmlFilter); + _$jscoverage['/fake-objects.js'].lineData[114]++; + if (visit18_114_1(dataProcessor.createFakeParserElement)) { + _$jscoverage['/fake-objects.js'].lineData[115]++; return; } - _$jscoverage['/fake-objects.js'].lineData[117]++; - if (visit19_117_1(htmlFilter)) { - _$jscoverage['/fake-objects.js'].lineData[118]++; + _$jscoverage['/fake-objects.js'].lineData[118]++; + if (visit19_118_1(htmlFilter)) { + _$jscoverage['/fake-objects.js'].lineData[119]++; htmlFilter.addRules(htmlFilterRules); } - _$jscoverage['/fake-objects.js'].lineData[121]++; + _$jscoverage['/fake-objects.js'].lineData[122]++; S.mix(dataProcessor, { restoreRealElement: function(fakeElement) { _$jscoverage['/fake-objects.js'].functionData[5]++; - _$jscoverage['/fake-objects.js'].lineData[123]++; - if (visit20_123_1(fakeElement.attr('_keRealNodeType') !== Dom.NodeType.ELEMENT_NODE)) { - _$jscoverage['/fake-objects.js'].lineData[124]++; + _$jscoverage['/fake-objects.js'].lineData[124]++; + if (visit20_124_1(parseInt(fakeElement.attr('_ke_real_node_type'), 10) !== Dom.NodeType.ELEMENT_NODE)) { + _$jscoverage['/fake-objects.js'].lineData[125]++; return null; } - _$jscoverage['/fake-objects.js'].lineData[127]++; - var html = (S.urlDecode(fakeElement.attr('_keRealElement'))); - _$jscoverage['/fake-objects.js'].lineData[129]++; - var temp = new Node('
    ', null, editor.get('document')[0]); + _$jscoverage['/fake-objects.js'].lineData[128]++; + var html = (S.urlDecode(fakeElement.attr('_ke_real_element'))); _$jscoverage['/fake-objects.js'].lineData[130]++; + var temp = new Node('
    ', null, editor.get('document')[0]); + _$jscoverage['/fake-objects.js'].lineData[131]++; temp.html(html); - _$jscoverage['/fake-objects.js'].lineData[132]++; + _$jscoverage['/fake-objects.js'].lineData[133]++; return temp.first().remove(); }, createFakeParserElement: function(realElement, className, realElementType, isResizable, attrs) { _$jscoverage['/fake-objects.js'].functionData[6]++; - _$jscoverage['/fake-objects.js'].lineData[138]++; - var html = HtmlParser.serialize(realElement); _$jscoverage['/fake-objects.js'].lineData[139]++; - var style = visit21_139_1(realElement.getAttribute('style') || ''); + var html = HtmlParser.serialize(realElement); _$jscoverage['/fake-objects.js'].lineData[140]++; - if (visit22_140_1(realElement.getAttribute('width'))) { - _$jscoverage['/fake-objects.js'].lineData[141]++; + var style = visit21_140_1(realElement.getAttribute('style') || ''); + _$jscoverage['/fake-objects.js'].lineData[141]++; + if (visit22_141_1(realElement.getAttribute('width'))) { + _$jscoverage['/fake-objects.js'].lineData[142]++; style = 'width:' + realElement.getAttribute('width') + 'px;' + style; } - _$jscoverage['/fake-objects.js'].lineData[143]++; - if (visit23_143_1(realElement.getAttribute('height'))) { - _$jscoverage['/fake-objects.js'].lineData[144]++; + _$jscoverage['/fake-objects.js'].lineData[144]++; + if (visit23_144_1(realElement.getAttribute('height'))) { + _$jscoverage['/fake-objects.js'].lineData[145]++; style = 'height:' + realElement.getAttribute('height') + 'px;' + style; } - _$jscoverage['/fake-objects.js'].lineData[147]++; + _$jscoverage['/fake-objects.js'].lineData[148]++; var existClass = S.trim(realElement.getAttribute('class')), attributes = { 'class': className + ' ' + existClass, src: SPACER_GIF, - _keRealElement: encodeURIComponent(html), - _keRealNodeType: realElement.nodeType + '', + _ke_real_element: encodeURIComponent(html), + _ke_real_node_type: realElement.nodeType + '', style: style, - align: visit24_154_1(realElement.getAttribute('align') || '')}; - _$jscoverage['/fake-objects.js'].lineData[157]++; - if (visit25_157_1(attrs)) { - _$jscoverage['/fake-objects.js'].lineData[158]++; - delete attrs.width; + align: visit24_155_1(realElement.getAttribute('align') || '')}; + _$jscoverage['/fake-objects.js'].lineData[158]++; + if (visit25_158_1(attrs)) { _$jscoverage['/fake-objects.js'].lineData[159]++; - delete attrs.height; + delete attrs.width; _$jscoverage['/fake-objects.js'].lineData[160]++; + delete attrs.height; + _$jscoverage['/fake-objects.js'].lineData[161]++; S.mix(attributes, attrs, false); } - _$jscoverage['/fake-objects.js'].lineData[163]++; - if (visit26_163_1(realElementType)) { - _$jscoverage['/fake-objects.js'].lineData[164]++; - attributes._keRealElementType = realElementType; + _$jscoverage['/fake-objects.js'].lineData[164]++; + if (visit26_164_1(realElementType)) { + _$jscoverage['/fake-objects.js'].lineData[165]++; + attributes._ke_real_element_type = realElementType; } - _$jscoverage['/fake-objects.js'].lineData[166]++; - if (visit27_166_1(isResizable)) { - _$jscoverage['/fake-objects.js'].lineData[167]++; - attributes._keResizable = '_keResizable'; + _$jscoverage['/fake-objects.js'].lineData[167]++; + if (visit27_167_1(isResizable)) { + _$jscoverage['/fake-objects.js'].lineData[168]++; + attributes._ke_resizable = '_ke_resizable'; } - _$jscoverage['/fake-objects.js'].lineData[169]++; + _$jscoverage['/fake-objects.js'].lineData[170]++; return new HtmlParser.Tag('img', attributes); }}); }}; diff --git a/src/editor/sub-modules/plugin/fake-objects/src/fake-objects.js b/src/editor/sub-modules/plugin/fake-objects/src/fake-objects.js index 0242aaf939..80797197ad 100644 --- a/src/editor/sub-modules/plugin/fake-objects/src/fake-objects.js +++ b/src/editor/sub-modules/plugin/fake-objects/src/fake-objects.js @@ -4,6 +4,7 @@ * @author yiminghe@gmail.com */ KISSY.add(function (S, require) { + /*jshint camelcase:false*/ var Editor = require('editor'); var HtmlParser = require('html-parser'); @@ -28,8 +29,8 @@ KISSY.add(function (S, require) { attributes = { 'class': className + ' ' + existClass, src: SPACER_GIF, - _keRealElement: encodeURIComponent(outerHTML || realElement.outerHtml()), - _keRealNodeType: realElement[0].nodeType, + _ke_real_element: encodeURIComponent(outerHTML || realElement.outerHtml()), + _ke_real_node_type: realElement[0].nodeType, style: style }; @@ -39,22 +40,22 @@ KISSY.add(function (S, require) { S.mix(attributes, attrs, false); } - if (realElementType){ - attributes._keRealElementType = realElementType; + if (realElementType) { + attributes._ke_real_element_type = realElementType; } - if (isResizable){ - attributes._keResizable = isResizable; + if (isResizable) { + attributes._ke_resizable = isResizable; } return new Node('', attributes, self.get('document')[0]); }, restoreRealElement: function (fakeElement) { - if (fakeElement.attr('_keRealNodeType') !== Dom.NodeType.ELEMENT_NODE) { + if (parseInt(fakeElement.attr('_ke_real_node_type'), 10) !== Dom.NodeType.ELEMENT_NODE) { return null; } - var html = (S.urlDecode(fakeElement.attr('_keRealElement'))); + var html = (S.urlDecode(fakeElement.attr('_ke_real_element'))); var temp = new Node('
    ', null, this.get('document')[0]); temp.html(html); @@ -67,7 +68,7 @@ KISSY.add(function (S, require) { tags: { // 生成最终html时,从编辑器html转化把fake替换为真实,并将style的width,height搞到属性上去 $: function (element) { - var realHTML = element.getAttribute('_keRealElement'); + var realHTML = element.getAttribute('_ke_real_element'); var realFragment; @@ -120,11 +121,11 @@ KISSY.add(function (S, require) { S.mix(dataProcessor, { restoreRealElement: function (fakeElement) { - if (fakeElement.attr('_keRealNodeType') !== Dom.NodeType.ELEMENT_NODE) { + if (parseInt(fakeElement.attr('_ke_real_node_type'), 10) !== Dom.NodeType.ELEMENT_NODE) { return null; } - var html = (S.urlDecode(fakeElement.attr('_keRealElement'))); + var html = (S.urlDecode(fakeElement.attr('_ke_real_element'))); var temp = new Node('
    ', null, editor.get('document')[0]); temp.html(html); @@ -148,8 +149,8 @@ KISSY.add(function (S, require) { attributes = { 'class': className + ' ' + existClass, src: SPACER_GIF, - _keRealElement: encodeURIComponent(html), - _keRealNodeType: realElement.nodeType + '', + _ke_real_element: encodeURIComponent(html), + _ke_real_node_type: realElement.nodeType + '', style: style, align: realElement.getAttribute('align') || '' }; @@ -161,10 +162,10 @@ KISSY.add(function (S, require) { } if (realElementType) { - attributes._keRealElementType = realElementType; + attributes._ke_real_element_type = realElementType; } if (isResizable) { - attributes._keResizable = '_keResizable'; + attributes._ke_resizable = '_ke_resizable'; } return new HtmlParser.Tag('img', attributes); } diff --git a/src/editor/sub-modules/plugin/flash-common/base-class/coverage/src/base-class.js b/src/editor/sub-modules/plugin/flash-common/base-class/coverage/src/base-class.js index 6701ec99bd..905a1a5f4c 100644 --- a/src/editor/sub-modules/plugin/flash-common/base-class/coverage/src/base-class.js +++ b/src/editor/sub-modules/plugin/flash-common/base-class/coverage/src/base-class.js @@ -236,52 +236,53 @@ if (! _$jscoverage['/base-class.js']) { _$jscoverage['/base-class.js'].lineData[10] = 0; _$jscoverage['/base-class.js'].lineData[11] = 0; _$jscoverage['/base-class.js'].lineData[12] = 0; - _$jscoverage['/base-class.js'].lineData[14] = 0; - _$jscoverage['/base-class.js'].lineData[21] = 0; - _$jscoverage['/base-class.js'].lineData[23] = 0; - _$jscoverage['/base-class.js'].lineData[32] = 0; + _$jscoverage['/base-class.js'].lineData[13] = 0; + _$jscoverage['/base-class.js'].lineData[15] = 0; + _$jscoverage['/base-class.js'].lineData[22] = 0; + _$jscoverage['/base-class.js'].lineData[24] = 0; _$jscoverage['/base-class.js'].lineData[33] = 0; - _$jscoverage['/base-class.js'].lineData[38] = 0; - _$jscoverage['/base-class.js'].lineData[43] = 0; + _$jscoverage['/base-class.js'].lineData[34] = 0; + _$jscoverage['/base-class.js'].lineData[39] = 0; _$jscoverage['/base-class.js'].lineData[44] = 0; _$jscoverage['/base-class.js'].lineData[45] = 0; - _$jscoverage['/base-class.js'].lineData[51] = 0; + _$jscoverage['/base-class.js'].lineData[46] = 0; _$jscoverage['/base-class.js'].lineData[52] = 0; - _$jscoverage['/base-class.js'].lineData[57] = 0; - _$jscoverage['/base-class.js'].lineData[59] = 0; - _$jscoverage['/base-class.js'].lineData[63] = 0; - _$jscoverage['/base-class.js'].lineData[68] = 0; - _$jscoverage['/base-class.js'].lineData[70] = 0; - _$jscoverage['/base-class.js'].lineData[72] = 0; + _$jscoverage['/base-class.js'].lineData[53] = 0; + _$jscoverage['/base-class.js'].lineData[58] = 0; + _$jscoverage['/base-class.js'].lineData[60] = 0; + _$jscoverage['/base-class.js'].lineData[64] = 0; + _$jscoverage['/base-class.js'].lineData[69] = 0; + _$jscoverage['/base-class.js'].lineData[71] = 0; _$jscoverage['/base-class.js'].lineData[73] = 0; - _$jscoverage['/base-class.js'].lineData[76] = 0; - _$jscoverage['/base-class.js'].lineData[78] = 0; + _$jscoverage['/base-class.js'].lineData[74] = 0; + _$jscoverage['/base-class.js'].lineData[77] = 0; _$jscoverage['/base-class.js'].lineData[79] = 0; - _$jscoverage['/base-class.js'].lineData[81] = 0; + _$jscoverage['/base-class.js'].lineData[80] = 0; _$jscoverage['/base-class.js'].lineData[82] = 0; _$jscoverage['/base-class.js'].lineData[83] = 0; - _$jscoverage['/base-class.js'].lineData[86] = 0; + _$jscoverage['/base-class.js'].lineData[84] = 0; _$jscoverage['/base-class.js'].lineData[87] = 0; _$jscoverage['/base-class.js'].lineData[88] = 0; _$jscoverage['/base-class.js'].lineData[89] = 0; - _$jscoverage['/base-class.js'].lineData[95] = 0; + _$jscoverage['/base-class.js'].lineData[90] = 0; _$jscoverage['/base-class.js'].lineData[96] = 0; _$jscoverage['/base-class.js'].lineData[97] = 0; _$jscoverage['/base-class.js'].lineData[98] = 0; - _$jscoverage['/base-class.js'].lineData[106] = 0; - _$jscoverage['/base-class.js'].lineData[108] = 0; - _$jscoverage['/base-class.js'].lineData[113] = 0; - _$jscoverage['/base-class.js'].lineData[118] = 0; - _$jscoverage['/base-class.js'].lineData[121] = 0; + _$jscoverage['/base-class.js'].lineData[99] = 0; + _$jscoverage['/base-class.js'].lineData[107] = 0; + _$jscoverage['/base-class.js'].lineData[109] = 0; + _$jscoverage['/base-class.js'].lineData[114] = 0; + _$jscoverage['/base-class.js'].lineData[119] = 0; _$jscoverage['/base-class.js'].lineData[122] = 0; - _$jscoverage['/base-class.js'].lineData[124] = 0; + _$jscoverage['/base-class.js'].lineData[123] = 0; _$jscoverage['/base-class.js'].lineData[125] = 0; - _$jscoverage['/base-class.js'].lineData[130] = 0; - _$jscoverage['/base-class.js'].lineData[132] = 0; + _$jscoverage['/base-class.js'].lineData[126] = 0; + _$jscoverage['/base-class.js'].lineData[131] = 0; _$jscoverage['/base-class.js'].lineData[133] = 0; _$jscoverage['/base-class.js'].lineData[134] = 0; - _$jscoverage['/base-class.js'].lineData[139] = 0; - _$jscoverage['/base-class.js'].lineData[141] = 0; + _$jscoverage['/base-class.js'].lineData[135] = 0; + _$jscoverage['/base-class.js'].lineData[140] = 0; + _$jscoverage['/base-class.js'].lineData[142] = 0; } if (! _$jscoverage['/base-class.js'].functionData) { _$jscoverage['/base-class.js'].functionData = []; @@ -302,59 +303,59 @@ if (! _$jscoverage['/base-class.js'].functionData) { } if (! _$jscoverage['/base-class.js'].branchData) { _$jscoverage['/base-class.js'].branchData = {}; - _$jscoverage['/base-class.js'].branchData['44'] = []; - _$jscoverage['/base-class.js'].branchData['44'][1] = new BranchData(); - _$jscoverage['/base-class.js'].branchData['52'] = []; - _$jscoverage['/base-class.js'].branchData['52'][1] = new BranchData(); - _$jscoverage['/base-class.js'].branchData['78'] = []; - _$jscoverage['/base-class.js'].branchData['78'][1] = new BranchData(); - _$jscoverage['/base-class.js'].branchData['80'] = []; - _$jscoverage['/base-class.js'].branchData['80'][1] = new BranchData(); + _$jscoverage['/base-class.js'].branchData['45'] = []; + _$jscoverage['/base-class.js'].branchData['45'][1] = new BranchData(); + _$jscoverage['/base-class.js'].branchData['53'] = []; + _$jscoverage['/base-class.js'].branchData['53'][1] = new BranchData(); + _$jscoverage['/base-class.js'].branchData['79'] = []; + _$jscoverage['/base-class.js'].branchData['79'][1] = new BranchData(); _$jscoverage['/base-class.js'].branchData['81'] = []; _$jscoverage['/base-class.js'].branchData['81'][1] = new BranchData(); - _$jscoverage['/base-class.js'].branchData['97'] = []; - _$jscoverage['/base-class.js'].branchData['97'][1] = new BranchData(); - _$jscoverage['/base-class.js'].branchData['121'] = []; - _$jscoverage['/base-class.js'].branchData['121'][1] = new BranchData(); - _$jscoverage['/base-class.js'].branchData['132'] = []; - _$jscoverage['/base-class.js'].branchData['132'][1] = new BranchData(); - _$jscoverage['/base-class.js'].branchData['132'][2] = new BranchData(); + _$jscoverage['/base-class.js'].branchData['82'] = []; + _$jscoverage['/base-class.js'].branchData['82'][1] = new BranchData(); + _$jscoverage['/base-class.js'].branchData['98'] = []; + _$jscoverage['/base-class.js'].branchData['98'][1] = new BranchData(); + _$jscoverage['/base-class.js'].branchData['122'] = []; + _$jscoverage['/base-class.js'].branchData['122'][1] = new BranchData(); + _$jscoverage['/base-class.js'].branchData['133'] = []; + _$jscoverage['/base-class.js'].branchData['133'][1] = new BranchData(); + _$jscoverage['/base-class.js'].branchData['133'][2] = new BranchData(); } -_$jscoverage['/base-class.js'].branchData['132'][2].init(87, 22, 't.nodeName() === \'img\''); -function visit9_132_2(result) { - _$jscoverage['/base-class.js'].branchData['132'][2].ranCondition(result); +_$jscoverage['/base-class.js'].branchData['133'][2].init(87, 22, 't.nodeName() === \'img\''); +function visit9_133_2(result) { + _$jscoverage['/base-class.js'].branchData['133'][2].ranCondition(result); return result; -}_$jscoverage['/base-class.js'].branchData['132'][1].init(87, 64, 't.nodeName() === \'img\' && t.hasClass(self.get(\'cls\'), undefined)'); -function visit8_132_1(result) { - _$jscoverage['/base-class.js'].branchData['132'][1].ranCondition(result); +}_$jscoverage['/base-class.js'].branchData['133'][1].init(87, 64, 't.nodeName() === \'img\' && t.hasClass(self.get(\'cls\'), undefined)'); +function visit8_133_1(result) { + _$jscoverage['/base-class.js'].branchData['133'][1].ranCondition(result); return result; -}_$jscoverage['/base-class.js'].branchData['121'][1].init(153, 2, '!r'); -function visit7_121_1(result) { - _$jscoverage['/base-class.js'].branchData['121'][1].ranCondition(result); +}_$jscoverage['/base-class.js'].branchData['122'][1].init(153, 2, '!r'); +function visit7_122_1(result) { + _$jscoverage['/base-class.js'].branchData['122'][1].ranCondition(result); return result; -}_$jscoverage['/base-class.js'].branchData['97'][1].init(109, 1, 'a'); -function visit6_97_1(result) { - _$jscoverage['/base-class.js'].branchData['97'][1].ranCondition(result); +}_$jscoverage['/base-class.js'].branchData['98'][1].init(109, 1, 'a'); +function visit6_98_1(result) { + _$jscoverage['/base-class.js'].branchData['98'][1].ranCondition(result); return result; -}_$jscoverage['/base-class.js'].branchData['81'][1].init(176, 2, 'r0'); -function visit5_81_1(result) { - _$jscoverage['/base-class.js'].branchData['81'][1].ranCondition(result); +}_$jscoverage['/base-class.js'].branchData['82'][1].init(176, 2, 'r0'); +function visit5_82_1(result) { + _$jscoverage['/base-class.js'].branchData['82'][1].ranCondition(result); return result; -}_$jscoverage['/base-class.js'].branchData['80'][1].init(87, 9, 'r && r[0]'); -function visit4_80_1(result) { - _$jscoverage['/base-class.js'].branchData['80'][1].ranCondition(result); +}_$jscoverage['/base-class.js'].branchData['81'][1].init(87, 9, 'r && r[0]'); +function visit4_81_1(result) { + _$jscoverage['/base-class.js'].branchData['81'][1].ranCondition(result); return result; -}_$jscoverage['/base-class.js'].branchData['78'][1].init(93, 11, 'S.UA.webkit'); -function visit3_78_1(result) { - _$jscoverage['/base-class.js'].branchData['78'][1].ranCondition(result); +}_$jscoverage['/base-class.js'].branchData['79'][1].init(93, 11, 'S.UA.webkit'); +function visit3_79_1(result) { + _$jscoverage['/base-class.js'].branchData['79'][1].ranCondition(result); return result; -}_$jscoverage['/base-class.js'].branchData['52'][1].init(24, 33, 'el.hasClass(cls, undefined) && el'); -function visit2_52_1(result) { - _$jscoverage['/base-class.js'].branchData['52'][1].ranCondition(result); +}_$jscoverage['/base-class.js'].branchData['53'][1].init(24, 33, 'el.hasClass(cls, undefined) && el'); +function visit2_53_1(result) { + _$jscoverage['/base-class.js'].branchData['53'][1].ranCondition(result); return result; -}_$jscoverage['/base-class.js'].branchData['44'][1].init(92, 28, 'contextMenuHandlers[content]'); -function visit1_44_1(result) { - _$jscoverage['/base-class.js'].branchData['44'][1].ranCondition(result); +}_$jscoverage['/base-class.js'].branchData['45'][1].init(92, 28, 'contextMenuHandlers[content]'); +function visit1_45_1(result) { + _$jscoverage['/base-class.js'].branchData['45'][1].ranCondition(result); return result; }_$jscoverage['/base-class.js'].lineData[6]++; KISSY.add(function(S, require) { @@ -371,142 +372,144 @@ KISSY.add(function(S, require) { var DialogLoader = require('../dialog-loader'); _$jscoverage['/base-class.js'].lineData[12]++; require('../bubble'); - _$jscoverage['/base-class.js'].lineData[14]++; + _$jscoverage['/base-class.js'].lineData[13]++; + require('../contextmenu'); + _$jscoverage['/base-class.js'].lineData[15]++; var tipHTML = ' {label} | ' + ' \u7f16\u8f91 | ' + ' \u5220\u9664'; - _$jscoverage['/base-class.js'].lineData[21]++; + _$jscoverage['/base-class.js'].lineData[22]++; return Base.extend({ initializer: function() { _$jscoverage['/base-class.js'].functionData[1]++; - _$jscoverage['/base-class.js'].lineData[23]++; + _$jscoverage['/base-class.js'].lineData[24]++; var self = this, cls = self.get('cls'), editor = self.get('editor'), prefixCls = editor.get('prefixCls'), children = [], bubbleId = self.get('bubbleId'), contextMenuId = self.get('contextMenuId'), contextMenuHandlers = self.get('contextMenuHandlers'); - _$jscoverage['/base-class.js'].lineData[32]++; + _$jscoverage['/base-class.js'].lineData[33]++; S.each(contextMenuHandlers, function(h, content) { _$jscoverage['/base-class.js'].functionData[2]++; - _$jscoverage['/base-class.js'].lineData[33]++; + _$jscoverage['/base-class.js'].lineData[34]++; children.push({ content: content}); }); - _$jscoverage['/base-class.js'].lineData[38]++; + _$jscoverage['/base-class.js'].lineData[39]++; editor.addContextMenu(contextMenuId, '.' + cls, { width: '120px', children: children, listeners: { click: function(e) { _$jscoverage['/base-class.js'].functionData[3]++; - _$jscoverage['/base-class.js'].lineData[43]++; - var content = e.target.get('content'); _$jscoverage['/base-class.js'].lineData[44]++; - if (visit1_44_1(contextMenuHandlers[content])) { - _$jscoverage['/base-class.js'].lineData[45]++; + var content = e.target.get('content'); + _$jscoverage['/base-class.js'].lineData[45]++; + if (visit1_45_1(contextMenuHandlers[content])) { + _$jscoverage['/base-class.js'].lineData[46]++; contextMenuHandlers[content].call(this); } }}}); - _$jscoverage['/base-class.js'].lineData[51]++; + _$jscoverage['/base-class.js'].lineData[52]++; editor.addBubble(bubbleId, function(el) { _$jscoverage['/base-class.js'].functionData[4]++; - _$jscoverage['/base-class.js'].lineData[52]++; - return visit2_52_1(el.hasClass(cls, undefined) && el); + _$jscoverage['/base-class.js'].lineData[53]++; + return visit2_53_1(el.hasClass(cls, undefined) && el); }, { listeners: { afterRenderUI: function() { _$jscoverage['/base-class.js'].functionData[5]++; - _$jscoverage['/base-class.js'].lineData[57]++; + _$jscoverage['/base-class.js'].lineData[58]++; var bubble = this, el = bubble.get('contentEl'); - _$jscoverage['/base-class.js'].lineData[59]++; + _$jscoverage['/base-class.js'].lineData[60]++; el.html(S.substitute(tipHTML, { label: self.get('label'), prefixCls: prefixCls})); - _$jscoverage['/base-class.js'].lineData[63]++; + _$jscoverage['/base-class.js'].lineData[64]++; var tipUrlEl = el.one('.' + prefixCls + 'editor-bubble-url'), tipChangeEl = el.one('.' + prefixCls + 'editor-bubble-change'), tipRemoveEl = el.one('.' + prefixCls + 'editor-bubble-remove'); - _$jscoverage['/base-class.js'].lineData[68]++; + _$jscoverage['/base-class.js'].lineData[69]++; Editor.Utils.preventFocus(el); - _$jscoverage['/base-class.js'].lineData[70]++; + _$jscoverage['/base-class.js'].lineData[71]++; tipChangeEl.on('click', function(ev) { _$jscoverage['/base-class.js'].functionData[6]++; - _$jscoverage['/base-class.js'].lineData[72]++; - self.show(bubble.get('editorSelectedEl')); _$jscoverage['/base-class.js'].lineData[73]++; + self.show(bubble.get('editorSelectedEl')); + _$jscoverage['/base-class.js'].lineData[74]++; ev.halt(); }); - _$jscoverage['/base-class.js'].lineData[76]++; + _$jscoverage['/base-class.js'].lineData[77]++; tipRemoveEl.on('click', function(ev) { _$jscoverage['/base-class.js'].functionData[7]++; - _$jscoverage['/base-class.js'].lineData[78]++; - if (visit3_78_1(S.UA.webkit)) { - _$jscoverage['/base-class.js'].lineData[79]++; - var r = editor.getSelection().getRanges(), r0 = visit4_80_1(r && r[0]); - _$jscoverage['/base-class.js'].lineData[81]++; - if (visit5_81_1(r0)) { - _$jscoverage['/base-class.js'].lineData[82]++; - r0.collapse(true); + _$jscoverage['/base-class.js'].lineData[79]++; + if (visit3_79_1(S.UA.webkit)) { + _$jscoverage['/base-class.js'].lineData[80]++; + var r = editor.getSelection().getRanges(), r0 = visit4_81_1(r && r[0]); + _$jscoverage['/base-class.js'].lineData[82]++; + if (visit5_82_1(r0)) { _$jscoverage['/base-class.js'].lineData[83]++; + r0.collapse(true); + _$jscoverage['/base-class.js'].lineData[84]++; r0.select(); } } - _$jscoverage['/base-class.js'].lineData[86]++; - bubble.get('editorSelectedEl').remove(); _$jscoverage['/base-class.js'].lineData[87]++; - bubble.hide(); + bubble.get('editorSelectedEl').remove(); _$jscoverage['/base-class.js'].lineData[88]++; - editor.notifySelectionChange(); + bubble.hide(); _$jscoverage['/base-class.js'].lineData[89]++; + editor.notifySelectionChange(); + _$jscoverage['/base-class.js'].lineData[90]++; ev.halt(); }); - _$jscoverage['/base-class.js'].lineData[95]++; + _$jscoverage['/base-class.js'].lineData[96]++; bubble.on('show', function() { _$jscoverage['/base-class.js'].functionData[8]++; - _$jscoverage['/base-class.js'].lineData[96]++; - var a = bubble.get('editorSelectedEl'); _$jscoverage['/base-class.js'].lineData[97]++; - if (visit6_97_1(a)) { - _$jscoverage['/base-class.js'].lineData[98]++; + var a = bubble.get('editorSelectedEl'); + _$jscoverage['/base-class.js'].lineData[98]++; + if (visit6_98_1(a)) { + _$jscoverage['/base-class.js'].lineData[99]++; self._updateTip(tipUrlEl, a); } }); }}}); - _$jscoverage['/base-class.js'].lineData[106]++; + _$jscoverage['/base-class.js'].lineData[107]++; editor.docReady(function() { _$jscoverage['/base-class.js'].functionData[9]++; - _$jscoverage['/base-class.js'].lineData[108]++; + _$jscoverage['/base-class.js'].lineData[109]++; editor.get('document').on('dblclick', self._dbClick, self); }); }, _getFlashUrl: function(r) { _$jscoverage['/base-class.js'].functionData[10]++; - _$jscoverage['/base-class.js'].lineData[113]++; + _$jscoverage['/base-class.js'].lineData[114]++; return flashUtils.getUrl(r); }, _updateTip: function(tipUrlElEl, selectedFlash) { _$jscoverage['/base-class.js'].functionData[11]++; - _$jscoverage['/base-class.js'].lineData[118]++; + _$jscoverage['/base-class.js'].lineData[119]++; var self = this, editor = self.get('editor'), r = editor.restoreRealElement(selectedFlash); - _$jscoverage['/base-class.js'].lineData[121]++; - if (visit7_121_1(!r)) { - _$jscoverage['/base-class.js'].lineData[122]++; + _$jscoverage['/base-class.js'].lineData[122]++; + if (visit7_122_1(!r)) { + _$jscoverage['/base-class.js'].lineData[123]++; return; } - _$jscoverage['/base-class.js'].lineData[124]++; - var url = self._getFlashUrl(r); _$jscoverage['/base-class.js'].lineData[125]++; + var url = self._getFlashUrl(r); + _$jscoverage['/base-class.js'].lineData[126]++; tipUrlElEl.attr('href', url); }, _dbClick: function(ev) { _$jscoverage['/base-class.js'].functionData[12]++; - _$jscoverage['/base-class.js'].lineData[130]++; + _$jscoverage['/base-class.js'].lineData[131]++; var self = this, t = new Node(ev.target); - _$jscoverage['/base-class.js'].lineData[132]++; - if (visit8_132_1(visit9_132_2(t.nodeName() === 'img') && t.hasClass(self.get('cls'), undefined))) { - _$jscoverage['/base-class.js'].lineData[133]++; - self.show(t); + _$jscoverage['/base-class.js'].lineData[133]++; + if (visit8_133_1(visit9_133_2(t.nodeName() === 'img') && t.hasClass(self.get('cls'), undefined))) { _$jscoverage['/base-class.js'].lineData[134]++; + self.show(t); + _$jscoverage['/base-class.js'].lineData[135]++; ev.halt(); } }, show: function(selectedEl) { _$jscoverage['/base-class.js'].functionData[13]++; - _$jscoverage['/base-class.js'].lineData[139]++; + _$jscoverage['/base-class.js'].lineData[140]++; var self = this, editor = self.get('editor'); - _$jscoverage['/base-class.js'].lineData[141]++; + _$jscoverage['/base-class.js'].lineData[142]++; DialogLoader.useDialog(editor, self.get('type'), self.get('pluginConfig'), selectedEl); }}, { ATTRS: { diff --git a/src/editor/sub-modules/plugin/flash-common/base-class/ke-meta/deps.js b/src/editor/sub-modules/plugin/flash-common/base-class/ke-meta/deps.js index 7b37917552..fe30c4461a 100644 --- a/src/editor/sub-modules/plugin/flash-common/base-class/ke-meta/deps.js +++ b/src/editor/sub-modules/plugin/flash-common/base-class/ke-meta/deps.js @@ -1,4 +1,4 @@ /*Generated By KISSY Module Compiler*/ config({ -'editor/plugin/flash-common/base-class': {requires: ['editor/plugin/flash-common/utils','base','editor','editor/plugin/dialog-loader','editor/plugin/bubble']} +'editor/plugin/flash-common/base-class': {requires: ['editor/plugin/flash-common/utils','base','editor','editor/plugin/dialog-loader','editor/plugin/bubble','editor/plugin/contextmenu']} }); diff --git a/src/editor/sub-modules/plugin/flash-common/base-class/src/base-class.js b/src/editor/sub-modules/plugin/flash-common/base-class/src/base-class.js index a2de055b44..9c41c2379a 100644 --- a/src/editor/sub-modules/plugin/flash-common/base-class/src/base-class.js +++ b/src/editor/sub-modules/plugin/flash-common/base-class/src/base-class.js @@ -10,6 +10,7 @@ KISSY.add(function (S, require) { var Node = S.Node; var DialogLoader = require('../dialog-loader'); require('../bubble'); + require('../contextmenu'); var tipHTML = ' \u5728\u65b0\u7a97\u53e3\u67e5\u770b | ' + '\u7f16\u8f91 | ' + '\u5220\u9664'; - _$jscoverage['/image.js'].lineData[29]++; + _$jscoverage['/image.js'].lineData[30]++; function ImagePlugin(config) { _$jscoverage['/image.js'].functionData[2]++; - _$jscoverage['/image.js'].lineData[30]++; - this.config = visit3_30_1(config || {}); + _$jscoverage['/image.js'].lineData[31]++; + this.config = visit3_31_1(config || {}); } - _$jscoverage['/image.js'].lineData[33]++; + _$jscoverage['/image.js'].lineData[34]++; S.augment(ImagePlugin, { pluginRenderUI: function(editor) { _$jscoverage['/image.js'].functionData[3]++; - _$jscoverage['/image.js'].lineData[36]++; + _$jscoverage['/image.js'].lineData[37]++; var self = this; - _$jscoverage['/image.js'].lineData[38]++; + _$jscoverage['/image.js'].lineData[39]++; var prefixCls = editor.get('prefixCls'); - _$jscoverage['/image.js'].lineData[40]++; + _$jscoverage['/image.js'].lineData[41]++; function showImageEditor(selectedEl) { _$jscoverage['/image.js'].functionData[4]++; - _$jscoverage['/image.js'].lineData[41]++; + _$jscoverage['/image.js'].lineData[42]++; DialogLoader.useDialog(editor, 'image', self.config, selectedEl); } - _$jscoverage['/image.js'].lineData[47]++; + _$jscoverage['/image.js'].lineData[48]++; editor.addButton('image', { tooltip: '\u63d2\u5165\u56fe\u7247', listeners: { click: function() { _$jscoverage['/image.js'].functionData[5]++; - _$jscoverage['/image.js'].lineData[51]++; + _$jscoverage['/image.js'].lineData[52]++; showImageEditor(null); }}, mode: Editor.Mode.WYSIWYG_MODE}); - _$jscoverage['/image.js'].lineData[58]++; + _$jscoverage['/image.js'].lineData[59]++; var handlers = [{ content: '\u56fe\u7247\u5c5e\u6027', fn: function() { _$jscoverage['/image.js'].functionData[6]++; - _$jscoverage['/image.js'].lineData[62]++; - var img = checkImg(this.get('editorSelectedEl')); _$jscoverage['/image.js'].lineData[63]++; - if (visit4_63_1(img)) { - _$jscoverage['/image.js'].lineData[65]++; - this.hide(); + var img = checkImg(this.get('editorSelectedEl')); + _$jscoverage['/image.js'].lineData[64]++; + if (visit4_64_1(img)) { _$jscoverage['/image.js'].lineData[66]++; + this.hide(); + _$jscoverage['/image.js'].lineData[67]++; showImageEditor($(img)); } }}, { content: '\u63d2\u5165\u65b0\u884c', fn: function() { _$jscoverage['/image.js'].functionData[7]++; - _$jscoverage['/image.js'].lineData[73]++; - this.hide(); _$jscoverage['/image.js'].lineData[74]++; + this.hide(); + _$jscoverage['/image.js'].lineData[75]++; var doc = editor.get('document')[0], p = new Node(doc.createElement('p')); - _$jscoverage['/image.js'].lineData[76]++; - if (visit5_76_1(!UA.ie)) { - _$jscoverage['/image.js'].lineData[77]++; + _$jscoverage['/image.js'].lineData[77]++; + if (visit5_77_1(!UA.ie)) { + _$jscoverage['/image.js'].lineData[78]++; p._4eAppendBogus(undefined); } - _$jscoverage['/image.js'].lineData[79]++; - var r = new Editor.Range(doc); _$jscoverage['/image.js'].lineData[80]++; - r.setStartAfter(this.get('editorSelectedEl')); + var r = new Editor.Range(doc); _$jscoverage['/image.js'].lineData[81]++; - r.select(); + r.setStartAfter(this.get('editorSelectedEl')); _$jscoverage['/image.js'].lineData[82]++; - editor.insertElement(p); + r.select(); _$jscoverage['/image.js'].lineData[83]++; - r.moveToElementEditablePosition(p, 1); + editor.insertElement(p); _$jscoverage['/image.js'].lineData[84]++; + r.moveToElementEditablePosition(p, 1); + _$jscoverage['/image.js'].lineData[85]++; r.select(); }}]; - _$jscoverage['/image.js'].lineData[89]++; + _$jscoverage['/image.js'].lineData[90]++; var children = []; - _$jscoverage['/image.js'].lineData[91]++; + _$jscoverage['/image.js'].lineData[92]++; S.each(handlers, function(h) { _$jscoverage['/image.js'].functionData[8]++; - _$jscoverage['/image.js'].lineData[92]++; + _$jscoverage['/image.js'].lineData[93]++; children.push({ content: h.content}); }); - _$jscoverage['/image.js'].lineData[97]++; + _$jscoverage['/image.js'].lineData[98]++; editor.addContextMenu('image', checkImg, { width: 120, children: children, listeners: { click: function(e) { _$jscoverage['/image.js'].functionData[9]++; - _$jscoverage['/image.js'].lineData[102]++; - var self = this, content = e.target.get('content'); _$jscoverage['/image.js'].lineData[103]++; + var self = this, content = e.target.get('content'); + _$jscoverage['/image.js'].lineData[104]++; S.each(handlers, function(h) { _$jscoverage['/image.js'].functionData[10]++; - _$jscoverage['/image.js'].lineData[104]++; - if (visit6_104_1(h.content === content)) { - _$jscoverage['/image.js'].lineData[105]++; + _$jscoverage['/image.js'].lineData[105]++; + if (visit6_105_1(h.content === content)) { + _$jscoverage['/image.js'].lineData[106]++; h.fn.call(self); } }); }}}); - _$jscoverage['/image.js'].lineData[113]++; + _$jscoverage['/image.js'].lineData[114]++; editor.docReady(function() { _$jscoverage['/image.js'].functionData[11]++; - _$jscoverage['/image.js'].lineData[114]++; + _$jscoverage['/image.js'].lineData[115]++; editor.get('document').on('dblclick', function(ev) { _$jscoverage['/image.js'].functionData[12]++; - _$jscoverage['/image.js'].lineData[115]++; - ev.halt(); _$jscoverage['/image.js'].lineData[116]++; - var t = $(ev.target); + ev.halt(); _$jscoverage['/image.js'].lineData[117]++; - if (visit7_117_1(checkImg(t))) { - _$jscoverage['/image.js'].lineData[118]++; + var t = $(ev.target); + _$jscoverage['/image.js'].lineData[118]++; + if (visit7_118_1(checkImg(t))) { + _$jscoverage['/image.js'].lineData[119]++; showImageEditor(t); } }); }); - _$jscoverage['/image.js'].lineData[123]++; + _$jscoverage['/image.js'].lineData[124]++; editor.addBubble('image', checkImg, { listeners: { afterRenderUI: function() { _$jscoverage['/image.js'].functionData[13]++; - _$jscoverage['/image.js'].lineData[126]++; + _$jscoverage['/image.js'].lineData[127]++; var bubble = this, el = bubble.get('contentEl'); - _$jscoverage['/image.js'].lineData[128]++; + _$jscoverage['/image.js'].lineData[129]++; el.html(S.substitute(tipHTML, { prefixCls: prefixCls})); - _$jscoverage['/image.js'].lineData[131]++; + _$jscoverage['/image.js'].lineData[132]++; var tipUrlEl = el.one('.' + prefixCls + 'editor-bubble-url'), tipChangeEl = el.one('.' + prefixCls + 'editor-bubble-change'), tipRemoveEl = el.one('.' + prefixCls + 'editor-bubble-remove'); - _$jscoverage['/image.js'].lineData[134]++; - Editor.Utils.preventFocus(el); _$jscoverage['/image.js'].lineData[135]++; + Editor.Utils.preventFocus(el); + _$jscoverage['/image.js'].lineData[136]++; tipChangeEl.on('click', function(ev) { _$jscoverage['/image.js'].functionData[14]++; - _$jscoverage['/image.js'].lineData[136]++; - showImageEditor(bubble.get('editorSelectedEl')); _$jscoverage['/image.js'].lineData[137]++; + showImageEditor(bubble.get('editorSelectedEl')); + _$jscoverage['/image.js'].lineData[138]++; ev.halt(); }); - _$jscoverage['/image.js'].lineData[139]++; + _$jscoverage['/image.js'].lineData[140]++; tipRemoveEl.on('click', function(ev) { _$jscoverage['/image.js'].functionData[15]++; - _$jscoverage['/image.js'].lineData[140]++; - if (visit8_140_1(UA.webkit)) { - _$jscoverage['/image.js'].lineData[141]++; - var r = editor.getSelection().getRanges(); + _$jscoverage['/image.js'].lineData[141]++; + if (visit8_141_1(UA.webkit)) { _$jscoverage['/image.js'].lineData[142]++; - if (visit9_142_1(r && r[0])) { - _$jscoverage['/image.js'].lineData[143]++; - r[0].collapse(); + var r = editor.getSelection().getRanges(); + _$jscoverage['/image.js'].lineData[143]++; + if (visit9_143_1(r && r[0])) { _$jscoverage['/image.js'].lineData[144]++; + r[0].collapse(); + _$jscoverage['/image.js'].lineData[145]++; r[0].select(); } } - _$jscoverage['/image.js'].lineData[147]++; - bubble.get('editorSelectedEl').remove(); _$jscoverage['/image.js'].lineData[148]++; - bubble.hide(); + bubble.get('editorSelectedEl').remove(); _$jscoverage['/image.js'].lineData[149]++; - editor.notifySelectionChange(); + bubble.hide(); _$jscoverage['/image.js'].lineData[150]++; + editor.notifySelectionChange(); + _$jscoverage['/image.js'].lineData[151]++; ev.halt(); }); - _$jscoverage['/image.js'].lineData[152]++; + _$jscoverage['/image.js'].lineData[153]++; bubble.on('show', function() { _$jscoverage['/image.js'].functionData[16]++; - _$jscoverage['/image.js'].lineData[153]++; - var a = bubble.get('editorSelectedEl'); _$jscoverage['/image.js'].lineData[154]++; - if (visit10_154_1(a)) { - _$jscoverage['/image.js'].lineData[155]++; - var src = visit11_155_1(a.attr('_keSaved_src') || a.attr('src')); + var a = bubble.get('editorSelectedEl'); + _$jscoverage['/image.js'].lineData[155]++; + if (visit10_155_1(a)) { _$jscoverage['/image.js'].lineData[156]++; + var src = visit11_156_1(a.attr('_ke_saved_src') || a.attr('src')); + _$jscoverage['/image.js'].lineData[157]++; tipUrlEl.attr('href', src); } }); }}}); }}); - _$jscoverage['/image.js'].lineData[165]++; + _$jscoverage['/image.js'].lineData[166]++; return ImagePlugin; }); diff --git a/src/editor/sub-modules/plugin/image/ke-meta/deps.js b/src/editor/sub-modules/plugin/image/ke-meta/deps.js index 86d3e4bfee..8bce47a8e2 100644 --- a/src/editor/sub-modules/plugin/image/ke-meta/deps.js +++ b/src/editor/sub-modules/plugin/image/ke-meta/deps.js @@ -1,4 +1,4 @@ /*Generated By KISSY Module Compiler*/ config({ -'editor/plugin/image': {requires: ['editor/plugin/button','editor','editor/plugin/bubble','editor/plugin/dialog-loader']} +'editor/plugin/image': {requires: ['editor/plugin/button','editor','editor/plugin/bubble','editor/plugin/dialog-loader','editor/plugin/contextmenu']} }); diff --git a/src/editor/sub-modules/plugin/image/src/image.js b/src/editor/sub-modules/plugin/image/src/image.js index cbb3ff10ea..6c31de9b81 100644 --- a/src/editor/sub-modules/plugin/image/src/image.js +++ b/src/editor/sub-modules/plugin/image/src/image.js @@ -8,6 +8,7 @@ KISSY.add(function (S,require) { var Editor=require('editor'); require('./bubble'); var DialogLoader = require('./dialog-loader'); + require('./contextmenu'); var UA = S.UA, Node = KISSY.NodeList, @@ -152,7 +153,7 @@ KISSY.add(function (S,require) { bubble.on('show', function () { var a = bubble.get('editorSelectedEl'); if (a) { - var src = a.attr('_keSaved_src') || a.attr('src'); + var src = a.attr('_ke_saved_src') || a.attr('src'); tipUrlEl.attr('href', src); } }); diff --git a/src/editor/sub-modules/plugin/image/sub-modules/dialog/coverage/src/dialog.js b/src/editor/sub-modules/plugin/image/sub-modules/dialog/coverage/src/dialog.js index e6a4400b7c..e8dfc97ff2 100644 --- a/src/editor/sub-modules/plugin/image/sub-modules/dialog/coverage/src/dialog.js +++ b/src/editor/sub-modules/plugin/image/sub-modules/dialog/coverage/src/dialog.js @@ -621,15 +621,15 @@ function visit71_482_1(result) { function visit70_479_1(result) { _$jscoverage['/dialog.js'].branchData['479'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['459'][1].init(139, 32, 'link.attr(\'target\') === \'_blank\''); +}_$jscoverage['/dialog.js'].branchData['459'][1].init(141, 32, 'link.attr(\'target\') === \'_blank\''); function visit69_459_1(result) { _$jscoverage['/dialog.js'].branchData['459'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['458'][1].init(40, 46, 'link.attr(\'_keSavedHref\') || link.attr(\'href\')'); +}_$jscoverage['/dialog.js'].branchData['458'][1].init(40, 48, 'link.attr(\'_ke_saved_href\') || link.attr(\'href\')'); function visit68_458_1(result) { _$jscoverage['/dialog.js'].branchData['458'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['457'][1].init(2171, 4, 'link'); +}_$jscoverage['/dialog.js'].branchData['457'][1].init(2180, 4, 'link'); function visit67_457_1(result) { _$jscoverage['/dialog.js'].branchData['457'][1].ranCondition(result); return result; @@ -649,19 +649,19 @@ function visit64_437_1(result) { function visit63_436_1(result) { _$jscoverage['/dialog.js'].branchData['436'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['428'][1].init(625, 41, 'parseInt(selectedEl.style(\'margin\')) || 0'); +}_$jscoverage['/dialog.js'].branchData['428'][1].init(631, 44, 'parseInt(selectedEl.style(\'margin\'), 10) || 0'); function visit62_428_1(result) { _$jscoverage['/dialog.js'].branchData['428'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['427'][1].init(558, 35, 'selectedEl.style(\'float\') || \'none\''); +}_$jscoverage['/dialog.js'].branchData['427'][1].init(564, 35, 'selectedEl.style(\'float\') || \'none\''); function visit61_427_1(result) { _$jscoverage['/dialog.js'].branchData['427'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['422'][1].init(372, 1, 'w'); +}_$jscoverage['/dialog.js'].branchData['422'][1].init(378, 1, 'w'); function visit60_422_1(result) { _$jscoverage['/dialog.js'].branchData['422'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['417'][1].init(207, 1, 'h'); +}_$jscoverage['/dialog.js'].branchData['417'][1].init(213, 1, 'h'); function visit59_417_1(result) { _$jscoverage['/dialog.js'].branchData['417'][1].ranCondition(result); return result; @@ -673,15 +673,15 @@ function visit58_413_2(result) { function visit57_413_1(result) { _$jscoverage['/dialog.js'].branchData['413'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['401'][1].init(1876, 5, '!skip'); +}_$jscoverage['/dialog.js'].branchData['401'][1].init(1878, 5, '!skip'); function visit56_401_1(result) { _$jscoverage['/dialog.js'].branchData['401'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['398'][1].init(1741, 15, 'self.selectedEl'); +}_$jscoverage['/dialog.js'].branchData['398'][1].init(1743, 15, 'self.selectedEl'); function visit55_398_1(result) { _$jscoverage['/dialog.js'].branchData['398'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['395'][1].init(1646, 2, 'bs'); +}_$jscoverage['/dialog.js'].branchData['395'][1].init(1648, 2, 'bs'); function visit54_395_1(result) { _$jscoverage['/dialog.js'].branchData['395'][1].ranCondition(result); return result; @@ -737,27 +737,27 @@ function visit42_366_1(result) { function visit41_365_1(result) { _$jscoverage['/dialog.js'].branchData['365'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['329'][1].init(987, 15, 'self.selectedEl'); +}_$jscoverage['/dialog.js'].branchData['329'][1].init(996, 15, 'self.selectedEl'); function visit40_329_1(result) { _$jscoverage['/dialog.js'].branchData['329'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['318'][2].init(670, 12, 'margin !== 0'); +}_$jscoverage['/dialog.js'].branchData['318'][2].init(679, 12, 'margin !== 0'); function visit39_318_2(result) { _$jscoverage['/dialog.js'].branchData['318'][2].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['318'][1].init(652, 30, '!isNaN(margin) && margin !== 0'); +}_$jscoverage['/dialog.js'].branchData['318'][1].init(661, 30, '!isNaN(margin) && margin !== 0'); function visit38_318_1(result) { _$jscoverage['/dialog.js'].branchData['318'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['315'][1].init(553, 16, 'align !== \'none\''); +}_$jscoverage['/dialog.js'].branchData['315'][1].init(562, 16, 'align !== \'none\''); function visit37_315_1(result) { _$jscoverage['/dialog.js'].branchData['315'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['312'][1].init(463, 5, 'width'); +}_$jscoverage['/dialog.js'].branchData['312'][1].init(472, 5, 'width'); function visit36_312_1(result) { _$jscoverage['/dialog.js'].branchData['312'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['309'][1].init(370, 6, 'height'); +}_$jscoverage['/dialog.js'].branchData['309'][1].init(379, 6, 'height'); function visit35_309_1(result) { _$jscoverage['/dialog.js'].branchData['309'][1].ranCondition(result); return result; @@ -781,7 +781,7 @@ function visit31_256_1(result) { function visit30_251_1(result) { _$jscoverage['/dialog.js'].branchData['251'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['250'][1].init(7756, 8, 'self.cfg'); +}_$jscoverage['/dialog.js'].branchData['250'][1].init(7762, 8, 'self.cfg'); function visit29_250_1(result) { _$jscoverage['/dialog.js'].branchData['250'][1].ranCondition(result); return result; @@ -853,11 +853,11 @@ function visit13_145_1(result) { function visit12_123_1(result) { _$jscoverage['/dialog.js'].branchData['123'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['122'][2].init(86, 97, '!self.imgRatio[0].checked || self.imgRatio[0].disabled || !self.imgRatioValue'); +}_$jscoverage['/dialog.js'].branchData['122'][2].init(89, 97, '!self.imgRatio[0].checked || self.imgRatio[0].disabled || !self.imgRatioValue'); function visit11_122_2(result) { _$jscoverage['/dialog.js'].branchData['122'][2].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['122'][1].init(80, 103, '!v || !self.imgRatio[0].checked || self.imgRatio[0].disabled || !self.imgRatioValue'); +}_$jscoverage['/dialog.js'].branchData['122'][1].init(83, 103, '!v || !self.imgRatio[0].checked || self.imgRatio[0].disabled || !self.imgRatioValue'); function visit10_122_1(result) { _$jscoverage['/dialog.js'].branchData['122'][1].ranCondition(result); return result; @@ -865,11 +865,11 @@ function visit10_122_1(result) { function visit9_114_1(result) { _$jscoverage['/dialog.js'].branchData['114'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['113'][2].init(87, 97, '!self.imgRatio[0].checked || self.imgRatio[0].disabled || !self.imgRatioValue'); +}_$jscoverage['/dialog.js'].branchData['113'][2].init(90, 97, '!self.imgRatio[0].checked || self.imgRatio[0].disabled || !self.imgRatioValue'); function visit8_113_2(result) { _$jscoverage['/dialog.js'].branchData['113'][2].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['113'][1].init(81, 103, '!v || !self.imgRatio[0].checked || self.imgRatio[0].disabled || !self.imgRatioValue'); +}_$jscoverage['/dialog.js'].branchData['113'][1].init(84, 103, '!v || !self.imgRatio[0].checked || self.imgRatio[0].disabled || !self.imgRatioValue'); function visit7_113_1(result) { _$jscoverage['/dialog.js'].branchData['113'][1].ranCondition(result); return result; @@ -1021,7 +1021,7 @@ KISSY.add(function(S, require) { self.imgHeight.on('keyup', function() { _$jscoverage['/dialog.js'].functionData[4]++; _$jscoverage['/dialog.js'].lineData[112]++; - var v = parseInt(valInput(self.imgHeight)); + var v = parseInt(valInput(self.imgHeight), 10); _$jscoverage['/dialog.js'].lineData[113]++; if (visit7_113_1(!v || visit8_113_2(!self.imgRatio[0].checked || visit9_114_1(self.imgRatio[0].disabled || !self.imgRatioValue)))) { _$jscoverage['/dialog.js'].lineData[115]++; @@ -1034,7 +1034,7 @@ KISSY.add(function(S, require) { self.imgWidth.on('keyup', function() { _$jscoverage['/dialog.js'].functionData[5]++; _$jscoverage['/dialog.js'].lineData[121]++; - var v = parseInt(valInput(self.imgWidth)); + var v = parseInt(valInput(self.imgWidth), 10); _$jscoverage['/dialog.js'].lineData[122]++; if (visit10_122_1(!v || visit11_122_2(!self.imgRatio[0].checked || visit12_123_1(self.imgRatio[0].disabled || !self.imgRatioValue)))) { _$jscoverage['/dialog.js'].lineData[124]++; @@ -1242,7 +1242,7 @@ KISSY.add(function(S, require) { _insert: function() { _$jscoverage['/dialog.js'].functionData[14]++; _$jscoverage['/dialog.js'].lineData[300]++; - var self = this, url = valInput(self.imgUrl), img, height = parseInt(valInput(self.imgHeight)), width = parseInt(valInput(self.imgWidth)), align = self.imgAlign.get('value'), margin = parseInt(self.imgMargin.val()), style = ''; + var self = this, url = valInput(self.imgUrl), img, height = parseInt(valInput(self.imgHeight), 10), width = parseInt(valInput(self.imgWidth), 10), align = self.imgAlign.get('value'), margin = parseInt(self.imgMargin.val(), 10), style = ''; _$jscoverage['/dialog.js'].lineData[309]++; if (visit35_309_1(height)) { _$jscoverage['/dialog.js'].lineData[310]++; @@ -1274,11 +1274,11 @@ KISSY.add(function(S, require) { _$jscoverage['/dialog.js'].lineData[332]++; self.selectedEl.attr({ 'src': url, - '_keSaved_src': url, + '_ke_saved_src': url, 'style': style}); } else { _$jscoverage['/dialog.js'].lineData[339]++; - img = new Node('', null, self.editor.get('document')[0]); + img = new Node('', null, self.editor.get('document')[0]); _$jscoverage['/dialog.js'].lineData[349]++; self.editor.insertElement(img); } @@ -1320,7 +1320,7 @@ KISSY.add(function(S, require) { _$jscoverage['/dialog.js'].lineData[386]++; link = new Node(''); _$jscoverage['/dialog.js'].lineData[389]++; - link.attr('_keSavedHref', linkVal).attr('href', linkVal).attr('target', target); + link.attr('_ke_saved_href', linkVal).attr('href', linkVal).attr('target', target); _$jscoverage['/dialog.js'].lineData[390]++; var t = img[0]; _$jscoverage['/dialog.js'].lineData[391]++; @@ -1357,7 +1357,7 @@ KISSY.add(function(S, require) { _$jscoverage['/dialog.js'].lineData[414]++; valInput(self.imgUrl, selectedEl.attr('src')); _$jscoverage['/dialog.js'].lineData[415]++; - var w = parseInt(selectedEl.style('width')), h = parseInt(selectedEl.style('height')); + var w = parseInt(selectedEl.style('width'), 10), h = parseInt(selectedEl.style('height'), 10); _$jscoverage['/dialog.js'].lineData[417]++; if (visit59_417_1(h)) { _$jscoverage['/dialog.js'].lineData[418]++; @@ -1377,7 +1377,7 @@ KISSY.add(function(S, require) { _$jscoverage['/dialog.js'].lineData[427]++; self.imgAlign.set('value', visit61_427_1(selectedEl.style('float') || 'none')); _$jscoverage['/dialog.js'].lineData[428]++; - var margin = visit62_428_1(parseInt(selectedEl.style('margin')) || 0); + var margin = visit62_428_1(parseInt(selectedEl.style('margin'), 10) || 0); _$jscoverage['/dialog.js'].lineData[429]++; self.imgMargin.val(margin); _$jscoverage['/dialog.js'].lineData[430]++; @@ -1432,7 +1432,7 @@ KISSY.add(function(S, require) { _$jscoverage['/dialog.js'].lineData[457]++; if (visit67_457_1(link)) { _$jscoverage['/dialog.js'].lineData[458]++; - valInput(self.imgLink, visit68_458_1(link.attr('_keSavedHref') || link.attr('href'))); + valInput(self.imgLink, visit68_458_1(link.attr('_ke_saved_href') || link.attr('href'))); _$jscoverage['/dialog.js'].lineData[459]++; self.imgLinkBlank.attr('checked', visit69_459_1(link.attr('target') === '_blank')); } else { diff --git a/src/editor/sub-modules/plugin/image/sub-modules/dialog/coverage/src/dialog/dialog-tpl.js b/src/editor/sub-modules/plugin/image/sub-modules/dialog/coverage/src/dialog/dialog-tpl.js index fe7d5f60ba..befa75ae8e 100644 --- a/src/editor/sub-modules/plugin/image/sub-modules/dialog/coverage/src/dialog/dialog-tpl.js +++ b/src/editor/sub-modules/plugin/image/sub-modules/dialog/coverage/src/dialog/dialog-tpl.js @@ -238,4 +238,4 @@ if (! _$jscoverage['/dialog/dialog-tpl.js'].branchData) { _$jscoverage['/dialog/dialog-tpl.js'].branchData = {}; } _$jscoverage['/dialog/dialog-tpl.js'].lineData[3]++; -KISSY.add('
    \n
    \n \n \u7f51\u7edc\u56fe\u7247\n
    \n \n \u672c\u5730\u4e0a\u4f20\n
    \n
    \n
    \n
    \n \n
    \n
    \n
    \n

    \n \n \u6d4f\u89c8...\n

    \n\n
    \n
    \n
    \n
    \n
    \n
    \n
    \n \n \n \n \n \u50cf\u7d20\n\n \n \n \n \n \n \n \n \n \n\n \n \n \u50cf\u7d20\n\n \n \n \n \n \n \n\n \n \n \n \n
    \n'); +KISSY.add('
    \n
    \n \n \u7f51\u7edc\u56fe\u7247\n
    \n \n \u672c\u5730\u4e0a\u4f20\n
    \n
    \n
    \n
    \n \n
    \n
    \n
    \n

    \n \n \u6d4f\u89c8...\n

    \n\n
    \n
    \n
    \n
    \n
    \n
    \n
    \n \n \n \n \n \u50cf\u7d20\n\n \n \n \n \n \n \n \n \n \n\n \n \n \u50cf\u7d20\n\n \n \n \n \n \n \n\n \n \n \n \n
    \n'); diff --git a/src/editor/sub-modules/plugin/image/sub-modules/dialog/src/dialog.js b/src/editor/sub-modules/plugin/image/sub-modules/dialog/src/dialog.js index 621a52cb92..03fe6154c9 100644 --- a/src/editor/sub-modules/plugin/image/sub-modules/dialog/src/dialog.js +++ b/src/editor/sub-modules/plugin/image/sub-modules/dialog/src/dialog.js @@ -109,7 +109,7 @@ KISSY.add(function (S, require) { placeholder(self.imgLink, 'http://'); self.imgHeight.on('keyup', function () { - var v = parseInt(valInput(self.imgHeight)); + var v = parseInt(valInput(self.imgHeight),10); if (!v || !self.imgRatio[0].checked || self.imgRatio[0].disabled || !self.imgRatioValue) { return; @@ -118,7 +118,7 @@ KISSY.add(function (S, require) { }); self.imgWidth.on('keyup', function () { - var v = parseInt(valInput(self.imgWidth)); + var v = parseInt(valInput(self.imgWidth),10); if (!v || !self.imgRatio[0].checked || self.imgRatio[0].disabled || !self.imgRatioValue) { return; @@ -300,10 +300,10 @@ KISSY.add(function (S, require) { var self = this, url = valInput(self.imgUrl), img, - height = parseInt(valInput(self.imgHeight)), - width = parseInt(valInput(self.imgWidth)), + height = parseInt(valInput(self.imgHeight),10), + width = parseInt(valInput(self.imgWidth),10), align = self.imgAlign.get('value'), - margin = parseInt(self.imgMargin.val()), + margin = parseInt(self.imgMargin.val(),10), style = ''; if (height) { @@ -331,8 +331,8 @@ KISSY.add(function (S, require) { self.editor.execCommand('save'); self.selectedEl.attr({ 'src': url, - //注意设置,取的话要从 _keSaved_src 里取 - '_keSaved_src': url, + //注意设置,取的话要从 _ke_saved_src 里取 + '_ke_saved_src': url, 'style': style }); } else { @@ -343,7 +343,7 @@ KISSY.add(function (S, require) { ' src="' + url + '" ' + - '_keSaved_src="' + + '_ke_saved_src="' + url + '" alt="" />', null, self.editor.get('document')[0]); self.editor.insertElement(img); @@ -384,7 +384,7 @@ KISSY.add(function (S, require) { bs = sel.createBookmarks(); } link = new Node(''); - link.attr('_keSavedHref', linkVal) + link.attr('_ke_saved_href', linkVal) .attr('href', linkVal) .attr('target', target); var t = img[0]; @@ -412,8 +412,8 @@ KISSY.add(function (S, require) { self.selectedEl = selectedEl; if (selectedEl && self.imageCfg.remote !== false) { valInput(self.imgUrl, selectedEl.attr('src')); - var w = parseInt(selectedEl.style('width')), - h = parseInt(selectedEl.style('height')); + var w = parseInt(selectedEl.style('width'),10), + h = parseInt(selectedEl.style('height'),10); if (h) { valInput(self.imgHeight, h); } else { @@ -425,7 +425,7 @@ KISSY.add(function (S, require) { resetInput(self.imgWidth); } self.imgAlign.set('value', selectedEl.style('float') || 'none'); - var margin = parseInt(selectedEl.style('margin')) || 0; + var margin = parseInt(selectedEl.style('margin'),10) || 0; self.imgMargin.val(margin); self.imgRatio[0].disabled = false; self.imgRatioValue = w / h; @@ -455,7 +455,7 @@ KISSY.add(function (S, require) { self.imgRatioValue = null; } if (link) { - valInput(self.imgLink, link.attr('_keSavedHref') || link.attr('href')); + valInput(self.imgLink, link.attr('_ke_saved_href') || link.attr('href')); self.imgLinkBlank.attr('checked', link.attr('target') === '_blank'); } else { resetInput(self.imgLink); diff --git a/src/editor/sub-modules/plugin/image/sub-modules/dialog/src/dialog/dialog-tpl.js b/src/editor/sub-modules/plugin/image/sub-modules/dialog/src/dialog/dialog-tpl.js index 6a7a5c67b0..024d11a6b9 100644 --- a/src/editor/sub-modules/plugin/image/sub-modules/dialog/src/dialog/dialog-tpl.js +++ b/src/editor/sub-modules/plugin/image/sub-modules/dialog/src/dialog/dialog-tpl.js @@ -1,3 +1,3 @@ /* Generated by kissy-tpl2mod.*/ -KISSY.add('
    \n
    \n \n 网络图片\n
    \n \n 本地上传\n
    \n
    \n
    \n
    \n \n
    \n
    \n
    \n

    \n \n 浏览...\n

    \n\n
    \n
    \n
    \n
    \n
    \n
    \n
    \n \n \n \n \n 像素\n\n \n \n \n \n \n \n \n \n \n\n \n \n 像素\n\n \n \n \n \n \n \n\n \n \n \n \n
    \n'); \ No newline at end of file +KISSY.add('
    \n
    \n \n 网络图片\n
    \n \n 本地上传\n
    \n
    \n
    \n
    \n \n
    \n
    \n
    \n

    \n \n 浏览...\n

    \n\n
    \n
    \n
    \n
    \n
    \n
    \n
    \n \n \n \n \n 像素\n\n \n \n \n \n \n \n \n \n \n\n \n \n 像素\n\n \n \n \n \n \n \n\n \n \n \n \n
    \n'); \ No newline at end of file diff --git a/src/editor/sub-modules/plugin/image/sub-modules/dialog/src/dialog/dialog.tpl.html b/src/editor/sub-modules/plugin/image/sub-modules/dialog/src/dialog/dialog.tpl.html index 8a7995b792..3aeebaf94c 100644 --- a/src/editor/sub-modules/plugin/image/sub-modules/dialog/src/dialog/dialog.tpl.html +++ b/src/editor/sub-modules/plugin/image/sub-modules/dialog/src/dialog/dialog.tpl.html @@ -17,7 +17,7 @@
    -
    diff --git a/src/editor/sub-modules/plugin/justify-center/coverage/src/justify-center.js b/src/editor/sub-modules/plugin/justify-center/coverage/src/justify-center.js index db3428e59b..aa27a445fd 100644 --- a/src/editor/sub-modules/plugin/justify-center/coverage/src/justify-center.js +++ b/src/editor/sub-modules/plugin/justify-center/coverage/src/justify-center.js @@ -276,19 +276,19 @@ if (! _$jscoverage['/justify-center.js'].branchData) { _$jscoverage['/justify-center.js'].branchData['47'][1] = new BranchData(); _$jscoverage['/justify-center.js'].branchData['47'][2] = new BranchData(); } -_$jscoverage['/justify-center.js'].branchData['47'][2].init(38, 29, 'e.keyCode == S.Node.KeyCode.E'); +_$jscoverage['/justify-center.js'].branchData['47'][2].init(38, 30, 'e.keyCode === S.Node.KeyCode.E'); function visit4_47_2(result) { _$jscoverage['/justify-center.js'].branchData['47'][2].ranCondition(result); return result; -}_$jscoverage['/justify-center.js'].branchData['47'][1].init(25, 42, 'e.ctrlKey && e.keyCode == S.Node.KeyCode.E'); +}_$jscoverage['/justify-center.js'].branchData['47'][1].init(25, 43, 'e.ctrlKey && e.keyCode === S.Node.KeyCode.E'); function visit3_47_1(result) { _$jscoverage['/justify-center.js'].branchData['47'][1].ranCondition(result); return result; -}_$jscoverage['/justify-center.js'].branchData['33'][1].init(184, 41, 'editor.queryCommandValue(\'justifyCenter\')'); +}_$jscoverage['/justify-center.js'].branchData['33'][1].init(185, 41, 'editor.queryCommandValue(\'justifyCenter\')'); function visit2_33_1(result) { _$jscoverage['/justify-center.js'].branchData['33'][1].ranCondition(result); return result; -}_$jscoverage['/justify-center.js'].branchData['30'][1].init(33, 45, 'editor.get(\'mode\') == Editor.Mode.SOURCE_MODE'); +}_$jscoverage['/justify-center.js'].branchData['30'][1].init(33, 46, 'editor.get(\'mode\') === Editor.Mode.SOURCE_MODE'); function visit1_30_1(result) { _$jscoverage['/justify-center.js'].branchData['30'][1].ranCondition(result); return result; @@ -335,7 +335,7 @@ KISSY.add(function(S, require) { editor.on('selectionChange', function() { _$jscoverage['/justify-center.js'].functionData[5]++; _$jscoverage['/justify-center.js'].lineData[30]++; - if (visit1_30_1(editor.get('mode') == Editor.Mode.SOURCE_MODE)) { + if (visit1_30_1(editor.get('mode') === Editor.Mode.SOURCE_MODE)) { _$jscoverage['/justify-center.js'].lineData[31]++; return; } @@ -357,7 +357,7 @@ KISSY.add(function(S, require) { editor.get('document').on('keydown', function(e) { _$jscoverage['/justify-center.js'].functionData[7]++; _$jscoverage['/justify-center.js'].lineData[47]++; - if (visit3_47_1(e.ctrlKey && visit4_47_2(e.keyCode == S.Node.KeyCode.E))) { + if (visit3_47_1(e.ctrlKey && visit4_47_2(e.keyCode === S.Node.KeyCode.E))) { _$jscoverage['/justify-center.js'].lineData[48]++; editor.execCommand('justifyCenter'); _$jscoverage['/justify-center.js'].lineData[49]++; diff --git a/src/editor/sub-modules/plugin/justify-center/src/justify-center.js b/src/editor/sub-modules/plugin/justify-center/src/justify-center.js index a7dbc94591..da6d476b30 100644 --- a/src/editor/sub-modules/plugin/justify-center/src/justify-center.js +++ b/src/editor/sub-modules/plugin/justify-center/src/justify-center.js @@ -27,7 +27,7 @@ KISSY.add(function (S, require) { afterSyncUI: function () { var self = this; editor.on('selectionChange', function () { - if (editor.get('mode') == Editor.Mode.SOURCE_MODE) { + if (editor.get('mode') === Editor.Mode.SOURCE_MODE) { return; } if (editor.queryCommandValue('justifyCenter')) { @@ -44,7 +44,7 @@ KISSY.add(function (S, require) { editor.docReady(function () { editor.get('document').on('keydown', function (e) { - if (e.ctrlKey && e.keyCode == S.Node.KeyCode.E) { + if (e.ctrlKey && e.keyCode === S.Node.KeyCode.E) { editor.execCommand('justifyCenter'); e.preventDefault(); } diff --git a/src/editor/sub-modules/plugin/link/coverage/src/link.js b/src/editor/sub-modules/plugin/link/coverage/src/link.js index ae4125266f..a5890f889d 100644 --- a/src/editor/sub-modules/plugin/link/coverage/src/link.js +++ b/src/editor/sub-modules/plugin/link/coverage/src/link.js @@ -290,7 +290,7 @@ if (! _$jscoverage['/link.js'].branchData) { _$jscoverage['/link.js'].branchData['89'] = []; _$jscoverage['/link.js'].branchData['89'][1] = new BranchData(); } -_$jscoverage['/link.js'].branchData['89'][1].init(216, 76, 'a.attr(Utils._keSavedHref) || a.attr(\'href\')'); +_$jscoverage['/link.js'].branchData['89'][1].init(216, 73, 'a.attr(Utils.savedHref) || a.attr(\'href\')'); function visit3_89_1(result) { _$jscoverage['/link.js'].branchData['89'][1].ranCondition(result); return result; @@ -396,7 +396,7 @@ KISSY.add(function(S, require) { return; } _$jscoverage['/link.js'].lineData[89]++; - var href = visit3_89_1(a.attr(Utils._keSavedHref) || a.attr('href')); + var href = visit3_89_1(a.attr(Utils.savedHref) || a.attr('href')); _$jscoverage['/link.js'].lineData[91]++; tipUrl.html(href); _$jscoverage['/link.js'].lineData[92]++; diff --git a/src/editor/sub-modules/plugin/link/src/link.js b/src/editor/sub-modules/plugin/link/src/link.js index 82fedc4e7f..906efcaef9 100644 --- a/src/editor/sub-modules/plugin/link/src/link.js +++ b/src/editor/sub-modules/plugin/link/src/link.js @@ -86,7 +86,7 @@ KISSY.add(function (S, require) { if (!a) { return; } - var href = a.attr(Utils._keSavedHref) || + var href = a.attr(Utils.savedHref) || a.attr('href'); tipUrl.html(href); tipUrl.attr('href', href); diff --git a/src/editor/sub-modules/plugin/link/sub-modules/dialog/coverage/src/dialog.js b/src/editor/sub-modules/plugin/link/sub-modules/dialog/coverage/src/dialog.js index bf7adc0527..b9928b9636 100644 --- a/src/editor/sub-modules/plugin/link/sub-modules/dialog/coverage/src/dialog.js +++ b/src/editor/sub-modules/plugin/link/sub-modules/dialog/coverage/src/dialog.js @@ -308,15 +308,15 @@ _$jscoverage['/dialog.js'].branchData['123'][1].init(107, 10, 'cfg.target'); function visit7_123_1(result) { _$jscoverage['/dialog.js'].branchData['123'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['119'][1].init(246, 39, '_selectedEl.attr(\'target\') === \'_blank\''); +}_$jscoverage['/dialog.js'].branchData['119'][1].init(243, 39, '_selectedEl.attr(\'target\') === \'_blank\''); function visit6_119_1(result) { _$jscoverage['/dialog.js'].branchData['119'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['118'][1].init(171, 31, '_selectedEl.attr(\'title\') || \'\''); +}_$jscoverage['/dialog.js'].branchData['118'][1].init(168, 31, '_selectedEl.attr(\'title\') || \'\''); function visit5_118_1(result) { _$jscoverage['/dialog.js'].branchData['118'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['116'][1].init(27, 58, '_selectedEl.attr(_keSavedHref) || _selectedEl.attr(\'href\')'); +}_$jscoverage['/dialog.js'].branchData['116'][1].init(27, 55, '_selectedEl.attr(savedHref) || _selectedEl.attr(\'href\')'); function visit4_116_1(result) { _$jscoverage['/dialog.js'].branchData['116'][1].ranCondition(result); return result; @@ -342,7 +342,7 @@ KISSY.add(function(S, require) { _$jscoverage['/dialog.js'].lineData[9]++; var Utils = require('./utils'); _$jscoverage['/dialog.js'].lineData[10]++; - var _keSavedHref = Utils._keSavedHref, bodyHTML = '
    ' + '

    ' + '' + '

    ' + '

    ' + ' ' + '' + '

    ' + '
    ', footHTML = '
    ' + '\u786e\u5b9a ' + '\u53d6\u6d88' + '
    '; + var savedHref = Utils.savedHref, bodyHTML = '
    ' + '

    ' + '' + '

    ' + '

    ' + ' ' + '' + '

    ' + '
    ', footHTML = '
    ' + '\u786e\u5b9a ' + '\u53d6\u6d88' + '
    '; _$jscoverage['/dialog.js'].lineData[50]++; function LinkDialog(editor, config) { _$jscoverage['/dialog.js'].functionData[1]++; @@ -425,7 +425,7 @@ KISSY.add(function(S, require) { _$jscoverage['/dialog.js'].lineData[115]++; if (visit3_115_1(_selectedEl)) { _$jscoverage['/dialog.js'].lineData[116]++; - var url = visit4_116_1(_selectedEl.attr(_keSavedHref) || _selectedEl.attr('href')); + var url = visit4_116_1(_selectedEl.attr(savedHref) || _selectedEl.attr('href')); _$jscoverage['/dialog.js'].lineData[117]++; Editor.Utils.valInput(d.urlEl, url); _$jscoverage['/dialog.js'].lineData[118]++; diff --git a/src/editor/sub-modules/plugin/link/sub-modules/dialog/src/dialog.js b/src/editor/sub-modules/plugin/link/sub-modules/dialog/src/dialog.js index 2b6e8871f3..18e153ce46 100644 --- a/src/editor/sub-modules/plugin/link/sub-modules/dialog/src/dialog.js +++ b/src/editor/sub-modules/plugin/link/sub-modules/dialog/src/dialog.js @@ -7,7 +7,7 @@ KISSY.add(function (S, require) { var Editor = require('editor'); var Dialog4E = require('../dialog'); var Utils = require('./utils'); - var _keSavedHref = Utils._keSavedHref, + var savedHref = Utils.savedHref, bodyHTML = '
    ' + '

    ' + '

    ', { - prefixCls: prefixCls})), container = self.get('container'), p = new Node(S.substitute('
    ' + '
    ' + '
    ' + '
    ' + '
    ', { + prefixCls: prefixCls})), container = self.get('container'), p = new Node(S.substitute('
    ' + '
    ' + '
    ' + '
    ' + '
    ', { prefixCls: prefixCls})).appendTo(el), title = new Node('').appendTo(el); _$jscoverage['/progressbar.js'].lineData[42]++; if (visit1_42_1(container)) { diff --git a/src/editor/sub-modules/plugin/progressbar/src/progressbar.js b/src/editor/sub-modules/plugin/progressbar/src/progressbar.js index 43cf12d84e..e18aa2ceb5 100644 --- a/src/editor/sub-modules/plugin/progressbar/src/progressbar.js +++ b/src/editor/sub-modules/plugin/progressbar/src/progressbar.js @@ -31,7 +31,7 @@ KISSY.add(function (S, require) { container = self.get('container'), p = new Node( S.substitute('
    ' + - '
    ' + + '
    ' + '
    ' + '
    ' + '
    ', { prefixCls: prefixCls diff --git a/src/editor/sub-modules/plugin/remove-format/sub-modules/cmd/coverage/src/cmd.js b/src/editor/sub-modules/plugin/remove-format/sub-modules/cmd/coverage/src/cmd.js index 472c856357..2ee5dbc3d3 100644 --- a/src/editor/sub-modules/plugin/remove-format/sub-modules/cmd/coverage/src/cmd.js +++ b/src/editor/sub-modules/plugin/remove-format/sub-modules/cmd/coverage/src/cmd.js @@ -305,7 +305,7 @@ _$jscoverage['/cmd.js'].branchData['118'][1].init(136, 38, 'tagsRegex.test(curre function visit11_118_1(result) { _$jscoverage['/cmd.js'].branchData['118'][1].ranCondition(result); return result; -}_$jscoverage['/cmd.js'].branchData['113'][1].init(-1, 171, 'currentNode.attr(\'_keRealElement\') || /\\bke_/.test(currentNode[0].className)'); +}_$jscoverage['/cmd.js'].branchData['113'][1].init(-1, 173, 'currentNode.attr(\'_ke_real_element\') || /\\bke_/.test(currentNode[0].className)'); function visit10_113_1(result) { _$jscoverage['/cmd.js'].branchData['113'][1].ranCondition(result); return result; @@ -313,11 +313,11 @@ function visit10_113_1(result) { function visit9_111_3(result) { _$jscoverage['/cmd.js'].branchData['111'][3].ranCondition(result); return result; -}_$jscoverage['/cmd.js'].branchData['111'][2].init(678, 327, 'currentNode.nodeName() === \'img\' && (currentNode.attr(\'_keRealElement\') || /\\bke_/.test(currentNode[0].className))'); +}_$jscoverage['/cmd.js'].branchData['111'][2].init(678, 329, 'currentNode.nodeName() === \'img\' && (currentNode.attr(\'_ke_real_element\') || /\\bke_/.test(currentNode[0].className))'); function visit8_111_2(result) { _$jscoverage['/cmd.js'].branchData['111'][2].ranCondition(result); return result; -}_$jscoverage['/cmd.js'].branchData['111'][1].init(675, 332, '!(currentNode.nodeName() === \'img\' && (currentNode.attr(\'_keRealElement\') || /\\bke_/.test(currentNode[0].className)))'); +}_$jscoverage['/cmd.js'].branchData['111'][1].init(675, 334, '!(currentNode.nodeName() === \'img\' && (currentNode.attr(\'_ke_real_element\') || /\\bke_/.test(currentNode[0].className)))'); function visit7_111_1(result) { _$jscoverage['/cmd.js'].branchData['111'][1].ranCondition(result); return result; @@ -425,7 +425,7 @@ KISSY.add(function(S, require) { _$jscoverage['/cmd.js'].lineData[107]++; var nextNode = currentNode._4eNextSourceNode(false, Dom.NodeType.ELEMENT_NODE, undefined, undefined); _$jscoverage['/cmd.js'].lineData[111]++; - if (visit7_111_1(!(visit8_111_2(visit9_111_3(currentNode.nodeName() === 'img') && (visit10_113_1(currentNode.attr('_keRealElement') || /\bke_/.test(currentNode[0].className))))))) { + if (visit7_111_1(!(visit8_111_2(visit9_111_3(currentNode.nodeName() === 'img') && (visit10_113_1(currentNode.attr('_ke_real_element') || /\bke_/.test(currentNode[0].className))))))) { _$jscoverage['/cmd.js'].lineData[118]++; if (visit11_118_1(tagsRegex.test(currentNode.nodeName()))) { _$jscoverage['/cmd.js'].lineData[119]++; diff --git a/src/editor/sub-modules/plugin/remove-format/sub-modules/cmd/src/cmd.js b/src/editor/sub-modules/plugin/remove-format/sub-modules/cmd/src/cmd.js index e67ee5b7f4..d9671b1c76 100644 --- a/src/editor/sub-modules/plugin/remove-format/sub-modules/cmd/src/cmd.js +++ b/src/editor/sub-modules/plugin/remove-format/sub-modules/cmd/src/cmd.js @@ -110,7 +110,7 @@ KISSY.add(function (S, require) { // This node must not be a fake element. if (!( currentNode.nodeName() === 'img' && ( - currentNode.attr('_keRealElement') || + currentNode.attr('_ke_real_element') || // 占位符 /\bke_/.test(currentNode[0].className) ) )) { diff --git a/src/editor/sub-modules/plugin/table/sub-modules/dialog/coverage/src/dialog.js b/src/editor/sub-modules/plugin/table/sub-modules/dialog/coverage/src/dialog.js index c8225959da..41ec069058 100644 --- a/src/editor/sub-modules/plugin/table/sub-modules/dialog/coverage/src/dialog.js +++ b/src/editor/sub-modules/plugin/table/sub-modules/dialog/coverage/src/dialog.js @@ -508,7 +508,7 @@ function visit47_467_1(result) { function visit46_456_1(result) { _$jscoverage['/dialog.js'].branchData['456'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['439'][1].init(1066, 7, 'caption'); +}_$jscoverage['/dialog.js'].branchData['439'][1].init(1069, 7, 'caption'); function visit45_439_1(result) { _$jscoverage['/dialog.js'].branchData['439'][1].ranCondition(result); return result; @@ -516,23 +516,23 @@ function visit45_439_1(result) { function visit44_436_1(result) { _$jscoverage['/dialog.js'].branchData['436'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['430'][1].init(764, 21, 'w.indexOf(\'%\') !== -1'); +}_$jscoverage['/dialog.js'].branchData['430'][1].init(767, 21, 'w.indexOf(\'%\') !== -1'); function visit43_430_1(result) { _$jscoverage['/dialog.js'].branchData['430'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['423'][1].init(498, 76, 'selectedTable.style(\'width\') || (\'\' + selectedTable.width())'); +}_$jscoverage['/dialog.js'].branchData['423'][1].init(501, 76, 'selectedTable.style(\'width\') || (\'\' + selectedTable.width())'); function visit42_423_1(result) { _$jscoverage['/dialog.js'].branchData['423'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['421'][1].init(424, 51, 'selectedTable.attr(\'border\') || \'0\''); +}_$jscoverage['/dialog.js'].branchData['421'][1].init(427, 51, 'selectedTable.attr(\'border\') || \'0\''); function visit41_421_1(result) { _$jscoverage['/dialog.js'].branchData['421'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['418'][1].init(360, 33, 'selectedTable.attr(\'align\') || \'\''); +}_$jscoverage['/dialog.js'].branchData['418'][1].init(363, 33, 'selectedTable.attr(\'align\') || \'\''); function visit40_418_1(result) { _$jscoverage['/dialog.js'].branchData['418'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['415'][1].init(38, 47, 'parseInt(self.selectedTd.css(\'padding\')) || \'0\''); +}_$jscoverage['/dialog.js'].branchData['415'][1].init(38, 50, 'parseInt(self.selectedTd.css(\'padding\'), 10) || \'0\''); function visit39_415_1(result) { _$jscoverage['/dialog.js'].branchData['415'][1].ranCondition(result); return result; @@ -544,7 +544,7 @@ function visit38_413_1(result) { function visit37_397_1(result) { _$jscoverage['/dialog.js'].branchData['397'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['395'][1].init(2064, 8, 'r < rows'); +}_$jscoverage['/dialog.js'].branchData['395'][1].init(2070, 8, 'r < rows'); function visit36_395_1(result) { _$jscoverage['/dialog.js'].branchData['395'][1].ranCondition(result); return result; @@ -552,59 +552,59 @@ function visit36_395_1(result) { function visit35_386_1(result) { _$jscoverage['/dialog.js'].branchData['386'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['383'][1].init(1684, 20, 'd.thead.get(\'value\')'); +}_$jscoverage['/dialog.js'].branchData['383'][1].init(1690, 20, 'd.thead.get(\'value\')'); function visit34_383_1(result) { _$jscoverage['/dialog.js'].branchData['383'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['380'][1].init(1523, 23, 'valid(d.tcaption.val())'); +}_$jscoverage['/dialog.js'].branchData['380'][1].init(1529, 23, 'valid(d.tcaption.val())'); function visit33_380_1(result) { _$jscoverage['/dialog.js'].branchData['380'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['375'][1].init(1387, 14, 'classes.length'); +}_$jscoverage['/dialog.js'].branchData['375'][1].init(1393, 14, 'classes.length'); function visit32_375_1(result) { _$jscoverage['/dialog.js'].branchData['375'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['372'][1].init(1281, 22, 'd.tcollapse[0].checked'); +}_$jscoverage['/dialog.js'].branchData['372'][1].init(1287, 22, 'd.tcollapse[0].checked'); function visit31_372_1(result) { _$jscoverage['/dialog.js'].branchData['372'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['368'][2].init(1158, 37, 'String(trim(d.tborder.val())) === \'0\''); +}_$jscoverage['/dialog.js'].branchData['368'][2].init(1164, 37, 'String(trim(d.tborder.val())) === \'0\''); function visit30_368_2(result) { _$jscoverage['/dialog.js'].branchData['368'][2].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['368'][1].init(1131, 64, '!valid(d.tborder.val()) || String(trim(d.tborder.val())) === \'0\''); +}_$jscoverage['/dialog.js'].branchData['368'][1].init(1137, 64, '!valid(d.tborder.val()) || String(trim(d.tborder.val())) === \'0\''); function visit29_368_1(result) { _$jscoverage['/dialog.js'].branchData['368'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['362'][1].init(992, 13, 'styles.length'); +}_$jscoverage['/dialog.js'].branchData['362'][1].init(998, 13, 'styles.length'); function visit28_362_1(result) { _$jscoverage['/dialog.js'].branchData['362'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['358'][1].init(863, 22, 'valid(d.theight.val())'); +}_$jscoverage['/dialog.js'].branchData['358'][1].init(869, 22, 'valid(d.theight.val())'); function visit27_358_1(result) { _$jscoverage['/dialog.js'].branchData['358'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['354'][1].init(711, 21, 'valid(d.twidth.val())'); +}_$jscoverage['/dialog.js'].branchData['354'][1].init(717, 21, 'valid(d.twidth.val())'); function visit26_354_1(result) { _$jscoverage['/dialog.js'].branchData['354'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['347'][1].init(556, 22, 'valid(d.tborder.val())'); +}_$jscoverage['/dialog.js'].branchData['347'][1].init(562, 22, 'valid(d.tborder.val())'); function visit25_347_1(result) { _$jscoverage['/dialog.js'].branchData['347'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['343'][1].init(421, 28, 'valid(d.talign.get(\'value\'))'); +}_$jscoverage['/dialog.js'].branchData['343'][1].init(427, 28, 'valid(d.talign.get(\'value\'))'); function visit24_343_1(result) { _$jscoverage['/dialog.js'].branchData['343'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['337'][1].init(178, 28, 'parseInt(d.trows.val()) || 1'); +}_$jscoverage['/dialog.js'].branchData['337'][1].init(181, 31, 'parseInt(d.trows.val(), 10) || 1'); function visit23_337_1(result) { _$jscoverage['/dialog.js'].branchData['337'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['336'][1].init(125, 28, 'parseInt(d.tcols.val()) || 1'); +}_$jscoverage['/dialog.js'].branchData['336'][1].init(125, 31, 'parseInt(d.tcols.val(), 10) || 1'); function visit22_336_1(result) { _$jscoverage['/dialog.js'].branchData['336'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['326'][1].init(2456, 7, 'caption'); +}_$jscoverage['/dialog.js'].branchData['326'][1].init(2459, 7, 'caption'); function visit21_326_1(result) { _$jscoverage['/dialog.js'].branchData['326'][1].ranCondition(result); return result; @@ -612,15 +612,15 @@ function visit21_326_1(result) { function visit20_315_1(result) { _$jscoverage['/dialog.js'].branchData['315'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['313'][1].init(1798, 23, 'valid(d.tcaption.val())'); +}_$jscoverage['/dialog.js'].branchData['313'][1].init(1801, 23, 'valid(d.tcaption.val())'); function visit19_313_1(result) { _$jscoverage['/dialog.js'].branchData['313'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['310'][1].init(1680, 15, 'self.selectedTd'); +}_$jscoverage['/dialog.js'].branchData['310'][1].init(1683, 15, 'self.selectedTd'); function visit18_310_1(result) { _$jscoverage['/dialog.js'].branchData['310'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['309'][1].init(1627, 34, 'parseInt(d.cellpadding.val()) || 0'); +}_$jscoverage['/dialog.js'].branchData['309'][1].init(1627, 37, 'parseInt(d.cellpadding.val(), 10) || 0'); function visit17_309_1(result) { _$jscoverage['/dialog.js'].branchData['309'][1].ranCondition(result); return result; @@ -656,7 +656,7 @@ function visit10_270_1(result) { function visit9_255_1(result) { _$jscoverage['/dialog.js'].branchData['255'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['250'][1].init(637, 3, '!re'); +}_$jscoverage['/dialog.js'].branchData['250'][1].init(640, 3, '!re'); function visit8_250_1(result) { _$jscoverage['/dialog.js'].branchData['250'][1].ranCondition(result); return result; @@ -800,7 +800,7 @@ KISSY.add(function(S, require) { _$jscoverage['/dialog.js'].lineData[237]++; if (visit3_237_1(tableDialog.twidthunit.get('value') === '%')) { _$jscoverage['/dialog.js'].lineData[238]++; - var tw = parseInt(tableDialog.twidth.val()); + var tw = parseInt(tableDialog.twidth.val(), 10); _$jscoverage['/dialog.js'].lineData[239]++; if (visit4_240_1(!tw || (visit5_241_1(visit6_241_2(tw > 100) || visit7_242_1(tw < 0))))) { _$jscoverage['/dialog.js'].lineData[245]++; @@ -884,7 +884,7 @@ KISSY.add(function(S, require) { selectedTable.removeClass(collapseTableClass, undefined); } _$jscoverage['/dialog.js'].lineData[309]++; - d.cellpadding.val(visit17_309_1(parseInt(d.cellpadding.val()) || 0)); + d.cellpadding.val(visit17_309_1(parseInt(d.cellpadding.val(), 10) || 0)); _$jscoverage['/dialog.js'].lineData[310]++; if (visit18_310_1(self.selectedTd)) { _$jscoverage['/dialog.js'].lineData[311]++; @@ -915,7 +915,7 @@ KISSY.add(function(S, require) { _genTable: function() { _$jscoverage['/dialog.js'].functionData[9]++; _$jscoverage['/dialog.js'].lineData[332]++; - var self = this, d = self.dialog, html = '
    ', editor = self.editor; + var self = this, d = self.dialog, html = '
    ', editor = self.editor; _$jscoverage['/dialog.js'].lineData[343]++; if (visit24_343_1(valid(d.talign.get('value')))) { _$jscoverage['/dialog.js'].lineData[344]++; @@ -1015,7 +1015,7 @@ KISSY.add(function(S, require) { _$jscoverage['/dialog.js'].lineData[413]++; if (visit38_413_1(self.selectedTd)) { _$jscoverage['/dialog.js'].lineData[414]++; - d.cellpadding.val(visit39_415_1(parseInt(self.selectedTd.css('padding')) || '0')); + d.cellpadding.val(visit39_415_1(parseInt(self.selectedTd.css('padding'), 10) || '0')); } _$jscoverage['/dialog.js'].lineData[418]++; d.talign.set('value', visit40_418_1(selectedTable.attr('align') || '')); diff --git a/src/editor/sub-modules/plugin/table/sub-modules/dialog/src/dialog.js b/src/editor/sub-modules/plugin/table/sub-modules/dialog/src/dialog.js index 3e401b352e..6c582138e9 100644 --- a/src/editor/sub-modules/plugin/table/sub-modules/dialog/src/dialog.js +++ b/src/editor/sub-modules/plugin/table/sub-modules/dialog/src/dialog.js @@ -235,7 +235,7 @@ KISSY.add(function (S, require) { inputs = tableDialog.get('el').all('input'); if (tableDialog.twidthunit.get('value') === '%') { - var tw = parseInt(tableDialog.twidth.val()); + var tw = parseInt(tableDialog.twidth.val(),10); if ( !tw || ( tw > 100 || @@ -306,7 +306,7 @@ KISSY.add(function (S, require) { selectedTable.removeClass(collapseTableClass, undefined); } - d.cellpadding.val(parseInt(d.cellpadding.val()) || 0); + d.cellpadding.val(parseInt(d.cellpadding.val(),10) || 0); if (self.selectedTd) { self.selectedTd.css('padding', d.cellpadding.val()); } @@ -333,8 +333,8 @@ KISSY.add(function (S, require) { d = self.dialog, html = '
    ', cellPad = OLD_IE ? '' : '
    ', @@ -412,7 +412,7 @@ KISSY.add(function (S, require) { caption = selectedTable.one('caption'); if (self.selectedTd) { d.cellpadding.val( - parseInt(self.selectedTd.css('padding')) || '0'); + parseInt(self.selectedTd.css('padding'),10) || '0'); } d.talign.set('value', selectedTable.attr('align') || ''); diff --git a/src/editor/sub-modules/plugin/underline/coverage/src/underline.js b/src/editor/sub-modules/plugin/underline/coverage/src/underline.js index 795fcfcec5..b69d3f132c 100644 --- a/src/editor/sub-modules/plugin/underline/coverage/src/underline.js +++ b/src/editor/sub-modules/plugin/underline/coverage/src/underline.js @@ -258,11 +258,11 @@ if (! _$jscoverage['/underline.js'].branchData) { _$jscoverage['/underline.js'].branchData['24'][1] = new BranchData(); _$jscoverage['/underline.js'].branchData['24'][2] = new BranchData(); } -_$jscoverage['/underline.js'].branchData['24'][2].init(38, 29, 'e.keyCode == S.Node.KeyCode.U'); +_$jscoverage['/underline.js'].branchData['24'][2].init(38, 30, 'e.keyCode === S.Node.KeyCode.U'); function visit2_24_2(result) { _$jscoverage['/underline.js'].branchData['24'][2].ranCondition(result); return result; -}_$jscoverage['/underline.js'].branchData['24'][1].init(25, 42, 'e.ctrlKey && e.keyCode == S.Node.KeyCode.U'); +}_$jscoverage['/underline.js'].branchData['24'][1].init(25, 43, 'e.ctrlKey && e.keyCode === S.Node.KeyCode.U'); function visit1_24_1(result) { _$jscoverage['/underline.js'].branchData['24'][1].ranCondition(result); return result; @@ -296,7 +296,7 @@ KISSY.add(function(S, require) { editor.get('document').on('keydown', function(e) { _$jscoverage['/underline.js'].functionData[4]++; _$jscoverage['/underline.js'].lineData[24]++; - if (visit1_24_1(e.ctrlKey && visit2_24_2(e.keyCode == S.Node.KeyCode.U))) { + if (visit1_24_1(e.ctrlKey && visit2_24_2(e.keyCode === S.Node.KeyCode.U))) { _$jscoverage['/underline.js'].lineData[25]++; editor.execCommand('underline'); _$jscoverage['/underline.js'].lineData[26]++; diff --git a/src/editor/sub-modules/plugin/underline/src/underline.js b/src/editor/sub-modules/plugin/underline/src/underline.js index d0daac66fd..244b5b5133 100644 --- a/src/editor/sub-modules/plugin/underline/src/underline.js +++ b/src/editor/sub-modules/plugin/underline/src/underline.js @@ -21,7 +21,7 @@ KISSY.add(function (S, require) { editor.docReady(function () { editor.get('document').on('keydown', function (e) { - if (e.ctrlKey && e.keyCode == S.Node.KeyCode.U) { + if (e.ctrlKey && e.keyCode === S.Node.KeyCode.U) { editor.execCommand('underline'); e.preventDefault(); } diff --git a/src/editor/sub-modules/plugin/undo/sub-modules/cmd/coverage/src/cmd.js b/src/editor/sub-modules/plugin/undo/sub-modules/cmd/coverage/src/cmd.js index cbdd545f1c..0bec41c107 100644 --- a/src/editor/sub-modules/plugin/undo/sub-modules/cmd/coverage/src/cmd.js +++ b/src/editor/sub-modules/plugin/undo/sub-modules/cmd/coverage/src/cmd.js @@ -419,11 +419,11 @@ function visit24_186_1(result) { function visit23_184_1(result) { _$jscoverage['/cmd.js'].branchData['184'][1].ranCondition(result); return result; -}_$jscoverage['/cmd.js'].branchData['182'][1].init(394, 8, 'snapshot'); +}_$jscoverage['/cmd.js'].branchData['182'][1].init(395, 8, 'snapshot'); function visit22_182_1(result) { _$jscoverage['/cmd.js'].branchData['182'][1].ranCondition(result); return result; -}_$jscoverage['/cmd.js'].branchData['172'][1].init(50, 51, 'this.editor.get(\'mode\') != Editor.Mode.WYSIWYG_MODE'); +}_$jscoverage['/cmd.js'].branchData['172'][1].init(50, 52, 'this.editor.get(\'mode\') !== Editor.Mode.WYSIWYG_MODE'); function visit21_172_1(result) { _$jscoverage['/cmd.js'].branchData['172'][1].ranCondition(result); return result; @@ -696,7 +696,7 @@ KISSY.add(function(S, require) { restore: function(d) { _$jscoverage['/cmd.js'].functionData[11]++; _$jscoverage['/cmd.js'].lineData[172]++; - if (visit21_172_1(this.editor.get('mode') != Editor.Mode.WYSIWYG_MODE)) { + if (visit21_172_1(this.editor.get('mode') !== Editor.Mode.WYSIWYG_MODE)) { _$jscoverage['/cmd.js'].lineData[173]++; return undefined; } @@ -731,7 +731,7 @@ KISSY.add(function(S, require) { _$jscoverage['/cmd.js'].lineData[199]++; self.index += d; _$jscoverage['/cmd.js'].lineData[200]++; - editor.fire(visit26_200_1(d < 0) ? "afterUndo" : "afterRedo", { + editor.fire(visit26_200_1(d < 0) ? 'afterUndo' : 'afterRedo', { history: history, index: self.index}); _$jscoverage['/cmd.js'].lineData[204]++; diff --git a/src/editor/sub-modules/plugin/undo/sub-modules/cmd/src/cmd.js b/src/editor/sub-modules/plugin/undo/sub-modules/cmd/src/cmd.js index 367082fe80..663d9777f3 100644 --- a/src/editor/sub-modules/plugin/undo/sub-modules/cmd/src/cmd.js +++ b/src/editor/sub-modules/plugin/undo/sub-modules/cmd/src/cmd.js @@ -169,7 +169,7 @@ KISSY.add(function (S, require) { restore: function (d) { // 代码模式下不和可视模式下混在一起 - if (this.editor.get('mode') != Editor.Mode.WYSIWYG_MODE) { + if (this.editor.get('mode') !== Editor.Mode.WYSIWYG_MODE) { return undefined; } @@ -197,7 +197,7 @@ KISSY.add(function (S, require) { selection.scrollIntoView(); } self.index += d; - editor.fire(d < 0 ? "afterUndo" : "afterRedo", { + editor.fire(d < 0 ? 'afterUndo' : 'afterRedo', { history: history, index: self.index }); diff --git a/src/editor/sub-modules/plugin/video/sub-modules/dialog/coverage/src/dialog.js b/src/editor/sub-modules/plugin/video/sub-modules/dialog/coverage/src/dialog.js index f6637ac221..d9928723d6 100644 --- a/src/editor/sub-modules/plugin/video/sub-modules/dialog/coverage/src/dialog.js +++ b/src/editor/sub-modules/plugin/video/sub-modules/dialog/coverage/src/dialog.js @@ -233,75 +233,76 @@ if (! _$jscoverage['/dialog.js']) { _$jscoverage['/dialog.js'].lineData[7] = 0; _$jscoverage['/dialog.js'].lineData[8] = 0; _$jscoverage['/dialog.js'].lineData[9] = 0; - _$jscoverage['/dialog.js'].lineData[11] = 0; - _$jscoverage['/dialog.js'].lineData[75] = 0; + _$jscoverage['/dialog.js'].lineData[10] = 0; + _$jscoverage['/dialog.js'].lineData[12] = 0; _$jscoverage['/dialog.js'].lineData[76] = 0; - _$jscoverage['/dialog.js'].lineData[79] = 0; - _$jscoverage['/dialog.js'].lineData[81] = 0; - _$jscoverage['/dialog.js'].lineData[85] = 0; + _$jscoverage['/dialog.js'].lineData[77] = 0; + _$jscoverage['/dialog.js'].lineData[80] = 0; + _$jscoverage['/dialog.js'].lineData[82] = 0; _$jscoverage['/dialog.js'].lineData[86] = 0; _$jscoverage['/dialog.js'].lineData[87] = 0; _$jscoverage['/dialog.js'].lineData[88] = 0; - _$jscoverage['/dialog.js'].lineData[91] = 0; - _$jscoverage['/dialog.js'].lineData[94] = 0; + _$jscoverage['/dialog.js'].lineData[89] = 0; + _$jscoverage['/dialog.js'].lineData[92] = 0; _$jscoverage['/dialog.js'].lineData[95] = 0; - _$jscoverage['/dialog.js'].lineData[98] = 0; - _$jscoverage['/dialog.js'].lineData[103] = 0; - _$jscoverage['/dialog.js'].lineData[104] = 0; - _$jscoverage['/dialog.js'].lineData[112] = 0; - _$jscoverage['/dialog.js'].lineData[113] = 0; + _$jscoverage['/dialog.js'].lineData[96] = 0; + _$jscoverage['/dialog.js'].lineData[100] = 0; + _$jscoverage['/dialog.js'].lineData[105] = 0; + _$jscoverage['/dialog.js'].lineData[106] = 0; _$jscoverage['/dialog.js'].lineData[114] = 0; _$jscoverage['/dialog.js'].lineData[115] = 0; + _$jscoverage['/dialog.js'].lineData[116] = 0; _$jscoverage['/dialog.js'].lineData[117] = 0; - _$jscoverage['/dialog.js'].lineData[118] = 0; _$jscoverage['/dialog.js'].lineData[119] = 0; _$jscoverage['/dialog.js'].lineData[120] = 0; + _$jscoverage['/dialog.js'].lineData[121] = 0; _$jscoverage['/dialog.js'].lineData[122] = 0; - _$jscoverage['/dialog.js'].lineData[123] = 0; _$jscoverage['/dialog.js'].lineData[124] = 0; _$jscoverage['/dialog.js'].lineData[125] = 0; - _$jscoverage['/dialog.js'].lineData[129] = 0; + _$jscoverage['/dialog.js'].lineData[126] = 0; + _$jscoverage['/dialog.js'].lineData[127] = 0; _$jscoverage['/dialog.js'].lineData[131] = 0; _$jscoverage['/dialog.js'].lineData[133] = 0; - _$jscoverage['/dialog.js'].lineData[134] = 0; + _$jscoverage['/dialog.js'].lineData[135] = 0; _$jscoverage['/dialog.js'].lineData[136] = 0; - _$jscoverage['/dialog.js'].lineData[137] = 0; _$jscoverage['/dialog.js'].lineData[138] = 0; _$jscoverage['/dialog.js'].lineData[139] = 0; + _$jscoverage['/dialog.js'].lineData[140] = 0; _$jscoverage['/dialog.js'].lineData[141] = 0; - _$jscoverage['/dialog.js'].lineData[151] = 0; - _$jscoverage['/dialog.js'].lineData[155] = 0; - _$jscoverage['/dialog.js'].lineData[158] = 0; - _$jscoverage['/dialog.js'].lineData[159] = 0; + _$jscoverage['/dialog.js'].lineData[143] = 0; + _$jscoverage['/dialog.js'].lineData[153] = 0; + _$jscoverage['/dialog.js'].lineData[157] = 0; _$jscoverage['/dialog.js'].lineData[160] = 0; _$jscoverage['/dialog.js'].lineData[161] = 0; _$jscoverage['/dialog.js'].lineData[162] = 0; + _$jscoverage['/dialog.js'].lineData[163] = 0; _$jscoverage['/dialog.js'].lineData[164] = 0; _$jscoverage['/dialog.js'].lineData[166] = 0; _$jscoverage['/dialog.js'].lineData[168] = 0; - _$jscoverage['/dialog.js'].lineData[174] = 0; - _$jscoverage['/dialog.js'].lineData[178] = 0; - _$jscoverage['/dialog.js'].lineData[182] = 0; - _$jscoverage['/dialog.js'].lineData[183] = 0; + _$jscoverage['/dialog.js'].lineData[170] = 0; + _$jscoverage['/dialog.js'].lineData[176] = 0; + _$jscoverage['/dialog.js'].lineData[180] = 0; _$jscoverage['/dialog.js'].lineData[184] = 0; - _$jscoverage['/dialog.js'].lineData[189] = 0; - _$jscoverage['/dialog.js'].lineData[190] = 0; + _$jscoverage['/dialog.js'].lineData[185] = 0; + _$jscoverage['/dialog.js'].lineData[186] = 0; _$jscoverage['/dialog.js'].lineData[191] = 0; _$jscoverage['/dialog.js'].lineData[192] = 0; - _$jscoverage['/dialog.js'].lineData[196] = 0; - _$jscoverage['/dialog.js'].lineData[199] = 0; - _$jscoverage['/dialog.js'].lineData[200] = 0; + _$jscoverage['/dialog.js'].lineData[193] = 0; + _$jscoverage['/dialog.js'].lineData[194] = 0; + _$jscoverage['/dialog.js'].lineData[198] = 0; _$jscoverage['/dialog.js'].lineData[201] = 0; _$jscoverage['/dialog.js'].lineData[202] = 0; _$jscoverage['/dialog.js'].lineData[203] = 0; _$jscoverage['/dialog.js'].lineData[204] = 0; _$jscoverage['/dialog.js'].lineData[205] = 0; + _$jscoverage['/dialog.js'].lineData[206] = 0; _$jscoverage['/dialog.js'].lineData[207] = 0; - _$jscoverage['/dialog.js'].lineData[208] = 0; _$jscoverage['/dialog.js'].lineData[209] = 0; _$jscoverage['/dialog.js'].lineData[210] = 0; _$jscoverage['/dialog.js'].lineData[211] = 0; - _$jscoverage['/dialog.js'].lineData[216] = 0; + _$jscoverage['/dialog.js'].lineData[212] = 0; + _$jscoverage['/dialog.js'].lineData[213] = 0; + _$jscoverage['/dialog.js'].lineData[218] = 0; } if (! _$jscoverage['/dialog.js'].functionData) { _$jscoverage['/dialog.js'].functionData = []; @@ -318,84 +319,84 @@ if (! _$jscoverage['/dialog.js'].functionData) { } if (! _$jscoverage['/dialog.js'].branchData) { _$jscoverage['/dialog.js'].branchData = {}; - _$jscoverage['/dialog.js'].branchData['95'] = []; - _$jscoverage['/dialog.js'].branchData['95'][1] = new BranchData(); - _$jscoverage['/dialog.js'].branchData['133'] = []; - _$jscoverage['/dialog.js'].branchData['133'][1] = new BranchData(); - _$jscoverage['/dialog.js'].branchData['137'] = []; - _$jscoverage['/dialog.js'].branchData['137'][1] = new BranchData(); - _$jscoverage['/dialog.js'].branchData['144'] = []; - _$jscoverage['/dialog.js'].branchData['144'][1] = new BranchData(); - _$jscoverage['/dialog.js'].branchData['145'] = []; - _$jscoverage['/dialog.js'].branchData['145'][1] = new BranchData(); + _$jscoverage['/dialog.js'].branchData['96'] = []; + _$jscoverage['/dialog.js'].branchData['96'][1] = new BranchData(); + _$jscoverage['/dialog.js'].branchData['135'] = []; + _$jscoverage['/dialog.js'].branchData['135'][1] = new BranchData(); + _$jscoverage['/dialog.js'].branchData['139'] = []; + _$jscoverage['/dialog.js'].branchData['139'][1] = new BranchData(); _$jscoverage['/dialog.js'].branchData['146'] = []; _$jscoverage['/dialog.js'].branchData['146'][1] = new BranchData(); - _$jscoverage['/dialog.js'].branchData['158'] = []; - _$jscoverage['/dialog.js'].branchData['158'][1] = new BranchData(); - _$jscoverage['/dialog.js'].branchData['159'] = []; - _$jscoverage['/dialog.js'].branchData['159'][1] = new BranchData(); + _$jscoverage['/dialog.js'].branchData['147'] = []; + _$jscoverage['/dialog.js'].branchData['147'][1] = new BranchData(); + _$jscoverage['/dialog.js'].branchData['148'] = []; + _$jscoverage['/dialog.js'].branchData['148'][1] = new BranchData(); + _$jscoverage['/dialog.js'].branchData['160'] = []; + _$jscoverage['/dialog.js'].branchData['160'][1] = new BranchData(); _$jscoverage['/dialog.js'].branchData['161'] = []; _$jscoverage['/dialog.js'].branchData['161'][1] = new BranchData(); - _$jscoverage['/dialog.js'].branchData['166'] = []; - _$jscoverage['/dialog.js'].branchData['166'][1] = new BranchData(); - _$jscoverage['/dialog.js'].branchData['183'] = []; - _$jscoverage['/dialog.js'].branchData['183'][1] = new BranchData(); - _$jscoverage['/dialog.js'].branchData['199'] = []; - _$jscoverage['/dialog.js'].branchData['199'][1] = new BranchData(); - _$jscoverage['/dialog.js'].branchData['203'] = []; - _$jscoverage['/dialog.js'].branchData['203'][1] = new BranchData(); + _$jscoverage['/dialog.js'].branchData['163'] = []; + _$jscoverage['/dialog.js'].branchData['163'][1] = new BranchData(); + _$jscoverage['/dialog.js'].branchData['168'] = []; + _$jscoverage['/dialog.js'].branchData['168'][1] = new BranchData(); + _$jscoverage['/dialog.js'].branchData['185'] = []; + _$jscoverage['/dialog.js'].branchData['185'][1] = new BranchData(); + _$jscoverage['/dialog.js'].branchData['201'] = []; + _$jscoverage['/dialog.js'].branchData['201'][1] = new BranchData(); + _$jscoverage['/dialog.js'].branchData['205'] = []; + _$jscoverage['/dialog.js'].branchData['205'][1] = new BranchData(); } -_$jscoverage['/dialog.js'].branchData['203'][1].init(218, 32, 'parseInt(r.style(\'margin\')) || 0'); -function visit13_203_1(result) { - _$jscoverage['/dialog.js'].branchData['203'][1].ranCondition(result); +_$jscoverage['/dialog.js'].branchData['205'][1].init(218, 36, 'parseInt(r.style(\'margin\'), 10) || 0'); +function visit13_205_1(result) { + _$jscoverage['/dialog.js'].branchData['205'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['199'][1].init(124, 1, 'f'); -function visit12_199_1(result) { - _$jscoverage['/dialog.js'].branchData['199'][1].ranCondition(result); +}_$jscoverage['/dialog.js'].branchData['201'][1].init(124, 1, 'f'); +function visit12_201_1(result) { + _$jscoverage['/dialog.js'].branchData['201'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['183'][1].init(967, 2, 'ev'); -function visit11_183_1(result) { - _$jscoverage['/dialog.js'].branchData['183'][1].ranCondition(result); +}_$jscoverage['/dialog.js'].branchData['185'][1].init(967, 2, 'ev'); +function visit11_185_1(result) { + _$jscoverage['/dialog.js'].branchData['185'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['166'][1].init(118, 20, 'c.paramName || \'url\''); -function visit10_166_1(result) { - _$jscoverage['/dialog.js'].branchData['166'][1].ranCondition(result); +}_$jscoverage['/dialog.js'].branchData['168'][1].init(118, 20, 'c.paramName || \'url\''); +function visit10_168_1(result) { + _$jscoverage['/dialog.js'].branchData['168'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['161'][1].init(64, 15, 'c.reg.test(url)'); -function visit9_161_1(result) { - _$jscoverage['/dialog.js'].branchData['161'][1].ranCondition(result); +}_$jscoverage['/dialog.js'].branchData['163'][1].init(64, 15, 'c.reg.test(url)'); +function visit9_163_1(result) { + _$jscoverage['/dialog.js'].branchData['163'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['159'][1].init(33, 17, 'i < urlCfg.length'); -function visit8_159_1(result) { - _$jscoverage['/dialog.js'].branchData['159'][1].ranCondition(result); +}_$jscoverage['/dialog.js'].branchData['161'][1].init(33, 17, 'i < urlCfg.length'); +function visit8_161_1(result) { + _$jscoverage['/dialog.js'].branchData['161'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['158'][1].init(123, 6, 'urlCfg'); -function visit7_158_1(result) { - _$jscoverage['/dialog.js'].branchData['158'][1].ranCondition(result); +}_$jscoverage['/dialog.js'].branchData['160'][1].init(123, 6, 'urlCfg'); +function visit7_160_1(result) { + _$jscoverage['/dialog.js'].branchData['160'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['146'][1].init(190, 33, 'parseInt(self.dMargin.val()) || 0'); -function visit6_146_1(result) { - _$jscoverage['/dialog.js'].branchData['146'][1].ranCondition(result); +}_$jscoverage['/dialog.js'].branchData['148'][1].init(198, 37, 'parseInt(self.dMargin.val(), 10) || 0'); +function visit6_148_1(result) { + _$jscoverage['/dialog.js'].branchData['148'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['145'][1].init(106, 38, 'parseInt(self.dWidth.val()) || p.width'); -function visit5_145_1(result) { - _$jscoverage['/dialog.js'].branchData['145'][1].ranCondition(result); +}_$jscoverage['/dialog.js'].branchData['147'][1].init(110, 42, 'parseInt(self.dWidth.val(), 10) || p.width'); +function visit5_147_1(result) { + _$jscoverage['/dialog.js'].branchData['147'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['144'][1].init(33, 40, 'parseInt(self.dHeight.val()) || p.height'); -function visit4_144_1(result) { - _$jscoverage['/dialog.js'].branchData['144'][1].ranCondition(result); +}_$jscoverage['/dialog.js'].branchData['146'][1].init(33, 44, 'parseInt(self.dHeight.val(), 10) || p.height'); +function visit4_146_1(result) { + _$jscoverage['/dialog.js'].branchData['146'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['137'][1].init(61, 3, '!re'); -function visit3_137_1(result) { - _$jscoverage['/dialog.js'].branchData['137'][1].ranCondition(result); +}_$jscoverage['/dialog.js'].branchData['139'][1].init(61, 3, '!re'); +function visit3_139_1(result) { + _$jscoverage['/dialog.js'].branchData['139'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['133'][1].init(172, 2, '!p'); -function visit2_133_1(result) { - _$jscoverage['/dialog.js'].branchData['133'][1].ranCondition(result); +}_$jscoverage['/dialog.js'].branchData['135'][1].init(172, 2, '!p'); +function visit2_135_1(result) { + _$jscoverage['/dialog.js'].branchData['135'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['95'][1].init(545, 28, 'cfg.urlTip || \'\\u8bf7\\u8f93\\u5165\\u89c6\\u9891\\u64ad\\u653e\\u94fe\\u63a5...\''); -function visit1_95_1(result) { - _$jscoverage['/dialog.js'].branchData['95'][1].ranCondition(result); +}_$jscoverage['/dialog.js'].branchData['96'][1].init(545, 28, 'cfg.urlTip || \'\\u8bf7\\u8f93\\u5165\\u89c6\\u9891\\u64ad\\u653e\\u94fe\\u63a5...\''); +function visit1_96_1(result) { + _$jscoverage['/dialog.js'].branchData['96'][1].ranCondition(result); return result; }_$jscoverage['/dialog.js'].lineData[6]++; KISSY.add(function(S, require) { @@ -403,194 +404,196 @@ KISSY.add(function(S, require) { _$jscoverage['/dialog.js'].lineData[7]++; var Editor = require('editor'); _$jscoverage['/dialog.js'].lineData[8]++; - var FlashDialog = require('../flash/dialog'); + var io = require('io'); _$jscoverage['/dialog.js'].lineData[9]++; + var FlashDialog = require('../flash/dialog'); + _$jscoverage['/dialog.js'].lineData[10]++; var MenuButton = require('../menubutton'); - _$jscoverage['/dialog.js'].lineData[11]++; + _$jscoverage['/dialog.js'].lineData[12]++; var CLS_VIDEO = 'ke_video', TYPE_VIDEO = 'video', DTIP = '\u81ea\u52a8', MARGIN_DEFAULT = 0, bodyHTML = '
    ' + '

    ' + '' + '

    ' + '
    ' + '' + '' + '' + '' + '' + '
    ' + '' + '' + '' + '
    ' + '' + '' + '
    ' + '
    ', footHTML = ''; - _$jscoverage['/dialog.js'].lineData[75]++; + _$jscoverage['/dialog.js'].lineData[76]++; function VideoDialog() { _$jscoverage['/dialog.js'].functionData[1]++; - _$jscoverage['/dialog.js'].lineData[76]++; + _$jscoverage['/dialog.js'].lineData[77]++; VideoDialog.superclass.constructor.apply(this, arguments); } - _$jscoverage['/dialog.js'].lineData[79]++; + _$jscoverage['/dialog.js'].lineData[80]++; S.extend(VideoDialog, FlashDialog, { _config: function() { _$jscoverage['/dialog.js'].functionData[2]++; - _$jscoverage['/dialog.js'].lineData[81]++; + _$jscoverage['/dialog.js'].lineData[82]++; var self = this, editor = self.editor, prefixCls = editor.get('prefixCls'), cfg = self.config; - _$jscoverage['/dialog.js'].lineData[85]++; - self._cls = CLS_VIDEO; _$jscoverage['/dialog.js'].lineData[86]++; - self._type = TYPE_VIDEO; + self._cls = CLS_VIDEO; _$jscoverage['/dialog.js'].lineData[87]++; - self._title = '\u89c6\u9891'; + self._type = TYPE_VIDEO; _$jscoverage['/dialog.js'].lineData[88]++; + self._title = '\u89c6\u9891'; + _$jscoverage['/dialog.js'].lineData[89]++; self._bodyHTML = S.substitute(bodyHTML, { prefixCls: prefixCls}); - _$jscoverage['/dialog.js'].lineData[91]++; + _$jscoverage['/dialog.js'].lineData[92]++; self._footHTML = S.substitute(footHTML, { prefixCls: prefixCls}); - _$jscoverage['/dialog.js'].lineData[94]++; - self.urlCfg = cfg.urlCfg; _$jscoverage['/dialog.js'].lineData[95]++; - self._urlTip = visit1_95_1(cfg.urlTip || '\u8bf7\u8f93\u5165\u89c6\u9891\u64ad\u653e\u94fe\u63a5...'); + self.urlCfg = cfg.urlCfg; + _$jscoverage['/dialog.js'].lineData[96]++; + self._urlTip = visit1_96_1(cfg.urlTip || '\u8bf7\u8f93\u5165\u89c6\u9891\u64ad\u653e\u94fe\u63a5...'); }, _initD: function() { _$jscoverage['/dialog.js'].functionData[3]++; - _$jscoverage['/dialog.js'].lineData[98]++; + _$jscoverage['/dialog.js'].lineData[100]++; var self = this, d = self.dialog, editor = self.editor, prefixCls = editor.get('prefixCls'), el = d.get('el'); - _$jscoverage['/dialog.js'].lineData[103]++; + _$jscoverage['/dialog.js'].lineData[105]++; self.dUrl = el.one('.' + prefixCls + 'editor-video-url'); - _$jscoverage['/dialog.js'].lineData[104]++; + _$jscoverage['/dialog.js'].lineData[106]++; self.dAlign = MenuButton.Select.decorate(el.one('.' + prefixCls + 'editor-video-align'), { prefixCls: prefixCls + 'editor-big-', width: 80, menuCfg: { prefixCls: prefixCls + 'editor-', render: el}}); - _$jscoverage['/dialog.js'].lineData[112]++; + _$jscoverage['/dialog.js'].lineData[114]++; self.dMargin = el.one('.' + prefixCls + 'editor-video-margin'); - _$jscoverage['/dialog.js'].lineData[113]++; + _$jscoverage['/dialog.js'].lineData[115]++; self.dWidth = el.one('.' + prefixCls + 'editor-video-width'); - _$jscoverage['/dialog.js'].lineData[114]++; + _$jscoverage['/dialog.js'].lineData[116]++; self.dHeight = el.one('.' + prefixCls + 'editor-video-height'); - _$jscoverage['/dialog.js'].lineData[115]++; - var action = el.one('.' + prefixCls + 'editor-video-ok'), cancel = el.one('.' + prefixCls + 'editor-video-cancel'); _$jscoverage['/dialog.js'].lineData[117]++; + var action = el.one('.' + prefixCls + 'editor-video-ok'), cancel = el.one('.' + prefixCls + 'editor-video-cancel'); + _$jscoverage['/dialog.js'].lineData[119]++; action.on('click', self._gen, self); - _$jscoverage['/dialog.js'].lineData[118]++; + _$jscoverage['/dialog.js'].lineData[120]++; cancel.on('click', function(ev) { _$jscoverage['/dialog.js'].functionData[4]++; - _$jscoverage['/dialog.js'].lineData[119]++; + _$jscoverage['/dialog.js'].lineData[121]++; d.hide(); - _$jscoverage['/dialog.js'].lineData[120]++; + _$jscoverage['/dialog.js'].lineData[122]++; ev.halt(); }); - _$jscoverage['/dialog.js'].lineData[122]++; + _$jscoverage['/dialog.js'].lineData[124]++; Editor.Utils.placeholder(self.dUrl, self._urlTip); - _$jscoverage['/dialog.js'].lineData[123]++; + _$jscoverage['/dialog.js'].lineData[125]++; Editor.Utils.placeholder(self.dWidth, DTIP); - _$jscoverage['/dialog.js'].lineData[124]++; + _$jscoverage['/dialog.js'].lineData[126]++; Editor.Utils.placeholder(self.dHeight, DTIP); - _$jscoverage['/dialog.js'].lineData[125]++; + _$jscoverage['/dialog.js'].lineData[127]++; self.addRes(self.dAlign); }, _getDInfo: function() { _$jscoverage['/dialog.js'].functionData[5]++; - _$jscoverage['/dialog.js'].lineData[129]++; - var self = this, url = self.dUrl.val(); _$jscoverage['/dialog.js'].lineData[131]++; - var videoCfg = self.config, p = videoCfg.getProvider(url); + var self = this, url = self.dUrl.val(); _$jscoverage['/dialog.js'].lineData[133]++; - if (visit2_133_1(!p)) { - _$jscoverage['/dialog.js'].lineData[134]++; + var videoCfg = self.config, p = videoCfg.getProvider(url); + _$jscoverage['/dialog.js'].lineData[135]++; + if (visit2_135_1(!p)) { + _$jscoverage['/dialog.js'].lineData[136]++; window.alert('\u4e0d\u652f\u6301\u8be5\u94fe\u63a5\u6765\u6e90!'); } else { - _$jscoverage['/dialog.js'].lineData[136]++; + _$jscoverage['/dialog.js'].lineData[138]++; var re = p.detect(url); - _$jscoverage['/dialog.js'].lineData[137]++; - if (visit3_137_1(!re)) { - _$jscoverage['/dialog.js'].lineData[138]++; + _$jscoverage['/dialog.js'].lineData[139]++; + if (visit3_139_1(!re)) { + _$jscoverage['/dialog.js'].lineData[140]++; window.alert('\u4e0d\u652f\u6301\u8be5\u94fe\u63a5\uff0c\u8bf7\u76f4\u63a5\u8f93\u5165\u8be5\u89c6\u9891\u63d0\u4f9b\u7684\u5206\u4eab\u94fe\u63a5'); - _$jscoverage['/dialog.js'].lineData[139]++; + _$jscoverage['/dialog.js'].lineData[141]++; return undefined; } - _$jscoverage['/dialog.js'].lineData[141]++; + _$jscoverage['/dialog.js'].lineData[143]++; return { url: re, attrs: { - height: visit4_144_1(parseInt(self.dHeight.val()) || p.height), - width: visit5_145_1(parseInt(self.dWidth.val()) || p.width), - style: 'margin:' + (visit6_146_1(parseInt(self.dMargin.val()) || 0)) + 'px;' + 'float:' + self.dAlign.get('value') + ';'}}; + height: visit4_146_1(parseInt(self.dHeight.val(), 10) || p.height), + width: visit5_147_1(parseInt(self.dWidth.val(), 10) || p.width), + style: 'margin:' + (visit6_148_1(parseInt(self.dMargin.val(), 10) || 0)) + 'px;' + 'float:' + self.dAlign.get('value') + ';'}}; } - _$jscoverage['/dialog.js'].lineData[151]++; + _$jscoverage['/dialog.js'].lineData[153]++; return undefined; }, _gen: function(ev) { _$jscoverage['/dialog.js'].functionData[6]++; - _$jscoverage['/dialog.js'].lineData[155]++; + _$jscoverage['/dialog.js'].lineData[157]++; var self = this, url = self.dUrl.val(), urlCfg = self.urlCfg; - _$jscoverage['/dialog.js'].lineData[158]++; - if (visit7_158_1(urlCfg)) { - _$jscoverage['/dialog.js'].lineData[159]++; - for (var i = 0; visit8_159_1(i < urlCfg.length); i++) { - _$jscoverage['/dialog.js'].lineData[160]++; + _$jscoverage['/dialog.js'].lineData[160]++; + if (visit7_160_1(urlCfg)) { + _$jscoverage['/dialog.js'].lineData[161]++; + for (var i = 0; visit8_161_1(i < urlCfg.length); i++) { + _$jscoverage['/dialog.js'].lineData[162]++; var c = urlCfg[i]; - _$jscoverage['/dialog.js'].lineData[161]++; - if (visit9_161_1(c.reg.test(url))) { - _$jscoverage['/dialog.js'].lineData[162]++; - self.dialog.loading(); + _$jscoverage['/dialog.js'].lineData[163]++; + if (visit9_163_1(c.reg.test(url))) { _$jscoverage['/dialog.js'].lineData[164]++; - var data = {}; + self.dialog.loading(); _$jscoverage['/dialog.js'].lineData[166]++; - data[visit10_166_1(c.paramName || 'url')] = url; + var data = {}; _$jscoverage['/dialog.js'].lineData[168]++; - S.io({ + data[visit10_168_1(c.paramName || 'url')] = url; + _$jscoverage['/dialog.js'].lineData[170]++; + io({ url: c.url, data: data, dataType: 'jsonp', success: function(data) { _$jscoverage['/dialog.js'].functionData[7]++; - _$jscoverage['/dialog.js'].lineData[174]++; + _$jscoverage['/dialog.js'].lineData[176]++; self._dynamicUrlPrepare(data[1]); }}); - _$jscoverage['/dialog.js'].lineData[178]++; + _$jscoverage['/dialog.js'].lineData[180]++; return; } } } - _$jscoverage['/dialog.js'].lineData[182]++; + _$jscoverage['/dialog.js'].lineData[184]++; VideoDialog.superclass._gen.call(self, ev); - _$jscoverage['/dialog.js'].lineData[183]++; - if (visit11_183_1(ev)) { - _$jscoverage['/dialog.js'].lineData[184]++; + _$jscoverage['/dialog.js'].lineData[185]++; + if (visit11_185_1(ev)) { + _$jscoverage['/dialog.js'].lineData[186]++; ev.halt(); } }, _dynamicUrlPrepare: function(re) { _$jscoverage['/dialog.js'].functionData[8]++; - _$jscoverage['/dialog.js'].lineData[189]++; + _$jscoverage['/dialog.js'].lineData[191]++; var self = this; - _$jscoverage['/dialog.js'].lineData[190]++; + _$jscoverage['/dialog.js'].lineData[192]++; self.dUrl.val(re); - _$jscoverage['/dialog.js'].lineData[191]++; + _$jscoverage['/dialog.js'].lineData[193]++; self.dialog.unloading(); - _$jscoverage['/dialog.js'].lineData[192]++; + _$jscoverage['/dialog.js'].lineData[194]++; VideoDialog.superclass._gen.call(self); }, _updateD: function() { _$jscoverage['/dialog.js'].functionData[9]++; - _$jscoverage['/dialog.js'].lineData[196]++; + _$jscoverage['/dialog.js'].lineData[198]++; var self = this, editor = self.editor, f = self.selectedFlash; - _$jscoverage['/dialog.js'].lineData[199]++; - if (visit12_199_1(f)) { - _$jscoverage['/dialog.js'].lineData[200]++; - var r = editor.restoreRealElement(f); - _$jscoverage['/dialog.js'].lineData[201]++; - Editor.Utils.valInput(self.dUrl, self._getFlashUrl(r)); + _$jscoverage['/dialog.js'].lineData[201]++; + if (visit12_201_1(f)) { _$jscoverage['/dialog.js'].lineData[202]++; - self.dAlign.set('value', f.css('float')); + var r = editor.restoreRealElement(f); _$jscoverage['/dialog.js'].lineData[203]++; - self.dMargin.val(visit13_203_1(parseInt(r.style('margin')) || 0)); + Editor.Utils.valInput(self.dUrl, self._getFlashUrl(r)); _$jscoverage['/dialog.js'].lineData[204]++; - Editor.Utils.valInput(self.dWidth, parseInt(f.css('width'))); + self.dAlign.set('value', f.css('float')); _$jscoverage['/dialog.js'].lineData[205]++; - Editor.Utils.valInput(self.dHeight, parseInt(f.css('height'))); - } else { + self.dMargin.val(visit13_205_1(parseInt(r.style('margin'), 10) || 0)); + _$jscoverage['/dialog.js'].lineData[206]++; + Editor.Utils.valInput(self.dWidth, parseInt(f.css('width'), 10)); _$jscoverage['/dialog.js'].lineData[207]++; + Editor.Utils.valInput(self.dHeight, parseInt(f.css('height'), 10)); + } else { + _$jscoverage['/dialog.js'].lineData[209]++; Editor.Utils.resetInput(self.dUrl); - _$jscoverage['/dialog.js'].lineData[208]++; + _$jscoverage['/dialog.js'].lineData[210]++; self.dAlign.set('value', 'none'); - _$jscoverage['/dialog.js'].lineData[209]++; + _$jscoverage['/dialog.js'].lineData[211]++; self.dMargin.val(MARGIN_DEFAULT); - _$jscoverage['/dialog.js'].lineData[210]++; + _$jscoverage['/dialog.js'].lineData[212]++; Editor.Utils.resetInput(self.dWidth); - _$jscoverage['/dialog.js'].lineData[211]++; + _$jscoverage['/dialog.js'].lineData[213]++; Editor.Utils.resetInput(self.dHeight); } }}); - _$jscoverage['/dialog.js'].lineData[216]++; + _$jscoverage['/dialog.js'].lineData[218]++; return VideoDialog; }); diff --git a/src/editor/sub-modules/plugin/video/sub-modules/dialog/ke-meta/deps.js b/src/editor/sub-modules/plugin/video/sub-modules/dialog/ke-meta/deps.js index 083563c5de..cd2f593b68 100644 --- a/src/editor/sub-modules/plugin/video/sub-modules/dialog/ke-meta/deps.js +++ b/src/editor/sub-modules/plugin/video/sub-modules/dialog/ke-meta/deps.js @@ -1,4 +1,4 @@ /*Generated By KISSY Module Compiler*/ config({ -'editor/plugin/video/dialog': {requires: ['editor','editor/plugin/flash/dialog','editor/plugin/menubutton']} +'editor/plugin/video/dialog': {requires: ['editor','io','editor/plugin/flash/dialog','editor/plugin/menubutton']} }); diff --git a/src/editor/sub-modules/plugin/video/sub-modules/dialog/src/dialog.js b/src/editor/sub-modules/plugin/video/sub-modules/dialog/src/dialog.js index 72bd3a97a8..3802c2d6fd 100644 --- a/src/editor/sub-modules/plugin/video/sub-modules/dialog/src/dialog.js +++ b/src/editor/sub-modules/plugin/video/sub-modules/dialog/src/dialog.js @@ -5,6 +5,7 @@ */ KISSY.add(function (S, require) { var Editor = require('editor'); + var io = require('io'); var FlashDialog = require('../flash/dialog'); var MenuButton = require('../menubutton'); @@ -94,6 +95,7 @@ KISSY.add(function (S, require) { self.urlCfg = cfg.urlCfg; self._urlTip = cfg.urlTip || '请输入视频播放链接...'; }, + _initD: function () { var self = this, d = self.dialog, @@ -141,9 +143,9 @@ KISSY.add(function (S, require) { return { url: re, attrs: { - height: parseInt(self.dHeight.val()) || p.height, - width: parseInt(self.dWidth.val()) || p.width, - style: 'margin:' + (parseInt(self.dMargin.val()) || 0) + 'px;' + + height: parseInt(self.dHeight.val(), 10) || p.height, + width: parseInt(self.dWidth.val(), 10) || p.width, + style: 'margin:' + (parseInt(self.dMargin.val(), 10) || 0) + 'px;' + 'float:' + self.dAlign.get('value') + ';' } }; @@ -165,7 +167,7 @@ KISSY.add(function (S, require) { data[c.paramName || 'url'] = url; - S.io({ + io({ url: c.url, data: data, dataType: 'jsonp', @@ -179,8 +181,8 @@ KISSY.add(function (S, require) { } } } - VideoDialog.superclass._gen.call(self,ev); - if(ev){ + VideoDialog.superclass._gen.call(self, ev); + if (ev) { ev.halt(); } }, @@ -200,9 +202,9 @@ KISSY.add(function (S, require) { var r = editor.restoreRealElement(f); Editor.Utils.valInput(self.dUrl, self._getFlashUrl(r)); self.dAlign.set('value', f.css('float')); - self.dMargin.val(parseInt(r.style('margin')) || 0); - Editor.Utils.valInput(self.dWidth, parseInt(f.css('width'))); - Editor.Utils.valInput(self.dHeight, parseInt(f.css('height'))); + self.dMargin.val(parseInt(r.style('margin'), 10) || 0); + Editor.Utils.valInput(self.dWidth, parseInt(f.css('width'), 10)); + Editor.Utils.valInput(self.dHeight, parseInt(f.css('height'), 10)); } else { Editor.Utils.resetInput(self.dUrl); self.dAlign.set('value', 'none'); diff --git a/src/editor/sub-modules/plugin/word-filter/coverage/src/word-filter.js b/src/editor/sub-modules/plugin/word-filter/coverage/src/word-filter.js index 00f6ba4feb..9daf805105 100644 --- a/src/editor/sub-modules/plugin/word-filter/coverage/src/word-filter.js +++ b/src/editor/sub-modules/plugin/word-filter/coverage/src/word-filter.js @@ -1279,7 +1279,7 @@ function visit143_901_2(result) { function visit142_901_1(result) { _$jscoverage['/word-filter.js'].branchData['901'][1].ranCondition(result); return result; -}_$jscoverage['/word-filter.js'].branchData['886'][1].init(312, 29, '!bullet.getAttribute(\'style\')'); +}_$jscoverage['/word-filter.js'].branchData['886'][1].init(312, 39, 'bullet && !bullet.getAttribute(\'style\')'); function visit141_886_1(result) { _$jscoverage['/word-filter.js'].branchData['886'][1].ranCondition(result); return result; @@ -2774,7 +2774,7 @@ KISSY.add(function(S, require) { _$jscoverage['/word-filter.js'].lineData[885]++; var bullet = visit140_885_1(bulletText && bulletText.parentNode); _$jscoverage['/word-filter.js'].lineData[886]++; - if (visit141_886_1(!bullet.getAttribute('style'))) { + if (visit141_886_1(bullet && !bullet.getAttribute('style'))) { _$jscoverage['/word-filter.js'].lineData[887]++; (bullet.setAttribute('style', 'mso-list: Ignore;')); } diff --git a/src/editor/sub-modules/plugin/word-filter/src/word-filter.js b/src/editor/sub-modules/plugin/word-filter/src/word-filter.js index 8166c00f28..6a990dbac3 100644 --- a/src/editor/sub-modules/plugin/word-filter/src/word-filter.js +++ b/src/editor/sub-modules/plugin/word-filter/src/word-filter.js @@ -883,7 +883,7 @@ KISSY.add(function (S, require) { return node.nodeType === 3 && !containsNothingButSpaces(node.parentNode); }); var bullet = bulletText && bulletText.parentNode; - if (!bullet.getAttribute('style')) { + if (bullet && !bullet.getAttribute('style')) { ( bullet.setAttribute('style', 'mso-list: Ignore;')); } } diff --git a/src/editor/sub-modules/plugin/xiami-music/sub-modules/dialog/coverage/src/dialog.js b/src/editor/sub-modules/plugin/xiami-music/sub-modules/dialog/coverage/src/dialog.js index fe34a39a38..088938a242 100644 --- a/src/editor/sub-modules/plugin/xiami-music/sub-modules/dialog/coverage/src/dialog.js +++ b/src/editor/sub-modules/plugin/xiami-music/sub-modules/dialog/coverage/src/dialog.js @@ -233,23 +233,25 @@ if (! _$jscoverage['/dialog.js']) { _$jscoverage['/dialog.js'].lineData[7] = 0; _$jscoverage['/dialog.js'].lineData[8] = 0; _$jscoverage['/dialog.js'].lineData[9] = 0; - _$jscoverage['/dialog.js'].lineData[12] = 0; + _$jscoverage['/dialog.js'].lineData[10] = 0; + _$jscoverage['/dialog.js'].lineData[21] = 0; + _$jscoverage['/dialog.js'].lineData[22] = 0; _$jscoverage['/dialog.js'].lineData[23] = 0; - _$jscoverage['/dialog.js'].lineData[24] = 0; _$jscoverage['/dialog.js'].lineData[25] = 0; - _$jscoverage['/dialog.js'].lineData[27] = 0; - _$jscoverage['/dialog.js'].lineData[30] = 0; - _$jscoverage['/dialog.js'].lineData[74] = 0; - _$jscoverage['/dialog.js'].lineData[75] = 0; + _$jscoverage['/dialog.js'].lineData[28] = 0; + _$jscoverage['/dialog.js'].lineData[72] = 0; + _$jscoverage['/dialog.js'].lineData[73] = 0; + _$jscoverage['/dialog.js'].lineData[76] = 0; _$jscoverage['/dialog.js'].lineData[78] = 0; - _$jscoverage['/dialog.js'].lineData[80] = 0; + _$jscoverage['/dialog.js'].lineData[81] = 0; + _$jscoverage['/dialog.js'].lineData[82] = 0; _$jscoverage['/dialog.js'].lineData[83] = 0; _$jscoverage['/dialog.js'].lineData[84] = 0; - _$jscoverage['/dialog.js'].lineData[85] = 0; - _$jscoverage['/dialog.js'].lineData[86] = 0; - _$jscoverage['/dialog.js'].lineData[89] = 0; - _$jscoverage['/dialog.js'].lineData[94] = 0; - _$jscoverage['/dialog.js'].lineData[101] = 0; + _$jscoverage['/dialog.js'].lineData[87] = 0; + _$jscoverage['/dialog.js'].lineData[92] = 0; + _$jscoverage['/dialog.js'].lineData[99] = 0; + _$jscoverage['/dialog.js'].lineData[107] = 0; + _$jscoverage['/dialog.js'].lineData[108] = 0; _$jscoverage['/dialog.js'].lineData[109] = 0; _$jscoverage['/dialog.js'].lineData[110] = 0; _$jscoverage['/dialog.js'].lineData[111] = 0; @@ -257,118 +259,116 @@ if (! _$jscoverage['/dialog.js']) { _$jscoverage['/dialog.js'].lineData[113] = 0; _$jscoverage['/dialog.js'].lineData[114] = 0; _$jscoverage['/dialog.js'].lineData[115] = 0; - _$jscoverage['/dialog.js'].lineData[116] = 0; _$jscoverage['/dialog.js'].lineData[117] = 0; _$jscoverage['/dialog.js'].lineData[119] = 0; + _$jscoverage['/dialog.js'].lineData[120] = 0; _$jscoverage['/dialog.js'].lineData[121] = 0; _$jscoverage['/dialog.js'].lineData[122] = 0; - _$jscoverage['/dialog.js'].lineData[123] = 0; - _$jscoverage['/dialog.js'].lineData[124] = 0; + _$jscoverage['/dialog.js'].lineData[125] = 0; + _$jscoverage['/dialog.js'].lineData[126] = 0; _$jscoverage['/dialog.js'].lineData[127] = 0; - _$jscoverage['/dialog.js'].lineData[128] = 0; _$jscoverage['/dialog.js'].lineData[129] = 0; + _$jscoverage['/dialog.js'].lineData[130] = 0; _$jscoverage['/dialog.js'].lineData[131] = 0; _$jscoverage['/dialog.js'].lineData[132] = 0; - _$jscoverage['/dialog.js'].lineData[133] = 0; _$jscoverage['/dialog.js'].lineData[134] = 0; + _$jscoverage['/dialog.js'].lineData[135] = 0; _$jscoverage['/dialog.js'].lineData[136] = 0; - _$jscoverage['/dialog.js'].lineData[137] = 0; _$jscoverage['/dialog.js'].lineData[138] = 0; - _$jscoverage['/dialog.js'].lineData[140] = 0; - _$jscoverage['/dialog.js'].lineData[150] = 0; + _$jscoverage['/dialog.js'].lineData[148] = 0; + _$jscoverage['/dialog.js'].lineData[149] = 0; _$jscoverage['/dialog.js'].lineData[151] = 0; _$jscoverage['/dialog.js'].lineData[153] = 0; + _$jscoverage['/dialog.js'].lineData[154] = 0; _$jscoverage['/dialog.js'].lineData[155] = 0; _$jscoverage['/dialog.js'].lineData[156] = 0; _$jscoverage['/dialog.js'].lineData[157] = 0; _$jscoverage['/dialog.js'].lineData[158] = 0; _$jscoverage['/dialog.js'].lineData[159] = 0; _$jscoverage['/dialog.js'].lineData[160] = 0; - _$jscoverage['/dialog.js'].lineData[161] = 0; _$jscoverage['/dialog.js'].lineData[162] = 0; - _$jscoverage['/dialog.js'].lineData[164] = 0; - _$jscoverage['/dialog.js'].lineData[165] = 0; - _$jscoverage['/dialog.js'].lineData[169] = 0; + _$jscoverage['/dialog.js'].lineData[163] = 0; + _$jscoverage['/dialog.js'].lineData[167] = 0; + _$jscoverage['/dialog.js'].lineData[174] = 0; _$jscoverage['/dialog.js'].lineData[176] = 0; - _$jscoverage['/dialog.js'].lineData[178] = 0; - _$jscoverage['/dialog.js'].lineData[179] = 0; - _$jscoverage['/dialog.js'].lineData[184] = 0; - _$jscoverage['/dialog.js'].lineData[185] = 0; - _$jscoverage['/dialog.js'].lineData[188] = 0; - _$jscoverage['/dialog.js'].lineData[189] = 0; - _$jscoverage['/dialog.js'].lineData[192] = 0; + _$jscoverage['/dialog.js'].lineData[177] = 0; + _$jscoverage['/dialog.js'].lineData[182] = 0; + _$jscoverage['/dialog.js'].lineData[183] = 0; + _$jscoverage['/dialog.js'].lineData[186] = 0; + _$jscoverage['/dialog.js'].lineData[187] = 0; + _$jscoverage['/dialog.js'].lineData[190] = 0; + _$jscoverage['/dialog.js'].lineData[196] = 0; + _$jscoverage['/dialog.js'].lineData[197] = 0; _$jscoverage['/dialog.js'].lineData[198] = 0; - _$jscoverage['/dialog.js'].lineData[199] = 0; _$jscoverage['/dialog.js'].lineData[200] = 0; - _$jscoverage['/dialog.js'].lineData[202] = 0; - _$jscoverage['/dialog.js'].lineData[206] = 0; - _$jscoverage['/dialog.js'].lineData[209] = 0; - _$jscoverage['/dialog.js'].lineData[210] = 0; + _$jscoverage['/dialog.js'].lineData[204] = 0; + _$jscoverage['/dialog.js'].lineData[207] = 0; + _$jscoverage['/dialog.js'].lineData[208] = 0; + _$jscoverage['/dialog.js'].lineData[219] = 0; + _$jscoverage['/dialog.js'].lineData[220] = 0; _$jscoverage['/dialog.js'].lineData[221] = 0; - _$jscoverage['/dialog.js'].lineData[222] = 0; _$jscoverage['/dialog.js'].lineData[223] = 0; _$jscoverage['/dialog.js'].lineData[225] = 0; - _$jscoverage['/dialog.js'].lineData[227] = 0; - _$jscoverage['/dialog.js'].lineData[230] = 0; + _$jscoverage['/dialog.js'].lineData[228] = 0; + _$jscoverage['/dialog.js'].lineData[235] = 0; + _$jscoverage['/dialog.js'].lineData[236] = 0; _$jscoverage['/dialog.js'].lineData[237] = 0; _$jscoverage['/dialog.js'].lineData[238] = 0; _$jscoverage['/dialog.js'].lineData[239] = 0; _$jscoverage['/dialog.js'].lineData[240] = 0; _$jscoverage['/dialog.js'].lineData[241] = 0; - _$jscoverage['/dialog.js'].lineData[242] = 0; - _$jscoverage['/dialog.js'].lineData[243] = 0; + _$jscoverage['/dialog.js'].lineData[256] = 0; _$jscoverage['/dialog.js'].lineData[258] = 0; - _$jscoverage['/dialog.js'].lineData[260] = 0; + _$jscoverage['/dialog.js'].lineData[263] = 0; + _$jscoverage['/dialog.js'].lineData[264] = 0; _$jscoverage['/dialog.js'].lineData[265] = 0; _$jscoverage['/dialog.js'].lineData[266] = 0; _$jscoverage['/dialog.js'].lineData[267] = 0; - _$jscoverage['/dialog.js'].lineData[268] = 0; _$jscoverage['/dialog.js'].lineData[269] = 0; + _$jscoverage['/dialog.js'].lineData[270] = 0; _$jscoverage['/dialog.js'].lineData[271] = 0; - _$jscoverage['/dialog.js'].lineData[272] = 0; _$jscoverage['/dialog.js'].lineData[273] = 0; - _$jscoverage['/dialog.js'].lineData[275] = 0; + _$jscoverage['/dialog.js'].lineData[274] = 0; _$jscoverage['/dialog.js'].lineData[276] = 0; + _$jscoverage['/dialog.js'].lineData[277] = 0; _$jscoverage['/dialog.js'].lineData[278] = 0; - _$jscoverage['/dialog.js'].lineData[279] = 0; _$jscoverage['/dialog.js'].lineData[280] = 0; - _$jscoverage['/dialog.js'].lineData[282] = 0; + _$jscoverage['/dialog.js'].lineData[281] = 0; _$jscoverage['/dialog.js'].lineData[283] = 0; + _$jscoverage['/dialog.js'].lineData[284] = 0; _$jscoverage['/dialog.js'].lineData[285] = 0; - _$jscoverage['/dialog.js'].lineData[286] = 0; _$jscoverage['/dialog.js'].lineData[287] = 0; _$jscoverage['/dialog.js'].lineData[289] = 0; - _$jscoverage['/dialog.js'].lineData[291] = 0; + _$jscoverage['/dialog.js'].lineData[290] = 0; _$jscoverage['/dialog.js'].lineData[292] = 0; - _$jscoverage['/dialog.js'].lineData[294] = 0; - _$jscoverage['/dialog.js'].lineData[298] = 0; - _$jscoverage['/dialog.js'].lineData[302] = 0; - _$jscoverage['/dialog.js'].lineData[309] = 0; + _$jscoverage['/dialog.js'].lineData[296] = 0; + _$jscoverage['/dialog.js'].lineData[300] = 0; + _$jscoverage['/dialog.js'].lineData[307] = 0; + _$jscoverage['/dialog.js'].lineData[311] = 0; + _$jscoverage['/dialog.js'].lineData[312] = 0; _$jscoverage['/dialog.js'].lineData[313] = 0; _$jscoverage['/dialog.js'].lineData[314] = 0; _$jscoverage['/dialog.js'].lineData[315] = 0; _$jscoverage['/dialog.js'].lineData[316] = 0; _$jscoverage['/dialog.js'].lineData[317] = 0; _$jscoverage['/dialog.js'].lineData[318] = 0; - _$jscoverage['/dialog.js'].lineData[319] = 0; _$jscoverage['/dialog.js'].lineData[320] = 0; + _$jscoverage['/dialog.js'].lineData[321] = 0; _$jscoverage['/dialog.js'].lineData[322] = 0; _$jscoverage['/dialog.js'].lineData[323] = 0; _$jscoverage['/dialog.js'].lineData[324] = 0; _$jscoverage['/dialog.js'].lineData[325] = 0; _$jscoverage['/dialog.js'].lineData[326] = 0; - _$jscoverage['/dialog.js'].lineData[327] = 0; _$jscoverage['/dialog.js'].lineData[328] = 0; - _$jscoverage['/dialog.js'].lineData[330] = 0; - _$jscoverage['/dialog.js'].lineData[331] = 0; - _$jscoverage['/dialog.js'].lineData[335] = 0; - _$jscoverage['/dialog.js'].lineData[336] = 0; - _$jscoverage['/dialog.js'].lineData[340] = 0; - _$jscoverage['/dialog.js'].lineData[346] = 0; - _$jscoverage['/dialog.js'].lineData[347] = 0; - _$jscoverage['/dialog.js'].lineData[352] = 0; + _$jscoverage['/dialog.js'].lineData[329] = 0; + _$jscoverage['/dialog.js'].lineData[333] = 0; + _$jscoverage['/dialog.js'].lineData[334] = 0; + _$jscoverage['/dialog.js'].lineData[338] = 0; + _$jscoverage['/dialog.js'].lineData[343] = 0; + _$jscoverage['/dialog.js'].lineData[344] = 0; + _$jscoverage['/dialog.js'].lineData[349] = 0; + _$jscoverage['/dialog.js'].lineData[351] = 0; _$jscoverage['/dialog.js'].lineData[354] = 0; - _$jscoverage['/dialog.js'].lineData[357] = 0; } if (! _$jscoverage['/dialog.js'].functionData) { _$jscoverage['/dialog.js'].functionData = []; @@ -396,173 +396,173 @@ if (! _$jscoverage['/dialog.js'].functionData) { } if (! _$jscoverage['/dialog.js'].branchData) { _$jscoverage['/dialog.js'].branchData = {}; - _$jscoverage['/dialog.js'].branchData['24'] = []; - _$jscoverage['/dialog.js'].branchData['24'][1] = new BranchData(); - _$jscoverage['/dialog.js'].branchData['116'] = []; - _$jscoverage['/dialog.js'].branchData['116'][1] = new BranchData(); - _$jscoverage['/dialog.js'].branchData['123'] = []; - _$jscoverage['/dialog.js'].branchData['123'][1] = new BranchData(); - _$jscoverage['/dialog.js'].branchData['146'] = []; - _$jscoverage['/dialog.js'].branchData['146'][1] = new BranchData(); - _$jscoverage['/dialog.js'].branchData['157'] = []; - _$jscoverage['/dialog.js'].branchData['157'][1] = new BranchData(); - _$jscoverage['/dialog.js'].branchData['160'] = []; - _$jscoverage['/dialog.js'].branchData['160'][1] = new BranchData(); - _$jscoverage['/dialog.js'].branchData['160'][2] = new BranchData(); - _$jscoverage['/dialog.js'].branchData['202'] = []; - _$jscoverage['/dialog.js'].branchData['202'][1] = new BranchData(); - _$jscoverage['/dialog.js'].branchData['206'] = []; - _$jscoverage['/dialog.js'].branchData['206'][1] = new BranchData(); - _$jscoverage['/dialog.js'].branchData['209'] = []; - _$jscoverage['/dialog.js'].branchData['209'][1] = new BranchData(); - _$jscoverage['/dialog.js'].branchData['217'] = []; - _$jscoverage['/dialog.js'].branchData['217'][1] = new BranchData(); - _$jscoverage['/dialog.js'].branchData['222'] = []; - _$jscoverage['/dialog.js'].branchData['222'][1] = new BranchData(); + _$jscoverage['/dialog.js'].branchData['22'] = []; + _$jscoverage['/dialog.js'].branchData['22'][1] = new BranchData(); + _$jscoverage['/dialog.js'].branchData['114'] = []; + _$jscoverage['/dialog.js'].branchData['114'][1] = new BranchData(); + _$jscoverage['/dialog.js'].branchData['121'] = []; + _$jscoverage['/dialog.js'].branchData['121'][1] = new BranchData(); + _$jscoverage['/dialog.js'].branchData['144'] = []; + _$jscoverage['/dialog.js'].branchData['144'][1] = new BranchData(); + _$jscoverage['/dialog.js'].branchData['155'] = []; + _$jscoverage['/dialog.js'].branchData['155'][1] = new BranchData(); + _$jscoverage['/dialog.js'].branchData['158'] = []; + _$jscoverage['/dialog.js'].branchData['158'][1] = new BranchData(); + _$jscoverage['/dialog.js'].branchData['158'][2] = new BranchData(); + _$jscoverage['/dialog.js'].branchData['200'] = []; + _$jscoverage['/dialog.js'].branchData['200'][1] = new BranchData(); + _$jscoverage['/dialog.js'].branchData['204'] = []; + _$jscoverage['/dialog.js'].branchData['204'][1] = new BranchData(); + _$jscoverage['/dialog.js'].branchData['207'] = []; + _$jscoverage['/dialog.js'].branchData['207'][1] = new BranchData(); + _$jscoverage['/dialog.js'].branchData['215'] = []; + _$jscoverage['/dialog.js'].branchData['215'][1] = new BranchData(); + _$jscoverage['/dialog.js'].branchData['220'] = []; + _$jscoverage['/dialog.js'].branchData['220'][1] = new BranchData(); + _$jscoverage['/dialog.js'].branchData['235'] = []; + _$jscoverage['/dialog.js'].branchData['235'][1] = new BranchData(); _$jscoverage['/dialog.js'].branchData['237'] = []; _$jscoverage['/dialog.js'].branchData['237'][1] = new BranchData(); _$jscoverage['/dialog.js'].branchData['239'] = []; _$jscoverage['/dialog.js'].branchData['239'][1] = new BranchData(); - _$jscoverage['/dialog.js'].branchData['241'] = []; - _$jscoverage['/dialog.js'].branchData['241'][1] = new BranchData(); + _$jscoverage['/dialog.js'].branchData['263'] = []; + _$jscoverage['/dialog.js'].branchData['263'][1] = new BranchData(); _$jscoverage['/dialog.js'].branchData['265'] = []; _$jscoverage['/dialog.js'].branchData['265'][1] = new BranchData(); - _$jscoverage['/dialog.js'].branchData['267'] = []; - _$jscoverage['/dialog.js'].branchData['267'][1] = new BranchData(); - _$jscoverage['/dialog.js'].branchData['272'] = []; - _$jscoverage['/dialog.js'].branchData['272'][1] = new BranchData(); - _$jscoverage['/dialog.js'].branchData['275'] = []; - _$jscoverage['/dialog.js'].branchData['275'][1] = new BranchData(); - _$jscoverage['/dialog.js'].branchData['279'] = []; - _$jscoverage['/dialog.js'].branchData['279'][1] = new BranchData(); - _$jscoverage['/dialog.js'].branchData['282'] = []; - _$jscoverage['/dialog.js'].branchData['282'][1] = new BranchData(); - _$jscoverage['/dialog.js'].branchData['285'] = []; - _$jscoverage['/dialog.js'].branchData['285'][1] = new BranchData(); - _$jscoverage['/dialog.js'].branchData['286'] = []; - _$jscoverage['/dialog.js'].branchData['286'][1] = new BranchData(); - _$jscoverage['/dialog.js'].branchData['291'] = []; - _$jscoverage['/dialog.js'].branchData['291'][1] = new BranchData(); - _$jscoverage['/dialog.js'].branchData['313'] = []; - _$jscoverage['/dialog.js'].branchData['313'][1] = new BranchData(); - _$jscoverage['/dialog.js'].branchData['317'] = []; - _$jscoverage['/dialog.js'].branchData['317'][1] = new BranchData(); - _$jscoverage['/dialog.js'].branchData['348'] = []; - _$jscoverage['/dialog.js'].branchData['348'][1] = new BranchData(); - _$jscoverage['/dialog.js'].branchData['349'] = []; - _$jscoverage['/dialog.js'].branchData['349'][1] = new BranchData(); + _$jscoverage['/dialog.js'].branchData['270'] = []; + _$jscoverage['/dialog.js'].branchData['270'][1] = new BranchData(); + _$jscoverage['/dialog.js'].branchData['273'] = []; + _$jscoverage['/dialog.js'].branchData['273'][1] = new BranchData(); + _$jscoverage['/dialog.js'].branchData['277'] = []; + _$jscoverage['/dialog.js'].branchData['277'][1] = new BranchData(); + _$jscoverage['/dialog.js'].branchData['280'] = []; + _$jscoverage['/dialog.js'].branchData['280'][1] = new BranchData(); + _$jscoverage['/dialog.js'].branchData['283'] = []; + _$jscoverage['/dialog.js'].branchData['283'][1] = new BranchData(); + _$jscoverage['/dialog.js'].branchData['284'] = []; + _$jscoverage['/dialog.js'].branchData['284'][1] = new BranchData(); + _$jscoverage['/dialog.js'].branchData['289'] = []; + _$jscoverage['/dialog.js'].branchData['289'][1] = new BranchData(); + _$jscoverage['/dialog.js'].branchData['311'] = []; + _$jscoverage['/dialog.js'].branchData['311'][1] = new BranchData(); + _$jscoverage['/dialog.js'].branchData['315'] = []; + _$jscoverage['/dialog.js'].branchData['315'][1] = new BranchData(); + _$jscoverage['/dialog.js'].branchData['345'] = []; + _$jscoverage['/dialog.js'].branchData['345'][1] = new BranchData(); + _$jscoverage['/dialog.js'].branchData['346'] = []; + _$jscoverage['/dialog.js'].branchData['346'][1] = new BranchData(); } -_$jscoverage['/dialog.js'].branchData['349'][1].init(211, 6, 's || i'); -function visit28_349_1(result) { - _$jscoverage['/dialog.js'].branchData['349'][1].ranCondition(result); +_$jscoverage['/dialog.js'].branchData['346'][1].init(211, 6, 's || i'); +function visit28_346_1(result) { + _$jscoverage['/dialog.js'].branchData['346'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['348'][1].init(102, 10, 'page === i'); -function visit27_348_1(result) { - _$jscoverage['/dialog.js'].branchData['348'][1].ranCondition(result); +}_$jscoverage['/dialog.js'].branchData['345'][1].init(102, 10, 'page === i'); +function visit27_345_1(result) { + _$jscoverage['/dialog.js'].branchData['345'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['317'][1].init(203, 32, 'parseInt(f.style(\'margin\')) || 0'); -function visit26_317_1(result) { - _$jscoverage['/dialog.js'].branchData['317'][1].ranCondition(result); +}_$jscoverage['/dialog.js'].branchData['315'][1].init(203, 35, 'parseInt(f.style(\'margin\'), 10) || 0'); +function visit26_315_1(result) { + _$jscoverage['/dialog.js'].branchData['315'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['313'][1].init(177, 1, 'f'); -function visit25_313_1(result) { - _$jscoverage['/dialog.js'].branchData['313'][1].ranCondition(result); +}_$jscoverage['/dialog.js'].branchData['311'][1].init(177, 1, 'f'); +function visit25_311_1(result) { + _$jscoverage['/dialog.js'].branchData['311'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['291'][1].init(1376, 18, 'page !== totalPage'); -function visit24_291_1(result) { - _$jscoverage['/dialog.js'].branchData['291'][1].ranCondition(result); +}_$jscoverage['/dialog.js'].branchData['289'][1].init(1376, 18, 'page !== totalPage'); +function visit24_289_1(result) { + _$jscoverage['/dialog.js'].branchData['289'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['286'][1].init(33, 21, 'end !== totalPage - 1'); -function visit23_286_1(result) { - _$jscoverage['/dialog.js'].branchData['286'][1].ranCondition(result); +}_$jscoverage['/dialog.js'].branchData['284'][1].init(33, 21, 'end !== totalPage - 1'); +function visit23_284_1(result) { + _$jscoverage['/dialog.js'].branchData['284'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['285'][1].init(1026, 17, 'end !== totalPage'); -function visit22_285_1(result) { - _$jscoverage['/dialog.js'].branchData['285'][1].ranCondition(result); +}_$jscoverage['/dialog.js'].branchData['283'][1].init(1026, 17, 'end !== totalPage'); +function visit22_283_1(result) { + _$jscoverage['/dialog.js'].branchData['283'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['282'][1].init(883, 8, 'i <= end'); -function visit21_282_1(result) { - _$jscoverage['/dialog.js'].branchData['282'][1].ranCondition(result); +}_$jscoverage['/dialog.js'].branchData['280'][1].init(883, 8, 'i <= end'); +function visit21_280_1(result) { + _$jscoverage['/dialog.js'].branchData['280'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['279'][1].init(698, 11, 'start !== 2'); -function visit20_279_1(result) { - _$jscoverage['/dialog.js'].branchData['279'][1].ranCondition(result); +}_$jscoverage['/dialog.js'].branchData['277'][1].init(698, 11, 'start !== 2'); +function visit20_277_1(result) { + _$jscoverage['/dialog.js'].branchData['277'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['275'][1].init(493, 10, 'page !== 1'); -function visit19_275_1(result) { - _$jscoverage['/dialog.js'].branchData['275'][1].ranCondition(result); +}_$jscoverage['/dialog.js'].branchData['273'][1].init(493, 10, 'page !== 1'); +function visit19_273_1(result) { + _$jscoverage['/dialog.js'].branchData['273'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['272'][1].init(356, 21, 'end === totalPage - 1'); -function visit18_272_1(result) { - _$jscoverage['/dialog.js'].branchData['272'][1].ranCondition(result); +}_$jscoverage['/dialog.js'].branchData['270'][1].init(356, 21, 'end === totalPage - 1'); +function visit18_270_1(result) { + _$jscoverage['/dialog.js'].branchData['270'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['267'][1].init(113, 10, 'start <= 2'); -function visit17_267_1(result) { - _$jscoverage['/dialog.js'].branchData['267'][1].ranCondition(result); - return result; -}_$jscoverage['/dialog.js'].branchData['265'][1].init(1158, 13, 'totalPage > 1'); -function visit16_265_1(result) { +}_$jscoverage['/dialog.js'].branchData['265'][1].init(113, 10, 'start <= 2'); +function visit17_265_1(result) { _$jscoverage['/dialog.js'].branchData['265'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['241'][1].init(68, 13, 'i < re.length'); -function visit15_241_1(result) { - _$jscoverage['/dialog.js'].branchData['241'][1].ranCondition(result); +}_$jscoverage['/dialog.js'].branchData['263'][1].init(1158, 13, 'totalPage > 1'); +function visit16_263_1(result) { + _$jscoverage['/dialog.js'].branchData['263'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['239'][1].init(117, 15, 're && re.length'); -function visit14_239_1(result) { +}_$jscoverage['/dialog.js'].branchData['239'][1].init(68, 13, 'i < re.length'); +function visit15_239_1(result) { _$jscoverage['/dialog.js'].branchData['239'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['237'][1].init(251, 43, 'data.key === S.trim(self._xiamiInput.val())'); -function visit13_237_1(result) { +}_$jscoverage['/dialog.js'].branchData['237'][1].init(117, 15, 're && re.length'); +function visit14_237_1(result) { _$jscoverage['/dialog.js'].branchData['237'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['222'][1].init(1214, 6, 'paging'); -function visit12_222_1(result) { - _$jscoverage['/dialog.js'].branchData['222'][1].ranCondition(result); +}_$jscoverage['/dialog.js'].branchData['235'][1].init(251, 43, 'data.key === S.trim(self._xiamiInput.val())'); +function visit13_235_1(result) { + _$jscoverage['/dialog.js'].branchData['235'][1].ranCondition(result); + return result; +}_$jscoverage['/dialog.js'].branchData['220'][1].init(1217, 6, 'paging'); +function visit12_220_1(result) { + _$jscoverage['/dialog.js'].branchData['220'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['217'][1].init(44, 33, 'parseInt(self.dMargin.val()) || 0'); -function visit11_217_1(result) { - _$jscoverage['/dialog.js'].branchData['217'][1].ranCondition(result); +}_$jscoverage['/dialog.js'].branchData['215'][1].init(44, 36, 'parseInt(self.dMargin.val(), 10) || 0'); +function visit11_215_1(result) { + _$jscoverage['/dialog.js'].branchData['215'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['209'][1].init(582, 3, 'add'); -function visit10_209_1(result) { - _$jscoverage['/dialog.js'].branchData['209'][1].ranCondition(result); +}_$jscoverage['/dialog.js'].branchData['207'][1].init(582, 3, 'add'); +function visit10_207_1(result) { + _$jscoverage['/dialog.js'].branchData['207'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['206'][1].init(32, 119, 'self._xiamiaList.contains(node) && Dom.hasClass(node, prefixCls + \'editor-xiami-page-item\')'); -function visit9_206_1(result) { - _$jscoverage['/dialog.js'].branchData['206'][1].ranCondition(result); +}_$jscoverage['/dialog.js'].branchData['204'][1].init(32, 119, 'self._xiamiaList.contains(node) && Dom.hasClass(node, prefixCls + \'editor-xiami-page-item\')'); +function visit9_204_1(result) { + _$jscoverage['/dialog.js'].branchData['204'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['202'][1].init(32, 113, 'self._xiamiaList.contains(node) && Dom.hasClass(node, prefixCls + \'editor-xiami-add\')'); -function visit8_202_1(result) { - _$jscoverage['/dialog.js'].branchData['202'][1].ranCondition(result); +}_$jscoverage['/dialog.js'].branchData['200'][1].init(32, 113, 'self._xiamiaList.contains(node) && Dom.hasClass(node, prefixCls + \'editor-xiami-add\')'); +function visit8_200_1(result) { + _$jscoverage['/dialog.js'].branchData['200'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['160'][2].init(246, 13, 'query === TIP'); -function visit7_160_2(result) { - _$jscoverage['/dialog.js'].branchData['160'][2].ranCondition(result); +}_$jscoverage['/dialog.js'].branchData['158'][2].init(246, 13, 'query === TIP'); +function visit7_158_2(result) { + _$jscoverage['/dialog.js'].branchData['158'][2].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['160'][1].init(228, 31, '!S.trim(query) || query === TIP'); -function visit6_160_1(result) { - _$jscoverage['/dialog.js'].branchData['160'][1].ranCondition(result); +}_$jscoverage['/dialog.js'].branchData['158'][1].init(228, 31, '!S.trim(query) || query === TIP'); +function visit6_158_1(result) { + _$jscoverage['/dialog.js'].branchData['158'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['157'][1].init(62, 48, 'query.replace(/[^\\x00-\\xff]/g, \'@@\').length > 30'); -function visit5_157_1(result) { - _$jscoverage['/dialog.js'].branchData['157'][1].ranCondition(result); +}_$jscoverage['/dialog.js'].branchData['155'][1].init(62, 48, 'query.replace(/[^\\x00-\\xff]/g, \'@@\').length > 30'); +function visit5_155_1(result) { + _$jscoverage['/dialog.js'].branchData['155'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['146'][1].init(40, 33, 'parseInt(self.dMargin.val()) || 0'); -function visit4_146_1(result) { - _$jscoverage['/dialog.js'].branchData['146'][1].ranCondition(result); +}_$jscoverage['/dialog.js'].branchData['144'][1].init(40, 36, 'parseInt(self.dMargin.val(), 10) || 0'); +function visit4_144_1(result) { + _$jscoverage['/dialog.js'].branchData['144'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['123'][1].init(21, 17, 'ev.keyCode === 13'); -function visit3_123_1(result) { - _$jscoverage['/dialog.js'].branchData['123'][1].ranCondition(result); +}_$jscoverage['/dialog.js'].branchData['121'][1].init(21, 17, 'ev.keyCode === 13'); +function visit3_121_1(result) { + _$jscoverage['/dialog.js'].branchData['121'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['116'][1].init(21, 67, '!self._xiamiSubmit.hasClass(\'ks-editor-button-disabled\', undefined)'); -function visit2_116_1(result) { - _$jscoverage['/dialog.js'].branchData['116'][1].ranCondition(result); +}_$jscoverage['/dialog.js'].branchData['114'][1].init(21, 67, '!self._xiamiSubmit.hasClass(\'ks-editor-button-disabled\', undefined)'); +function visit2_114_1(result) { + _$jscoverage['/dialog.js'].branchData['114'][1].ranCondition(result); return result; -}_$jscoverage['/dialog.js'].branchData['24'][1].init(13, 14, 'str.length > l'); -function visit1_24_1(result) { - _$jscoverage['/dialog.js'].branchData['24'][1].ranCondition(result); +}_$jscoverage['/dialog.js'].branchData['22'][1].init(13, 14, 'str.length > l'); +function visit1_22_1(result) { + _$jscoverage['/dialog.js'].branchData['22'][1].ranCondition(result); return result; }_$jscoverage['/dialog.js'].lineData[6]++; KISSY.add(function(S, require) { @@ -573,370 +573,370 @@ KISSY.add(function(S, require) { var FlashDialog = require('../flash/dialog'); _$jscoverage['/dialog.js'].lineData[9]++; var MenuButton = require('../menubutton'); - _$jscoverage['/dialog.js'].lineData[12]++; + _$jscoverage['/dialog.js'].lineData[10]++; var Dom = S.DOM, Node = S.Node, Utils = Editor.Utils, loading = Utils.debugUrl('theme/tao-loading.gif'), XIAMI_URL = 'http://www.xiami.com/app/nineteen/search/key/{key}/page/{page}', CLS_XIAMI = 'ke_xiami', TYPE_XIAMI = 'xiami-music', BTIP = '\u641c \u7d22', TIP = '\u8f93\u5165\u6b4c\u66f2\u540d\u3001\u4e13\u8f91\u540d\u3001\u827a\u4eba\u540d'; - _$jscoverage['/dialog.js'].lineData[23]++; + _$jscoverage['/dialog.js'].lineData[21]++; function limit(str, l) { _$jscoverage['/dialog.js'].functionData[1]++; - _$jscoverage['/dialog.js'].lineData[24]++; - if (visit1_24_1(str.length > l)) { - _$jscoverage['/dialog.js'].lineData[25]++; + _$jscoverage['/dialog.js'].lineData[22]++; + if (visit1_22_1(str.length > l)) { + _$jscoverage['/dialog.js'].lineData[23]++; str = str.substring(0, l) + '...'; } - _$jscoverage['/dialog.js'].lineData[27]++; + _$jscoverage['/dialog.js'].lineData[25]++; return str; } - _$jscoverage['/dialog.js'].lineData[30]++; + _$jscoverage['/dialog.js'].lineData[28]++; var MARGIN_DEFAULT = 0, bodyHTML = '
    ' + '
    ' + '

    ' + '' + '

    ' + '

    ' + '   ' + ' ' + BTIP + '' + '

    ' + '

    ' + '' + '' + '

    ' + '
    ' + '
    ' + '
    ' + '
    ', footHTML = ''; - _$jscoverage['/dialog.js'].lineData[74]++; + _$jscoverage['/dialog.js'].lineData[72]++; function XiamiMusicDialog() { _$jscoverage['/dialog.js'].functionData[2]++; - _$jscoverage['/dialog.js'].lineData[75]++; + _$jscoverage['/dialog.js'].lineData[73]++; XiamiMusicDialog.superclass.constructor.apply(this, arguments); } - _$jscoverage['/dialog.js'].lineData[78]++; + _$jscoverage['/dialog.js'].lineData[76]++; S.extend(XiamiMusicDialog, FlashDialog, { _config: function() { _$jscoverage['/dialog.js'].functionData[3]++; - _$jscoverage['/dialog.js'].lineData[80]++; + _$jscoverage['/dialog.js'].lineData[78]++; var self = this, editor = self.editor, prefixCls = editor.get('prefixCls'); - _$jscoverage['/dialog.js'].lineData[83]++; + _$jscoverage['/dialog.js'].lineData[81]++; self._cls = CLS_XIAMI; - _$jscoverage['/dialog.js'].lineData[84]++; + _$jscoverage['/dialog.js'].lineData[82]++; self._type = TYPE_XIAMI; - _$jscoverage['/dialog.js'].lineData[85]++; + _$jscoverage['/dialog.js'].lineData[83]++; self._title = '\u867e\u7c73\u97f3\u4e50'; - _$jscoverage['/dialog.js'].lineData[86]++; + _$jscoverage['/dialog.js'].lineData[84]++; self._bodyHTML = S.substitute(bodyHTML, { prefixCls: prefixCls}); - _$jscoverage['/dialog.js'].lineData[89]++; + _$jscoverage['/dialog.js'].lineData[87]++; self._footHTML = S.substitute(footHTML, { prefixCls: prefixCls}); }, _initD: function() { _$jscoverage['/dialog.js'].functionData[4]++; - _$jscoverage['/dialog.js'].lineData[94]++; + _$jscoverage['/dialog.js'].lineData[92]++; var self = this, editor = self.editor, prefixCls = editor.get('prefixCls'), d = self.dialog, del = d.get('el'), dfoot = d.get('footer'), input = del.one('.' + prefixCls + 'editor-xiami-url'); - _$jscoverage['/dialog.js'].lineData[101]++; + _$jscoverage['/dialog.js'].lineData[99]++; self.dAlign = MenuButton.Select.decorate(del.one('.' + prefixCls + 'editor-xiami-align'), { prefixCls: 'ks-editor-big-', width: 80, menuCfg: { prefixCls: 'ks-editor-', render: del}}); - _$jscoverage['/dialog.js'].lineData[109]++; + _$jscoverage['/dialog.js'].lineData[107]++; self.addRes(self.dAlign); - _$jscoverage['/dialog.js'].lineData[110]++; + _$jscoverage['/dialog.js'].lineData[108]++; self._xiamiInput = input; - _$jscoverage['/dialog.js'].lineData[111]++; + _$jscoverage['/dialog.js'].lineData[109]++; Editor.Utils.placeholder(input, TIP); - _$jscoverage['/dialog.js'].lineData[112]++; + _$jscoverage['/dialog.js'].lineData[110]++; self.addRes(input); - _$jscoverage['/dialog.js'].lineData[113]++; + _$jscoverage['/dialog.js'].lineData[111]++; self._xiamiaList = del.one('.' + prefixCls + 'editor-xiami-list'); - _$jscoverage['/dialog.js'].lineData[114]++; + _$jscoverage['/dialog.js'].lineData[112]++; self._xiamiSubmit = del.one('.' + prefixCls + 'editor-xiami-submit'); - _$jscoverage['/dialog.js'].lineData[115]++; + _$jscoverage['/dialog.js'].lineData[113]++; self._xiamiSubmit.on('click', function(ev) { _$jscoverage['/dialog.js'].functionData[5]++; - _$jscoverage['/dialog.js'].lineData[116]++; - if (visit2_116_1(!self._xiamiSubmit.hasClass('ks-editor-button-disabled', undefined))) { - _$jscoverage['/dialog.js'].lineData[117]++; + _$jscoverage['/dialog.js'].lineData[114]++; + if (visit2_114_1(!self._xiamiSubmit.hasClass('ks-editor-button-disabled', undefined))) { + _$jscoverage['/dialog.js'].lineData[115]++; loadRecordsByPage(1); } - _$jscoverage['/dialog.js'].lineData[119]++; + _$jscoverage['/dialog.js'].lineData[117]++; ev.halt(); }); - _$jscoverage['/dialog.js'].lineData[121]++; + _$jscoverage['/dialog.js'].lineData[119]++; self.addRes(self._xiamiSubmit); - _$jscoverage['/dialog.js'].lineData[122]++; + _$jscoverage['/dialog.js'].lineData[120]++; input.on('keydown', function(ev) { _$jscoverage['/dialog.js'].functionData[6]++; - _$jscoverage['/dialog.js'].lineData[123]++; - if (visit3_123_1(ev.keyCode === 13)) { - _$jscoverage['/dialog.js'].lineData[124]++; + _$jscoverage['/dialog.js'].lineData[121]++; + if (visit3_121_1(ev.keyCode === 13)) { + _$jscoverage['/dialog.js'].lineData[122]++; loadRecordsByPage(1); } }); - _$jscoverage['/dialog.js'].lineData[127]++; + _$jscoverage['/dialog.js'].lineData[125]++; self.dMargin = del.one('.' + prefixCls + 'editor-xiami-margin'); - _$jscoverage['/dialog.js'].lineData[128]++; + _$jscoverage['/dialog.js'].lineData[126]++; self._xiamiUrlWrap = del.one('.' + prefixCls + 'editor-xiami-url-wrap'); - _$jscoverage['/dialog.js'].lineData[129]++; + _$jscoverage['/dialog.js'].lineData[127]++; self._xiamiTitle = del.one('.' + prefixCls + 'editor-xiami-title'); - _$jscoverage['/dialog.js'].lineData[131]++; + _$jscoverage['/dialog.js'].lineData[129]++; var xiamiOk = dfoot.one('.' + prefixCls + 'editor-xiami-ok'); - _$jscoverage['/dialog.js'].lineData[132]++; + _$jscoverage['/dialog.js'].lineData[130]++; dfoot.one('.' + prefixCls + 'editor-xiami-cancel').on('click', function(ev) { _$jscoverage['/dialog.js'].functionData[7]++; - _$jscoverage['/dialog.js'].lineData[133]++; + _$jscoverage['/dialog.js'].lineData[131]++; d.hide(); - _$jscoverage['/dialog.js'].lineData[134]++; + _$jscoverage['/dialog.js'].lineData[132]++; ev.halt(); }); - _$jscoverage['/dialog.js'].lineData[136]++; + _$jscoverage['/dialog.js'].lineData[134]++; self.addRes(dfoot); - _$jscoverage['/dialog.js'].lineData[137]++; + _$jscoverage['/dialog.js'].lineData[135]++; xiamiOk.on('click', function(ev) { _$jscoverage['/dialog.js'].functionData[8]++; - _$jscoverage['/dialog.js'].lineData[138]++; + _$jscoverage['/dialog.js'].lineData[136]++; var f = self.selectedFlash, r = editor.restoreRealElement(f); - _$jscoverage['/dialog.js'].lineData[140]++; + _$jscoverage['/dialog.js'].lineData[138]++; self._dinfo = { url: self._getFlashUrl(r), attrs: { title: f.attr('title'), - style: 'margin:' + (visit4_146_1(parseInt(self.dMargin.val()) || 0)) + 'px;' + 'float:' + self.dAlign.get('value') + ';'}}; - _$jscoverage['/dialog.js'].lineData[150]++; + style: 'margin:' + (visit4_144_1(parseInt(self.dMargin.val(), 10) || 0)) + 'px;' + 'float:' + self.dAlign.get('value') + ';'}}; + _$jscoverage['/dialog.js'].lineData[148]++; self._gen(); - _$jscoverage['/dialog.js'].lineData[151]++; + _$jscoverage['/dialog.js'].lineData[149]++; ev.halt(); }, self); - _$jscoverage['/dialog.js'].lineData[153]++; + _$jscoverage['/dialog.js'].lineData[151]++; self.addRes(xiamiOk); - _$jscoverage['/dialog.js'].lineData[155]++; + _$jscoverage['/dialog.js'].lineData[153]++; function loadRecordsByPage(page) { _$jscoverage['/dialog.js'].functionData[9]++; - _$jscoverage['/dialog.js'].lineData[156]++; + _$jscoverage['/dialog.js'].lineData[154]++; var query = input.val(); - _$jscoverage['/dialog.js'].lineData[157]++; - if (visit5_157_1(query.replace(/[^\x00-\xff]/g, '@@').length > 30)) { - _$jscoverage['/dialog.js'].lineData[158]++; + _$jscoverage['/dialog.js'].lineData[155]++; + if (visit5_155_1(query.replace(/[^\x00-\xff]/g, '@@').length > 30)) { + _$jscoverage['/dialog.js'].lineData[156]++; window.alert('\u957f\u5ea6\u4e0a\u965030\u4e2a\u5b57\u7b26\uff081\u4e2a\u6c49\u5b57=2\u4e2a\u5b57\u7b26\uff09'); - _$jscoverage['/dialog.js'].lineData[159]++; + _$jscoverage['/dialog.js'].lineData[157]++; return; } else { - _$jscoverage['/dialog.js'].lineData[160]++; - if (visit6_160_1(!S.trim(query) || visit7_160_2(query === TIP))) { - _$jscoverage['/dialog.js'].lineData[161]++; + _$jscoverage['/dialog.js'].lineData[158]++; + if (visit6_158_1(!S.trim(query) || visit7_158_2(query === TIP))) { + _$jscoverage['/dialog.js'].lineData[159]++; window.alert('\u4e0d\u80fd\u4e3a\u7a7a\uff01'); - _$jscoverage['/dialog.js'].lineData[162]++; + _$jscoverage['/dialog.js'].lineData[160]++; return; } } - _$jscoverage['/dialog.js'].lineData[164]++; + _$jscoverage['/dialog.js'].lineData[162]++; self._xiamiSubmit.addClass(prefixCls + 'editor-button-disabled', undefined); - _$jscoverage['/dialog.js'].lineData[165]++; + _$jscoverage['/dialog.js'].lineData[163]++; var req = S.substitute(XIAMI_URL, { key: encodeURIComponent(input.val()), page: page}); - _$jscoverage['/dialog.js'].lineData[169]++; + _$jscoverage['/dialog.js'].lineData[167]++; self._xiamiaList.html('' + '

    \u6b63\u5728\u641c\u7d22\uff0c\u8bf7\u7a0d\u5019......

    '); - _$jscoverage['/dialog.js'].lineData[176]++; + _$jscoverage['/dialog.js'].lineData[174]++; self._xiamiaList.show(); - _$jscoverage['/dialog.js'].lineData[178]++; + _$jscoverage['/dialog.js'].lineData[176]++; S.use('io', function(S, IO) { _$jscoverage['/dialog.js'].functionData[10]++; - _$jscoverage['/dialog.js'].lineData[179]++; + _$jscoverage['/dialog.js'].lineData[177]++; IO({ cache: false, url: req, dataType: 'jsonp', success: function(data) { _$jscoverage['/dialog.js'].functionData[11]++; - _$jscoverage['/dialog.js'].lineData[184]++; + _$jscoverage['/dialog.js'].lineData[182]++; data.page = page; - _$jscoverage['/dialog.js'].lineData[185]++; + _$jscoverage['/dialog.js'].lineData[183]++; self._listSearch(data); }, error: function() { _$jscoverage['/dialog.js'].functionData[12]++; - _$jscoverage['/dialog.js'].lineData[188]++; + _$jscoverage['/dialog.js'].lineData[186]++; self._xiamiSubmit.removeClass(prefixCls + 'editor-button-disabled', undefined); - _$jscoverage['/dialog.js'].lineData[189]++; + _$jscoverage['/dialog.js'].lineData[187]++; var html = '

    ' + '\u4e0d\u597d\u610f\u601d\uff0c\u8d85\u65f6\u4e86\uff0c\u8bf7\u91cd\u8bd5\uff01' + '

    '; - _$jscoverage['/dialog.js'].lineData[192]++; + _$jscoverage['/dialog.js'].lineData[190]++; self._xiamiaList.html(html); }}); }); } - _$jscoverage['/dialog.js'].lineData[198]++; + _$jscoverage['/dialog.js'].lineData[196]++; self._xiamiaList.on('click', function(ev) { _$jscoverage['/dialog.js'].functionData[13]++; - _$jscoverage['/dialog.js'].lineData[199]++; + _$jscoverage['/dialog.js'].lineData[197]++; ev.preventDefault(); - _$jscoverage['/dialog.js'].lineData[200]++; + _$jscoverage['/dialog.js'].lineData[198]++; var t = new Node(ev.target), add = t.closest(function(node) { _$jscoverage['/dialog.js'].functionData[14]++; - _$jscoverage['/dialog.js'].lineData[202]++; - return visit8_202_1(self._xiamiaList.contains(node) && Dom.hasClass(node, prefixCls + 'editor-xiami-add')); + _$jscoverage['/dialog.js'].lineData[200]++; + return visit8_200_1(self._xiamiaList.contains(node) && Dom.hasClass(node, prefixCls + 'editor-xiami-add')); }, undefined), paging = t.closest(function(node) { _$jscoverage['/dialog.js'].functionData[15]++; - _$jscoverage['/dialog.js'].lineData[206]++; - return visit9_206_1(self._xiamiaList.contains(node) && Dom.hasClass(node, prefixCls + 'editor-xiami-page-item')); + _$jscoverage['/dialog.js'].lineData[204]++; + return visit9_204_1(self._xiamiaList.contains(node) && Dom.hasClass(node, prefixCls + 'editor-xiami-page-item')); }, undefined); - _$jscoverage['/dialog.js'].lineData[209]++; - if (visit10_209_1(add)) { - _$jscoverage['/dialog.js'].lineData[210]++; + _$jscoverage['/dialog.js'].lineData[207]++; + if (visit10_207_1(add)) { + _$jscoverage['/dialog.js'].lineData[208]++; self._dinfo = { url: ('http://www.xiami.com/widget/' + add.attr('data-value') + '/singlePlayer.swf'), attrs: { title: add.attr('title'), - style: 'margin:' + (visit11_217_1(parseInt(self.dMargin.val()) || 0)) + 'px;' + 'float:' + self.dAlign.get('value') + ';'}}; - _$jscoverage['/dialog.js'].lineData[221]++; + style: 'margin:' + (visit11_215_1(parseInt(self.dMargin.val(), 10) || 0)) + 'px;' + 'float:' + self.dAlign.get('value') + ';'}}; + _$jscoverage['/dialog.js'].lineData[219]++; self._gen(); } else { - _$jscoverage['/dialog.js'].lineData[222]++; - if (visit12_222_1(paging)) { - _$jscoverage['/dialog.js'].lineData[223]++; - loadRecordsByPage(parseInt(paging.attr('data-value'))); + _$jscoverage['/dialog.js'].lineData[220]++; + if (visit12_220_1(paging)) { + _$jscoverage['/dialog.js'].lineData[221]++; + loadRecordsByPage(parseInt(paging.attr('data-value'), 10)); } } - _$jscoverage['/dialog.js'].lineData[225]++; + _$jscoverage['/dialog.js'].lineData[223]++; ev.halt(); }); - _$jscoverage['/dialog.js'].lineData[227]++; + _$jscoverage['/dialog.js'].lineData[225]++; self.addRes(self._xiamiaList); }, _listSearch: function(data) { _$jscoverage['/dialog.js'].functionData[16]++; - _$jscoverage['/dialog.js'].lineData[230]++; + _$jscoverage['/dialog.js'].lineData[228]++; var self = this, i, editor = self.editor, prefixCls = editor.get('prefixCls'), re = data.results, html = ''; - _$jscoverage['/dialog.js'].lineData[237]++; - if (visit13_237_1(data.key === S.trim(self._xiamiInput.val()))) { - _$jscoverage['/dialog.js'].lineData[238]++; + _$jscoverage['/dialog.js'].lineData[235]++; + if (visit13_235_1(data.key === S.trim(self._xiamiInput.val()))) { + _$jscoverage['/dialog.js'].lineData[236]++; self._xiamiSubmit.removeClass(prefixCls + 'editor-button-disabled', undefined); - _$jscoverage['/dialog.js'].lineData[239]++; - if (visit14_239_1(re && re.length)) { - _$jscoverage['/dialog.js'].lineData[240]++; + _$jscoverage['/dialog.js'].lineData[237]++; + if (visit14_237_1(re && re.length)) { + _$jscoverage['/dialog.js'].lineData[238]++; html = '
      '; - _$jscoverage['/dialog.js'].lineData[241]++; - for (i = 0; visit15_241_1(i < re.length); i++) { - _$jscoverage['/dialog.js'].lineData[242]++; + _$jscoverage['/dialog.js'].lineData[239]++; + for (i = 0; visit15_239_1(i < re.length); i++) { + _$jscoverage['/dialog.js'].lineData[240]++; var r = re[i], d = getDisplayName(r); - _$jscoverage['/dialog.js'].lineData[243]++; + _$jscoverage['/dialog.js'].lineData[241]++; html += '
    • ' + '' + limit(d, 35) + '' + '' + '' + '\u6dfb\u52a0' + '
    • '; } - _$jscoverage['/dialog.js'].lineData[258]++; + _$jscoverage['/dialog.js'].lineData[256]++; html += '
    '; - _$jscoverage['/dialog.js'].lineData[260]++; + _$jscoverage['/dialog.js'].lineData[258]++; var page = data.page, totalPage = Math.floor(data.total / 8), start = page - 1, end = page + 1; - _$jscoverage['/dialog.js'].lineData[265]++; - if (visit16_265_1(totalPage > 1)) { - _$jscoverage['/dialog.js'].lineData[266]++; + _$jscoverage['/dialog.js'].lineData[263]++; + if (visit16_263_1(totalPage > 1)) { + _$jscoverage['/dialog.js'].lineData[264]++; html += '

    '; - _$jscoverage['/dialog.js'].lineData[267]++; - if (visit17_267_1(start <= 2)) { - _$jscoverage['/dialog.js'].lineData[268]++; + _$jscoverage['/dialog.js'].lineData[265]++; + if (visit17_265_1(start <= 2)) { + _$jscoverage['/dialog.js'].lineData[266]++; end = Math.min(2 - start + end, totalPage - 1); - _$jscoverage['/dialog.js'].lineData[269]++; + _$jscoverage['/dialog.js'].lineData[267]++; start = 2; } - _$jscoverage['/dialog.js'].lineData[271]++; + _$jscoverage['/dialog.js'].lineData[269]++; end = Math.min(end, totalPage - 1); - _$jscoverage['/dialog.js'].lineData[272]++; - if (visit18_272_1(end === totalPage - 1)) { - _$jscoverage['/dialog.js'].lineData[273]++; + _$jscoverage['/dialog.js'].lineData[270]++; + if (visit18_270_1(end === totalPage - 1)) { + _$jscoverage['/dialog.js'].lineData[271]++; start = Math.max(2, end - 3); } - _$jscoverage['/dialog.js'].lineData[275]++; - if (visit19_275_1(page !== 1)) { - _$jscoverage['/dialog.js'].lineData[276]++; + _$jscoverage['/dialog.js'].lineData[273]++; + if (visit19_273_1(page !== 1)) { + _$jscoverage['/dialog.js'].lineData[274]++; html += getXiamiPaging(page, page - 1, '\u4e0a\u4e00\u9875'); } - _$jscoverage['/dialog.js'].lineData[278]++; + _$jscoverage['/dialog.js'].lineData[276]++; html += getXiamiPaging(page, 1, '1'); - _$jscoverage['/dialog.js'].lineData[279]++; - if (visit20_279_1(start !== 2)) { - _$jscoverage['/dialog.js'].lineData[280]++; + _$jscoverage['/dialog.js'].lineData[277]++; + if (visit20_277_1(start !== 2)) { + _$jscoverage['/dialog.js'].lineData[278]++; html += '...'; } - _$jscoverage['/dialog.js'].lineData[282]++; - for (i = start; visit21_282_1(i <= end); i++) { - _$jscoverage['/dialog.js'].lineData[283]++; + _$jscoverage['/dialog.js'].lineData[280]++; + for (i = start; visit21_280_1(i <= end); i++) { + _$jscoverage['/dialog.js'].lineData[281]++; html += getXiamiPaging(page, i, undefined); } - _$jscoverage['/dialog.js'].lineData[285]++; - if (visit22_285_1(end !== totalPage)) { - _$jscoverage['/dialog.js'].lineData[286]++; - if (visit23_286_1(end !== totalPage - 1)) { - _$jscoverage['/dialog.js'].lineData[287]++; + _$jscoverage['/dialog.js'].lineData[283]++; + if (visit22_283_1(end !== totalPage)) { + _$jscoverage['/dialog.js'].lineData[284]++; + if (visit23_284_1(end !== totalPage - 1)) { + _$jscoverage['/dialog.js'].lineData[285]++; html += '...'; } - _$jscoverage['/dialog.js'].lineData[289]++; + _$jscoverage['/dialog.js'].lineData[287]++; html += getXiamiPaging(page, totalPage, totalPage); } - _$jscoverage['/dialog.js'].lineData[291]++; - if (visit24_291_1(page !== totalPage)) { - _$jscoverage['/dialog.js'].lineData[292]++; + _$jscoverage['/dialog.js'].lineData[289]++; + if (visit24_289_1(page !== totalPage)) { + _$jscoverage['/dialog.js'].lineData[290]++; html += getXiamiPaging(page, page + 1, '\u4e0b\u4e00\u9875'); } - _$jscoverage['/dialog.js'].lineData[294]++; + _$jscoverage['/dialog.js'].lineData[292]++; html += '

    '; } } else { - _$jscoverage['/dialog.js'].lineData[298]++; + _$jscoverage['/dialog.js'].lineData[296]++; html = '

    ' + '\u4e0d\u597d\u610f\u601d\uff0c\u6ca1\u6709\u627e\u5230\u7ed3\u679c\uff01' + '

    '; } - _$jscoverage['/dialog.js'].lineData[302]++; + _$jscoverage['/dialog.js'].lineData[300]++; self._xiamiaList.html(S.substitute(html, { prefixCls: prefixCls})); } }, _updateD: function() { _$jscoverage['/dialog.js'].functionData[17]++; - _$jscoverage['/dialog.js'].lineData[309]++; + _$jscoverage['/dialog.js'].lineData[307]++; var self = this, editor = self.editor, prefixCls = editor.get('prefixCls'), f = self.selectedFlash; - _$jscoverage['/dialog.js'].lineData[313]++; - if (visit25_313_1(f)) { - _$jscoverage['/dialog.js'].lineData[314]++; + _$jscoverage['/dialog.js'].lineData[311]++; + if (visit25_311_1(f)) { + _$jscoverage['/dialog.js'].lineData[312]++; self._xiamiInput.val(f.attr('title')); - _$jscoverage['/dialog.js'].lineData[315]++; + _$jscoverage['/dialog.js'].lineData[313]++; self._xiamiTitle.html(f.attr('title')); - _$jscoverage['/dialog.js'].lineData[316]++; + _$jscoverage['/dialog.js'].lineData[314]++; self.dAlign.set('value', f.css('float')); - _$jscoverage['/dialog.js'].lineData[317]++; - self.dMargin.val(visit26_317_1(parseInt(f.style('margin')) || 0)); - _$jscoverage['/dialog.js'].lineData[318]++; + _$jscoverage['/dialog.js'].lineData[315]++; + self.dMargin.val(visit26_315_1(parseInt(f.style('margin'), 10) || 0)); + _$jscoverage['/dialog.js'].lineData[316]++; self._xiamiUrlWrap.hide(); - _$jscoverage['/dialog.js'].lineData[319]++; + _$jscoverage['/dialog.js'].lineData[317]++; self.dialog.get('footer').show(); - _$jscoverage['/dialog.js'].lineData[320]++; + _$jscoverage['/dialog.js'].lineData[318]++; self._xiamiTitle.show(); } else { - _$jscoverage['/dialog.js'].lineData[322]++; + _$jscoverage['/dialog.js'].lineData[320]++; Editor.Utils.resetInput(self._xiamiInput); - _$jscoverage['/dialog.js'].lineData[323]++; + _$jscoverage['/dialog.js'].lineData[321]++; self.dAlign.set('value', 'none'); - _$jscoverage['/dialog.js'].lineData[324]++; + _$jscoverage['/dialog.js'].lineData[322]++; self.dMargin.val(MARGIN_DEFAULT); - _$jscoverage['/dialog.js'].lineData[325]++; + _$jscoverage['/dialog.js'].lineData[323]++; self._xiamiUrlWrap.show(); - _$jscoverage['/dialog.js'].lineData[326]++; + _$jscoverage['/dialog.js'].lineData[324]++; self.dialog.get('footer').hide(); - _$jscoverage['/dialog.js'].lineData[327]++; + _$jscoverage['/dialog.js'].lineData[325]++; self._xiamiTitle.hide(); - _$jscoverage['/dialog.js'].lineData[328]++; + _$jscoverage['/dialog.js'].lineData[326]++; self._xiamiSubmit.removeClass(prefixCls + 'editor-button-disabled', undefined); } - _$jscoverage['/dialog.js'].lineData[330]++; + _$jscoverage['/dialog.js'].lineData[328]++; self._xiamiaList.hide(); - _$jscoverage['/dialog.js'].lineData[331]++; + _$jscoverage['/dialog.js'].lineData[329]++; self._xiamiaList.html(''); }, _getDInfo: function() { _$jscoverage['/dialog.js'].functionData[18]++; - _$jscoverage['/dialog.js'].lineData[335]++; + _$jscoverage['/dialog.js'].lineData[333]++; var self = this; - _$jscoverage['/dialog.js'].lineData[336]++; + _$jscoverage['/dialog.js'].lineData[334]++; S.mix(self._dinfo.attrs, { width: 257, height: 33}); - _$jscoverage['/dialog.js'].lineData[340]++; + _$jscoverage['/dialog.js'].lineData[338]++; return self._dinfo; }}); - _$jscoverage['/dialog.js'].lineData[346]++; + _$jscoverage['/dialog.js'].lineData[343]++; function getXiamiPaging(page, i, s) { _$jscoverage['/dialog.js'].functionData[19]++; - _$jscoverage['/dialog.js'].lineData[347]++; - return '' + (visit28_349_1(s || i)) + ''; + _$jscoverage['/dialog.js'].lineData[344]++; + return '' + (visit28_346_1(s || i)) + ''; } - _$jscoverage['/dialog.js'].lineData[352]++; + _$jscoverage['/dialog.js'].lineData[349]++; function getDisplayName(r) { _$jscoverage['/dialog.js'].functionData[20]++; - _$jscoverage['/dialog.js'].lineData[354]++; + _$jscoverage['/dialog.js'].lineData[351]++; return S.urlDecode(r.song_name) + ' - ' + S.urlDecode(r.artist_name); } - _$jscoverage['/dialog.js'].lineData[357]++; + _$jscoverage['/dialog.js'].lineData[354]++; return XiamiMusicDialog; }); diff --git a/src/editor/sub-modules/plugin/xiami-music/sub-modules/dialog/src/dialog.js b/src/editor/sub-modules/plugin/xiami-music/sub-modules/dialog/src/dialog.js index 3754b862b9..5594fc4d58 100644 --- a/src/editor/sub-modules/plugin/xiami-music/sub-modules/dialog/src/dialog.js +++ b/src/editor/sub-modules/plugin/xiami-music/sub-modules/dialog/src/dialog.js @@ -7,8 +7,6 @@ KISSY.add(function (S, require) { var Editor = require('editor'); var FlashDialog = require('../flash/dialog'); var MenuButton = require('../menubutton'); - - var Dom = S.DOM, Node = S.Node, Utils = Editor.Utils, @@ -143,7 +141,7 @@ KISSY.add(function (S, require) { title: f.attr('title'), //align:self.dAlign.val(), style: 'margin:' + - (parseInt(self.dMargin.val()) || 0) + 'px;' + + (parseInt(self.dMargin.val(),10) || 0) + 'px;' + 'float:' + self.dAlign.get('value') + ';' } }; @@ -214,13 +212,13 @@ KISSY.add(function (S, require) { title: add.attr('title'), //align:self.dAlign.val(), style: 'margin:' + - (parseInt(self.dMargin.val()) || 0) + 'px;' + + (parseInt(self.dMargin.val(),10) || 0) + 'px;' + 'float:' + self.dAlign.get('value') + ';' } }; self._gen(); } else if (paging) { - loadRecordsByPage(parseInt(paging.attr('data-value'))); + loadRecordsByPage(parseInt(paging.attr('data-value'),10)); } ev.halt(); }); @@ -314,7 +312,7 @@ KISSY.add(function (S, require) { self._xiamiInput.val(f.attr('title')); self._xiamiTitle.html(f.attr('title')); self.dAlign.set('value', f.css('float')); - self.dMargin.val(parseInt(f.style('margin')) || 0); + self.dMargin.val(parseInt(f.style('margin'),10) || 0); self._xiamiUrlWrap.hide(); self.dialog.get('footer').show(); self._xiamiTitle.show(); @@ -342,7 +340,6 @@ KISSY.add(function (S, require) { }); - function getXiamiPaging(page, i, s) { return ' " + "
    " + "
    "), ret = [], dfn, winFn; @@ -157,7 +156,6 @@ KISSY.add(function (S, Dom, Event) { Dom.remove(n); }); - it('fireHandler does not bubble', function () { var n = Dom.create("
    " + @@ -213,7 +211,6 @@ KISSY.add(function (S, Dom, Event) { Dom.remove(n); }); }); - }, { requires: ['dom', 'event/dom/base'] }); \ No newline at end of file diff --git a/src/event/sub-modules/dom/sub-modules/base/tests/specs/focus.js b/src/event/sub-modules/dom/sub-modules/base/tests/specs/focus.js index 7b436bb725..83585ac34b 100644 --- a/src/event/sub-modules/dom/sub-modules/base/tests/specs/focus.js +++ b/src/event/sub-modules/dom/sub-modules/base/tests/specs/focus.js @@ -30,6 +30,10 @@ KISSY.add( function (S, Dom, Event) { if(KISSY.UA.ie===10){ return; } + + window.focus(); + document.body.focus(); + var outer = Dom.create("
    " + "
    " + "" + diff --git a/src/event/sub-modules/dom/sub-modules/focusin/tests/specs/index.js b/src/event/sub-modules/dom/sub-modules/focusin/tests/specs/index.js index 9be520ee76..534a96abe7 100644 --- a/src/event/sub-modules/dom/sub-modules/focusin/tests/specs/index.js +++ b/src/event/sub-modules/dom/sub-modules/focusin/tests/specs/index.js @@ -16,6 +16,8 @@ KISSY.add(function (S, Event, Dom) { beforeEach(function () { Dom.prepend(Dom.create(tpl), 'body'); + window.focus(); + document.body.focus(); }); afterEach(function () { diff --git a/src/event/sub-modules/dom/sub-modules/touch/coverage/src/touch.js b/src/event/sub-modules/dom/sub-modules/touch/coverage/src/touch.js index 408262bee5..66ef2ad3e0 100644 --- a/src/event/sub-modules/dom/sub-modules/touch/coverage/src/touch.js +++ b/src/event/sub-modules/dom/sub-modules/touch/coverage/src/touch.js @@ -239,9 +239,10 @@ if (! _$jscoverage['/touch.js']) { _$jscoverage['/touch.js'].lineData[14] = 0; _$jscoverage['/touch.js'].lineData[15] = 0; _$jscoverage['/touch.js'].lineData[16] = 0; - _$jscoverage['/touch.js'].lineData[18] = 0; - _$jscoverage['/touch.js'].lineData[23] = 0; - _$jscoverage['/touch.js'].lineData[28] = 0; + _$jscoverage['/touch.js'].lineData[17] = 0; + _$jscoverage['/touch.js'].lineData[19] = 0; + _$jscoverage['/touch.js'].lineData[24] = 0; + _$jscoverage['/touch.js'].lineData[29] = 0; _$jscoverage['/touch.js'].lineData[34] = 0; _$jscoverage['/touch.js'].lineData[39] = 0; _$jscoverage['/touch.js'].lineData[44] = 0; @@ -294,19 +295,19 @@ if (! _$jscoverage['/touch.js'].branchData) { _$jscoverage['/touch.js'].branchData['86'][1] = new BranchData(); } _$jscoverage['/touch.js'].branchData['86'][1].init(500, 23, 'eventHandleValue.remove'); -function visit114_86_1(result) { +function visit124_86_1(result) { _$jscoverage['/touch.js'].branchData['86'][1].ranCondition(result); return result; }_$jscoverage['/touch.js'].branchData['83'][1].init(401, 20, 'eventHandleValue.add'); -function visit113_83_1(result) { +function visit123_83_1(result) { _$jscoverage['/touch.js'].branchData['83'][1].ranCondition(result); return result; }_$jscoverage['/touch.js'].branchData['78'][1].init(236, 25, 'eventHandleValue.tearDown'); -function visit112_78_1(result) { +function visit122_78_1(result) { _$jscoverage['/touch.js'].branchData['78'][1].ranCondition(result); return result; }_$jscoverage['/touch.js'].branchData['73'][1].init(86, 22, 'eventHandleValue.setup'); -function visit111_73_1(result) { +function visit121_73_1(result) { _$jscoverage['/touch.js'].branchData['73'][1].ranCondition(result); return result; }_$jscoverage['/touch.js'].lineData[6]++; @@ -329,17 +330,19 @@ KISSY.add(function(S, require) { _$jscoverage['/touch.js'].lineData[15]++; Gesture.tap = 'tap'; _$jscoverage['/touch.js'].lineData[16]++; + Gesture.singleTap = 'singleTap'; + _$jscoverage['/touch.js'].lineData[17]++; Gesture.doubleTap = 'doubleTap'; - _$jscoverage['/touch.js'].lineData[18]++; + _$jscoverage['/touch.js'].lineData[19]++; eventHandleMap[startEvent] = { handle: { isActive: 1, onTouchStart: function(e) { _$jscoverage['/touch.js'].functionData[1]++; - _$jscoverage['/touch.js'].lineData[23]++; + _$jscoverage['/touch.js'].lineData[24]++; DomEvent.fire(e.target, startEvent, e); }}}; - _$jscoverage['/touch.js'].lineData[28]++; + _$jscoverage['/touch.js'].lineData[29]++; eventHandleMap[moveEvent] = { handle: { isActive: 1, @@ -394,7 +397,7 @@ KISSY.add(function(S, require) { _$jscoverage['/touch.js'].lineData[72]++; eventHandleValue = eventHandleMap[e]; _$jscoverage['/touch.js'].lineData[73]++; - if (visit111_73_1(eventHandleValue.setup)) { + if (visit121_73_1(eventHandleValue.setup)) { _$jscoverage['/touch.js'].lineData[74]++; specialEvent.setup = setupExtra; } else { @@ -402,7 +405,7 @@ KISSY.add(function(S, require) { specialEvent.setup = setup; } _$jscoverage['/touch.js'].lineData[78]++; - if (visit112_78_1(eventHandleValue.tearDown)) { + if (visit122_78_1(eventHandleValue.tearDown)) { _$jscoverage['/touch.js'].lineData[79]++; specialEvent.tearDown = tearDownExtra; } else { @@ -410,12 +413,12 @@ KISSY.add(function(S, require) { specialEvent.tearDown = tearDown; } _$jscoverage['/touch.js'].lineData[83]++; - if (visit113_83_1(eventHandleValue.add)) { + if (visit123_83_1(eventHandleValue.add)) { _$jscoverage['/touch.js'].lineData[84]++; specialEvent.add = eventHandleValue.add; } _$jscoverage['/touch.js'].lineData[86]++; - if (visit114_86_1(eventHandleValue.remove)) { + if (visit124_86_1(eventHandleValue.remove)) { _$jscoverage['/touch.js'].lineData[87]++; specialEvent.remove = eventHandleValue.remove; } diff --git a/src/event/sub-modules/dom/sub-modules/touch/coverage/src/touch/double-tap.js b/src/event/sub-modules/dom/sub-modules/touch/coverage/src/touch/double-tap.js deleted file mode 100644 index 870b4adec6..0000000000 --- a/src/event/sub-modules/dom/sub-modules/touch/coverage/src/touch/double-tap.js +++ /dev/null @@ -1,398 +0,0 @@ -function BranchData() { - this.position = -1; - this.nodeLength = -1; - this.src = null; - this.evalFalse = 0; - this.evalTrue = 0; - - this.init = function(position, nodeLength, src) { - this.position = position; - this.nodeLength = nodeLength; - this.src = src; - return this; - } - - this.ranCondition = function(result) { - if (result) - this.evalTrue++; - else - this.evalFalse++; - }; - - this.pathsCovered = function() { - var paths = 0; - if (this.evalTrue > 0) - paths++; - if (this.evalFalse > 0) - paths++; - return paths; - }; - - this.covered = function() { - return this.evalTrue > 0 && this.evalFalse > 0; - }; - - this.toJSON = function() { - return '{"position":' + this.position - + ',"nodeLength":' + this.nodeLength - + ',"src":' + jscoverage_quote(this.src) - + ',"evalFalse":' + this.evalFalse - + ',"evalTrue":' + this.evalTrue + '}'; - }; - - this.message = function() { - if (this.evalTrue === 0 && this.evalFalse === 0) - return 'Condition never evaluated :\t' + this.src; - else if (this.evalTrue === 0) - return 'Condition never evaluated to true :\t' + this.src; - else if (this.evalFalse === 0) - return 'Condition never evaluated to false:\t' + this.src; - else - return 'Condition covered'; - }; -} - -BranchData.fromJson = function(jsonString) { - var json = eval('(' + jsonString + ')'); - var branchData = new BranchData(); - branchData.init(json.position, json.nodeLength, json.src); - branchData.evalFalse = json.evalFalse; - branchData.evalTrue = json.evalTrue; - return branchData; -}; - -BranchData.fromJsonObject = function(json) { - var branchData = new BranchData(); - branchData.init(json.position, json.nodeLength, json.src); - branchData.evalFalse = json.evalFalse; - branchData.evalTrue = json.evalTrue; - return branchData; -}; - -function buildBranchMessage(conditions) { - var message = 'The following was not covered:'; - for (var i = 0; i < conditions.length; i++) { - if (conditions[i] !== undefined && conditions[i] !== null && !conditions[i].covered()) - message += '\n- '+ conditions[i].message(); - } - return message; -}; - -function convertBranchDataConditionArrayToJSON(branchDataConditionArray) { - var array = []; - var length = branchDataConditionArray.length; - for (var condition = 0; condition < length; condition++) { - var branchDataObject = branchDataConditionArray[condition]; - if (branchDataObject === undefined || branchDataObject === null) { - value = 'null'; - } else { - value = branchDataObject.toJSON(); - } - array.push(value); - } - return '[' + array.join(',') + ']'; -} - -function convertBranchDataLinesToJSON(branchData) { - if (branchData === undefined) { - return '{}' - } - var json = ''; - for (var line in branchData) { - if (json !== '') - json += ',' - json += '"' + line + '":' + convertBranchDataConditionArrayToJSON(branchData[line]); - } - return '{' + json + '}'; -} - -function convertBranchDataLinesFromJSON(jsonObject) { - if (jsonObject === undefined) { - return {}; - } - for (var line in jsonObject) { - var branchDataJSON = jsonObject[line]; - if (branchDataJSON !== null) { - for (var conditionIndex = 0; conditionIndex < branchDataJSON.length; conditionIndex ++) { - var condition = branchDataJSON[conditionIndex]; - if (condition !== null) { - branchDataJSON[conditionIndex] = BranchData.fromJsonObject(condition); - } - } - } - } - return jsonObject; -} -function jscoverage_quote(s) { - return '"' + s.replace(/[\u0000-\u001f"\\\u007f-\uffff]/g, function (c) { - switch (c) { - case '\b': - return '\\b'; - case '\f': - return '\\f'; - case '\n': - return '\\n'; - case '\r': - return '\\r'; - case '\t': - return '\\t'; - // IE doesn't support this - /* - case '\v': - return '\\v'; - */ - case '"': - return '\\"'; - case '\\': - return '\\\\'; - default: - return '\\u' + jscoverage_pad(c.charCodeAt(0).toString(16)); - } - }) + '"'; -} - -function getArrayJSON(coverage) { - var array = []; - if (coverage === undefined) - return array; - - var length = coverage.length; - for (var line = 0; line < length; line++) { - var value = coverage[line]; - if (value === undefined || value === null) { - value = 'null'; - } - array.push(value); - } - return array; -} - -function jscoverage_serializeCoverageToJSON() { - var json = []; - for (var file in _$jscoverage) { - var lineArray = getArrayJSON(_$jscoverage[file].lineData); - var fnArray = getArrayJSON(_$jscoverage[file].functionData); - - json.push(jscoverage_quote(file) + ':{"lineData":[' + lineArray.join(',') + '],"functionData":[' + fnArray.join(',') + '],"branchData":' + convertBranchDataLinesToJSON(_$jscoverage[file].branchData) + '}'); - } - return '{' + json.join(',') + '}'; -} - - -function jscoverage_pad(s) { - return '0000'.substr(s.length) + s; -} - -function jscoverage_html_escape(s) { - return s.replace(/[<>\&\"\']/g, function (c) { - return '&#' + c.charCodeAt(0) + ';'; - }); -} -try { - if (typeof top === 'object' && top !== null && typeof top.opener === 'object' && top.opener !== null) { - // this is a browser window that was opened from another window - - if (! top.opener._$jscoverage) { - top.opener._$jscoverage = {}; - } - } -} -catch (e) {} - -try { - if (typeof top === 'object' && top !== null) { - // this is a browser window - - try { - if (typeof top.opener === 'object' && top.opener !== null && top.opener._$jscoverage) { - top._$jscoverage = top.opener._$jscoverage; - } - } - catch (e) {} - - if (! top._$jscoverage) { - top._$jscoverage = {}; - } - } -} -catch (e) {} - -try { - if (typeof top === 'object' && top !== null && top._$jscoverage) { - this._$jscoverage = top._$jscoverage; - } -} -catch (e) {} -if (! this._$jscoverage) { - this._$jscoverage = {}; -} -if (! _$jscoverage['/touch/double-tap.js']) { - _$jscoverage['/touch/double-tap.js'] = {}; - _$jscoverage['/touch/double-tap.js'].lineData = []; - _$jscoverage['/touch/double-tap.js'].lineData[6] = 0; - _$jscoverage['/touch/double-tap.js'].lineData[7] = 0; - _$jscoverage['/touch/double-tap.js'].lineData[8] = 0; - _$jscoverage['/touch/double-tap.js'].lineData[9] = 0; - _$jscoverage['/touch/double-tap.js'].lineData[11] = 0; - _$jscoverage['/touch/double-tap.js'].lineData[16] = 0; - _$jscoverage['/touch/double-tap.js'].lineData[19] = 0; - _$jscoverage['/touch/double-tap.js'].lineData[21] = 0; - _$jscoverage['/touch/double-tap.js'].lineData[22] = 0; - _$jscoverage['/touch/double-tap.js'].lineData[23] = 0; - _$jscoverage['/touch/double-tap.js'].lineData[25] = 0; - _$jscoverage['/touch/double-tap.js'].lineData[26] = 0; - _$jscoverage['/touch/double-tap.js'].lineData[27] = 0; - _$jscoverage['/touch/double-tap.js'].lineData[28] = 0; - _$jscoverage['/touch/double-tap.js'].lineData[33] = 0; - _$jscoverage['/touch/double-tap.js'].lineData[37] = 0; - _$jscoverage['/touch/double-tap.js'].lineData[43] = 0; - _$jscoverage['/touch/double-tap.js'].lineData[45] = 0; - _$jscoverage['/touch/double-tap.js'].lineData[47] = 0; - _$jscoverage['/touch/double-tap.js'].lineData[49] = 0; - _$jscoverage['/touch/double-tap.js'].lineData[51] = 0; - _$jscoverage['/touch/double-tap.js'].lineData[53] = 0; - _$jscoverage['/touch/double-tap.js'].lineData[57] = 0; - _$jscoverage['/touch/double-tap.js'].lineData[64] = 0; - _$jscoverage['/touch/double-tap.js'].lineData[65] = 0; - _$jscoverage['/touch/double-tap.js'].lineData[66] = 0; - _$jscoverage['/touch/double-tap.js'].lineData[76] = 0; - _$jscoverage['/touch/double-tap.js'].lineData[77] = 0; - _$jscoverage['/touch/double-tap.js'].lineData[89] = 0; - _$jscoverage['/touch/double-tap.js'].lineData[93] = 0; -} -if (! _$jscoverage['/touch/double-tap.js'].functionData) { - _$jscoverage['/touch/double-tap.js'].functionData = []; - _$jscoverage['/touch/double-tap.js'].functionData[0] = 0; - _$jscoverage['/touch/double-tap.js'].functionData[1] = 0; - _$jscoverage['/touch/double-tap.js'].functionData[2] = 0; - _$jscoverage['/touch/double-tap.js'].functionData[3] = 0; - _$jscoverage['/touch/double-tap.js'].functionData[4] = 0; - _$jscoverage['/touch/double-tap.js'].functionData[5] = 0; -} -if (! _$jscoverage['/touch/double-tap.js'].branchData) { - _$jscoverage['/touch/double-tap.js'].branchData = {}; - _$jscoverage['/touch/double-tap.js'].branchData['22'] = []; - _$jscoverage['/touch/double-tap.js'].branchData['22'][1] = new BranchData(); - _$jscoverage['/touch/double-tap.js'].branchData['26'] = []; - _$jscoverage['/touch/double-tap.js'].branchData['26'][1] = new BranchData(); - _$jscoverage['/touch/double-tap.js'].branchData['45'] = []; - _$jscoverage['/touch/double-tap.js'].branchData['45'][1] = new BranchData(); - _$jscoverage['/touch/double-tap.js'].branchData['49'] = []; - _$jscoverage['/touch/double-tap.js'].branchData['49'][1] = new BranchData(); - _$jscoverage['/touch/double-tap.js'].branchData['65'] = []; - _$jscoverage['/touch/double-tap.js'].branchData['65'][1] = new BranchData(); -} -_$jscoverage['/touch/double-tap.js'].branchData['65'][1].init(1045, 23, 'duration > MAX_DURATION'); -function visit5_65_1(result) { - _$jscoverage['/touch/double-tap.js'].branchData['65'][1].ranCondition(result); - return result; -}_$jscoverage['/touch/double-tap.js'].branchData['49'][1].init(155, 23, 'duration < MAX_DURATION'); -function visit4_49_1(result) { - _$jscoverage['/touch/double-tap.js'].branchData['49'][1].ranCondition(result); - return result; -}_$jscoverage['/touch/double-tap.js'].branchData['45'][1].init(329, 11, 'lastEndTime'); -function visit3_45_1(result) { - _$jscoverage['/touch/double-tap.js'].branchData['45'][1].ranCondition(result); - return result; -}_$jscoverage['/touch/double-tap.js'].branchData['26'][1].init(218, 19, 'self.singleTapTimer'); -function visit2_26_1(result) { - _$jscoverage['/touch/double-tap.js'].branchData['26'][1].ranCondition(result); - return result; -}_$jscoverage['/touch/double-tap.js'].branchData['22'][1].init(46, 66, 'DoubleTap.superclass.onTouchStart.apply(self, arguments) === false'); -function visit1_22_1(result) { - _$jscoverage['/touch/double-tap.js'].branchData['22'][1].ranCondition(result); - return result; -}_$jscoverage['/touch/double-tap.js'].lineData[6]++; -KISSY.add(function(S, require) { - _$jscoverage['/touch/double-tap.js'].functionData[0]++; - _$jscoverage['/touch/double-tap.js'].lineData[7]++; - var eventHandleMap = require('./handle-map'); - _$jscoverage['/touch/double-tap.js'].lineData[8]++; - var DomEvent = require('event/dom/base'); - _$jscoverage['/touch/double-tap.js'].lineData[9]++; - var SingleTouch = require('./single-touch'); - _$jscoverage['/touch/double-tap.js'].lineData[11]++; - var SINGLE_TAP = 'singleTap', DOUBLE_TAP = 'doubleTap', MAX_DURATION = 300; - _$jscoverage['/touch/double-tap.js'].lineData[16]++; - function DoubleTap() { - _$jscoverage['/touch/double-tap.js'].functionData[1]++; - } - _$jscoverage['/touch/double-tap.js'].lineData[19]++; - S.extend(DoubleTap, SingleTouch, { - onTouchStart: function(e) { - _$jscoverage['/touch/double-tap.js'].functionData[2]++; - _$jscoverage['/touch/double-tap.js'].lineData[21]++; - var self = this; - _$jscoverage['/touch/double-tap.js'].lineData[22]++; - if (visit1_22_1(DoubleTap.superclass.onTouchStart.apply(self, arguments) === false)) { - _$jscoverage['/touch/double-tap.js'].lineData[23]++; - return false; - } - _$jscoverage['/touch/double-tap.js'].lineData[25]++; - self.startTime = e.timeStamp; - _$jscoverage['/touch/double-tap.js'].lineData[26]++; - if (visit2_26_1(self.singleTapTimer)) { - _$jscoverage['/touch/double-tap.js'].lineData[27]++; - clearTimeout(self.singleTapTimer); - _$jscoverage['/touch/double-tap.js'].lineData[28]++; - self.singleTapTimer = 0; - } -}, - onTouchMove: function() { - _$jscoverage['/touch/double-tap.js'].functionData[3]++; - _$jscoverage['/touch/double-tap.js'].lineData[33]++; - return false; -}, - onTouchEnd: function(e) { - _$jscoverage['/touch/double-tap.js'].functionData[4]++; - _$jscoverage['/touch/double-tap.js'].lineData[37]++; - var self = this, lastEndTime = self.lastEndTime, time = e.timeStamp, target = e.target, touch = e.changedTouches[0], duration = time - self.startTime; - _$jscoverage['/touch/double-tap.js'].lineData[43]++; - self.lastEndTime = time; - _$jscoverage['/touch/double-tap.js'].lineData[45]++; - if (visit3_45_1(lastEndTime)) { - _$jscoverage['/touch/double-tap.js'].lineData[47]++; - duration = time - lastEndTime; - _$jscoverage['/touch/double-tap.js'].lineData[49]++; - if (visit4_49_1(duration < MAX_DURATION)) { - _$jscoverage['/touch/double-tap.js'].lineData[51]++; - self.lastEndTime = 0; - _$jscoverage['/touch/double-tap.js'].lineData[53]++; - DomEvent.fire(target, DOUBLE_TAP, { - touch: touch, - duration: duration / 1000}); - _$jscoverage['/touch/double-tap.js'].lineData[57]++; - return; - } - } - _$jscoverage['/touch/double-tap.js'].lineData[64]++; - duration = time - self.startTime; - _$jscoverage['/touch/double-tap.js'].lineData[65]++; - if (visit5_65_1(duration > MAX_DURATION)) { - _$jscoverage['/touch/double-tap.js'].lineData[66]++; - DomEvent.fire(target, SINGLE_TAP, { - touch: touch, - pageX: touch.pageX, - which: 1, - pageY: touch.pageY, - duration: duration / 1000}); - } else { - _$jscoverage['/touch/double-tap.js'].lineData[76]++; - self.singleTapTimer = setTimeout(function() { - _$jscoverage['/touch/double-tap.js'].functionData[5]++; - _$jscoverage['/touch/double-tap.js'].lineData[77]++; - DomEvent.fire(target, SINGLE_TAP, { - touch: touch, - pageX: touch.pageX, - which: 1, - pageY: touch.pageY, - duration: duration / 1000}); -}, MAX_DURATION); - } -}}); - _$jscoverage['/touch/double-tap.js'].lineData[89]++; - eventHandleMap[SINGLE_TAP] = eventHandleMap[DOUBLE_TAP] = { - handle: new DoubleTap()}; - _$jscoverage['/touch/double-tap.js'].lineData[93]++; - return DoubleTap; -}); diff --git a/src/event/sub-modules/dom/sub-modules/touch/coverage/src/touch/handle.js b/src/event/sub-modules/dom/sub-modules/touch/coverage/src/touch/handle.js index 1ec7028eb5..572f537bc8 100644 --- a/src/event/sub-modules/dom/sub-modules/touch/coverage/src/touch/handle.js +++ b/src/event/sub-modules/dom/sub-modules/touch/coverage/src/touch/handle.js @@ -237,179 +237,183 @@ if (! _$jscoverage['/touch/handle.js']) { _$jscoverage['/touch/handle.js'].lineData[11] = 0; _$jscoverage['/touch/handle.js'].lineData[12] = 0; _$jscoverage['/touch/handle.js'].lineData[13] = 0; - _$jscoverage['/touch/handle.js'].lineData[14] = 0; _$jscoverage['/touch/handle.js'].lineData[15] = 0; - _$jscoverage['/touch/handle.js'].lineData[17] = 0; - _$jscoverage['/touch/handle.js'].lineData[23] = 0; - _$jscoverage['/touch/handle.js'].lineData[24] = 0; - _$jscoverage['/touch/handle.js'].lineData[27] = 0; - _$jscoverage['/touch/handle.js'].lineData[28] = 0; - _$jscoverage['/touch/handle.js'].lineData[31] = 0; - _$jscoverage['/touch/handle.js'].lineData[32] = 0; + _$jscoverage['/touch/handle.js'].lineData[21] = 0; + _$jscoverage['/touch/handle.js'].lineData[22] = 0; + _$jscoverage['/touch/handle.js'].lineData[25] = 0; + _$jscoverage['/touch/handle.js'].lineData[26] = 0; + _$jscoverage['/touch/handle.js'].lineData[29] = 0; + _$jscoverage['/touch/handle.js'].lineData[30] = 0; + _$jscoverage['/touch/handle.js'].lineData[34] = 0; _$jscoverage['/touch/handle.js'].lineData[36] = 0; _$jscoverage['/touch/handle.js'].lineData[38] = 0; - _$jscoverage['/touch/handle.js'].lineData[40] = 0; + _$jscoverage['/touch/handle.js'].lineData[39] = 0; _$jscoverage['/touch/handle.js'].lineData[41] = 0; + _$jscoverage['/touch/handle.js'].lineData[42] = 0; _$jscoverage['/touch/handle.js'].lineData[43] = 0; - _$jscoverage['/touch/handle.js'].lineData[44] = 0; _$jscoverage['/touch/handle.js'].lineData[45] = 0; _$jscoverage['/touch/handle.js'].lineData[47] = 0; - _$jscoverage['/touch/handle.js'].lineData[49] = 0; + _$jscoverage['/touch/handle.js'].lineData[48] = 0; _$jscoverage['/touch/handle.js'].lineData[50] = 0; - _$jscoverage['/touch/handle.js'].lineData[52] = 0; + _$jscoverage['/touch/handle.js'].lineData[53] = 0; + _$jscoverage['/touch/handle.js'].lineData[54] = 0; _$jscoverage['/touch/handle.js'].lineData[55] = 0; _$jscoverage['/touch/handle.js'].lineData[56] = 0; _$jscoverage['/touch/handle.js'].lineData[57] = 0; _$jscoverage['/touch/handle.js'].lineData[58] = 0; _$jscoverage['/touch/handle.js'].lineData[59] = 0; - _$jscoverage['/touch/handle.js'].lineData[60] = 0; _$jscoverage['/touch/handle.js'].lineData[61] = 0; + _$jscoverage['/touch/handle.js'].lineData[62] = 0; _$jscoverage['/touch/handle.js'].lineData[63] = 0; - _$jscoverage['/touch/handle.js'].lineData[64] = 0; - _$jscoverage['/touch/handle.js'].lineData[65] = 0; + _$jscoverage['/touch/handle.js'].lineData[66] = 0; + _$jscoverage['/touch/handle.js'].lineData[67] = 0; _$jscoverage['/touch/handle.js'].lineData[68] = 0; _$jscoverage['/touch/handle.js'].lineData[69] = 0; _$jscoverage['/touch/handle.js'].lineData[70] = 0; - _$jscoverage['/touch/handle.js'].lineData[71] = 0; _$jscoverage['/touch/handle.js'].lineData[72] = 0; _$jscoverage['/touch/handle.js'].lineData[74] = 0; - _$jscoverage['/touch/handle.js'].lineData[76] = 0; - _$jscoverage['/touch/handle.js'].lineData[79] = 0; + _$jscoverage['/touch/handle.js'].lineData[77] = 0; + _$jscoverage['/touch/handle.js'].lineData[85] = 0; _$jscoverage['/touch/handle.js'].lineData[87] = 0; _$jscoverage['/touch/handle.js'].lineData[89] = 0; _$jscoverage['/touch/handle.js'].lineData[90] = 0; - _$jscoverage['/touch/handle.js'].lineData[91] = 0; - _$jscoverage['/touch/handle.js'].lineData[93] = 0; + _$jscoverage['/touch/handle.js'].lineData[92] = 0; + _$jscoverage['/touch/handle.js'].lineData[96] = 0; _$jscoverage['/touch/handle.js'].lineData[97] = 0; - _$jscoverage['/touch/handle.js'].lineData[98] = 0; - _$jscoverage['/touch/handle.js'].lineData[102] = 0; + _$jscoverage['/touch/handle.js'].lineData[101] = 0; + _$jscoverage['/touch/handle.js'].lineData[106] = 0; _$jscoverage['/touch/handle.js'].lineData[107] = 0; _$jscoverage['/touch/handle.js'].lineData[108] = 0; _$jscoverage['/touch/handle.js'].lineData[109] = 0; _$jscoverage['/touch/handle.js'].lineData[110] = 0; - _$jscoverage['/touch/handle.js'].lineData[111] = 0; - _$jscoverage['/touch/handle.js'].lineData[117] = 0; + _$jscoverage['/touch/handle.js'].lineData[116] = 0; + _$jscoverage['/touch/handle.js'].lineData[121] = 0; _$jscoverage['/touch/handle.js'].lineData[122] = 0; _$jscoverage['/touch/handle.js'].lineData[123] = 0; _$jscoverage['/touch/handle.js'].lineData[124] = 0; - _$jscoverage['/touch/handle.js'].lineData[125] = 0; - _$jscoverage['/touch/handle.js'].lineData[131] = 0; + _$jscoverage['/touch/handle.js'].lineData[130] = 0; + _$jscoverage['/touch/handle.js'].lineData[134] = 0; _$jscoverage['/touch/handle.js'].lineData[135] = 0; - _$jscoverage['/touch/handle.js'].lineData[136] = 0; + _$jscoverage['/touch/handle.js'].lineData[140] = 0; _$jscoverage['/touch/handle.js'].lineData[141] = 0; - _$jscoverage['/touch/handle.js'].lineData[142] = 0; + _$jscoverage['/touch/handle.js'].lineData[147] = 0; _$jscoverage['/touch/handle.js'].lineData[148] = 0; - _$jscoverage['/touch/handle.js'].lineData[149] = 0; - _$jscoverage['/touch/handle.js'].lineData[151] = 0; + _$jscoverage['/touch/handle.js'].lineData[150] = 0; + _$jscoverage['/touch/handle.js'].lineData[152] = 0; _$jscoverage['/touch/handle.js'].lineData[153] = 0; _$jscoverage['/touch/handle.js'].lineData[154] = 0; _$jscoverage['/touch/handle.js'].lineData[155] = 0; _$jscoverage['/touch/handle.js'].lineData[156] = 0; _$jscoverage['/touch/handle.js'].lineData[157] = 0; - _$jscoverage['/touch/handle.js'].lineData[158] = 0; + _$jscoverage['/touch/handle.js'].lineData[165] = 0; _$jscoverage['/touch/handle.js'].lineData[166] = 0; - _$jscoverage['/touch/handle.js'].lineData[167] = 0; - _$jscoverage['/touch/handle.js'].lineData[169] = 0; - _$jscoverage['/touch/handle.js'].lineData[171] = 0; + _$jscoverage['/touch/handle.js'].lineData[168] = 0; + _$jscoverage['/touch/handle.js'].lineData[170] = 0; + _$jscoverage['/touch/handle.js'].lineData[172] = 0; _$jscoverage['/touch/handle.js'].lineData[173] = 0; - _$jscoverage['/touch/handle.js'].lineData[174] = 0; - _$jscoverage['/touch/handle.js'].lineData[177] = 0; - _$jscoverage['/touch/handle.js'].lineData[181] = 0; + _$jscoverage['/touch/handle.js'].lineData[176] = 0; + _$jscoverage['/touch/handle.js'].lineData[180] = 0; _$jscoverage['/touch/handle.js'].lineData[184] = 0; _$jscoverage['/touch/handle.js'].lineData[185] = 0; _$jscoverage['/touch/handle.js'].lineData[188] = 0; - _$jscoverage['/touch/handle.js'].lineData[189] = 0; _$jscoverage['/touch/handle.js'].lineData[190] = 0; _$jscoverage['/touch/handle.js'].lineData[191] = 0; + _$jscoverage['/touch/handle.js'].lineData[192] = 0; _$jscoverage['/touch/handle.js'].lineData[193] = 0; - _$jscoverage['/touch/handle.js'].lineData[195] = 0; - _$jscoverage['/touch/handle.js'].lineData[197] = 0; + _$jscoverage['/touch/handle.js'].lineData[196] = 0; _$jscoverage['/touch/handle.js'].lineData[198] = 0; _$jscoverage['/touch/handle.js'].lineData[199] = 0; _$jscoverage['/touch/handle.js'].lineData[200] = 0; _$jscoverage['/touch/handle.js'].lineData[201] = 0; - _$jscoverage['/touch/handle.js'].lineData[205] = 0; + _$jscoverage['/touch/handle.js'].lineData[203] = 0; + _$jscoverage['/touch/handle.js'].lineData[204] = 0; + _$jscoverage['/touch/handle.js'].lineData[206] = 0; + _$jscoverage['/touch/handle.js'].lineData[207] = 0; + _$jscoverage['/touch/handle.js'].lineData[208] = 0; _$jscoverage['/touch/handle.js'].lineData[209] = 0; _$jscoverage['/touch/handle.js'].lineData[210] = 0; - _$jscoverage['/touch/handle.js'].lineData[211] = 0; - _$jscoverage['/touch/handle.js'].lineData[212] = 0; - _$jscoverage['/touch/handle.js'].lineData[213] = 0; _$jscoverage['/touch/handle.js'].lineData[214] = 0; - _$jscoverage['/touch/handle.js'].lineData[216] = 0; - _$jscoverage['/touch/handle.js'].lineData[217] = 0; _$jscoverage['/touch/handle.js'].lineData[218] = 0; _$jscoverage['/touch/handle.js'].lineData[219] = 0; _$jscoverage['/touch/handle.js'].lineData[220] = 0; + _$jscoverage['/touch/handle.js'].lineData[221] = 0; + _$jscoverage['/touch/handle.js'].lineData[222] = 0; _$jscoverage['/touch/handle.js'].lineData[223] = 0; + _$jscoverage['/touch/handle.js'].lineData[225] = 0; _$jscoverage['/touch/handle.js'].lineData[226] = 0; _$jscoverage['/touch/handle.js'].lineData[227] = 0; _$jscoverage['/touch/handle.js'].lineData[228] = 0; - _$jscoverage['/touch/handle.js'].lineData[231] = 0; + _$jscoverage['/touch/handle.js'].lineData[229] = 0; + _$jscoverage['/touch/handle.js'].lineData[232] = 0; _$jscoverage['/touch/handle.js'].lineData[235] = 0; + _$jscoverage['/touch/handle.js'].lineData[236] = 0; _$jscoverage['/touch/handle.js'].lineData[237] = 0; - _$jscoverage['/touch/handle.js'].lineData[238] = 0; - _$jscoverage['/touch/handle.js'].lineData[239] = 0; - _$jscoverage['/touch/handle.js'].lineData[241] = 0; - _$jscoverage['/touch/handle.js'].lineData[242] = 0; - _$jscoverage['/touch/handle.js'].lineData[243] = 0; + _$jscoverage['/touch/handle.js'].lineData[240] = 0; _$jscoverage['/touch/handle.js'].lineData[244] = 0; - _$jscoverage['/touch/handle.js'].lineData[245] = 0; + _$jscoverage['/touch/handle.js'].lineData[246] = 0; + _$jscoverage['/touch/handle.js'].lineData[247] = 0; _$jscoverage['/touch/handle.js'].lineData[248] = 0; + _$jscoverage['/touch/handle.js'].lineData[250] = 0; + _$jscoverage['/touch/handle.js'].lineData[251] = 0; _$jscoverage['/touch/handle.js'].lineData[252] = 0; + _$jscoverage['/touch/handle.js'].lineData[253] = 0; _$jscoverage['/touch/handle.js'].lineData[254] = 0; - _$jscoverage['/touch/handle.js'].lineData[255] = 0; - _$jscoverage['/touch/handle.js'].lineData[256] = 0; - _$jscoverage['/touch/handle.js'].lineData[260] = 0; + _$jscoverage['/touch/handle.js'].lineData[257] = 0; _$jscoverage['/touch/handle.js'].lineData[261] = 0; - _$jscoverage['/touch/handle.js'].lineData[262] = 0; _$jscoverage['/touch/handle.js'].lineData[263] = 0; _$jscoverage['/touch/handle.js'].lineData[264] = 0; - _$jscoverage['/touch/handle.js'].lineData[266] = 0; - _$jscoverage['/touch/handle.js'].lineData[267] = 0; - _$jscoverage['/touch/handle.js'].lineData[268] = 0; + _$jscoverage['/touch/handle.js'].lineData[265] = 0; _$jscoverage['/touch/handle.js'].lineData[269] = 0; _$jscoverage['/touch/handle.js'].lineData[270] = 0; _$jscoverage['/touch/handle.js'].lineData[271] = 0; + _$jscoverage['/touch/handle.js'].lineData[272] = 0; + _$jscoverage['/touch/handle.js'].lineData[273] = 0; + _$jscoverage['/touch/handle.js'].lineData[275] = 0; + _$jscoverage['/touch/handle.js'].lineData[276] = 0; _$jscoverage['/touch/handle.js'].lineData[277] = 0; - _$jscoverage['/touch/handle.js'].lineData[281] = 0; - _$jscoverage['/touch/handle.js'].lineData[283] = 0; - _$jscoverage['/touch/handle.js'].lineData[284] = 0; + _$jscoverage['/touch/handle.js'].lineData[278] = 0; + _$jscoverage['/touch/handle.js'].lineData[279] = 0; + _$jscoverage['/touch/handle.js'].lineData[280] = 0; _$jscoverage['/touch/handle.js'].lineData[286] = 0; - _$jscoverage['/touch/handle.js'].lineData[288] = 0; - _$jscoverage['/touch/handle.js'].lineData[289] = 0; _$jscoverage['/touch/handle.js'].lineData[290] = 0; _$jscoverage['/touch/handle.js'].lineData[292] = 0; - _$jscoverage['/touch/handle.js'].lineData[294] = 0; + _$jscoverage['/touch/handle.js'].lineData[293] = 0; _$jscoverage['/touch/handle.js'].lineData[295] = 0; + _$jscoverage['/touch/handle.js'].lineData[297] = 0; + _$jscoverage['/touch/handle.js'].lineData[298] = 0; _$jscoverage['/touch/handle.js'].lineData[299] = 0; - _$jscoverage['/touch/handle.js'].lineData[300] = 0; _$jscoverage['/touch/handle.js'].lineData[301] = 0; - _$jscoverage['/touch/handle.js'].lineData[306] = 0; + _$jscoverage['/touch/handle.js'].lineData[303] = 0; + _$jscoverage['/touch/handle.js'].lineData[304] = 0; + _$jscoverage['/touch/handle.js'].lineData[308] = 0; _$jscoverage['/touch/handle.js'].lineData[309] = 0; _$jscoverage['/touch/handle.js'].lineData[310] = 0; - _$jscoverage['/touch/handle.js'].lineData[312] = 0; - _$jscoverage['/touch/handle.js'].lineData[320] = 0; + _$jscoverage['/touch/handle.js'].lineData[315] = 0; + _$jscoverage['/touch/handle.js'].lineData[318] = 0; + _$jscoverage['/touch/handle.js'].lineData[319] = 0; _$jscoverage['/touch/handle.js'].lineData[321] = 0; - _$jscoverage['/touch/handle.js'].lineData[322] = 0; - _$jscoverage['/touch/handle.js'].lineData[323] = 0; - _$jscoverage['/touch/handle.js'].lineData[324] = 0; + _$jscoverage['/touch/handle.js'].lineData[329] = 0; _$jscoverage['/touch/handle.js'].lineData[330] = 0; + _$jscoverage['/touch/handle.js'].lineData[331] = 0; _$jscoverage['/touch/handle.js'].lineData[332] = 0; _$jscoverage['/touch/handle.js'].lineData[333] = 0; - _$jscoverage['/touch/handle.js'].lineData[334] = 0; - _$jscoverage['/touch/handle.js'].lineData[338] = 0; - _$jscoverage['/touch/handle.js'].lineData[340] = 0; + _$jscoverage['/touch/handle.js'].lineData[339] = 0; + _$jscoverage['/touch/handle.js'].lineData[341] = 0; _$jscoverage['/touch/handle.js'].lineData[342] = 0; _$jscoverage['/touch/handle.js'].lineData[343] = 0; - _$jscoverage['/touch/handle.js'].lineData[345] = 0; - _$jscoverage['/touch/handle.js'].lineData[346] = 0; + _$jscoverage['/touch/handle.js'].lineData[347] = 0; + _$jscoverage['/touch/handle.js'].lineData[349] = 0; _$jscoverage['/touch/handle.js'].lineData[351] = 0; - _$jscoverage['/touch/handle.js'].lineData[353] = 0; + _$jscoverage['/touch/handle.js'].lineData[352] = 0; _$jscoverage['/touch/handle.js'].lineData[354] = 0; _$jscoverage['/touch/handle.js'].lineData[355] = 0; - _$jscoverage['/touch/handle.js'].lineData[357] = 0; - _$jscoverage['/touch/handle.js'].lineData[358] = 0; - _$jscoverage['/touch/handle.js'].lineData[359] = 0; + _$jscoverage['/touch/handle.js'].lineData[360] = 0; + _$jscoverage['/touch/handle.js'].lineData[362] = 0; + _$jscoverage['/touch/handle.js'].lineData[363] = 0; + _$jscoverage['/touch/handle.js'].lineData[364] = 0; + _$jscoverage['/touch/handle.js'].lineData[366] = 0; + _$jscoverage['/touch/handle.js'].lineData[367] = 0; + _$jscoverage['/touch/handle.js'].lineData[368] = 0; } if (! _$jscoverage['/touch/handle.js'].functionData) { _$jscoverage['/touch/handle.js'].functionData = []; @@ -442,317 +446,334 @@ if (! _$jscoverage['/touch/handle.js'].functionData) { } if (! _$jscoverage['/touch/handle.js'].branchData) { _$jscoverage['/touch/handle.js'].branchData = {}; - _$jscoverage['/touch/handle.js'].branchData['32'] = []; - _$jscoverage['/touch/handle.js'].branchData['32'][1] = new BranchData(); - _$jscoverage['/touch/handle.js'].branchData['40'] = []; - _$jscoverage['/touch/handle.js'].branchData['40'][1] = new BranchData(); - _$jscoverage['/touch/handle.js'].branchData['41'] = []; - _$jscoverage['/touch/handle.js'].branchData['41'][1] = new BranchData(); - _$jscoverage['/touch/handle.js'].branchData['52'] = []; - _$jscoverage['/touch/handle.js'].branchData['52'][1] = new BranchData(); - _$jscoverage['/touch/handle.js'].branchData['58'] = []; - _$jscoverage['/touch/handle.js'].branchData['58'][1] = new BranchData(); - _$jscoverage['/touch/handle.js'].branchData['90'] = []; - _$jscoverage['/touch/handle.js'].branchData['90'][1] = new BranchData(); - _$jscoverage['/touch/handle.js'].branchData['107'] = []; - _$jscoverage['/touch/handle.js'].branchData['107'][1] = new BranchData(); - _$jscoverage['/touch/handle.js'].branchData['109'] = []; - _$jscoverage['/touch/handle.js'].branchData['109'][1] = new BranchData(); - _$jscoverage['/touch/handle.js'].branchData['122'] = []; - _$jscoverage['/touch/handle.js'].branchData['122'][1] = new BranchData(); - _$jscoverage['/touch/handle.js'].branchData['124'] = []; - _$jscoverage['/touch/handle.js'].branchData['124'][1] = new BranchData(); - _$jscoverage['/touch/handle.js'].branchData['131'] = []; - _$jscoverage['/touch/handle.js'].branchData['131'][1] = new BranchData(); - _$jscoverage['/touch/handle.js'].branchData['135'] = []; - _$jscoverage['/touch/handle.js'].branchData['135'][1] = new BranchData(); - _$jscoverage['/touch/handle.js'].branchData['141'] = []; - _$jscoverage['/touch/handle.js'].branchData['141'][1] = new BranchData(); - _$jscoverage['/touch/handle.js'].branchData['151'] = []; - _$jscoverage['/touch/handle.js'].branchData['151'][1] = new BranchData(); - _$jscoverage['/touch/handle.js'].branchData['157'] = []; - _$jscoverage['/touch/handle.js'].branchData['157'][1] = new BranchData(); - _$jscoverage['/touch/handle.js'].branchData['169'] = []; - _$jscoverage['/touch/handle.js'].branchData['169'][1] = new BranchData(); - _$jscoverage['/touch/handle.js'].branchData['169'][2] = new BranchData(); - _$jscoverage['/touch/handle.js'].branchData['173'] = []; - _$jscoverage['/touch/handle.js'].branchData['173'][1] = new BranchData(); - _$jscoverage['/touch/handle.js'].branchData['173'][2] = new BranchData(); - _$jscoverage['/touch/handle.js'].branchData['173'][3] = new BranchData(); - _$jscoverage['/touch/handle.js'].branchData['184'] = []; - _$jscoverage['/touch/handle.js'].branchData['184'][1] = new BranchData(); + _$jscoverage['/touch/handle.js'].branchData['30'] = []; + _$jscoverage['/touch/handle.js'].branchData['30'][1] = new BranchData(); + _$jscoverage['/touch/handle.js'].branchData['38'] = []; + _$jscoverage['/touch/handle.js'].branchData['38'][1] = new BranchData(); + _$jscoverage['/touch/handle.js'].branchData['39'] = []; + _$jscoverage['/touch/handle.js'].branchData['39'][1] = new BranchData(); + _$jscoverage['/touch/handle.js'].branchData['50'] = []; + _$jscoverage['/touch/handle.js'].branchData['50'][1] = new BranchData(); + _$jscoverage['/touch/handle.js'].branchData['56'] = []; + _$jscoverage['/touch/handle.js'].branchData['56'][1] = new BranchData(); + _$jscoverage['/touch/handle.js'].branchData['89'] = []; + _$jscoverage['/touch/handle.js'].branchData['89'][1] = new BranchData(); + _$jscoverage['/touch/handle.js'].branchData['106'] = []; + _$jscoverage['/touch/handle.js'].branchData['106'][1] = new BranchData(); + _$jscoverage['/touch/handle.js'].branchData['108'] = []; + _$jscoverage['/touch/handle.js'].branchData['108'][1] = new BranchData(); + _$jscoverage['/touch/handle.js'].branchData['121'] = []; + _$jscoverage['/touch/handle.js'].branchData['121'][1] = new BranchData(); + _$jscoverage['/touch/handle.js'].branchData['123'] = []; + _$jscoverage['/touch/handle.js'].branchData['123'][1] = new BranchData(); + _$jscoverage['/touch/handle.js'].branchData['130'] = []; + _$jscoverage['/touch/handle.js'].branchData['130'][1] = new BranchData(); + _$jscoverage['/touch/handle.js'].branchData['134'] = []; + _$jscoverage['/touch/handle.js'].branchData['134'][1] = new BranchData(); + _$jscoverage['/touch/handle.js'].branchData['140'] = []; + _$jscoverage['/touch/handle.js'].branchData['140'][1] = new BranchData(); + _$jscoverage['/touch/handle.js'].branchData['150'] = []; + _$jscoverage['/touch/handle.js'].branchData['150'][1] = new BranchData(); + _$jscoverage['/touch/handle.js'].branchData['156'] = []; + _$jscoverage['/touch/handle.js'].branchData['156'][1] = new BranchData(); + _$jscoverage['/touch/handle.js'].branchData['168'] = []; + _$jscoverage['/touch/handle.js'].branchData['168'][1] = new BranchData(); + _$jscoverage['/touch/handle.js'].branchData['168'][2] = new BranchData(); + _$jscoverage['/touch/handle.js'].branchData['172'] = []; + _$jscoverage['/touch/handle.js'].branchData['172'][1] = new BranchData(); + _$jscoverage['/touch/handle.js'].branchData['172'][2] = new BranchData(); + _$jscoverage['/touch/handle.js'].branchData['172'][3] = new BranchData(); _$jscoverage['/touch/handle.js'].branchData['185'] = []; _$jscoverage['/touch/handle.js'].branchData['185'][1] = new BranchData(); _$jscoverage['/touch/handle.js'].branchData['185'][2] = new BranchData(); _$jscoverage['/touch/handle.js'].branchData['185'][3] = new BranchData(); - _$jscoverage['/touch/handle.js'].branchData['188'] = []; - _$jscoverage['/touch/handle.js'].branchData['188'][1] = new BranchData(); - _$jscoverage['/touch/handle.js'].branchData['209'] = []; - _$jscoverage['/touch/handle.js'].branchData['209'][1] = new BranchData(); - _$jscoverage['/touch/handle.js'].branchData['212'] = []; - _$jscoverage['/touch/handle.js'].branchData['212'][1] = new BranchData(); - _$jscoverage['/touch/handle.js'].branchData['213'] = []; - _$jscoverage['/touch/handle.js'].branchData['213'][1] = new BranchData(); - _$jscoverage['/touch/handle.js'].branchData['217'] = []; - _$jscoverage['/touch/handle.js'].branchData['217'][1] = new BranchData(); - _$jscoverage['/touch/handle.js'].branchData['219'] = []; - _$jscoverage['/touch/handle.js'].branchData['219'][1] = new BranchData(); - _$jscoverage['/touch/handle.js'].branchData['237'] = []; - _$jscoverage['/touch/handle.js'].branchData['237'][1] = new BranchData(); - _$jscoverage['/touch/handle.js'].branchData['238'] = []; - _$jscoverage['/touch/handle.js'].branchData['238'][1] = new BranchData(); - _$jscoverage['/touch/handle.js'].branchData['242'] = []; - _$jscoverage['/touch/handle.js'].branchData['242'][1] = new BranchData(); - _$jscoverage['/touch/handle.js'].branchData['244'] = []; - _$jscoverage['/touch/handle.js'].branchData['244'][1] = new BranchData(); - _$jscoverage['/touch/handle.js'].branchData['254'] = []; - _$jscoverage['/touch/handle.js'].branchData['254'][1] = new BranchData(); - _$jscoverage['/touch/handle.js'].branchData['255'] = []; - _$jscoverage['/touch/handle.js'].branchData['255'][1] = new BranchData(); - _$jscoverage['/touch/handle.js'].branchData['261'] = []; - _$jscoverage['/touch/handle.js'].branchData['261'][1] = new BranchData(); - _$jscoverage['/touch/handle.js'].branchData['266'] = []; - _$jscoverage['/touch/handle.js'].branchData['266'][1] = new BranchData(); - _$jscoverage['/touch/handle.js'].branchData['268'] = []; - _$jscoverage['/touch/handle.js'].branchData['268'][1] = new BranchData(); + _$jscoverage['/touch/handle.js'].branchData['190'] = []; + _$jscoverage['/touch/handle.js'].branchData['190'][1] = new BranchData(); + _$jscoverage['/touch/handle.js'].branchData['192'] = []; + _$jscoverage['/touch/handle.js'].branchData['192'][1] = new BranchData(); + _$jscoverage['/touch/handle.js'].branchData['198'] = []; + _$jscoverage['/touch/handle.js'].branchData['198'][1] = new BranchData(); + _$jscoverage['/touch/handle.js'].branchData['198'][2] = new BranchData(); + _$jscoverage['/touch/handle.js'].branchData['203'] = []; + _$jscoverage['/touch/handle.js'].branchData['203'][1] = new BranchData(); + _$jscoverage['/touch/handle.js'].branchData['218'] = []; + _$jscoverage['/touch/handle.js'].branchData['218'][1] = new BranchData(); + _$jscoverage['/touch/handle.js'].branchData['221'] = []; + _$jscoverage['/touch/handle.js'].branchData['221'][1] = new BranchData(); + _$jscoverage['/touch/handle.js'].branchData['222'] = []; + _$jscoverage['/touch/handle.js'].branchData['222'][1] = new BranchData(); + _$jscoverage['/touch/handle.js'].branchData['226'] = []; + _$jscoverage['/touch/handle.js'].branchData['226'][1] = new BranchData(); + _$jscoverage['/touch/handle.js'].branchData['228'] = []; + _$jscoverage['/touch/handle.js'].branchData['228'][1] = new BranchData(); + _$jscoverage['/touch/handle.js'].branchData['246'] = []; + _$jscoverage['/touch/handle.js'].branchData['246'][1] = new BranchData(); + _$jscoverage['/touch/handle.js'].branchData['247'] = []; + _$jscoverage['/touch/handle.js'].branchData['247'][1] = new BranchData(); + _$jscoverage['/touch/handle.js'].branchData['251'] = []; + _$jscoverage['/touch/handle.js'].branchData['251'][1] = new BranchData(); + _$jscoverage['/touch/handle.js'].branchData['253'] = []; + _$jscoverage['/touch/handle.js'].branchData['253'][1] = new BranchData(); + _$jscoverage['/touch/handle.js'].branchData['263'] = []; + _$jscoverage['/touch/handle.js'].branchData['263'][1] = new BranchData(); + _$jscoverage['/touch/handle.js'].branchData['264'] = []; + _$jscoverage['/touch/handle.js'].branchData['264'][1] = new BranchData(); _$jscoverage['/touch/handle.js'].branchData['270'] = []; _$jscoverage['/touch/handle.js'].branchData['270'][1] = new BranchData(); - _$jscoverage['/touch/handle.js'].branchData['283'] = []; - _$jscoverage['/touch/handle.js'].branchData['283'][1] = new BranchData(); - _$jscoverage['/touch/handle.js'].branchData['289'] = []; - _$jscoverage['/touch/handle.js'].branchData['289'][1] = new BranchData(); - _$jscoverage['/touch/handle.js'].branchData['294'] = []; - _$jscoverage['/touch/handle.js'].branchData['294'][1] = new BranchData(); - _$jscoverage['/touch/handle.js'].branchData['294'][2] = new BranchData(); - _$jscoverage['/touch/handle.js'].branchData['294'][3] = new BranchData(); - _$jscoverage['/touch/handle.js'].branchData['309'] = []; - _$jscoverage['/touch/handle.js'].branchData['309'][1] = new BranchData(); - _$jscoverage['/touch/handle.js'].branchData['321'] = []; - _$jscoverage['/touch/handle.js'].branchData['321'][1] = new BranchData(); - _$jscoverage['/touch/handle.js'].branchData['323'] = []; - _$jscoverage['/touch/handle.js'].branchData['323'][1] = new BranchData(); - _$jscoverage['/touch/handle.js'].branchData['342'] = []; - _$jscoverage['/touch/handle.js'].branchData['342'][1] = new BranchData(); - _$jscoverage['/touch/handle.js'].branchData['345'] = []; - _$jscoverage['/touch/handle.js'].branchData['345'][1] = new BranchData(); - _$jscoverage['/touch/handle.js'].branchData['353'] = []; - _$jscoverage['/touch/handle.js'].branchData['353'][1] = new BranchData(); + _$jscoverage['/touch/handle.js'].branchData['275'] = []; + _$jscoverage['/touch/handle.js'].branchData['275'][1] = new BranchData(); + _$jscoverage['/touch/handle.js'].branchData['277'] = []; + _$jscoverage['/touch/handle.js'].branchData['277'][1] = new BranchData(); + _$jscoverage['/touch/handle.js'].branchData['279'] = []; + _$jscoverage['/touch/handle.js'].branchData['279'][1] = new BranchData(); + _$jscoverage['/touch/handle.js'].branchData['292'] = []; + _$jscoverage['/touch/handle.js'].branchData['292'][1] = new BranchData(); + _$jscoverage['/touch/handle.js'].branchData['298'] = []; + _$jscoverage['/touch/handle.js'].branchData['298'][1] = new BranchData(); + _$jscoverage['/touch/handle.js'].branchData['303'] = []; + _$jscoverage['/touch/handle.js'].branchData['303'][1] = new BranchData(); + _$jscoverage['/touch/handle.js'].branchData['303'][2] = new BranchData(); + _$jscoverage['/touch/handle.js'].branchData['303'][3] = new BranchData(); + _$jscoverage['/touch/handle.js'].branchData['318'] = []; + _$jscoverage['/touch/handle.js'].branchData['318'][1] = new BranchData(); + _$jscoverage['/touch/handle.js'].branchData['330'] = []; + _$jscoverage['/touch/handle.js'].branchData['330'][1] = new BranchData(); + _$jscoverage['/touch/handle.js'].branchData['332'] = []; + _$jscoverage['/touch/handle.js'].branchData['332'][1] = new BranchData(); + _$jscoverage['/touch/handle.js'].branchData['351'] = []; + _$jscoverage['/touch/handle.js'].branchData['351'][1] = new BranchData(); _$jscoverage['/touch/handle.js'].branchData['354'] = []; _$jscoverage['/touch/handle.js'].branchData['354'][1] = new BranchData(); - _$jscoverage['/touch/handle.js'].branchData['357'] = []; - _$jscoverage['/touch/handle.js'].branchData['357'][1] = new BranchData(); + _$jscoverage['/touch/handle.js'].branchData['362'] = []; + _$jscoverage['/touch/handle.js'].branchData['362'][1] = new BranchData(); + _$jscoverage['/touch/handle.js'].branchData['363'] = []; + _$jscoverage['/touch/handle.js'].branchData['363'][1] = new BranchData(); + _$jscoverage['/touch/handle.js'].branchData['366'] = []; + _$jscoverage['/touch/handle.js'].branchData['366'][1] = new BranchData(); } -_$jscoverage['/touch/handle.js'].branchData['357'][1].init(121, 35, 'S.isEmptyObject(handle.eventHandle)'); -function visit58_357_1(result) { - _$jscoverage['/touch/handle.js'].branchData['357'][1].ranCondition(result); +_$jscoverage['/touch/handle.js'].branchData['366'][1].init(121, 35, 'S.isEmptyObject(handle.eventHandle)'); +function visit56_366_1(result) { + _$jscoverage['/touch/handle.js'].branchData['366'][1].ranCondition(result); return result; -}_$jscoverage['/touch/handle.js'].branchData['354'][1].init(21, 5, 'event'); -function visit57_354_1(result) { +}_$jscoverage['/touch/handle.js'].branchData['363'][1].init(21, 5, 'event'); +function visit55_363_1(result) { + _$jscoverage['/touch/handle.js'].branchData['363'][1].ranCondition(result); + return result; +}_$jscoverage['/touch/handle.js'].branchData['362'][1].init(105, 6, 'handle'); +function visit54_362_1(result) { + _$jscoverage['/touch/handle.js'].branchData['362'][1].ranCondition(result); + return result; +}_$jscoverage['/touch/handle.js'].branchData['354'][1].init(217, 5, 'event'); +function visit53_354_1(result) { _$jscoverage['/touch/handle.js'].branchData['354'][1].ranCondition(result); return result; -}_$jscoverage['/touch/handle.js'].branchData['353'][1].init(105, 6, 'handle'); -function visit56_353_1(result) { - _$jscoverage['/touch/handle.js'].branchData['353'][1].ranCondition(result); +}_$jscoverage['/touch/handle.js'].branchData['351'][1].init(105, 7, '!handle'); +function visit52_351_1(result) { + _$jscoverage['/touch/handle.js'].branchData['351'][1].ranCondition(result); + return result; +}_$jscoverage['/touch/handle.js'].branchData['332'][1].init(65, 25, '!eventHandle[event].count'); +function visit51_332_1(result) { + _$jscoverage['/touch/handle.js'].branchData['332'][1].ranCondition(result); return result; -}_$jscoverage['/touch/handle.js'].branchData['345'][1].init(217, 5, 'event'); -function visit55_345_1(result) { - _$jscoverage['/touch/handle.js'].branchData['345'][1].ranCondition(result); +}_$jscoverage['/touch/handle.js'].branchData['330'][1].init(65, 18, 'eventHandle[event]'); +function visit50_330_1(result) { + _$jscoverage['/touch/handle.js'].branchData['330'][1].ranCondition(result); return result; -}_$jscoverage['/touch/handle.js'].branchData['342'][1].init(105, 7, '!handle'); -function visit54_342_1(result) { - _$jscoverage['/touch/handle.js'].branchData['342'][1].ranCondition(result); +}_$jscoverage['/touch/handle.js'].branchData['318'][1].init(149, 18, 'eventHandle[event]'); +function visit49_318_1(result) { + _$jscoverage['/touch/handle.js'].branchData['318'][1].ranCondition(result); return result; -}_$jscoverage['/touch/handle.js'].branchData['323'][1].init(65, 25, '!eventHandle[event].count'); -function visit53_323_1(result) { - _$jscoverage['/touch/handle.js'].branchData['323'][1].ranCondition(result); +}_$jscoverage['/touch/handle.js'].branchData['303'][3].init(303, 26, 'h[method](event) === false'); +function visit48_303_3(result) { + _$jscoverage['/touch/handle.js'].branchData['303'][3].ranCondition(result); return result; -}_$jscoverage['/touch/handle.js'].branchData['321'][1].init(65, 18, 'eventHandle[event]'); -function visit52_321_1(result) { - _$jscoverage['/touch/handle.js'].branchData['321'][1].ranCondition(result); +}_$jscoverage['/touch/handle.js'].branchData['303'][2].init(290, 39, 'h[method] && h[method](event) === false'); +function visit47_303_2(result) { + _$jscoverage['/touch/handle.js'].branchData['303'][2].ranCondition(result); return result; -}_$jscoverage['/touch/handle.js'].branchData['309'][1].init(149, 18, 'eventHandle[event]'); -function visit51_309_1(result) { - _$jscoverage['/touch/handle.js'].branchData['309'][1].ranCondition(result); +}_$jscoverage['/touch/handle.js'].branchData['303'][1].init(276, 53, 'h.isActive && h[method] && h[method](event) === false'); +function visit46_303_1(result) { + _$jscoverage['/touch/handle.js'].branchData['303'][1].ranCondition(result); return result; -}_$jscoverage['/touch/handle.js'].branchData['294'][3].init(303, 26, 'h[method](event) === false'); -function visit50_294_3(result) { - _$jscoverage['/touch/handle.js'].branchData['294'][3].ranCondition(result); +}_$jscoverage['/touch/handle.js'].branchData['298'][1].init(125, 11, 'h.processed'); +function visit45_298_1(result) { + _$jscoverage['/touch/handle.js'].branchData['298'][1].ranCondition(result); return result; -}_$jscoverage['/touch/handle.js'].branchData['294'][2].init(290, 39, 'h[method] && h[method](event) === false'); -function visit49_294_2(result) { - _$jscoverage['/touch/handle.js'].branchData['294'][2].ranCondition(result); +}_$jscoverage['/touch/handle.js'].branchData['292'][1].init(238, 28, '!event.changedTouches.length'); +function visit44_292_1(result) { + _$jscoverage['/touch/handle.js'].branchData['292'][1].ranCondition(result); return result; -}_$jscoverage['/touch/handle.js'].branchData['294'][1].init(276, 53, 'h.isActive && h[method] && h[method](event) === false'); -function visit48_294_1(result) { - _$jscoverage['/touch/handle.js'].branchData['294'][1].ranCondition(result); +}_$jscoverage['/touch/handle.js'].branchData['279'][1].init(76, 20, '!self.touches.length'); +function visit43_279_1(result) { + _$jscoverage['/touch/handle.js'].branchData['279'][1].ranCondition(result); return result; -}_$jscoverage['/touch/handle.js'].branchData['289'][1].init(125, 11, 'h.processed'); -function visit47_289_1(result) { - _$jscoverage['/touch/handle.js'].branchData['289'][1].ranCondition(result); +}_$jscoverage['/touch/handle.js'].branchData['277'][1].init(610, 20, 'isPointerEvent(type)'); +function visit42_277_1(result) { + _$jscoverage['/touch/handle.js'].branchData['277'][1].ranCondition(result); return result; -}_$jscoverage['/touch/handle.js'].branchData['283'][1].init(238, 28, '!event.changedTouches.length'); -function visit46_283_1(result) { - _$jscoverage['/touch/handle.js'].branchData['283'][1].ranCondition(result); +}_$jscoverage['/touch/handle.js'].branchData['275'][1].init(529, 18, 'isMouseEvent(type)'); +function visit41_275_1(result) { + _$jscoverage['/touch/handle.js'].branchData['275'][1].ranCondition(result); return result; -}_$jscoverage['/touch/handle.js'].branchData['270'][1].init(76, 20, '!self.touches.length'); -function visit45_270_1(result) { +}_$jscoverage['/touch/handle.js'].branchData['270'][1].init(296, 18, 'isTouchEvent(type)'); +function visit40_270_1(result) { _$jscoverage['/touch/handle.js'].branchData['270'][1].ranCondition(result); return result; -}_$jscoverage['/touch/handle.js'].branchData['268'][1].init(610, 20, 'isPointerEvent(type)'); -function visit44_268_1(result) { - _$jscoverage['/touch/handle.js'].branchData['268'][1].ranCondition(result); +}_$jscoverage['/touch/handle.js'].branchData['264'][1].init(21, 37, 'self.isEventSimulatedFromTouch(event)'); +function visit39_264_1(result) { + _$jscoverage['/touch/handle.js'].branchData['264'][1].ranCondition(result); return result; -}_$jscoverage['/touch/handle.js'].branchData['266'][1].init(529, 18, 'isMouseEvent(type)'); -function visit43_266_1(result) { - _$jscoverage['/touch/handle.js'].branchData['266'][1].ranCondition(result); +}_$jscoverage['/touch/handle.js'].branchData['263'][1].init(81, 18, 'isMouseEvent(type)'); +function visit38_263_1(result) { + _$jscoverage['/touch/handle.js'].branchData['263'][1].ranCondition(result); return result; -}_$jscoverage['/touch/handle.js'].branchData['261'][1].init(296, 18, 'isTouchEvent(type)'); -function visit42_261_1(result) { - _$jscoverage['/touch/handle.js'].branchData['261'][1].ranCondition(result); +}_$jscoverage['/touch/handle.js'].branchData['253'][1].init(390, 19, '!isTouchEvent(type)'); +function visit37_253_1(result) { + _$jscoverage['/touch/handle.js'].branchData['253'][1].ranCondition(result); return result; -}_$jscoverage['/touch/handle.js'].branchData['255'][1].init(21, 37, 'self.isEventSimulatedFromTouch(event)'); -function visit41_255_1(result) { - _$jscoverage['/touch/handle.js'].branchData['255'][1].ranCondition(result); +}_$jscoverage['/touch/handle.js'].branchData['251'][1].init(287, 20, 'isPointerEvent(type)'); +function visit36_251_1(result) { + _$jscoverage['/touch/handle.js'].branchData['251'][1].ranCondition(result); return result; -}_$jscoverage['/touch/handle.js'].branchData['254'][1].init(81, 18, 'isMouseEvent(type)'); -function visit40_254_1(result) { - _$jscoverage['/touch/handle.js'].branchData['254'][1].ranCondition(result); +}_$jscoverage['/touch/handle.js'].branchData['247'][1].init(21, 36, 'self.isEventSimulatedFromTouch(type)'); +function visit35_247_1(result) { + _$jscoverage['/touch/handle.js'].branchData['247'][1].ranCondition(result); return result; -}_$jscoverage['/touch/handle.js'].branchData['244'][1].init(390, 15, '!isTouchEvent()'); -function visit39_244_1(result) { - _$jscoverage['/touch/handle.js'].branchData['244'][1].ranCondition(result); +}_$jscoverage['/touch/handle.js'].branchData['246'][1].init(81, 18, 'isMouseEvent(type)'); +function visit34_246_1(result) { + _$jscoverage['/touch/handle.js'].branchData['246'][1].ranCondition(result); return result; -}_$jscoverage['/touch/handle.js'].branchData['242'][1].init(287, 20, 'isPointerEvent(type)'); -function visit38_242_1(result) { - _$jscoverage['/touch/handle.js'].branchData['242'][1].ranCondition(result); +}_$jscoverage['/touch/handle.js'].branchData['228'][1].init(73, 25, 'self.touches.length === 1'); +function visit33_228_1(result) { + _$jscoverage['/touch/handle.js'].branchData['228'][1].ranCondition(result); return result; -}_$jscoverage['/touch/handle.js'].branchData['238'][1].init(21, 36, 'self.isEventSimulatedFromTouch(type)'); -function visit37_238_1(result) { - _$jscoverage['/touch/handle.js'].branchData['238'][1].ranCondition(result); +}_$jscoverage['/touch/handle.js'].branchData['226'][1].init(505, 20, 'isPointerEvent(type)'); +function visit32_226_1(result) { + _$jscoverage['/touch/handle.js'].branchData['226'][1].ranCondition(result); return result; -}_$jscoverage['/touch/handle.js'].branchData['237'][1].init(81, 18, 'isMouseEvent(type)'); -function visit36_237_1(result) { - _$jscoverage['/touch/handle.js'].branchData['237'][1].ranCondition(result); +}_$jscoverage['/touch/handle.js'].branchData['222'][1].init(21, 37, 'self.isEventSimulatedFromTouch(event)'); +function visit31_222_1(result) { + _$jscoverage['/touch/handle.js'].branchData['222'][1].ranCondition(result); return result; -}_$jscoverage['/touch/handle.js'].branchData['219'][1].init(73, 25, 'self.touches.length === 1'); -function visit35_219_1(result) { - _$jscoverage['/touch/handle.js'].branchData['219'][1].ranCondition(result); +}_$jscoverage['/touch/handle.js'].branchData['221'][1].init(298, 18, 'isMouseEvent(type)'); +function visit30_221_1(result) { + _$jscoverage['/touch/handle.js'].branchData['221'][1].ranCondition(result); return result; -}_$jscoverage['/touch/handle.js'].branchData['217'][1].init(505, 20, 'isPointerEvent(type)'); -function visit34_217_1(result) { - _$jscoverage['/touch/handle.js'].branchData['217'][1].ranCondition(result); +}_$jscoverage['/touch/handle.js'].branchData['218'][1].init(151, 18, 'isTouchEvent(type)'); +function visit29_218_1(result) { + _$jscoverage['/touch/handle.js'].branchData['218'][1].ranCondition(result); return result; -}_$jscoverage['/touch/handle.js'].branchData['213'][1].init(21, 37, 'self.isEventSimulatedFromTouch(event)'); -function visit33_213_1(result) { - _$jscoverage['/touch/handle.js'].branchData['213'][1].ranCondition(result); +}_$jscoverage['/touch/handle.js'].branchData['203'][1].init(866, 10, 'touchEvent'); +function visit28_203_1(result) { + _$jscoverage['/touch/handle.js'].branchData['203'][1].ranCondition(result); return result; -}_$jscoverage['/touch/handle.js'].branchData['212'][1].init(298, 18, 'isMouseEvent(type)'); -function visit32_212_1(result) { - _$jscoverage['/touch/handle.js'].branchData['212'][1].ranCondition(result); +}_$jscoverage['/touch/handle.js'].branchData['198'][2].init(689, 22, 'touchList.length === 1'); +function visit27_198_2(result) { + _$jscoverage['/touch/handle.js'].branchData['198'][2].ranCondition(result); return result; -}_$jscoverage['/touch/handle.js'].branchData['209'][1].init(151, 18, 'isTouchEvent(type)'); -function visit31_209_1(result) { - _$jscoverage['/touch/handle.js'].branchData['209'][1].ranCondition(result); +}_$jscoverage['/touch/handle.js'].branchData['198'][1].init(676, 35, 'touchList && touchList.length === 1'); +function visit26_198_1(result) { + _$jscoverage['/touch/handle.js'].branchData['198'][1].ranCondition(result); return result; -}_$jscoverage['/touch/handle.js'].branchData['188'][1].init(169, 22, 'touchList.length === 1'); -function visit30_188_1(result) { - _$jscoverage['/touch/handle.js'].branchData['188'][1].ranCondition(result); +}_$jscoverage['/touch/handle.js'].branchData['192'][1].init(92, 23, 'pointerType === \'touch\''); +function visit25_192_1(result) { + _$jscoverage['/touch/handle.js'].branchData['192'][1].ranCondition(result); + return result; +}_$jscoverage['/touch/handle.js'].branchData['190'][1].init(21, 20, 'isPointerEvent(type)'); +function visit24_190_1(result) { + _$jscoverage['/touch/handle.js'].branchData['190'][1].ranCondition(result); return result; }_$jscoverage['/touch/handle.js'].branchData['185'][3].init(53, 22, 'type === \'touchcancel\''); -function visit29_185_3(result) { +function visit23_185_3(result) { _$jscoverage['/touch/handle.js'].branchData['185'][3].ranCondition(result); return result; }_$jscoverage['/touch/handle.js'].branchData['185'][2].init(30, 19, 'type === \'touchend\''); -function visit28_185_2(result) { +function visit22_185_2(result) { _$jscoverage['/touch/handle.js'].branchData['185'][2].ranCondition(result); return result; }_$jscoverage['/touch/handle.js'].branchData['185'][1].init(30, 45, 'type === \'touchend\' || type === \'touchcancel\''); -function visit27_185_1(result) { +function visit21_185_1(result) { _$jscoverage['/touch/handle.js'].branchData['185'][1].ranCondition(result); return result; -}_$jscoverage['/touch/handle.js'].branchData['184'][1].init(98, 18, 'isTouchEvent(type)'); -function visit26_184_1(result) { - _$jscoverage['/touch/handle.js'].branchData['184'][1].ranCondition(result); - return result; -}_$jscoverage['/touch/handle.js'].branchData['173'][3].init(211, 14, 'dy <= DUP_DIST'); -function visit25_173_3(result) { - _$jscoverage['/touch/handle.js'].branchData['173'][3].ranCondition(result); +}_$jscoverage['/touch/handle.js'].branchData['172'][3].init(211, 14, 'dy <= DUP_DIST'); +function visit20_172_3(result) { + _$jscoverage['/touch/handle.js'].branchData['172'][3].ranCondition(result); return result; -}_$jscoverage['/touch/handle.js'].branchData['173'][2].init(193, 14, 'dx <= DUP_DIST'); -function visit24_173_2(result) { - _$jscoverage['/touch/handle.js'].branchData['173'][2].ranCondition(result); +}_$jscoverage['/touch/handle.js'].branchData['172'][2].init(193, 14, 'dx <= DUP_DIST'); +function visit19_172_2(result) { + _$jscoverage['/touch/handle.js'].branchData['172'][2].ranCondition(result); return result; -}_$jscoverage['/touch/handle.js'].branchData['173'][1].init(193, 32, 'dx <= DUP_DIST && dy <= DUP_DIST'); -function visit23_173_1(result) { - _$jscoverage['/touch/handle.js'].branchData['173'][1].ranCondition(result); +}_$jscoverage['/touch/handle.js'].branchData['172'][1].init(193, 32, 'dx <= DUP_DIST && dy <= DUP_DIST'); +function visit18_172_1(result) { + _$jscoverage['/touch/handle.js'].branchData['172'][1].ranCondition(result); return result; -}_$jscoverage['/touch/handle.js'].branchData['169'][2].init(162, 5, 'i < l'); -function visit22_169_2(result) { - _$jscoverage['/touch/handle.js'].branchData['169'][2].ranCondition(result); +}_$jscoverage['/touch/handle.js'].branchData['168'][2].init(162, 5, 'i < l'); +function visit17_168_2(result) { + _$jscoverage['/touch/handle.js'].branchData['168'][2].ranCondition(result); return result; -}_$jscoverage['/touch/handle.js'].branchData['169'][1].init(162, 21, 'i < l && (t = lts[i])'); -function visit21_169_1(result) { - _$jscoverage['/touch/handle.js'].branchData['169'][1].ranCondition(result); +}_$jscoverage['/touch/handle.js'].branchData['168'][1].init(162, 21, 'i < l && (t = lts[i])'); +function visit16_168_1(result) { + _$jscoverage['/touch/handle.js'].branchData['168'][1].ranCondition(result); return result; -}_$jscoverage['/touch/handle.js'].branchData['157'][1].init(70, 6, 'i > -1'); -function visit20_157_1(result) { - _$jscoverage['/touch/handle.js'].branchData['157'][1].ranCondition(result); +}_$jscoverage['/touch/handle.js'].branchData['156'][1].init(70, 6, 'i > -1'); +function visit15_156_1(result) { + _$jscoverage['/touch/handle.js'].branchData['156'][1].ranCondition(result); return result; -}_$jscoverage['/touch/handle.js'].branchData['151'][1].init(165, 22, 'this.isPrimaryTouch(t)'); -function visit19_151_1(result) { - _$jscoverage['/touch/handle.js'].branchData['151'][1].ranCondition(result); +}_$jscoverage['/touch/handle.js'].branchData['150'][1].init(165, 22, 'this.isPrimaryTouch(t)'); +function visit14_150_1(result) { + _$jscoverage['/touch/handle.js'].branchData['150'][1].ranCondition(result); return result; -}_$jscoverage['/touch/handle.js'].branchData['141'][1].init(17, 28, 'this.isPrimaryTouch(inTouch)'); -function visit18_141_1(result) { - _$jscoverage['/touch/handle.js'].branchData['141'][1].ranCondition(result); +}_$jscoverage['/touch/handle.js'].branchData['140'][1].init(17, 28, 'this.isPrimaryTouch(inTouch)'); +function visit13_140_1(result) { + _$jscoverage['/touch/handle.js'].branchData['140'][1].ranCondition(result); return result; -}_$jscoverage['/touch/handle.js'].branchData['135'][1].init(17, 24, 'this.firstTouch === null'); -function visit17_135_1(result) { - _$jscoverage['/touch/handle.js'].branchData['135'][1].ranCondition(result); +}_$jscoverage['/touch/handle.js'].branchData['134'][1].init(17, 24, 'this.firstTouch === null'); +function visit12_134_1(result) { + _$jscoverage['/touch/handle.js'].branchData['134'][1].ranCondition(result); return result; -}_$jscoverage['/touch/handle.js'].branchData['131'][1].init(20, 38, 'this.firstTouch === inTouch.identifier'); -function visit16_131_1(result) { - _$jscoverage['/touch/handle.js'].branchData['131'][1].ranCondition(result); +}_$jscoverage['/touch/handle.js'].branchData['130'][1].init(20, 38, 'this.firstTouch === inTouch.identifier'); +function visit11_130_1(result) { + _$jscoverage['/touch/handle.js'].branchData['130'][1].ranCondition(result); return result; -}_$jscoverage['/touch/handle.js'].branchData['124'][1].init(57, 29, 'touch.pointerId === pointerId'); -function visit15_124_1(result) { - _$jscoverage['/touch/handle.js'].branchData['124'][1].ranCondition(result); +}_$jscoverage['/touch/handle.js'].branchData['123'][1].init(57, 29, 'touch.pointerId === pointerId'); +function visit10_123_1(result) { + _$jscoverage['/touch/handle.js'].branchData['123'][1].ranCondition(result); return result; -}_$jscoverage['/touch/handle.js'].branchData['122'][1].init(195, 5, 'i < l'); -function visit14_122_1(result) { - _$jscoverage['/touch/handle.js'].branchData['122'][1].ranCondition(result); +}_$jscoverage['/touch/handle.js'].branchData['121'][1].init(195, 5, 'i < l'); +function visit9_121_1(result) { + _$jscoverage['/touch/handle.js'].branchData['121'][1].ranCondition(result); return result; -}_$jscoverage['/touch/handle.js'].branchData['109'][1].init(57, 29, 'touch.pointerId === pointerId'); -function visit13_109_1(result) { - _$jscoverage['/touch/handle.js'].branchData['109'][1].ranCondition(result); +}_$jscoverage['/touch/handle.js'].branchData['108'][1].init(57, 29, 'touch.pointerId === pointerId'); +function visit8_108_1(result) { + _$jscoverage['/touch/handle.js'].branchData['108'][1].ranCondition(result); return result; -}_$jscoverage['/touch/handle.js'].branchData['107'][1].init(195, 5, 'i < l'); -function visit12_107_1(result) { - _$jscoverage['/touch/handle.js'].branchData['107'][1].ranCondition(result); +}_$jscoverage['/touch/handle.js'].branchData['106'][1].init(195, 5, 'i < l'); +function visit7_106_1(result) { + _$jscoverage['/touch/handle.js'].branchData['106'][1].ranCondition(result); return result; -}_$jscoverage['/touch/handle.js'].branchData['90'][1].init(152, 33, '!isPointerEvent(gestureMoveEvent)'); -function visit11_90_1(result) { - _$jscoverage['/touch/handle.js'].branchData['90'][1].ranCondition(result); +}_$jscoverage['/touch/handle.js'].branchData['89'][1].init(219, 33, '!isPointerEvent(gestureMoveEvent)'); +function visit6_89_1(result) { + _$jscoverage['/touch/handle.js'].branchData['89'][1].ranCondition(result); return result; -}_$jscoverage['/touch/handle.js'].branchData['58'][1].init(1699, 31, 'Features.isMsPointerSupported()'); -function visit10_58_1(result) { - _$jscoverage['/touch/handle.js'].branchData['58'][1].ranCondition(result); +}_$jscoverage['/touch/handle.js'].branchData['56'][1].init(1643, 31, 'Features.isMsPointerSupported()'); +function visit5_56_1(result) { + _$jscoverage['/touch/handle.js'].branchData['56'][1].ranCondition(result); return result; -}_$jscoverage['/touch/handle.js'].branchData['52'][1].init(1420, 29, 'Features.isPointerSupported()'); -function visit9_52_1(result) { - _$jscoverage['/touch/handle.js'].branchData['52'][1].ranCondition(result); +}_$jscoverage['/touch/handle.js'].branchData['50'][1].init(1364, 29, 'Features.isPointerSupported()'); +function visit4_50_1(result) { + _$jscoverage['/touch/handle.js'].branchData['50'][1].ranCondition(result); return result; -}_$jscoverage['/touch/handle.js'].branchData['41'][1].init(13, 8, 'S.UA.ios'); -function visit8_41_1(result) { - _$jscoverage['/touch/handle.js'].branchData['41'][1].ranCondition(result); +}_$jscoverage['/touch/handle.js'].branchData['39'][1].init(13, 8, 'S.UA.ios'); +function visit3_39_1(result) { + _$jscoverage['/touch/handle.js'].branchData['39'][1].ranCondition(result); return result; -}_$jscoverage['/touch/handle.js'].branchData['40'][1].init(920, 32, 'Features.isTouchEventSupported()'); -function visit7_40_1(result) { - _$jscoverage['/touch/handle.js'].branchData['40'][1].ranCondition(result); +}_$jscoverage['/touch/handle.js'].branchData['38'][1].init(864, 32, 'Features.isTouchEventSupported()'); +function visit2_38_1(result) { + _$jscoverage['/touch/handle.js'].branchData['38'][1].ranCondition(result); return result; -}_$jscoverage['/touch/handle.js'].branchData['32'][1].init(16, 64, 'S.startsWith(type, \'MSPointer\') || S.startsWith(type, \'pointer\')'); -function visit6_32_1(result) { - _$jscoverage['/touch/handle.js'].branchData['32'][1].ranCondition(result); +}_$jscoverage['/touch/handle.js'].branchData['30'][1].init(16, 64, 'S.startsWith(type, \'MSPointer\') || S.startsWith(type, \'pointer\')'); +function visit1_30_1(result) { + _$jscoverage['/touch/handle.js'].branchData['30'][1].ranCondition(result); return result; }_$jscoverage['/touch/handle.js'].lineData[6]++; KISSY.add(function(S, require) { @@ -768,200 +789,196 @@ KISSY.add(function(S, require) { _$jscoverage['/touch/handle.js'].lineData[11]++; require('./swipe'); _$jscoverage['/touch/handle.js'].lineData[12]++; - require('./double-tap'); - _$jscoverage['/touch/handle.js'].lineData[13]++; require('./pinch'); - _$jscoverage['/touch/handle.js'].lineData[14]++; - require('./tap-hold'); - _$jscoverage['/touch/handle.js'].lineData[15]++; + _$jscoverage['/touch/handle.js'].lineData[13]++; require('./rotate'); - _$jscoverage['/touch/handle.js'].lineData[17]++; + _$jscoverage['/touch/handle.js'].lineData[15]++; var key = S.guid('touch-handle'), Features = S.Features, gestureStartEvent, gestureMoveEvent, gestureEndEvent; - _$jscoverage['/touch/handle.js'].lineData[23]++; + _$jscoverage['/touch/handle.js'].lineData[21]++; function isTouchEvent(type) { _$jscoverage['/touch/handle.js'].functionData[1]++; - _$jscoverage['/touch/handle.js'].lineData[24]++; + _$jscoverage['/touch/handle.js'].lineData[22]++; return S.startsWith(type, 'touch'); } - _$jscoverage['/touch/handle.js'].lineData[27]++; + _$jscoverage['/touch/handle.js'].lineData[25]++; function isMouseEvent(type) { _$jscoverage['/touch/handle.js'].functionData[2]++; - _$jscoverage['/touch/handle.js'].lineData[28]++; + _$jscoverage['/touch/handle.js'].lineData[26]++; return S.startsWith(type, 'mouse'); } - _$jscoverage['/touch/handle.js'].lineData[31]++; + _$jscoverage['/touch/handle.js'].lineData[29]++; function isPointerEvent(type) { _$jscoverage['/touch/handle.js'].functionData[3]++; - _$jscoverage['/touch/handle.js'].lineData[32]++; - return visit6_32_1(S.startsWith(type, 'MSPointer') || S.startsWith(type, 'pointer')); + _$jscoverage['/touch/handle.js'].lineData[30]++; + return visit1_30_1(S.startsWith(type, 'MSPointer') || S.startsWith(type, 'pointer')); } - _$jscoverage['/touch/handle.js'].lineData[36]++; + _$jscoverage['/touch/handle.js'].lineData[34]++; var DUP_TIMEOUT = 2500; - _$jscoverage['/touch/handle.js'].lineData[38]++; + _$jscoverage['/touch/handle.js'].lineData[36]++; var DUP_DIST = 25; - _$jscoverage['/touch/handle.js'].lineData[40]++; - if (visit7_40_1(Features.isTouchEventSupported())) { - _$jscoverage['/touch/handle.js'].lineData[41]++; - if (visit8_41_1(S.UA.ios)) { - _$jscoverage['/touch/handle.js'].lineData[43]++; + _$jscoverage['/touch/handle.js'].lineData[38]++; + if (visit2_38_1(Features.isTouchEventSupported())) { + _$jscoverage['/touch/handle.js'].lineData[39]++; + if (visit3_39_1(S.UA.ios)) { + _$jscoverage['/touch/handle.js'].lineData[41]++; gestureEndEvent = 'touchend touchcancel'; - _$jscoverage['/touch/handle.js'].lineData[44]++; + _$jscoverage['/touch/handle.js'].lineData[42]++; gestureStartEvent = 'touchstart'; - _$jscoverage['/touch/handle.js'].lineData[45]++; + _$jscoverage['/touch/handle.js'].lineData[43]++; gestureMoveEvent = 'touchmove'; } else { - _$jscoverage['/touch/handle.js'].lineData[47]++; + _$jscoverage['/touch/handle.js'].lineData[45]++; gestureEndEvent = 'touchend touchcancel mouseup'; - _$jscoverage['/touch/handle.js'].lineData[49]++; + _$jscoverage['/touch/handle.js'].lineData[47]++; gestureStartEvent = 'touchstart mousedown'; - _$jscoverage['/touch/handle.js'].lineData[50]++; + _$jscoverage['/touch/handle.js'].lineData[48]++; gestureMoveEvent = 'touchmove mousemove'; } } else { - _$jscoverage['/touch/handle.js'].lineData[52]++; - if (visit9_52_1(Features.isPointerSupported())) { - _$jscoverage['/touch/handle.js'].lineData[55]++; + _$jscoverage['/touch/handle.js'].lineData[50]++; + if (visit4_50_1(Features.isPointerSupported())) { + _$jscoverage['/touch/handle.js'].lineData[53]++; gestureStartEvent = 'pointerdown'; - _$jscoverage['/touch/handle.js'].lineData[56]++; + _$jscoverage['/touch/handle.js'].lineData[54]++; gestureMoveEvent = 'pointermove'; - _$jscoverage['/touch/handle.js'].lineData[57]++; + _$jscoverage['/touch/handle.js'].lineData[55]++; gestureEndEvent = 'pointerup pointercancel'; } else { - _$jscoverage['/touch/handle.js'].lineData[58]++; - if (visit10_58_1(Features.isMsPointerSupported())) { - _$jscoverage['/touch/handle.js'].lineData[59]++; + _$jscoverage['/touch/handle.js'].lineData[56]++; + if (visit5_56_1(Features.isMsPointerSupported())) { + _$jscoverage['/touch/handle.js'].lineData[57]++; gestureStartEvent = 'MSPointerDown'; - _$jscoverage['/touch/handle.js'].lineData[60]++; + _$jscoverage['/touch/handle.js'].lineData[58]++; gestureMoveEvent = 'MSPointerMove'; - _$jscoverage['/touch/handle.js'].lineData[61]++; + _$jscoverage['/touch/handle.js'].lineData[59]++; gestureEndEvent = 'MSPointerUp MSPointerCancel'; } else { - _$jscoverage['/touch/handle.js'].lineData[63]++; + _$jscoverage['/touch/handle.js'].lineData[61]++; gestureStartEvent = 'mousedown'; - _$jscoverage['/touch/handle.js'].lineData[64]++; + _$jscoverage['/touch/handle.js'].lineData[62]++; gestureMoveEvent = 'mousemove'; - _$jscoverage['/touch/handle.js'].lineData[65]++; + _$jscoverage['/touch/handle.js'].lineData[63]++; gestureEndEvent = 'mouseup'; } } } - _$jscoverage['/touch/handle.js'].lineData[68]++; + _$jscoverage['/touch/handle.js'].lineData[66]++; function DocumentHandler(doc) { _$jscoverage['/touch/handle.js'].functionData[4]++; - _$jscoverage['/touch/handle.js'].lineData[69]++; + _$jscoverage['/touch/handle.js'].lineData[67]++; var self = this; - _$jscoverage['/touch/handle.js'].lineData[70]++; + _$jscoverage['/touch/handle.js'].lineData[68]++; self.doc = doc; - _$jscoverage['/touch/handle.js'].lineData[71]++; + _$jscoverage['/touch/handle.js'].lineData[69]++; self.eventHandle = {}; - _$jscoverage['/touch/handle.js'].lineData[72]++; + _$jscoverage['/touch/handle.js'].lineData[70]++; self.init(); - _$jscoverage['/touch/handle.js'].lineData[74]++; + _$jscoverage['/touch/handle.js'].lineData[72]++; self.touches = []; - _$jscoverage['/touch/handle.js'].lineData[76]++; + _$jscoverage['/touch/handle.js'].lineData[74]++; self.inTouch = 0; } - _$jscoverage['/touch/handle.js'].lineData[79]++; + _$jscoverage['/touch/handle.js'].lineData[77]++; DocumentHandler.prototype = { constructor: DocumentHandler, lastTouches: [], firstTouch: null, init: function() { _$jscoverage['/touch/handle.js'].functionData[5]++; - _$jscoverage['/touch/handle.js'].lineData[87]++; + _$jscoverage['/touch/handle.js'].lineData[85]++; var self = this, doc = self.doc; - _$jscoverage['/touch/handle.js'].lineData[89]++; + _$jscoverage['/touch/handle.js'].lineData[87]++; DomEvent.on(doc, gestureStartEvent, self.onTouchStart, self); - _$jscoverage['/touch/handle.js'].lineData[90]++; - if (visit11_90_1(!isPointerEvent(gestureMoveEvent))) { - _$jscoverage['/touch/handle.js'].lineData[91]++; + _$jscoverage['/touch/handle.js'].lineData[89]++; + if (visit6_89_1(!isPointerEvent(gestureMoveEvent))) { + _$jscoverage['/touch/handle.js'].lineData[90]++; DomEvent.on(doc, gestureMoveEvent, self.onTouchMove, self); } - _$jscoverage['/touch/handle.js'].lineData[93]++; + _$jscoverage['/touch/handle.js'].lineData[92]++; DomEvent.on(doc, gestureEndEvent, self.onTouchEnd, self); }, addTouch: function(originalEvent) { _$jscoverage['/touch/handle.js'].functionData[6]++; - _$jscoverage['/touch/handle.js'].lineData[97]++; + _$jscoverage['/touch/handle.js'].lineData[96]++; originalEvent.identifier = originalEvent.pointerId; - _$jscoverage['/touch/handle.js'].lineData[98]++; + _$jscoverage['/touch/handle.js'].lineData[97]++; this.touches.push(originalEvent); }, removeTouch: function(originalEvent) { _$jscoverage['/touch/handle.js'].functionData[7]++; - _$jscoverage['/touch/handle.js'].lineData[102]++; + _$jscoverage['/touch/handle.js'].lineData[101]++; var i = 0, touch, pointerId = originalEvent.pointerId, touches = this.touches, l = touches.length; - _$jscoverage['/touch/handle.js'].lineData[107]++; - for (; visit12_107_1(i < l); i++) { - _$jscoverage['/touch/handle.js'].lineData[108]++; + _$jscoverage['/touch/handle.js'].lineData[106]++; + for (; visit7_106_1(i < l); i++) { + _$jscoverage['/touch/handle.js'].lineData[107]++; touch = touches[i]; - _$jscoverage['/touch/handle.js'].lineData[109]++; - if (visit13_109_1(touch.pointerId === pointerId)) { - _$jscoverage['/touch/handle.js'].lineData[110]++; + _$jscoverage['/touch/handle.js'].lineData[108]++; + if (visit8_108_1(touch.pointerId === pointerId)) { + _$jscoverage['/touch/handle.js'].lineData[109]++; touches.splice(i, 1); - _$jscoverage['/touch/handle.js'].lineData[111]++; + _$jscoverage['/touch/handle.js'].lineData[110]++; break; } } }, updateTouch: function(originalEvent) { _$jscoverage['/touch/handle.js'].functionData[8]++; - _$jscoverage['/touch/handle.js'].lineData[117]++; + _$jscoverage['/touch/handle.js'].lineData[116]++; var i = 0, touch, pointerId = originalEvent.pointerId, touches = this.touches, l = touches.length; - _$jscoverage['/touch/handle.js'].lineData[122]++; - for (; visit14_122_1(i < l); i++) { - _$jscoverage['/touch/handle.js'].lineData[123]++; + _$jscoverage['/touch/handle.js'].lineData[121]++; + for (; visit9_121_1(i < l); i++) { + _$jscoverage['/touch/handle.js'].lineData[122]++; touch = touches[i]; - _$jscoverage['/touch/handle.js'].lineData[124]++; - if (visit15_124_1(touch.pointerId === pointerId)) { - _$jscoverage['/touch/handle.js'].lineData[125]++; + _$jscoverage['/touch/handle.js'].lineData[123]++; + if (visit10_123_1(touch.pointerId === pointerId)) { + _$jscoverage['/touch/handle.js'].lineData[124]++; touches[i] = originalEvent; } } }, isPrimaryTouch: function(inTouch) { _$jscoverage['/touch/handle.js'].functionData[9]++; - _$jscoverage['/touch/handle.js'].lineData[131]++; - return visit16_131_1(this.firstTouch === inTouch.identifier); + _$jscoverage['/touch/handle.js'].lineData[130]++; + return visit11_130_1(this.firstTouch === inTouch.identifier); }, setPrimaryTouch: function(inTouch) { _$jscoverage['/touch/handle.js'].functionData[10]++; - _$jscoverage['/touch/handle.js'].lineData[135]++; - if (visit17_135_1(this.firstTouch === null)) { - _$jscoverage['/touch/handle.js'].lineData[136]++; + _$jscoverage['/touch/handle.js'].lineData[134]++; + if (visit12_134_1(this.firstTouch === null)) { + _$jscoverage['/touch/handle.js'].lineData[135]++; this.firstTouch = inTouch.identifier; } }, removePrimaryTouch: function(inTouch) { _$jscoverage['/touch/handle.js'].functionData[11]++; - _$jscoverage['/touch/handle.js'].lineData[141]++; - if (visit18_141_1(this.isPrimaryTouch(inTouch))) { - _$jscoverage['/touch/handle.js'].lineData[142]++; + _$jscoverage['/touch/handle.js'].lineData[140]++; + if (visit13_140_1(this.isPrimaryTouch(inTouch))) { + _$jscoverage['/touch/handle.js'].lineData[141]++; this.firstTouch = null; } }, dupMouse: function(inEvent) { _$jscoverage['/touch/handle.js'].functionData[12]++; - _$jscoverage['/touch/handle.js'].lineData[148]++; + _$jscoverage['/touch/handle.js'].lineData[147]++; var lts = this.lastTouches; - _$jscoverage['/touch/handle.js'].lineData[149]++; + _$jscoverage['/touch/handle.js'].lineData[148]++; var t = inEvent.changedTouches[0]; - _$jscoverage['/touch/handle.js'].lineData[151]++; - if (visit19_151_1(this.isPrimaryTouch(t))) { - _$jscoverage['/touch/handle.js'].lineData[153]++; + _$jscoverage['/touch/handle.js'].lineData[150]++; + if (visit14_150_1(this.isPrimaryTouch(t))) { + _$jscoverage['/touch/handle.js'].lineData[152]++; var lt = { x: t.clientX, y: t.clientY}; - _$jscoverage['/touch/handle.js'].lineData[154]++; + _$jscoverage['/touch/handle.js'].lineData[153]++; lts.push(lt); - _$jscoverage['/touch/handle.js'].lineData[155]++; + _$jscoverage['/touch/handle.js'].lineData[154]++; setTimeout(function() { _$jscoverage['/touch/handle.js'].functionData[13]++; - _$jscoverage['/touch/handle.js'].lineData[156]++; + _$jscoverage['/touch/handle.js'].lineData[155]++; var i = lts.indexOf(lt); - _$jscoverage['/touch/handle.js'].lineData[157]++; - if (visit20_157_1(i > -1)) { - _$jscoverage['/touch/handle.js'].lineData[158]++; + _$jscoverage['/touch/handle.js'].lineData[156]++; + if (visit15_156_1(i > -1)) { + _$jscoverage['/touch/handle.js'].lineData[157]++; lts.splice(i, 1); } }, DUP_TIMEOUT); @@ -969,169 +986,184 @@ KISSY.add(function(S, require) { }, isEventSimulatedFromTouch: function(inEvent) { _$jscoverage['/touch/handle.js'].functionData[14]++; - _$jscoverage['/touch/handle.js'].lineData[166]++; + _$jscoverage['/touch/handle.js'].lineData[165]++; var lts = this.lastTouches; - _$jscoverage['/touch/handle.js'].lineData[167]++; + _$jscoverage['/touch/handle.js'].lineData[166]++; var x = inEvent.clientX, y = inEvent.clientY; - _$jscoverage['/touch/handle.js'].lineData[169]++; - for (var i = 0, l = lts.length, t; visit21_169_1(visit22_169_2(i < l) && (t = lts[i])); i++) { - _$jscoverage['/touch/handle.js'].lineData[171]++; + _$jscoverage['/touch/handle.js'].lineData[168]++; + for (var i = 0, l = lts.length, t; visit16_168_1(visit17_168_2(i < l) && (t = lts[i])); i++) { + _$jscoverage['/touch/handle.js'].lineData[170]++; var dx = Math.abs(x - t.x), dy = Math.abs(y - t.y); - _$jscoverage['/touch/handle.js'].lineData[173]++; - if (visit23_173_1(visit24_173_2(dx <= DUP_DIST) && visit25_173_3(dy <= DUP_DIST))) { - _$jscoverage['/touch/handle.js'].lineData[174]++; + _$jscoverage['/touch/handle.js'].lineData[172]++; + if (visit18_172_1(visit19_172_2(dx <= DUP_DIST) && visit20_172_3(dy <= DUP_DIST))) { + _$jscoverage['/touch/handle.js'].lineData[173]++; return true; } } - _$jscoverage['/touch/handle.js'].lineData[177]++; + _$jscoverage['/touch/handle.js'].lineData[176]++; return 0; }, normalize: function(e) { _$jscoverage['/touch/handle.js'].functionData[15]++; - _$jscoverage['/touch/handle.js'].lineData[181]++; - var type = e.type, notUp, touchList; + _$jscoverage['/touch/handle.js'].lineData[180]++; + var type = e.type, notUp, touchEvent, touchList; _$jscoverage['/touch/handle.js'].lineData[184]++; - if (visit26_184_1(isTouchEvent(type))) { + if ((touchEvent = isTouchEvent(type))) { _$jscoverage['/touch/handle.js'].lineData[185]++; - touchList = (visit27_185_1(visit28_185_2(type === 'touchend') || visit29_185_3(type === 'touchcancel'))) ? e.changedTouches : e.touches; + touchList = (visit21_185_1(visit22_185_2(type === 'touchend') || visit23_185_3(type === 'touchcancel'))) ? e.changedTouches : e.touches; _$jscoverage['/touch/handle.js'].lineData[188]++; - if (visit30_188_1(touchList.length === 1)) { - _$jscoverage['/touch/handle.js'].lineData[189]++; - e.which = 1; - _$jscoverage['/touch/handle.js'].lineData[190]++; - e.pageX = touchList[0].pageX; + e.isTouch = 1; + } else { + _$jscoverage['/touch/handle.js'].lineData[190]++; + if (visit24_190_1(isPointerEvent(type))) { _$jscoverage['/touch/handle.js'].lineData[191]++; - e.pageY = touchList[0].pageY; + var pointerType = e.originalEvent.pointerType; + _$jscoverage['/touch/handle.js'].lineData[192]++; + if (visit25_192_1(pointerType === 'touch')) { + _$jscoverage['/touch/handle.js'].lineData[193]++; + e.isTouch = 1; + } } - _$jscoverage['/touch/handle.js'].lineData[193]++; - return e; - } else { - _$jscoverage['/touch/handle.js'].lineData[195]++; + _$jscoverage['/touch/handle.js'].lineData[196]++; touchList = this.touches; } - _$jscoverage['/touch/handle.js'].lineData[197]++; - notUp = !type.match(/(up|cancel)$/i); _$jscoverage['/touch/handle.js'].lineData[198]++; + if (visit26_198_1(touchList && visit27_198_2(touchList.length === 1))) { + _$jscoverage['/touch/handle.js'].lineData[199]++; + e.which = 1; + _$jscoverage['/touch/handle.js'].lineData[200]++; + e.pageX = touchList[0].pageX; + _$jscoverage['/touch/handle.js'].lineData[201]++; + e.pageY = touchList[0].pageY; + } + _$jscoverage['/touch/handle.js'].lineData[203]++; + if (visit28_203_1(touchEvent)) { + _$jscoverage['/touch/handle.js'].lineData[204]++; + return e; + } + _$jscoverage['/touch/handle.js'].lineData[206]++; + notUp = !type.match(/(up|cancel)$/i); + _$jscoverage['/touch/handle.js'].lineData[207]++; e.touches = notUp ? touchList : []; - _$jscoverage['/touch/handle.js'].lineData[199]++; + _$jscoverage['/touch/handle.js'].lineData[208]++; e.targetTouches = notUp ? touchList : []; - _$jscoverage['/touch/handle.js'].lineData[200]++; + _$jscoverage['/touch/handle.js'].lineData[209]++; e.changedTouches = touchList; - _$jscoverage['/touch/handle.js'].lineData[201]++; + _$jscoverage['/touch/handle.js'].lineData[210]++; return e; }, onTouchStart: function(event) { _$jscoverage['/touch/handle.js'].functionData[16]++; - _$jscoverage['/touch/handle.js'].lineData[205]++; + _$jscoverage['/touch/handle.js'].lineData[214]++; var e, h, self = this, type = event.type, eventHandle = self.eventHandle; - _$jscoverage['/touch/handle.js'].lineData[209]++; - if (visit31_209_1(isTouchEvent(type))) { - _$jscoverage['/touch/handle.js'].lineData[210]++; + _$jscoverage['/touch/handle.js'].lineData[218]++; + if (visit29_218_1(isTouchEvent(type))) { + _$jscoverage['/touch/handle.js'].lineData[219]++; self.setPrimaryTouch(event.changedTouches[0]); - _$jscoverage['/touch/handle.js'].lineData[211]++; + _$jscoverage['/touch/handle.js'].lineData[220]++; self.dupMouse(event); } else { - _$jscoverage['/touch/handle.js'].lineData[212]++; - if (visit32_212_1(isMouseEvent(type))) { - _$jscoverage['/touch/handle.js'].lineData[213]++; - if (visit33_213_1(self.isEventSimulatedFromTouch(event))) { - _$jscoverage['/touch/handle.js'].lineData[214]++; + _$jscoverage['/touch/handle.js'].lineData[221]++; + if (visit30_221_1(isMouseEvent(type))) { + _$jscoverage['/touch/handle.js'].lineData[222]++; + if (visit31_222_1(self.isEventSimulatedFromTouch(event))) { + _$jscoverage['/touch/handle.js'].lineData[223]++; return; } - _$jscoverage['/touch/handle.js'].lineData[216]++; + _$jscoverage['/touch/handle.js'].lineData[225]++; self.touches = [event.originalEvent]; } else { - _$jscoverage['/touch/handle.js'].lineData[217]++; - if (visit34_217_1(isPointerEvent(type))) { - _$jscoverage['/touch/handle.js'].lineData[218]++; + _$jscoverage['/touch/handle.js'].lineData[226]++; + if (visit32_226_1(isPointerEvent(type))) { + _$jscoverage['/touch/handle.js'].lineData[227]++; self.addTouch(event.originalEvent); - _$jscoverage['/touch/handle.js'].lineData[219]++; - if (visit35_219_1(self.touches.length === 1)) { - _$jscoverage['/touch/handle.js'].lineData[220]++; + _$jscoverage['/touch/handle.js'].lineData[228]++; + if (visit33_228_1(self.touches.length === 1)) { + _$jscoverage['/touch/handle.js'].lineData[229]++; DomEvent.on(self.doc, gestureMoveEvent, self.onTouchMove, self); } } else { - _$jscoverage['/touch/handle.js'].lineData[223]++; + _$jscoverage['/touch/handle.js'].lineData[232]++; throw new Error('unrecognized touch event: ' + event.type); } } } - _$jscoverage['/touch/handle.js'].lineData[226]++; + _$jscoverage['/touch/handle.js'].lineData[235]++; for (e in eventHandle) { - _$jscoverage['/touch/handle.js'].lineData[227]++; + _$jscoverage['/touch/handle.js'].lineData[236]++; h = eventHandle[e].handle; - _$jscoverage['/touch/handle.js'].lineData[228]++; + _$jscoverage['/touch/handle.js'].lineData[237]++; h.isActive = 1; } - _$jscoverage['/touch/handle.js'].lineData[231]++; + _$jscoverage['/touch/handle.js'].lineData[240]++; self.callEventHandle('onTouchStart', event); }, onTouchMove: function(event) { _$jscoverage['/touch/handle.js'].functionData[17]++; - _$jscoverage['/touch/handle.js'].lineData[235]++; + _$jscoverage['/touch/handle.js'].lineData[244]++; var self = this, type = event.type; - _$jscoverage['/touch/handle.js'].lineData[237]++; - if (visit36_237_1(isMouseEvent(type))) { - _$jscoverage['/touch/handle.js'].lineData[238]++; - if (visit37_238_1(self.isEventSimulatedFromTouch(type))) { - _$jscoverage['/touch/handle.js'].lineData[239]++; + _$jscoverage['/touch/handle.js'].lineData[246]++; + if (visit34_246_1(isMouseEvent(type))) { + _$jscoverage['/touch/handle.js'].lineData[247]++; + if (visit35_247_1(self.isEventSimulatedFromTouch(type))) { + _$jscoverage['/touch/handle.js'].lineData[248]++; return; } - _$jscoverage['/touch/handle.js'].lineData[241]++; + _$jscoverage['/touch/handle.js'].lineData[250]++; self.touches = [event.originalEvent]; } else { - _$jscoverage['/touch/handle.js'].lineData[242]++; - if (visit38_242_1(isPointerEvent(type))) { - _$jscoverage['/touch/handle.js'].lineData[243]++; + _$jscoverage['/touch/handle.js'].lineData[251]++; + if (visit36_251_1(isPointerEvent(type))) { + _$jscoverage['/touch/handle.js'].lineData[252]++; self.updateTouch(event.originalEvent); } else { - _$jscoverage['/touch/handle.js'].lineData[244]++; - if (visit39_244_1(!isTouchEvent())) { - _$jscoverage['/touch/handle.js'].lineData[245]++; + _$jscoverage['/touch/handle.js'].lineData[253]++; + if (visit37_253_1(!isTouchEvent(type))) { + _$jscoverage['/touch/handle.js'].lineData[254]++; throw new Error('unrecognized touch event: ' + event.type); } } } - _$jscoverage['/touch/handle.js'].lineData[248]++; + _$jscoverage['/touch/handle.js'].lineData[257]++; self.callEventHandle('onTouchMove', event); }, onTouchEnd: function(event) { _$jscoverage['/touch/handle.js'].functionData[18]++; - _$jscoverage['/touch/handle.js'].lineData[252]++; + _$jscoverage['/touch/handle.js'].lineData[261]++; var self = this, type = event.type; - _$jscoverage['/touch/handle.js'].lineData[254]++; - if (visit40_254_1(isMouseEvent(type))) { - _$jscoverage['/touch/handle.js'].lineData[255]++; - if (visit41_255_1(self.isEventSimulatedFromTouch(event))) { - _$jscoverage['/touch/handle.js'].lineData[256]++; + _$jscoverage['/touch/handle.js'].lineData[263]++; + if (visit38_263_1(isMouseEvent(type))) { + _$jscoverage['/touch/handle.js'].lineData[264]++; + if (visit39_264_1(self.isEventSimulatedFromTouch(event))) { + _$jscoverage['/touch/handle.js'].lineData[265]++; return; } } - _$jscoverage['/touch/handle.js'].lineData[260]++; + _$jscoverage['/touch/handle.js'].lineData[269]++; self.callEventHandle('onTouchEnd', event); - _$jscoverage['/touch/handle.js'].lineData[261]++; - if (visit42_261_1(isTouchEvent(type))) { - _$jscoverage['/touch/handle.js'].lineData[262]++; + _$jscoverage['/touch/handle.js'].lineData[270]++; + if (visit40_270_1(isTouchEvent(type))) { + _$jscoverage['/touch/handle.js'].lineData[271]++; self.dupMouse(event); - _$jscoverage['/touch/handle.js'].lineData[263]++; + _$jscoverage['/touch/handle.js'].lineData[272]++; S.makeArray(event.changedTouches).forEach(function(touch) { _$jscoverage['/touch/handle.js'].functionData[19]++; - _$jscoverage['/touch/handle.js'].lineData[264]++; + _$jscoverage['/touch/handle.js'].lineData[273]++; self.removePrimaryTouch(touch); }); } else { - _$jscoverage['/touch/handle.js'].lineData[266]++; - if (visit43_266_1(isMouseEvent(type))) { - _$jscoverage['/touch/handle.js'].lineData[267]++; + _$jscoverage['/touch/handle.js'].lineData[275]++; + if (visit41_275_1(isMouseEvent(type))) { + _$jscoverage['/touch/handle.js'].lineData[276]++; self.touches = []; } else { - _$jscoverage['/touch/handle.js'].lineData[268]++; - if (visit44_268_1(isPointerEvent(type))) { - _$jscoverage['/touch/handle.js'].lineData[269]++; + _$jscoverage['/touch/handle.js'].lineData[277]++; + if (visit42_277_1(isPointerEvent(type))) { + _$jscoverage['/touch/handle.js'].lineData[278]++; self.removeTouch(event.originalEvent); - _$jscoverage['/touch/handle.js'].lineData[270]++; - if (visit45_270_1(!self.touches.length)) { - _$jscoverage['/touch/handle.js'].lineData[271]++; + _$jscoverage['/touch/handle.js'].lineData[279]++; + if (visit43_279_1(!self.touches.length)) { + _$jscoverage['/touch/handle.js'].lineData[280]++; DomEvent.detach(self.doc, gestureMoveEvent, self.onTouchMove, self); } } @@ -1140,50 +1172,50 @@ KISSY.add(function(S, require) { }, callEventHandle: function(method, event) { _$jscoverage['/touch/handle.js'].functionData[20]++; - _$jscoverage['/touch/handle.js'].lineData[277]++; + _$jscoverage['/touch/handle.js'].lineData[286]++; var self = this, eventHandle = self.eventHandle, e, h; - _$jscoverage['/touch/handle.js'].lineData[281]++; + _$jscoverage['/touch/handle.js'].lineData[290]++; event = self.normalize(event); - _$jscoverage['/touch/handle.js'].lineData[283]++; - if (visit46_283_1(!event.changedTouches.length)) { - _$jscoverage['/touch/handle.js'].lineData[284]++; + _$jscoverage['/touch/handle.js'].lineData[292]++; + if (visit44_292_1(!event.changedTouches.length)) { + _$jscoverage['/touch/handle.js'].lineData[293]++; return; } - _$jscoverage['/touch/handle.js'].lineData[286]++; + _$jscoverage['/touch/handle.js'].lineData[295]++; for (e in eventHandle) { - _$jscoverage['/touch/handle.js'].lineData[288]++; + _$jscoverage['/touch/handle.js'].lineData[297]++; h = eventHandle[e].handle; - _$jscoverage['/touch/handle.js'].lineData[289]++; - if (visit47_289_1(h.processed)) { - _$jscoverage['/touch/handle.js'].lineData[290]++; + _$jscoverage['/touch/handle.js'].lineData[298]++; + if (visit45_298_1(h.processed)) { + _$jscoverage['/touch/handle.js'].lineData[299]++; continue; } - _$jscoverage['/touch/handle.js'].lineData[292]++; + _$jscoverage['/touch/handle.js'].lineData[301]++; h.processed = 1; - _$jscoverage['/touch/handle.js'].lineData[294]++; - if (visit48_294_1(h.isActive && visit49_294_2(h[method] && visit50_294_3(h[method](event) === false)))) { - _$jscoverage['/touch/handle.js'].lineData[295]++; + _$jscoverage['/touch/handle.js'].lineData[303]++; + if (visit46_303_1(h.isActive && visit47_303_2(h[method] && visit48_303_3(h[method](event) === false)))) { + _$jscoverage['/touch/handle.js'].lineData[304]++; h.isActive = 0; } } - _$jscoverage['/touch/handle.js'].lineData[299]++; + _$jscoverage['/touch/handle.js'].lineData[308]++; for (e in eventHandle) { - _$jscoverage['/touch/handle.js'].lineData[300]++; + _$jscoverage['/touch/handle.js'].lineData[309]++; h = eventHandle[e].handle; - _$jscoverage['/touch/handle.js'].lineData[301]++; + _$jscoverage['/touch/handle.js'].lineData[310]++; h.processed = 0; } }, addEventHandle: function(event) { _$jscoverage['/touch/handle.js'].functionData[21]++; - _$jscoverage['/touch/handle.js'].lineData[306]++; + _$jscoverage['/touch/handle.js'].lineData[315]++; var self = this, eventHandle = self.eventHandle, handle = eventHandleMap[event].handle; - _$jscoverage['/touch/handle.js'].lineData[309]++; - if (visit51_309_1(eventHandle[event])) { - _$jscoverage['/touch/handle.js'].lineData[310]++; + _$jscoverage['/touch/handle.js'].lineData[318]++; + if (visit49_318_1(eventHandle[event])) { + _$jscoverage['/touch/handle.js'].lineData[319]++; eventHandle[event].count++; } else { - _$jscoverage['/touch/handle.js'].lineData[312]++; + _$jscoverage['/touch/handle.js'].lineData[321]++; eventHandle[event] = { count: 1, handle: handle}; @@ -1191,63 +1223,63 @@ KISSY.add(function(S, require) { }, 'removeEventHandle': function(event) { _$jscoverage['/touch/handle.js'].functionData[22]++; - _$jscoverage['/touch/handle.js'].lineData[320]++; + _$jscoverage['/touch/handle.js'].lineData[329]++; var eventHandle = this.eventHandle; - _$jscoverage['/touch/handle.js'].lineData[321]++; - if (visit52_321_1(eventHandle[event])) { - _$jscoverage['/touch/handle.js'].lineData[322]++; + _$jscoverage['/touch/handle.js'].lineData[330]++; + if (visit50_330_1(eventHandle[event])) { + _$jscoverage['/touch/handle.js'].lineData[331]++; eventHandle[event].count--; - _$jscoverage['/touch/handle.js'].lineData[323]++; - if (visit53_323_1(!eventHandle[event].count)) { - _$jscoverage['/touch/handle.js'].lineData[324]++; + _$jscoverage['/touch/handle.js'].lineData[332]++; + if (visit51_332_1(!eventHandle[event].count)) { + _$jscoverage['/touch/handle.js'].lineData[333]++; delete eventHandle[event]; } } }, destroy: function() { _$jscoverage['/touch/handle.js'].functionData[23]++; - _$jscoverage['/touch/handle.js'].lineData[330]++; + _$jscoverage['/touch/handle.js'].lineData[339]++; var self = this, doc = self.doc; - _$jscoverage['/touch/handle.js'].lineData[332]++; + _$jscoverage['/touch/handle.js'].lineData[341]++; DomEvent.detach(doc, gestureStartEvent, self.onTouchStart, self); - _$jscoverage['/touch/handle.js'].lineData[333]++; + _$jscoverage['/touch/handle.js'].lineData[342]++; DomEvent.detach(doc, gestureMoveEvent, self.onTouchMove, self); - _$jscoverage['/touch/handle.js'].lineData[334]++; + _$jscoverage['/touch/handle.js'].lineData[343]++; DomEvent.detach(doc, gestureEndEvent, self.onTouchEnd, self); }}; - _$jscoverage['/touch/handle.js'].lineData[338]++; + _$jscoverage['/touch/handle.js'].lineData[347]++; return { addDocumentHandle: function(el, event) { _$jscoverage['/touch/handle.js'].functionData[24]++; - _$jscoverage['/touch/handle.js'].lineData[340]++; + _$jscoverage['/touch/handle.js'].lineData[349]++; var doc = Dom.getDocument(el), handle = Dom.data(doc, key); - _$jscoverage['/touch/handle.js'].lineData[342]++; - if (visit54_342_1(!handle)) { - _$jscoverage['/touch/handle.js'].lineData[343]++; + _$jscoverage['/touch/handle.js'].lineData[351]++; + if (visit52_351_1(!handle)) { + _$jscoverage['/touch/handle.js'].lineData[352]++; Dom.data(doc, key, handle = new DocumentHandler(doc)); } - _$jscoverage['/touch/handle.js'].lineData[345]++; - if (visit55_345_1(event)) { - _$jscoverage['/touch/handle.js'].lineData[346]++; + _$jscoverage['/touch/handle.js'].lineData[354]++; + if (visit53_354_1(event)) { + _$jscoverage['/touch/handle.js'].lineData[355]++; handle.addEventHandle(event); } }, removeDocumentHandle: function(el, event) { _$jscoverage['/touch/handle.js'].functionData[25]++; - _$jscoverage['/touch/handle.js'].lineData[351]++; + _$jscoverage['/touch/handle.js'].lineData[360]++; var doc = Dom.getDocument(el), handle = Dom.data(doc, key); - _$jscoverage['/touch/handle.js'].lineData[353]++; - if (visit56_353_1(handle)) { - _$jscoverage['/touch/handle.js'].lineData[354]++; - if (visit57_354_1(event)) { - _$jscoverage['/touch/handle.js'].lineData[355]++; + _$jscoverage['/touch/handle.js'].lineData[362]++; + if (visit54_362_1(handle)) { + _$jscoverage['/touch/handle.js'].lineData[363]++; + if (visit55_363_1(event)) { + _$jscoverage['/touch/handle.js'].lineData[364]++; handle.removeEventHandle(event); } - _$jscoverage['/touch/handle.js'].lineData[357]++; - if (visit58_357_1(S.isEmptyObject(handle.eventHandle))) { - _$jscoverage['/touch/handle.js'].lineData[358]++; + _$jscoverage['/touch/handle.js'].lineData[366]++; + if (visit56_366_1(S.isEmptyObject(handle.eventHandle))) { + _$jscoverage['/touch/handle.js'].lineData[367]++; handle.destroy(); - _$jscoverage['/touch/handle.js'].lineData[359]++; + _$jscoverage['/touch/handle.js'].lineData[368]++; Dom.removeData(doc, key); } } diff --git a/src/event/sub-modules/dom/sub-modules/touch/coverage/src/touch/multi-touch.js b/src/event/sub-modules/dom/sub-modules/touch/coverage/src/touch/multi-touch.js index 9bcd7846a2..71ba002201 100644 --- a/src/event/sub-modules/dom/sub-modules/touch/coverage/src/touch/multi-touch.js +++ b/src/event/sub-modules/dom/sub-modules/touch/coverage/src/touch/multi-touch.js @@ -292,35 +292,35 @@ if (! _$jscoverage['/touch/multi-touch.js'].branchData) { _$jscoverage['/touch/multi-touch.js'].branchData['74'][1] = new BranchData(); } _$jscoverage['/touch/multi-touch.js'].branchData['74'][1].init(63, 14, 'self.isStarted'); -function visit66_74_1(result) { +function visit64_74_1(result) { _$jscoverage['/touch/multi-touch.js'].branchData['74'][1].ranCondition(result); return result; }_$jscoverage['/touch/multi-touch.js'].branchData['71'][1].init(251, 15, 'self.isTracking'); -function visit65_71_1(result) { +function visit63_71_1(result) { _$jscoverage['/touch/multi-touch.js'].branchData['71'][1].ranCondition(result); return result; }_$jscoverage['/touch/multi-touch.js'].branchData['56'][1].init(21, 20, 'Dom.contains(t2, t1)'); -function visit64_56_1(result) { +function visit62_56_1(result) { _$jscoverage['/touch/multi-touch.js'].branchData['56'][1].ranCondition(result); return result; }_$jscoverage['/touch/multi-touch.js'].branchData['51'][1].init(204, 20, 'Dom.contains(t1, t2)'); -function visit63_51_1(result) { +function visit61_51_1(result) { _$jscoverage['/touch/multi-touch.js'].branchData['51'][1].ranCondition(result); return result; }_$jscoverage['/touch/multi-touch.js'].branchData['48'][1].init(134, 9, 't1 === t2'); -function visit62_48_1(result) { +function visit60_48_1(result) { _$jscoverage['/touch/multi-touch.js'].branchData['48'][1].ranCondition(result); return result; }_$jscoverage['/touch/multi-touch.js'].branchData['36'][1].init(46, 16, '!self.isTracking'); -function visit61_36_1(result) { +function visit59_36_1(result) { _$jscoverage['/touch/multi-touch.js'].branchData['36'][1].ranCondition(result); return result; }_$jscoverage['/touch/multi-touch.js'].branchData['25'][1].init(301, 35, 'touchesCount > requiredTouchesCount'); -function visit60_25_1(result) { +function visit58_25_1(result) { _$jscoverage['/touch/multi-touch.js'].branchData['25'][1].ranCondition(result); return result; }_$jscoverage['/touch/multi-touch.js'].branchData['22'][1].init(194, 37, 'touchesCount === requiredTouchesCount'); -function visit59_22_1(result) { +function visit57_22_1(result) { _$jscoverage['/touch/multi-touch.js'].branchData['22'][1].ranCondition(result); return result; }_$jscoverage['/touch/multi-touch.js'].lineData[6]++; @@ -341,12 +341,12 @@ KISSY.add(function(S, require) { _$jscoverage['/touch/multi-touch.js'].lineData[18]++; var self = this, requiredTouchesCount = self.requiredTouchCount, touches = e.touches, touchesCount = touches.length; _$jscoverage['/touch/multi-touch.js'].lineData[22]++; - if (visit59_22_1(touchesCount === requiredTouchesCount)) { + if (visit57_22_1(touchesCount === requiredTouchesCount)) { _$jscoverage['/touch/multi-touch.js'].lineData[23]++; self.start(); } else { _$jscoverage['/touch/multi-touch.js'].lineData[25]++; - if (visit60_25_1(touchesCount > requiredTouchesCount)) { + if (visit58_25_1(touchesCount > requiredTouchesCount)) { _$jscoverage['/touch/multi-touch.js'].lineData[26]++; self.end(e); } @@ -362,7 +362,7 @@ KISSY.add(function(S, require) { _$jscoverage['/touch/multi-touch.js'].lineData[35]++; var self = this; _$jscoverage['/touch/multi-touch.js'].lineData[36]++; - if (visit61_36_1(!self.isTracking)) { + if (visit59_36_1(!self.isTracking)) { _$jscoverage['/touch/multi-touch.js'].lineData[37]++; self.isTracking = true; _$jscoverage['/touch/multi-touch.js'].lineData[38]++; @@ -375,19 +375,19 @@ KISSY.add(function(S, require) { _$jscoverage['/touch/multi-touch.js'].lineData[45]++; var touches = e.touches, t1 = touches[0].target, t2 = touches[1].target; _$jscoverage['/touch/multi-touch.js'].lineData[48]++; - if (visit62_48_1(t1 === t2)) { + if (visit60_48_1(t1 === t2)) { _$jscoverage['/touch/multi-touch.js'].lineData[49]++; return t1; } _$jscoverage['/touch/multi-touch.js'].lineData[51]++; - if (visit63_51_1(Dom.contains(t1, t2))) { + if (visit61_51_1(Dom.contains(t1, t2))) { _$jscoverage['/touch/multi-touch.js'].lineData[52]++; return t1; } _$jscoverage['/touch/multi-touch.js'].lineData[55]++; while (1) { _$jscoverage['/touch/multi-touch.js'].lineData[56]++; - if (visit64_56_1(Dom.contains(t2, t1))) { + if (visit62_56_1(Dom.contains(t2, t1))) { _$jscoverage['/touch/multi-touch.js'].lineData[57]++; return t2; } @@ -404,11 +404,11 @@ KISSY.add(function(S, require) { _$jscoverage['/touch/multi-touch.js'].lineData[66]++; var self = this; _$jscoverage['/touch/multi-touch.js'].lineData[71]++; - if (visit65_71_1(self.isTracking)) { + if (visit63_71_1(self.isTracking)) { _$jscoverage['/touch/multi-touch.js'].lineData[72]++; self.isTracking = false; _$jscoverage['/touch/multi-touch.js'].lineData[74]++; - if (visit66_74_1(self.isStarted)) { + if (visit64_74_1(self.isStarted)) { _$jscoverage['/touch/multi-touch.js'].lineData[75]++; self.isStarted = false; _$jscoverage['/touch/multi-touch.js'].lineData[76]++; diff --git a/src/event/sub-modules/dom/sub-modules/touch/coverage/src/touch/pinch.js b/src/event/sub-modules/dom/sub-modules/touch/coverage/src/touch/pinch.js index b9aac286e0..5de247afcf 100644 --- a/src/event/sub-modules/dom/sub-modules/touch/coverage/src/touch/pinch.js +++ b/src/event/sub-modules/dom/sub-modules/touch/coverage/src/touch/pinch.js @@ -261,7 +261,10 @@ if (! _$jscoverage['/touch/pinch.js']) { _$jscoverage['/touch/pinch.js'].lineData[77] = 0; _$jscoverage['/touch/pinch.js'].lineData[78] = 0; _$jscoverage['/touch/pinch.js'].lineData[82] = 0; + _$jscoverage['/touch/pinch.js'].lineData[85] = 0; + _$jscoverage['/touch/pinch.js'].lineData[86] = 0; _$jscoverage['/touch/pinch.js'].lineData[87] = 0; + _$jscoverage['/touch/pinch.js'].lineData[89] = 0; _$jscoverage['/touch/pinch.js'].lineData[90] = 0; _$jscoverage['/touch/pinch.js'].lineData[94] = 0; } @@ -293,49 +296,55 @@ if (! _$jscoverage['/touch/pinch.js'].branchData) { _$jscoverage['/touch/pinch.js'].branchData['43'][1] = new BranchData(); _$jscoverage['/touch/pinch.js'].branchData['77'] = []; _$jscoverage['/touch/pinch.js'].branchData['77'][1] = new BranchData(); + _$jscoverage['/touch/pinch.js'].branchData['85'] = []; + _$jscoverage['/touch/pinch.js'].branchData['85'][1] = new BranchData(); } -_$jscoverage['/touch/pinch.js'].branchData['77'][1].init(13, 22, 'e.touches.length === 2'); -function visit77_77_1(result) { +_$jscoverage['/touch/pinch.js'].branchData['85'][1].init(2130, 34, 'S.Features.isTouchEventSupported()'); +function visit76_85_1(result) { + _$jscoverage['/touch/pinch.js'].branchData['85'][1].ranCondition(result); + return result; +}_$jscoverage['/touch/pinch.js'].branchData['77'][1].init(13, 28, 'e.targetTouches.length === 2'); +function visit75_77_1(result) { _$jscoverage['/touch/pinch.js'].branchData['77'][1].ranCondition(result); return result; }_$jscoverage['/touch/pinch.js'].branchData['43'][1].init(463, 15, '!self.isStarted'); -function visit76_43_1(result) { +function visit74_43_1(result) { _$jscoverage['/touch/pinch.js'].branchData['43'][1].ranCondition(result); return result; }_$jscoverage['/touch/pinch.js'].branchData['35'][8].init(277, 20, 'touches[1].pageY > 0'); -function visit75_35_8(result) { +function visit73_35_8(result) { _$jscoverage['/touch/pinch.js'].branchData['35'][8].ranCondition(result); return result; }_$jscoverage['/touch/pinch.js'].branchData['35'][7].init(253, 20, 'touches[1].pageX > 0'); -function visit74_35_7(result) { +function visit72_35_7(result) { _$jscoverage['/touch/pinch.js'].branchData['35'][7].ranCondition(result); return result; }_$jscoverage['/touch/pinch.js'].branchData['35'][6].init(253, 44, 'touches[1].pageX > 0 && touches[1].pageY > 0'); -function visit73_35_6(result) { +function visit71_35_6(result) { _$jscoverage['/touch/pinch.js'].branchData['35'][6].ranCondition(result); return result; }_$jscoverage['/touch/pinch.js'].branchData['35'][5].init(229, 20, 'touches[0].pageY > 0'); -function visit72_35_5(result) { +function visit70_35_5(result) { _$jscoverage['/touch/pinch.js'].branchData['35'][5].ranCondition(result); return result; }_$jscoverage['/touch/pinch.js'].branchData['35'][4].init(229, 68, 'touches[0].pageY > 0 && touches[1].pageX > 0 && touches[1].pageY > 0'); -function visit71_35_4(result) { +function visit69_35_4(result) { _$jscoverage['/touch/pinch.js'].branchData['35'][4].ranCondition(result); return result; }_$jscoverage['/touch/pinch.js'].branchData['35'][3].init(205, 20, 'touches[0].pageX > 0'); -function visit70_35_3(result) { +function visit68_35_3(result) { _$jscoverage['/touch/pinch.js'].branchData['35'][3].ranCondition(result); return result; }_$jscoverage['/touch/pinch.js'].branchData['35'][2].init(205, 92, 'touches[0].pageX > 0 && touches[0].pageY > 0 && touches[1].pageX > 0 && touches[1].pageY > 0'); -function visit69_35_2(result) { +function visit67_35_2(result) { _$jscoverage['/touch/pinch.js'].branchData['35'][2].ranCondition(result); return result; }_$jscoverage['/touch/pinch.js'].branchData['35'][1].init(203, 95, '!(touches[0].pageX > 0 && touches[0].pageY > 0 && touches[1].pageX > 0 && touches[1].pageY > 0)'); -function visit68_35_1(result) { +function visit66_35_1(result) { _$jscoverage['/touch/pinch.js'].branchData['35'][1].ranCondition(result); return result; }_$jscoverage['/touch/pinch.js'].branchData['28'][1].init(47, 16, '!self.isTracking'); -function visit67_28_1(result) { +function visit65_28_1(result) { _$jscoverage['/touch/pinch.js'].branchData['28'][1].ranCondition(result); return result; }_$jscoverage['/touch/pinch.js'].lineData[6]++; @@ -368,14 +377,14 @@ KISSY.add(function(S, require) { _$jscoverage['/touch/pinch.js'].lineData[26]++; var self = this; _$jscoverage['/touch/pinch.js'].lineData[28]++; - if (visit67_28_1(!self.isTracking)) { + if (visit65_28_1(!self.isTracking)) { _$jscoverage['/touch/pinch.js'].lineData[29]++; return; } _$jscoverage['/touch/pinch.js'].lineData[32]++; var touches = e.touches; _$jscoverage['/touch/pinch.js'].lineData[35]++; - if (visit68_35_1(!(visit69_35_2(visit70_35_3(touches[0].pageX > 0) && visit71_35_4(visit72_35_5(touches[0].pageY > 0) && visit73_35_6(visit74_35_7(touches[1].pageX > 0) && visit75_35_8(touches[1].pageY > 0))))))) { + if (visit66_35_1(!(visit67_35_2(visit68_35_3(touches[0].pageX > 0) && visit69_35_4(visit70_35_5(touches[0].pageY > 0) && visit71_35_6(visit72_35_7(touches[1].pageX > 0) && visit73_35_8(touches[1].pageY > 0))))))) { _$jscoverage['/touch/pinch.js'].lineData[36]++; return; } @@ -384,7 +393,7 @@ KISSY.add(function(S, require) { _$jscoverage['/touch/pinch.js'].lineData[41]++; self.lastTouches = touches; _$jscoverage['/touch/pinch.js'].lineData[43]++; - if (visit76_43_1(!self.isStarted)) { + if (visit74_43_1(!self.isStarted)) { _$jscoverage['/touch/pinch.js'].lineData[44]++; self.isStarted = true; _$jscoverage['/touch/pinch.js'].lineData[45]++; @@ -419,24 +428,29 @@ KISSY.add(function(S, require) { function prevent(e) { _$jscoverage['/touch/pinch.js'].functionData[5]++; _$jscoverage['/touch/pinch.js'].lineData[77]++; - if (visit77_77_1(e.touches.length === 2)) { + if (visit75_77_1(e.targetTouches.length === 2)) { _$jscoverage['/touch/pinch.js'].lineData[78]++; e.preventDefault(); } } _$jscoverage['/touch/pinch.js'].lineData[82]++; - eventHandleMap[PINCH] = { - handle: p, - setup: function() { + var config = eventHandleMap[PINCH] = { + handle: p}; + _$jscoverage['/touch/pinch.js'].lineData[85]++; + if (visit76_85_1(S.Features.isTouchEventSupported())) { + _$jscoverage['/touch/pinch.js'].lineData[86]++; + config.setup = function() { _$jscoverage['/touch/pinch.js'].functionData[6]++; _$jscoverage['/touch/pinch.js'].lineData[87]++; - DomEvent.on(this, 'touchmove', prevent); -}, - tearDown: function() { + this.addEventListener('touchmove', prevent, false); +}; + _$jscoverage['/touch/pinch.js'].lineData[89]++; + config.tearDown = function() { _$jscoverage['/touch/pinch.js'].functionData[7]++; _$jscoverage['/touch/pinch.js'].lineData[90]++; - DomEvent.detach(this, 'touchmove', prevent); -}}; + this.removeEventListener('touchmove', prevent, false); +}; + } _$jscoverage['/touch/pinch.js'].lineData[94]++; return Pinch; }); diff --git a/src/event/sub-modules/dom/sub-modules/touch/coverage/src/touch/rotate.js b/src/event/sub-modules/dom/sub-modules/touch/coverage/src/touch/rotate.js index f617c11e4c..dd40b93fef 100644 --- a/src/event/sub-modules/dom/sub-modules/touch/coverage/src/touch/rotate.js +++ b/src/event/sub-modules/dom/sub-modules/touch/coverage/src/touch/rotate.js @@ -268,8 +268,11 @@ if (! _$jscoverage['/touch/rotate.js']) { _$jscoverage['/touch/rotate.js'].lineData[98] = 0; _$jscoverage['/touch/rotate.js'].lineData[103] = 0; _$jscoverage['/touch/rotate.js'].lineData[106] = 0; - _$jscoverage['/touch/rotate.js'].lineData[109] = 0; - _$jscoverage['/touch/rotate.js'].lineData[113] = 0; + _$jscoverage['/touch/rotate.js'].lineData[107] = 0; + _$jscoverage['/touch/rotate.js'].lineData[108] = 0; + _$jscoverage['/touch/rotate.js'].lineData[110] = 0; + _$jscoverage['/touch/rotate.js'].lineData[111] = 0; + _$jscoverage['/touch/rotate.js'].lineData[115] = 0; } if (! _$jscoverage['/touch/rotate.js'].functionData) { _$jscoverage['/touch/rotate.js'].functionData = []; @@ -296,29 +299,35 @@ if (! _$jscoverage['/touch/rotate.js'].branchData) { _$jscoverage['/touch/rotate.js'].branchData['54'][1] = new BranchData(); _$jscoverage['/touch/rotate.js'].branchData['91'] = []; _$jscoverage['/touch/rotate.js'].branchData['91'][1] = new BranchData(); + _$jscoverage['/touch/rotate.js'].branchData['106'] = []; + _$jscoverage['/touch/rotate.js'].branchData['106'][1] = new BranchData(); } -_$jscoverage['/touch/rotate.js'].branchData['91'][1].init(87, 22, 'e.touches.length === 2'); -function visit83_91_1(result) { +_$jscoverage['/touch/rotate.js'].branchData['106'][1].init(2851, 34, 'S.Features.isTouchEventSupported()'); +function visit83_106_1(result) { + _$jscoverage['/touch/rotate.js'].branchData['106'][1].ranCondition(result); + return result; +}_$jscoverage['/touch/rotate.js'].branchData['91'][1].init(87, 28, 'e.targetTouches.length === 2'); +function visit82_91_1(result) { _$jscoverage['/touch/rotate.js'].branchData['91'][1].ranCondition(result); return result; }_$jscoverage['/touch/rotate.js'].branchData['54'][1].init(1168, 15, '!self.isStarted'); -function visit82_54_1(result) { +function visit81_54_1(result) { _$jscoverage['/touch/rotate.js'].branchData['54'][1].ranCondition(result); return result; }_$jscoverage['/touch/rotate.js'].branchData['46'][1].init(542, 42, 'Math.abs(negativeAngle - lastAngle) < diff'); -function visit81_46_1(result) { +function visit80_46_1(result) { _$jscoverage['/touch/rotate.js'].branchData['46'][1].ranCondition(result); return result; }_$jscoverage['/touch/rotate.js'].branchData['42'][1].init(354, 42, 'Math.abs(positiveAngle - lastAngle) < diff'); -function visit80_42_1(result) { +function visit79_42_1(result) { _$jscoverage['/touch/rotate.js'].branchData['42'][1].ranCondition(result); return result; }_$jscoverage['/touch/rotate.js'].branchData['33'][1].init(386, 23, 'lastAngle !== undefined'); -function visit79_33_1(result) { +function visit78_33_1(result) { _$jscoverage['/touch/rotate.js'].branchData['33'][1].ranCondition(result); return result; }_$jscoverage['/touch/rotate.js'].branchData['22'][1].init(47, 16, '!self.isTracking'); -function visit78_22_1(result) { +function visit77_22_1(result) { _$jscoverage['/touch/rotate.js'].branchData['22'][1].ranCondition(result); return result; }_$jscoverage['/touch/rotate.js'].lineData[6]++; @@ -343,14 +352,14 @@ KISSY.add(function(S, require) { _$jscoverage['/touch/rotate.js'].lineData[20]++; var self = this; _$jscoverage['/touch/rotate.js'].lineData[22]++; - if (visit78_22_1(!self.isTracking)) { + if (visit77_22_1(!self.isTracking)) { _$jscoverage['/touch/rotate.js'].lineData[23]++; return; } _$jscoverage['/touch/rotate.js'].lineData[26]++; var touches = e.touches, one = touches[0], two = touches[1], lastAngle = self.lastAngle, angle = Math.atan2(two.pageY - one.pageY, two.pageX - one.pageX) * RAD_2_DEG; _$jscoverage['/touch/rotate.js'].lineData[33]++; - if (visit79_33_1(lastAngle !== undefined)) { + if (visit78_33_1(lastAngle !== undefined)) { _$jscoverage['/touch/rotate.js'].lineData[37]++; var diff = Math.abs(angle - lastAngle); _$jscoverage['/touch/rotate.js'].lineData[38]++; @@ -358,12 +367,12 @@ KISSY.add(function(S, require) { _$jscoverage['/touch/rotate.js'].lineData[39]++; var negativeAngle = (angle - 360) % 360; _$jscoverage['/touch/rotate.js'].lineData[42]++; - if (visit80_42_1(Math.abs(positiveAngle - lastAngle) < diff)) { + if (visit79_42_1(Math.abs(positiveAngle - lastAngle) < diff)) { _$jscoverage['/touch/rotate.js'].lineData[43]++; angle = positiveAngle; } else { _$jscoverage['/touch/rotate.js'].lineData[46]++; - if (visit81_46_1(Math.abs(negativeAngle - lastAngle) < diff)) { + if (visit80_46_1(Math.abs(negativeAngle - lastAngle) < diff)) { _$jscoverage['/touch/rotate.js'].lineData[47]++; angle = negativeAngle; } @@ -374,7 +383,7 @@ KISSY.add(function(S, require) { _$jscoverage['/touch/rotate.js'].lineData[52]++; self.lastAngle = angle; _$jscoverage['/touch/rotate.js'].lineData[54]++; - if (visit82_54_1(!self.isStarted)) { + if (visit81_54_1(!self.isStarted)) { _$jscoverage['/touch/rotate.js'].lineData[55]++; self.isStarted = true; _$jscoverage['/touch/rotate.js'].lineData[57]++; @@ -413,7 +422,7 @@ KISSY.add(function(S, require) { function prevent(e) { _$jscoverage['/touch/rotate.js'].functionData[5]++; _$jscoverage['/touch/rotate.js'].lineData[91]++; - if (visit83_91_1(e.touches.length === 2)) { + if (visit82_91_1(e.targetTouches.length === 2)) { _$jscoverage['/touch/rotate.js'].lineData[92]++; e.preventDefault(); } @@ -424,18 +433,23 @@ KISSY.add(function(S, require) { eventHandleMap[ROTATE_END] = eventHandleMap[ROTATE_START] = { handle: r}; _$jscoverage['/touch/rotate.js'].lineData[103]++; - eventHandleMap[ROTATE] = { - handle: r, - setup: function() { - _$jscoverage['/touch/rotate.js'].functionData[6]++; + var config = eventHandleMap[ROTATE] = { + handle: r}; _$jscoverage['/touch/rotate.js'].lineData[106]++; - DomEvent.on(this, 'touchmove', prevent); -}, - tearDown: function() { + if (visit83_106_1(S.Features.isTouchEventSupported())) { + _$jscoverage['/touch/rotate.js'].lineData[107]++; + config.setup = function() { + _$jscoverage['/touch/rotate.js'].functionData[6]++; + _$jscoverage['/touch/rotate.js'].lineData[108]++; + this.addEventListener('touchmove', prevent, false); +}; + _$jscoverage['/touch/rotate.js'].lineData[110]++; + config.tearDown = function() { _$jscoverage['/touch/rotate.js'].functionData[7]++; - _$jscoverage['/touch/rotate.js'].lineData[109]++; - DomEvent.detach(this, 'touchmove', prevent); -}}; - _$jscoverage['/touch/rotate.js'].lineData[113]++; + _$jscoverage['/touch/rotate.js'].lineData[111]++; + this.removeEventListener('touchmove', prevent, false); +}; + } + _$jscoverage['/touch/rotate.js'].lineData[115]++; return Rotate; }); diff --git a/src/event/sub-modules/dom/sub-modules/touch/coverage/src/touch/swipe.js b/src/event/sub-modules/dom/sub-modules/touch/coverage/src/touch/swipe.js index 6b6982b64a..5d9ee38fac 100644 --- a/src/event/sub-modules/dom/sub-modules/touch/coverage/src/touch/swipe.js +++ b/src/event/sub-modules/dom/sub-modules/touch/coverage/src/touch/swipe.js @@ -258,32 +258,32 @@ if (! _$jscoverage['/touch/swipe.js']) { _$jscoverage['/touch/swipe.js'].lineData[104] = 0; _$jscoverage['/touch/swipe.js'].lineData[107] = 0; _$jscoverage['/touch/swipe.js'].lineData[110] = 0; + _$jscoverage['/touch/swipe.js'].lineData[112] = 0; _$jscoverage['/touch/swipe.js'].lineData[113] = 0; _$jscoverage['/touch/swipe.js'].lineData[114] = 0; - _$jscoverage['/touch/swipe.js'].lineData[115] = 0; + _$jscoverage['/touch/swipe.js'].lineData[116] = 0; _$jscoverage['/touch/swipe.js'].lineData[117] = 0; - _$jscoverage['/touch/swipe.js'].lineData[118] = 0; + _$jscoverage['/touch/swipe.js'].lineData[119] = 0; _$jscoverage['/touch/swipe.js'].lineData[120] = 0; - _$jscoverage['/touch/swipe.js'].lineData[121] = 0; + _$jscoverage['/touch/swipe.js'].lineData[122] = 0; _$jscoverage['/touch/swipe.js'].lineData[123] = 0; - _$jscoverage['/touch/swipe.js'].lineData[124] = 0; + _$jscoverage['/touch/swipe.js'].lineData[125] = 0; _$jscoverage['/touch/swipe.js'].lineData[126] = 0; - _$jscoverage['/touch/swipe.js'].lineData[127] = 0; - _$jscoverage['/touch/swipe.js'].lineData[129] = 0; - _$jscoverage['/touch/swipe.js'].lineData[133] = 0; + _$jscoverage['/touch/swipe.js'].lineData[128] = 0; + _$jscoverage['/touch/swipe.js'].lineData[132] = 0; + _$jscoverage['/touch/swipe.js'].lineData[142] = 0; _$jscoverage['/touch/swipe.js'].lineData[143] = 0; - _$jscoverage['/touch/swipe.js'].lineData[144] = 0; + _$jscoverage['/touch/swipe.js'].lineData[146] = 0; _$jscoverage['/touch/swipe.js'].lineData[147] = 0; - _$jscoverage['/touch/swipe.js'].lineData[148] = 0; + _$jscoverage['/touch/swipe.js'].lineData[150] = 0; _$jscoverage['/touch/swipe.js'].lineData[151] = 0; - _$jscoverage['/touch/swipe.js'].lineData[152] = 0; - _$jscoverage['/touch/swipe.js'].lineData[155] = 0; + _$jscoverage['/touch/swipe.js'].lineData[154] = 0; + _$jscoverage['/touch/swipe.js'].lineData[158] = 0; _$jscoverage['/touch/swipe.js'].lineData[159] = 0; _$jscoverage['/touch/swipe.js'].lineData[160] = 0; - _$jscoverage['/touch/swipe.js'].lineData[161] = 0; - _$jscoverage['/touch/swipe.js'].lineData[163] = 0; - _$jscoverage['/touch/swipe.js'].lineData[168] = 0; - _$jscoverage['/touch/swipe.js'].lineData[172] = 0; + _$jscoverage['/touch/swipe.js'].lineData[162] = 0; + _$jscoverage['/touch/swipe.js'].lineData[167] = 0; + _$jscoverage['/touch/swipe.js'].lineData[171] = 0; } if (! _$jscoverage['/touch/swipe.js'].functionData) { _$jscoverage['/touch/swipe.js'].functionData = []; @@ -318,52 +318,52 @@ if (! _$jscoverage['/touch/swipe.js'].branchData) { _$jscoverage['/touch/swipe.js'].branchData['55'][1] = new BranchData(); _$jscoverage['/touch/swipe.js'].branchData['56'] = []; _$jscoverage['/touch/swipe.js'].branchData['56'][1] = new BranchData(); - _$jscoverage['/touch/swipe.js'].branchData['114'] = []; - _$jscoverage['/touch/swipe.js'].branchData['114'][1] = new BranchData(); - _$jscoverage['/touch/swipe.js'].branchData['126'] = []; - _$jscoverage['/touch/swipe.js'].branchData['126'][1] = new BranchData(); - _$jscoverage['/touch/swipe.js'].branchData['143'] = []; - _$jscoverage['/touch/swipe.js'].branchData['143'][1] = new BranchData(); - _$jscoverage['/touch/swipe.js'].branchData['147'] = []; - _$jscoverage['/touch/swipe.js'].branchData['147'][1] = new BranchData(); - _$jscoverage['/touch/swipe.js'].branchData['147'][2] = new BranchData(); - _$jscoverage['/touch/swipe.js'].branchData['151'] = []; - _$jscoverage['/touch/swipe.js'].branchData['151'][1] = new BranchData(); - _$jscoverage['/touch/swipe.js'].branchData['151'][2] = new BranchData(); - _$jscoverage['/touch/swipe.js'].branchData['160'] = []; - _$jscoverage['/touch/swipe.js'].branchData['160'][1] = new BranchData(); + _$jscoverage['/touch/swipe.js'].branchData['113'] = []; + _$jscoverage['/touch/swipe.js'].branchData['113'][1] = new BranchData(); + _$jscoverage['/touch/swipe.js'].branchData['125'] = []; + _$jscoverage['/touch/swipe.js'].branchData['125'][1] = new BranchData(); + _$jscoverage['/touch/swipe.js'].branchData['142'] = []; + _$jscoverage['/touch/swipe.js'].branchData['142'][1] = new BranchData(); + _$jscoverage['/touch/swipe.js'].branchData['146'] = []; + _$jscoverage['/touch/swipe.js'].branchData['146'][1] = new BranchData(); + _$jscoverage['/touch/swipe.js'].branchData['146'][2] = new BranchData(); + _$jscoverage['/touch/swipe.js'].branchData['150'] = []; + _$jscoverage['/touch/swipe.js'].branchData['150'][1] = new BranchData(); + _$jscoverage['/touch/swipe.js'].branchData['150'][2] = new BranchData(); + _$jscoverage['/touch/swipe.js'].branchData['159'] = []; + _$jscoverage['/touch/swipe.js'].branchData['159'][1] = new BranchData(); } -_$jscoverage['/touch/swipe.js'].branchData['160'][1].init(46, 29, 'self.onTouchMove(e) === false'); -function visit104_160_1(result) { - _$jscoverage['/touch/swipe.js'].branchData['160'][1].ranCondition(result); +_$jscoverage['/touch/swipe.js'].branchData['159'][1].init(46, 29, 'self.onTouchMove(e) === false'); +function visit104_159_1(result) { + _$jscoverage['/touch/swipe.js'].branchData['159'][1].ranCondition(result); return result; -}_$jscoverage['/touch/swipe.js'].branchData['151'][2].init(605, 22, 'absDeltaY > MAX_OFFSET'); -function visit103_151_2(result) { - _$jscoverage['/touch/swipe.js'].branchData['151'][2].ranCondition(result); +}_$jscoverage['/touch/swipe.js'].branchData['150'][2].init(605, 22, 'absDeltaY > MAX_OFFSET'); +function visit103_150_2(result) { + _$jscoverage['/touch/swipe.js'].branchData['150'][2].ranCondition(result); return result; -}_$jscoverage['/touch/swipe.js'].branchData['151'][1].init(584, 43, 'self.isHorizontal && absDeltaY > MAX_OFFSET'); -function visit102_151_1(result) { - _$jscoverage['/touch/swipe.js'].branchData['151'][1].ranCondition(result); +}_$jscoverage['/touch/swipe.js'].branchData['150'][1].init(584, 43, 'self.isHorizontal && absDeltaY > MAX_OFFSET'); +function visit102_150_1(result) { + _$jscoverage['/touch/swipe.js'].branchData['150'][1].ranCondition(result); return result; -}_$jscoverage['/touch/swipe.js'].branchData['147'][2].init(490, 22, 'absDeltaX > MAX_OFFSET'); -function visit101_147_2(result) { - _$jscoverage['/touch/swipe.js'].branchData['147'][2].ranCondition(result); +}_$jscoverage['/touch/swipe.js'].branchData['146'][2].init(490, 22, 'absDeltaX > MAX_OFFSET'); +function visit101_146_2(result) { + _$jscoverage['/touch/swipe.js'].branchData['146'][2].ranCondition(result); return result; -}_$jscoverage['/touch/swipe.js'].branchData['147'][1].init(471, 41, 'self.isVertical && absDeltaX > MAX_OFFSET'); -function visit100_147_1(result) { - _$jscoverage['/touch/swipe.js'].branchData['147'][1].ranCondition(result); +}_$jscoverage['/touch/swipe.js'].branchData['146'][1].init(471, 41, 'self.isVertical && absDeltaX > MAX_OFFSET'); +function visit100_146_1(result) { + _$jscoverage['/touch/swipe.js'].branchData['146'][1].ranCondition(result); return result; -}_$jscoverage['/touch/swipe.js'].branchData['143'][1].init(370, 36, 'time - self.startTime > MAX_DURATION'); -function visit99_143_1(result) { - _$jscoverage['/touch/swipe.js'].branchData['143'][1].ranCondition(result); +}_$jscoverage['/touch/swipe.js'].branchData['142'][1].init(370, 36, 'time - self.startTime > MAX_DURATION'); +function visit99_142_1(result) { + _$jscoverage['/touch/swipe.js'].branchData['142'][1].ranCondition(result); return result; -}_$jscoverage['/touch/swipe.js'].branchData['126'][1].init(401, 30, 'e.type.indexOf(\'mouse\') !== -1'); -function visit98_126_1(result) { - _$jscoverage['/touch/swipe.js'].branchData['126'][1].ranCondition(result); +}_$jscoverage['/touch/swipe.js'].branchData['125'][1].init(401, 44, 'e.type.toLowerCase().indexOf(\'mouse\') !== -1'); +function visit98_125_1(result) { + _$jscoverage['/touch/swipe.js'].branchData['125'][1].ranCondition(result); return result; -}_$jscoverage['/touch/swipe.js'].branchData['114'][1].init(46, 62, 'Swipe.superclass.onTouchStart.apply(self, arguments) === false'); -function visit97_114_1(result) { - _$jscoverage['/touch/swipe.js'].branchData['114'][1].ranCondition(result); +}_$jscoverage['/touch/swipe.js'].branchData['113'][1].init(46, 62, 'Swipe.superclass.onTouchStart.apply(self, arguments) === false'); +function visit97_113_1(result) { + _$jscoverage['/touch/swipe.js'].branchData['113'][1].ranCondition(result); return result; }_$jscoverage['/touch/swipe.js'].branchData['56'][1].init(25, 10, 'deltaY < 0'); function visit96_56_1(result) { @@ -498,70 +498,70 @@ KISSY.add(function(S, require) { S.extend(Swipe, SingleTouch, { onTouchStart: function(e) { _$jscoverage['/touch/swipe.js'].functionData[3]++; - _$jscoverage['/touch/swipe.js'].lineData[113]++; + _$jscoverage['/touch/swipe.js'].lineData[112]++; var self = this; - _$jscoverage['/touch/swipe.js'].lineData[114]++; - if (visit97_114_1(Swipe.superclass.onTouchStart.apply(self, arguments) === false)) { - _$jscoverage['/touch/swipe.js'].lineData[115]++; + _$jscoverage['/touch/swipe.js'].lineData[113]++; + if (visit97_113_1(Swipe.superclass.onTouchStart.apply(self, arguments) === false)) { + _$jscoverage['/touch/swipe.js'].lineData[114]++; return false; } - _$jscoverage['/touch/swipe.js'].lineData[117]++; + _$jscoverage['/touch/swipe.js'].lineData[116]++; var touch = e.touches[0]; - _$jscoverage['/touch/swipe.js'].lineData[118]++; + _$jscoverage['/touch/swipe.js'].lineData[117]++; self.startTime = e.timeStamp; - _$jscoverage['/touch/swipe.js'].lineData[120]++; + _$jscoverage['/touch/swipe.js'].lineData[119]++; self.isHorizontal = 1; - _$jscoverage['/touch/swipe.js'].lineData[121]++; + _$jscoverage['/touch/swipe.js'].lineData[120]++; self.isVertical = 1; - _$jscoverage['/touch/swipe.js'].lineData[123]++; + _$jscoverage['/touch/swipe.js'].lineData[122]++; self.startX = touch.pageX; - _$jscoverage['/touch/swipe.js'].lineData[124]++; + _$jscoverage['/touch/swipe.js'].lineData[123]++; this.startY = touch.pageY; - _$jscoverage['/touch/swipe.js'].lineData[126]++; - if (visit98_126_1(e.type.indexOf('mouse') !== -1)) { - _$jscoverage['/touch/swipe.js'].lineData[127]++; + _$jscoverage['/touch/swipe.js'].lineData[125]++; + if (visit98_125_1(e.type.toLowerCase().indexOf('mouse') !== -1)) { + _$jscoverage['/touch/swipe.js'].lineData[126]++; e.preventDefault(); } - _$jscoverage['/touch/swipe.js'].lineData[129]++; + _$jscoverage['/touch/swipe.js'].lineData[128]++; return undefined; }, onTouchMove: function(e) { _$jscoverage['/touch/swipe.js'].functionData[4]++; - _$jscoverage['/touch/swipe.js'].lineData[133]++; + _$jscoverage['/touch/swipe.js'].lineData[132]++; var self = this, touch = e.changedTouches[0], x = touch.pageX, y = touch.pageY, deltaX = x - self.startX, deltaY = y - self.startY, absDeltaX = Math.abs(deltaX), absDeltaY = Math.abs(deltaY), time = e.timeStamp; - _$jscoverage['/touch/swipe.js'].lineData[143]++; - if (visit99_143_1(time - self.startTime > MAX_DURATION)) { - _$jscoverage['/touch/swipe.js'].lineData[144]++; + _$jscoverage['/touch/swipe.js'].lineData[142]++; + if (visit99_142_1(time - self.startTime > MAX_DURATION)) { + _$jscoverage['/touch/swipe.js'].lineData[143]++; return false; } - _$jscoverage['/touch/swipe.js'].lineData[147]++; - if (visit100_147_1(self.isVertical && visit101_147_2(absDeltaX > MAX_OFFSET))) { - _$jscoverage['/touch/swipe.js'].lineData[148]++; + _$jscoverage['/touch/swipe.js'].lineData[146]++; + if (visit100_146_1(self.isVertical && visit101_146_2(absDeltaX > MAX_OFFSET))) { + _$jscoverage['/touch/swipe.js'].lineData[147]++; self.isVertical = 0; } - _$jscoverage['/touch/swipe.js'].lineData[151]++; - if (visit102_151_1(self.isHorizontal && visit103_151_2(absDeltaY > MAX_OFFSET))) { - _$jscoverage['/touch/swipe.js'].lineData[152]++; + _$jscoverage['/touch/swipe.js'].lineData[150]++; + if (visit102_150_1(self.isHorizontal && visit103_150_2(absDeltaY > MAX_OFFSET))) { + _$jscoverage['/touch/swipe.js'].lineData[151]++; self.isHorizontal = 0; } - _$jscoverage['/touch/swipe.js'].lineData[155]++; + _$jscoverage['/touch/swipe.js'].lineData[154]++; return fire(self, e, 1); }, onTouchEnd: function(e) { _$jscoverage['/touch/swipe.js'].functionData[5]++; - _$jscoverage['/touch/swipe.js'].lineData[159]++; + _$jscoverage['/touch/swipe.js'].lineData[158]++; var self = this; - _$jscoverage['/touch/swipe.js'].lineData[160]++; - if (visit104_160_1(self.onTouchMove(e) === false)) { - _$jscoverage['/touch/swipe.js'].lineData[161]++; + _$jscoverage['/touch/swipe.js'].lineData[159]++; + if (visit104_159_1(self.onTouchMove(e) === false)) { + _$jscoverage['/touch/swipe.js'].lineData[160]++; return false; } - _$jscoverage['/touch/swipe.js'].lineData[163]++; + _$jscoverage['/touch/swipe.js'].lineData[162]++; return fire(self, e, 0); }}); - _$jscoverage['/touch/swipe.js'].lineData[168]++; + _$jscoverage['/touch/swipe.js'].lineData[167]++; eventHandleMap[event] = eventHandleMap[ingEvent] = { handle: new Swipe()}; - _$jscoverage['/touch/swipe.js'].lineData[172]++; + _$jscoverage['/touch/swipe.js'].lineData[171]++; return Swipe; }); diff --git a/src/event/sub-modules/dom/sub-modules/touch/coverage/src/touch/tap.js b/src/event/sub-modules/dom/sub-modules/touch/coverage/src/touch/tap.js index 731fafe7d4..525d1b637c 100644 --- a/src/event/sub-modules/dom/sub-modules/touch/coverage/src/touch/tap.js +++ b/src/event/sub-modules/dom/sub-modules/touch/coverage/src/touch/tap.js @@ -234,27 +234,64 @@ if (! _$jscoverage['/touch/tap.js']) { _$jscoverage['/touch/tap.js'].lineData[8] = 0; _$jscoverage['/touch/tap.js'].lineData[9] = 0; _$jscoverage['/touch/tap.js'].lineData[11] = 0; - _$jscoverage['/touch/tap.js'].lineData[12] = 0; - _$jscoverage['/touch/tap.js'].lineData[15] = 0; - _$jscoverage['/touch/tap.js'].lineData[16] = 0; - _$jscoverage['/touch/tap.js'].lineData[17] = 0; - _$jscoverage['/touch/tap.js'].lineData[19] = 0; - _$jscoverage['/touch/tap.js'].lineData[20] = 0; - _$jscoverage['/touch/tap.js'].lineData[23] = 0; + _$jscoverage['/touch/tap.js'].lineData[21] = 0; + _$jscoverage['/touch/tap.js'].lineData[22] = 0; _$jscoverage['/touch/tap.js'].lineData[25] = 0; _$jscoverage['/touch/tap.js'].lineData[26] = 0; - _$jscoverage['/touch/tap.js'].lineData[30] = 0; + _$jscoverage['/touch/tap.js'].lineData[29] = 0; + _$jscoverage['/touch/tap.js'].lineData[31] = 0; + _$jscoverage['/touch/tap.js'].lineData[32] = 0; _$jscoverage['/touch/tap.js'].lineData[33] = 0; - _$jscoverage['/touch/tap.js'].lineData[35] = 0; - _$jscoverage['/touch/tap.js'].lineData[39] = 0; + _$jscoverage['/touch/tap.js'].lineData[37] = 0; + _$jscoverage['/touch/tap.js'].lineData[38] = 0; _$jscoverage['/touch/tap.js'].lineData[40] = 0; _$jscoverage['/touch/tap.js'].lineData[41] = 0; _$jscoverage['/touch/tap.js'].lineData[46] = 0; + _$jscoverage['/touch/tap.js'].lineData[47] = 0; + _$jscoverage['/touch/tap.js'].lineData[48] = 0; _$jscoverage['/touch/tap.js'].lineData[52] = 0; _$jscoverage['/touch/tap.js'].lineData[53] = 0; _$jscoverage['/touch/tap.js'].lineData[54] = 0; - _$jscoverage['/touch/tap.js'].lineData[62] = 0; + _$jscoverage['/touch/tap.js'].lineData[55] = 0; + _$jscoverage['/touch/tap.js'].lineData[58] = 0; + _$jscoverage['/touch/tap.js'].lineData[61] = 0; + _$jscoverage['/touch/tap.js'].lineData[63] = 0; + _$jscoverage['/touch/tap.js'].lineData[64] = 0; _$jscoverage['/touch/tap.js'].lineData[66] = 0; + _$jscoverage['/touch/tap.js'].lineData[70] = 0; + _$jscoverage['/touch/tap.js'].lineData[73] = 0; + _$jscoverage['/touch/tap.js'].lineData[75] = 0; + _$jscoverage['/touch/tap.js'].lineData[79] = 0; + _$jscoverage['/touch/tap.js'].lineData[81] = 0; + _$jscoverage['/touch/tap.js'].lineData[82] = 0; + _$jscoverage['/touch/tap.js'].lineData[84] = 0; + _$jscoverage['/touch/tap.js'].lineData[85] = 0; + _$jscoverage['/touch/tap.js'].lineData[88] = 0; + _$jscoverage['/touch/tap.js'].lineData[89] = 0; + _$jscoverage['/touch/tap.js'].lineData[90] = 0; + _$jscoverage['/touch/tap.js'].lineData[94] = 0; + _$jscoverage['/touch/tap.js'].lineData[96] = 0; + _$jscoverage['/touch/tap.js'].lineData[105] = 0; + _$jscoverage['/touch/tap.js'].lineData[106] = 0; + _$jscoverage['/touch/tap.js'].lineData[109] = 0; + _$jscoverage['/touch/tap.js'].lineData[110] = 0; + _$jscoverage['/touch/tap.js'].lineData[111] = 0; + _$jscoverage['/touch/tap.js'].lineData[113] = 0; + _$jscoverage['/touch/tap.js'].lineData[121] = 0; + _$jscoverage['/touch/tap.js'].lineData[124] = 0; + _$jscoverage['/touch/tap.js'].lineData[126] = 0; + _$jscoverage['/touch/tap.js'].lineData[128] = 0; + _$jscoverage['/touch/tap.js'].lineData[130] = 0; + _$jscoverage['/touch/tap.js'].lineData[132] = 0; + _$jscoverage['/touch/tap.js'].lineData[133] = 0; + _$jscoverage['/touch/tap.js'].lineData[140] = 0; + _$jscoverage['/touch/tap.js'].lineData[147] = 0; + _$jscoverage['/touch/tap.js'].lineData[148] = 0; + _$jscoverage['/touch/tap.js'].lineData[149] = 0; + _$jscoverage['/touch/tap.js'].lineData[159] = 0; + _$jscoverage['/touch/tap.js'].lineData[160] = 0; + _$jscoverage['/touch/tap.js'].lineData[172] = 0; + _$jscoverage['/touch/tap.js'].lineData[176] = 0; } if (! _$jscoverage['/touch/tap.js'].functionData) { _$jscoverage['/touch/tap.js'].functionData = []; @@ -263,38 +300,107 @@ if (! _$jscoverage['/touch/tap.js'].functionData) { _$jscoverage['/touch/tap.js'].functionData[2] = 0; _$jscoverage['/touch/tap.js'].functionData[3] = 0; _$jscoverage['/touch/tap.js'].functionData[4] = 0; + _$jscoverage['/touch/tap.js'].functionData[5] = 0; + _$jscoverage['/touch/tap.js'].functionData[6] = 0; + _$jscoverage['/touch/tap.js'].functionData[7] = 0; } if (! _$jscoverage['/touch/tap.js'].branchData) { _$jscoverage['/touch/tap.js'].branchData = {}; - _$jscoverage['/touch/tap.js'].branchData['30'] = []; - _$jscoverage['/touch/tap.js'].branchData['30'][1] = new BranchData(); - _$jscoverage['/touch/tap.js'].branchData['31'] = []; - _$jscoverage['/touch/tap.js'].branchData['31'][1] = new BranchData(); - _$jscoverage['/touch/tap.js'].branchData['31'][2] = new BranchData(); _$jscoverage['/touch/tap.js'].branchData['32'] = []; _$jscoverage['/touch/tap.js'].branchData['32'][1] = new BranchData(); + _$jscoverage['/touch/tap.js'].branchData['37'] = []; + _$jscoverage['/touch/tap.js'].branchData['37'][1] = new BranchData(); _$jscoverage['/touch/tap.js'].branchData['53'] = []; _$jscoverage['/touch/tap.js'].branchData['53'][1] = new BranchData(); + _$jscoverage['/touch/tap.js'].branchData['63'] = []; + _$jscoverage['/touch/tap.js'].branchData['63'][1] = new BranchData(); + _$jscoverage['/touch/tap.js'].branchData['70'] = []; + _$jscoverage['/touch/tap.js'].branchData['70'][1] = new BranchData(); + _$jscoverage['/touch/tap.js'].branchData['71'] = []; + _$jscoverage['/touch/tap.js'].branchData['71'][1] = new BranchData(); + _$jscoverage['/touch/tap.js'].branchData['71'][2] = new BranchData(); + _$jscoverage['/touch/tap.js'].branchData['72'] = []; + _$jscoverage['/touch/tap.js'].branchData['72'][1] = new BranchData(); + _$jscoverage['/touch/tap.js'].branchData['81'] = []; + _$jscoverage['/touch/tap.js'].branchData['81'][1] = new BranchData(); + _$jscoverage['/touch/tap.js'].branchData['88'] = []; + _$jscoverage['/touch/tap.js'].branchData['88'][1] = new BranchData(); + _$jscoverage['/touch/tap.js'].branchData['109'] = []; + _$jscoverage['/touch/tap.js'].branchData['109'][1] = new BranchData(); + _$jscoverage['/touch/tap.js'].branchData['110'] = []; + _$jscoverage['/touch/tap.js'].branchData['110'][1] = new BranchData(); + _$jscoverage['/touch/tap.js'].branchData['113'] = []; + _$jscoverage['/touch/tap.js'].branchData['113'][1] = new BranchData(); + _$jscoverage['/touch/tap.js'].branchData['126'] = []; + _$jscoverage['/touch/tap.js'].branchData['126'][1] = new BranchData(); + _$jscoverage['/touch/tap.js'].branchData['130'] = []; + _$jscoverage['/touch/tap.js'].branchData['130'][1] = new BranchData(); + _$jscoverage['/touch/tap.js'].branchData['148'] = []; + _$jscoverage['/touch/tap.js'].branchData['148'][1] = new BranchData(); } -_$jscoverage['/touch/tap.js'].branchData['53'][1].init(494, 32, 'eventObject.isDefaultPrevented()'); -function visit110_53_1(result) { - _$jscoverage['/touch/tap.js'].branchData['53'][1].ranCondition(result); +_$jscoverage['/touch/tap.js'].branchData['148'][1].init(2400, 27, 'duration > SINGLE_TAP_DELAY'); +function visit120_148_1(result) { + _$jscoverage['/touch/tap.js'].branchData['148'][1].ranCondition(result); return result; -}_$jscoverage['/touch/tap.js'].branchData['32'][1].init(82, 63, 'Math.abs(currentTouch.pageY - firstTouchXY.pageY) > sensitivity'); -function visit109_32_1(result) { - _$jscoverage['/touch/tap.js'].branchData['32'][1].ranCondition(result); +}_$jscoverage['/touch/tap.js'].branchData['130'][1].init(155, 27, 'duration < SINGLE_TAP_DELAY'); +function visit119_130_1(result) { + _$jscoverage['/touch/tap.js'].branchData['130'][1].ranCondition(result); + return result; +}_$jscoverage['/touch/tap.js'].branchData['126'][1].init(1551, 11, 'lastEndTime'); +function visit118_126_1(result) { + _$jscoverage['/touch/tap.js'].branchData['126'][1].ranCondition(result); + return result; +}_$jscoverage['/touch/tap.js'].branchData['113'][1].init(33, 30, 'target.ownerDocument || target'); +function visit117_113_1(result) { + _$jscoverage['/touch/tap.js'].branchData['113'][1].ranCondition(result); + return result; +}_$jscoverage['/touch/tap.js'].branchData['110'][1].init(21, 8, 'S.UA.ios'); +function visit116_110_1(result) { + _$jscoverage['/touch/tap.js'].branchData['110'][1].ranCondition(result); + return result; +}_$jscoverage['/touch/tap.js'].branchData['109'][1].init(957, 47, 'eventObject.isDefaultPrevented() && S.UA.mobile'); +function visit115_109_1(result) { + _$jscoverage['/touch/tap.js'].branchData['109'][1].ranCondition(result); + return result; +}_$jscoverage['/touch/tap.js'].branchData['88'][1].init(275, 17, 'self.tapHoldTimer'); +function visit114_88_1(result) { + _$jscoverage['/touch/tap.js'].branchData['88'][1].ranCondition(result); + return result; +}_$jscoverage['/touch/tap.js'].branchData['81'][1].init(83, 23, '!(lastXY = self.lastXY)'); +function visit113_81_1(result) { + _$jscoverage['/touch/tap.js'].branchData['81'][1].ranCondition(result); return result; -}_$jscoverage['/touch/tap.js'].branchData['31'][2].init(313, 63, 'Math.abs(currentTouch.pageX - firstTouchXY.pageX) > sensitivity'); -function visit108_31_2(result) { - _$jscoverage['/touch/tap.js'].branchData['31'][2].ranCondition(result); +}_$jscoverage['/touch/tap.js'].branchData['72'][1].init(87, 68, 'Math.abs(currentTouch.pageY - lastXY.pageY) > TOUCH_MOVE_SENSITIVITY'); +function visit112_72_1(result) { + _$jscoverage['/touch/tap.js'].branchData['72'][1].ranCondition(result); return result; -}_$jscoverage['/touch/tap.js'].branchData['31'][1].init(32, 146, 'Math.abs(currentTouch.pageX - firstTouchXY.pageX) > sensitivity || Math.abs(currentTouch.pageY - firstTouchXY.pageY) > sensitivity'); -function visit107_31_1(result) { - _$jscoverage['/touch/tap.js'].branchData['31'][1].ranCondition(result); +}_$jscoverage['/touch/tap.js'].branchData['71'][2].init(420, 68, 'Math.abs(currentTouch.pageX - lastXY.pageX) > TOUCH_MOVE_SENSITIVITY'); +function visit111_71_2(result) { + _$jscoverage['/touch/tap.js'].branchData['71'][2].ranCondition(result); return result; -}_$jscoverage['/touch/tap.js'].branchData['30'][1].init(278, 179, '!currentTouch || Math.abs(currentTouch.pageX - firstTouchXY.pageX) > sensitivity || Math.abs(currentTouch.pageY - firstTouchXY.pageY) > sensitivity'); -function visit106_30_1(result) { - _$jscoverage['/touch/tap.js'].branchData['30'][1].ranCondition(result); +}_$jscoverage['/touch/tap.js'].branchData['71'][1].init(32, 156, 'Math.abs(currentTouch.pageX - lastXY.pageX) > TOUCH_MOVE_SENSITIVITY || Math.abs(currentTouch.pageY - lastXY.pageY) > TOUCH_MOVE_SENSITIVITY'); +function visit110_71_1(result) { + _$jscoverage['/touch/tap.js'].branchData['71'][1].ranCondition(result); + return result; +}_$jscoverage['/touch/tap.js'].branchData['70'][1].init(385, 189, '!currentTouch || Math.abs(currentTouch.pageX - lastXY.pageX) > TOUCH_MOVE_SENSITIVITY || Math.abs(currentTouch.pageY - lastXY.pageY) > TOUCH_MOVE_SENSITIVITY'); +function visit109_70_1(result) { + _$jscoverage['/touch/tap.js'].branchData['70'][1].ranCondition(result); + return result; +}_$jscoverage['/touch/tap.js'].branchData['63'][1].init(70, 23, '!(lastXY = self.lastXY)'); +function visit108_63_1(result) { + _$jscoverage['/touch/tap.js'].branchData['63'][1].ranCondition(result); + return result; +}_$jscoverage['/touch/tap.js'].branchData['53'][1].init(805, 19, 'self.singleTapTimer'); +function visit107_53_1(result) { + _$jscoverage['/touch/tap.js'].branchData['53'][1].ranCondition(result); + return result; +}_$jscoverage['/touch/tap.js'].branchData['37'][1].init(185, 17, 'self.tapHoldTimer'); +function visit106_37_1(result) { + _$jscoverage['/touch/tap.js'].branchData['37'][1].ranCondition(result); + return result; +}_$jscoverage['/touch/tap.js'].branchData['32'][1].init(46, 51, 'Tap.superclass.onTouchStart.call(self, e) === false'); +function visit105_32_1(result) { + _$jscoverage['/touch/tap.js'].branchData['32'][1].ranCondition(result); return result; }_$jscoverage['/touch/tap.js'].lineData[6]++; KISSY.add(function(S, require) { @@ -306,69 +412,179 @@ KISSY.add(function(S, require) { _$jscoverage['/touch/tap.js'].lineData[9]++; var SingleTouch = require('./single-touch'); _$jscoverage['/touch/tap.js'].lineData[11]++; + var SINGLE_TAP_EVENT = 'singleTap', DOUBLE_TAP_EVENT = 'doubleTap', TAP_HOLD_EVENT = 'tapHold', TAP_EVENT = 'tap', TAP_HOLD_DELAY = 1000, SINGLE_TAP_DELAY = 300, TOUCH_MOVE_SENSITIVITY = 5, DomEventObject = DomEvent.Object; + _$jscoverage['/touch/tap.js'].lineData[21]++; function preventDefault(e) { _$jscoverage['/touch/tap.js'].functionData[1]++; - _$jscoverage['/touch/tap.js'].lineData[12]++; + _$jscoverage['/touch/tap.js'].lineData[22]++; e.preventDefault(); } - _$jscoverage['/touch/tap.js'].lineData[15]++; - var sensitivity = 5; - _$jscoverage['/touch/tap.js'].lineData[16]++; - var event = 'tap'; - _$jscoverage['/touch/tap.js'].lineData[17]++; - var DomEventObject = DomEvent.Object; - _$jscoverage['/touch/tap.js'].lineData[19]++; + _$jscoverage['/touch/tap.js'].lineData[25]++; function Tap() { _$jscoverage['/touch/tap.js'].functionData[2]++; - _$jscoverage['/touch/tap.js'].lineData[20]++; + _$jscoverage['/touch/tap.js'].lineData[26]++; Tap.superclass.constructor.apply(this, arguments); } - _$jscoverage['/touch/tap.js'].lineData[23]++; + _$jscoverage['/touch/tap.js'].lineData[29]++; S.extend(Tap, SingleTouch, { - onTouchMove: function(e) { + onTouchStart: function(e) { _$jscoverage['/touch/tap.js'].functionData[3]++; - _$jscoverage['/touch/tap.js'].lineData[25]++; - var firstTouchXY = this.lastXY; - _$jscoverage['/touch/tap.js'].lineData[26]++; - var currentTouch = e.changedTouches[0]; - _$jscoverage['/touch/tap.js'].lineData[30]++; - if (visit106_30_1(!currentTouch || visit107_31_1(visit108_31_2(Math.abs(currentTouch.pageX - firstTouchXY.pageX) > sensitivity) || visit109_32_1(Math.abs(currentTouch.pageY - firstTouchXY.pageY) > sensitivity)))) { + _$jscoverage['/touch/tap.js'].lineData[31]++; + var self = this; + _$jscoverage['/touch/tap.js'].lineData[32]++; + if (visit105_32_1(Tap.superclass.onTouchStart.call(self, e) === false)) { _$jscoverage['/touch/tap.js'].lineData[33]++; return false; } - _$jscoverage['/touch/tap.js'].lineData[35]++; - return undefined; -}, - onTouchEnd: function(e) { - _$jscoverage['/touch/tap.js'].functionData[4]++; - _$jscoverage['/touch/tap.js'].lineData[39]++; - var touch = e.changedTouches[0]; + _$jscoverage['/touch/tap.js'].lineData[37]++; + if (visit106_37_1(self.tapHoldTimer)) { + _$jscoverage['/touch/tap.js'].lineData[38]++; + clearTimeout(self.tapHoldTimer); + } _$jscoverage['/touch/tap.js'].lineData[40]++; - var target = e.target; + self.tapHoldTimer = setTimeout(function() { + _$jscoverage['/touch/tap.js'].functionData[4]++; _$jscoverage['/touch/tap.js'].lineData[41]++; - var eventObject = new DomEventObject({ - type: event, - target: target, - currentTarget: target}); - _$jscoverage['/touch/tap.js'].lineData[46]++; - S.mix(eventObject, { - pageX: touch.pageX, - pageY: touch.pageY, + var eventObj = S.mix({ + touch: e.touches[0], which: 1, - touch: touch}); + TAP_HOLD_DELAY: (S.now() - e.timeStamp) / 1000}, self.lastXY); + _$jscoverage['/touch/tap.js'].lineData[46]++; + self.tapHoldTimer = 0; + _$jscoverage['/touch/tap.js'].lineData[47]++; + self.lastXY = 0; + _$jscoverage['/touch/tap.js'].lineData[48]++; + DomEvent.fire(e.target, TAP_HOLD_EVENT, eventObj); +}, TAP_HOLD_DELAY); _$jscoverage['/touch/tap.js'].lineData[52]++; - DomEvent.fire(target, event, eventObject); + self.startTime = e.timeStamp; _$jscoverage['/touch/tap.js'].lineData[53]++; - if (visit110_53_1(eventObject.isDefaultPrevented())) { + if (visit107_53_1(self.singleTapTimer)) { _$jscoverage['/touch/tap.js'].lineData[54]++; - DomEvent.on(target, 'click', { + clearTimeout(self.singleTapTimer); + _$jscoverage['/touch/tap.js'].lineData[55]++; + self.singleTapTimer = 0; + } + _$jscoverage['/touch/tap.js'].lineData[58]++; + return undefined; +}, + onTouchMove: function(e) { + _$jscoverage['/touch/tap.js'].functionData[5]++; + _$jscoverage['/touch/tap.js'].lineData[61]++; + var self = this, lastXY; + _$jscoverage['/touch/tap.js'].lineData[63]++; + if (visit108_63_1(!(lastXY = self.lastXY))) { + _$jscoverage['/touch/tap.js'].lineData[64]++; + return false; + } + _$jscoverage['/touch/tap.js'].lineData[66]++; + var currentTouch = e.changedTouches[0]; + _$jscoverage['/touch/tap.js'].lineData[70]++; + if (visit109_70_1(!currentTouch || visit110_71_1(visit111_71_2(Math.abs(currentTouch.pageX - lastXY.pageX) > TOUCH_MOVE_SENSITIVITY) || visit112_72_1(Math.abs(currentTouch.pageY - lastXY.pageY) > TOUCH_MOVE_SENSITIVITY)))) { + _$jscoverage['/touch/tap.js'].lineData[73]++; + return false; + } + _$jscoverage['/touch/tap.js'].lineData[75]++; + return undefined; +}, + onTouchEnd: function(e) { + _$jscoverage['/touch/tap.js'].functionData[6]++; + _$jscoverage['/touch/tap.js'].lineData[79]++; + var self = this, lastXY; + _$jscoverage['/touch/tap.js'].lineData[81]++; + if (visit113_81_1(!(lastXY = self.lastXY))) { + _$jscoverage['/touch/tap.js'].lineData[82]++; + return; + } + _$jscoverage['/touch/tap.js'].lineData[84]++; + var target = e.target; + _$jscoverage['/touch/tap.js'].lineData[85]++; + var touch = e.changedTouches[0]; + _$jscoverage['/touch/tap.js'].lineData[88]++; + if (visit114_88_1(self.tapHoldTimer)) { + _$jscoverage['/touch/tap.js'].lineData[89]++; + clearTimeout(self.tapHoldTimer); + _$jscoverage['/touch/tap.js'].lineData[90]++; + self.tapHoldTimer = 0; + } + _$jscoverage['/touch/tap.js'].lineData[94]++; + var eventObject = new DomEventObject(e.originalEvent); + _$jscoverage['/touch/tap.js'].lineData[96]++; + S.mix(eventObject, { + type: TAP_EVENT, + which: 1, + pageX: lastXY.pageX, + pageY: lastXY.pageY, + target: target, + currentTarget: target}); + _$jscoverage['/touch/tap.js'].lineData[105]++; + eventObject.touch = touch; + _$jscoverage['/touch/tap.js'].lineData[106]++; + DomEvent.fire(target, TAP_EVENT, eventObject); + _$jscoverage['/touch/tap.js'].lineData[109]++; + if (visit115_109_1(eventObject.isDefaultPrevented() && S.UA.mobile)) { + _$jscoverage['/touch/tap.js'].lineData[110]++; + if (visit116_110_1(S.UA.ios)) { + _$jscoverage['/touch/tap.js'].lineData[111]++; + e.preventDefault(); + } else { + _$jscoverage['/touch/tap.js'].lineData[113]++; + DomEvent.on(visit117_113_1(target.ownerDocument || target), 'click', { fn: preventDefault, once: 1}); + } + } + _$jscoverage['/touch/tap.js'].lineData[121]++; + var lastEndTime = self.lastEndTime, time = e.timeStamp, duration; + _$jscoverage['/touch/tap.js'].lineData[124]++; + self.lastEndTime = time; + _$jscoverage['/touch/tap.js'].lineData[126]++; + if (visit118_126_1(lastEndTime)) { + _$jscoverage['/touch/tap.js'].lineData[128]++; + duration = time - lastEndTime; + _$jscoverage['/touch/tap.js'].lineData[130]++; + if (visit119_130_1(duration < SINGLE_TAP_DELAY)) { + _$jscoverage['/touch/tap.js'].lineData[132]++; + self.lastEndTime = 0; + _$jscoverage['/touch/tap.js'].lineData[133]++; + DomEvent.fire(target, DOUBLE_TAP_EVENT, { + touch: touch, + pageX: lastXY.pageX, + pageY: lastXY.pageY, + which: 1, + duration: duration / 1000}); + _$jscoverage['/touch/tap.js'].lineData[140]++; + return; + } + } + _$jscoverage['/touch/tap.js'].lineData[147]++; + duration = time - self.startTime; + _$jscoverage['/touch/tap.js'].lineData[148]++; + if (visit120_148_1(duration > SINGLE_TAP_DELAY)) { + _$jscoverage['/touch/tap.js'].lineData[149]++; + DomEvent.fire(target, SINGLE_TAP_EVENT, { + touch: touch, + pageX: lastXY.pageX, + pageY: lastXY.pageY, + which: 1, + duration: duration / 1000}); + } else { + _$jscoverage['/touch/tap.js'].lineData[159]++; + self.singleTapTimer = setTimeout(function() { + _$jscoverage['/touch/tap.js'].functionData[7]++; + _$jscoverage['/touch/tap.js'].lineData[160]++; + DomEvent.fire(target, SINGLE_TAP_EVENT, { + touch: touch, + pageX: lastXY.pageX, + pageY: lastXY.pageY, + which: 1, + duration: duration / 1000}); +}, SINGLE_TAP_DELAY); } }}); - _$jscoverage['/touch/tap.js'].lineData[62]++; - eventHandleMap[event] = { + _$jscoverage['/touch/tap.js'].lineData[172]++; + eventHandleMap[TAP_EVENT] = eventHandleMap[DOUBLE_TAP_EVENT] = eventHandleMap[SINGLE_TAP_EVENT] = eventHandleMap[TAP_HOLD_EVENT] = { handle: new Tap()}; - _$jscoverage['/touch/tap.js'].lineData[66]++; + _$jscoverage['/touch/tap.js'].lineData[176]++; return Tap; }); diff --git a/src/event/sub-modules/dom/sub-modules/touch/src/touch.js b/src/event/sub-modules/dom/sub-modules/touch/src/touch.js index 6c0cc5b9ef..950592446d 100644 --- a/src/event/sub-modules/dom/sub-modules/touch/src/touch.js +++ b/src/event/sub-modules/dom/sub-modules/touch/src/touch.js @@ -13,6 +13,7 @@ KISSY.add(function (S, require) { var moveEvent = Gesture.move = 'KSPointerMove'; var endEvent = Gesture.end = 'KSPointerUp'; Gesture.tap = 'tap'; + Gesture.singleTap = 'singleTap'; Gesture.doubleTap = 'doubleTap'; eventHandleMap[startEvent] = { @@ -26,7 +27,6 @@ KISSY.add(function (S, require) { }; eventHandleMap[moveEvent] = { - handle: { // always fire isActive: 1, diff --git a/src/event/sub-modules/dom/sub-modules/touch/src/touch/double-tap.js b/src/event/sub-modules/dom/sub-modules/touch/src/touch/double-tap.js deleted file mode 100644 index 60950a7659..0000000000 --- a/src/event/sub-modules/dom/sub-modules/touch/src/touch/double-tap.js +++ /dev/null @@ -1,94 +0,0 @@ -/** - * @ignore - * gesture single tap double tap - * @author yiminghe@gmail.com - */ -KISSY.add(function (S, require) { - var eventHandleMap = require('./handle-map'); - var DomEvent = require('event/dom/base'); - var SingleTouch = require('./single-touch'); - - var SINGLE_TAP = 'singleTap', - DOUBLE_TAP = 'doubleTap', - // same with native click delay - MAX_DURATION = 300; - - function DoubleTap() { - } - - S.extend(DoubleTap, SingleTouch, { - onTouchStart: function (e) { - var self = this; - if (DoubleTap.superclass.onTouchStart.apply(self, arguments) === false) { - return false; - } - self.startTime = e.timeStamp; - if (self.singleTapTimer) { - clearTimeout(self.singleTapTimer); - self.singleTapTimer = 0; - } - }, - - onTouchMove: function () { - return false; - }, - - onTouchEnd: function (e) { - var self = this, - lastEndTime = self.lastEndTime, - time = e.timeStamp, - target = e.target, - touch = e.changedTouches[0], - duration = time - self.startTime; - self.lastEndTime = time; - // second touch end - if (lastEndTime) { - // time between current up and last up - duration = time - lastEndTime; - // a double tap - if (duration < MAX_DURATION) { - // a new double tap cycle - self.lastEndTime = 0; - - DomEvent.fire(target, DOUBLE_TAP, { - touch: touch, - duration: duration / 1000 - }); - return; - } - // else treat as the first tap cycle - } - - // time between down and up is long enough - // then a singleTap - duration = time - self.startTime; - if (duration > MAX_DURATION) { - DomEvent.fire(target, SINGLE_TAP, { - touch: touch, - pageX: touch.pageX, - which: 1, - pageY: touch.pageY, - duration: duration / 1000 - }); - } else { - // buffer singleTap - // wait for a second tap - self.singleTapTimer = setTimeout(function () { - DomEvent.fire(target, SINGLE_TAP, { - touch: touch, - pageX: touch.pageX, - which: 1, - pageY: touch.pageY, - duration: duration / 1000 - }); - }, MAX_DURATION); - } - } - }); - - eventHandleMap[SINGLE_TAP] = eventHandleMap[DOUBLE_TAP] = { - handle: new DoubleTap() - }; - - return DoubleTap; -}); \ No newline at end of file diff --git a/src/event/sub-modules/dom/sub-modules/touch/src/touch/handle.js b/src/event/sub-modules/dom/sub-modules/touch/src/touch/handle.js index 17bbd40224..6f89b607cb 100644 --- a/src/event/sub-modules/dom/sub-modules/touch/src/touch/handle.js +++ b/src/event/sub-modules/dom/sub-modules/touch/src/touch/handle.js @@ -9,9 +9,7 @@ KISSY.add(function (S, require) { var DomEvent = require('event/dom/base'); require('./tap'); require('./swipe'); - require('./double-tap'); require('./pinch'); - require('./tap-hold'); require('./rotate'); var key = S.guid('touch-handle'), @@ -87,6 +85,7 @@ KISSY.add(function (S, require) { var self = this, doc = self.doc; DomEvent.on(doc, gestureStartEvent, self.onTouchStart, self); + // pointermove will be fired regardless of pointerdown if (!isPointerEvent(gestureMoveEvent)) { DomEvent.on(doc, gestureMoveEvent, self.onTouchMove, self); } @@ -180,20 +179,30 @@ KISSY.add(function (S, require) { normalize: function (e) { var type = e.type, notUp, + touchEvent, touchList; - if (isTouchEvent(type)) { + if ((touchEvent = isTouchEvent(type))) { touchList = (type === 'touchend' || type === 'touchcancel') ? e.changedTouches : e.touches; - if (touchList.length === 1) { - e.which = 1; - e.pageX = touchList[0].pageX; - e.pageY = touchList[0].pageY; - } - return e; + e.isTouch = 1; } else { + if (isPointerEvent(type)) { + var pointerType = e.originalEvent.pointerType; + if (pointerType === 'touch') { + e.isTouch = 1; + } + } touchList = this.touches; } + if (touchList && touchList.length === 1) { + e.which = 1; + e.pageX = touchList[0].pageX; + e.pageY = touchList[0].pageY; + } + if (touchEvent) { + return e; + } notUp = !type.match(/(up|cancel)$/i); e.touches = notUp ? touchList : []; e.targetTouches = notUp ? touchList : []; @@ -241,7 +250,7 @@ KISSY.add(function (S, require) { self.touches = [event.originalEvent]; } else if (isPointerEvent(type)) { self.updateTouch(event.originalEvent); - } else if (!isTouchEvent()) { + } else if (!isTouchEvent(type)) { throw new Error('unrecognized touch event: ' + event.type); } // no throttle! to allow preventDefault diff --git a/src/event/sub-modules/dom/sub-modules/touch/src/touch/pinch.js b/src/event/sub-modules/dom/sub-modules/touch/src/touch/pinch.js index 53a7882cd3..166e4be571 100644 --- a/src/event/sub-modules/dom/sub-modules/touch/src/touch/pinch.js +++ b/src/event/sub-modules/dom/sub-modules/touch/src/touch/pinch.js @@ -74,22 +74,22 @@ KISSY.add(function (S, require) { }; function prevent(e) { - if (e.touches.length === 2) { + if (e.targetTouches.length === 2) { e.preventDefault(); } } - eventHandleMap[PINCH] = { - handle: p, - setup: function () { - // need on this - // if on document, will affect other elements! - DomEvent.on(this, 'touchmove', prevent); - }, - tearDown: function () { - DomEvent.detach(this, 'touchmove', prevent); - } + var config = eventHandleMap[PINCH] = { + handle: p }; + if (S.Features.isTouchEventSupported()) { + config.setup = function () { + this.addEventListener('touchmove', prevent, false); + }; + config.tearDown = function () { + this.removeEventListener('touchmove', prevent, false); + }; + } return Pinch; }); \ No newline at end of file diff --git a/src/event/sub-modules/dom/sub-modules/touch/src/touch/rotate.js b/src/event/sub-modules/dom/sub-modules/touch/src/touch/rotate.js index cb5e54dc4b..3c7e27deae 100644 --- a/src/event/sub-modules/dom/sub-modules/touch/src/touch/rotate.js +++ b/src/event/sub-modules/dom/sub-modules/touch/src/touch/rotate.js @@ -88,7 +88,7 @@ KISSY.add(function (S, require) { function prevent(e) { // android can not throttle // need preventDefault always - if (e.touches.length === 2) { + if (e.targetTouches.length === 2) { e.preventDefault(); } } @@ -100,15 +100,17 @@ KISSY.add(function (S, require) { handle: r }; - eventHandleMap[ROTATE] = { - handle: r, - setup: function () { - DomEvent.on(this, 'touchmove', prevent); - }, - tearDown: function () { - DomEvent.detach(this, 'touchmove', prevent); - } + var config = eventHandleMap[ROTATE] = { + handle: r }; + if (S.Features.isTouchEventSupported()) { + config.setup = function () { + this.addEventListener('touchmove', prevent, false); + }; + config.tearDown = function () { + this.removeEventListener('touchmove', prevent, false); + }; + } return Rotate; }); \ No newline at end of file diff --git a/src/event/sub-modules/dom/sub-modules/touch/src/touch/swipe.js b/src/event/sub-modules/dom/sub-modules/touch/src/touch/swipe.js index 6df2af0cc0..3b56943d4f 100644 --- a/src/event/sub-modules/dom/sub-modules/touch/src/touch/swipe.js +++ b/src/event/sub-modules/dom/sub-modules/touch/src/touch/swipe.js @@ -108,7 +108,6 @@ KISSY.add(function (S, require) { } S.extend(Swipe, SingleTouch, { - onTouchStart: function (e) { var self = this; if (Swipe.superclass.onTouchStart.apply(self, arguments) === false) { @@ -123,7 +122,7 @@ KISSY.add(function (S, require) { self.startX = touch.pageX; this.startY = touch.pageY; - if (e.type.indexOf('mouse') !== -1) { + if (e.type.toLowerCase().indexOf('mouse') !== -1) { e.preventDefault(); } return undefined; diff --git a/src/event/sub-modules/dom/sub-modules/touch/src/touch/tap-hold.js b/src/event/sub-modules/dom/sub-modules/touch/src/touch/tap-hold.js deleted file mode 100644 index bd17b103f4..0000000000 --- a/src/event/sub-modules/dom/sub-modules/touch/src/touch/tap-hold.js +++ /dev/null @@ -1,53 +0,0 @@ -/** - * @ignore - * fired when tap and hold for more than 1s - * @author yiminghe@gmail.com - */ -KISSY.add(function (S, require) { - var eventHandleMap = require('./handle-map'); - var DomEvent = require('event/dom/base'); - var SingleTouch = require('./single-touch'); - - var event = 'tapHold'; - var duration = 1000; - - function TapHold() { - } - - S.extend(TapHold, SingleTouch, { - onTouchStart: function (e) { - var self = this; - if (TapHold.superclass.onTouchStart.call(self, e) === false) { - return false; - } - self.timer = setTimeout(function () { - var touch = e.touches[0]; - DomEvent.fire(e.target, event, { - touch: touch, - pageX: touch.pageX, - pageY: touch.pageY, - which: 1, - duration: (S.now() - e.timeStamp) / 1000 - }); - }, duration); - return undefined; - }, - - onTouchMove: function () { - clearTimeout(this.timer); - return false; - }, - - onTouchEnd: function () { - clearTimeout(this.timer); - } - }); - - // http://stackoverflow.com/questions/5995210/disabling-user-selection-in-uiwebview - // up to user to disable default action - eventHandleMap[event] = { - handle: new TapHold() - }; - - return TapHold; -}); \ No newline at end of file diff --git a/src/event/sub-modules/dom/sub-modules/touch/src/touch/tap.js b/src/event/sub-modules/dom/sub-modules/touch/src/touch/tap.js index 8fd59f061e..294da303b0 100644 --- a/src/event/sub-modules/dom/sub-modules/touch/src/touch/tap.js +++ b/src/event/sub-modules/dom/sub-modules/touch/src/touch/tap.js @@ -8,58 +8,168 @@ KISSY.add(function (S, require) { var DomEvent = require('event/dom/base'); var SingleTouch = require('./single-touch'); + var SINGLE_TAP_EVENT = 'singleTap', + DOUBLE_TAP_EVENT = 'doubleTap', + TAP_HOLD_EVENT = 'tapHold', + TAP_EVENT = 'tap', + TAP_HOLD_DELAY = 1000, + // same with native click delay + SINGLE_TAP_DELAY = 300, + TOUCH_MOVE_SENSITIVITY = 5, + DomEventObject = DomEvent.Object; + function preventDefault(e) { e.preventDefault(); } - var sensitivity = 5; - var event = 'tap'; - var DomEventObject = DomEvent.Object; - function Tap() { Tap.superclass.constructor.apply(this, arguments); } S.extend(Tap, SingleTouch, { + onTouchStart: function (e) { + var self = this; + if (Tap.superclass.onTouchStart.call(self, e) === false) { + return false; + } + + // tapHold + if (self.tapHoldTimer) { + clearTimeout(self.tapHoldTimer); + } + self.tapHoldTimer = setTimeout(function () { + var eventObj = S.mix({ + touch: e.touches[0], + which: 1, + TAP_HOLD_DELAY: (S.now() - e.timeStamp) / 1000 + }, self.lastXY); + self.tapHoldTimer = 0; + self.lastXY = 0; + DomEvent.fire(e.target, TAP_HOLD_EVENT, eventObj); + }, TAP_HOLD_DELAY); + + // doubleTap and singleTap + self.startTime = e.timeStamp; + if (self.singleTapTimer) { + clearTimeout(self.singleTapTimer); + self.singleTapTimer = 0; + } + + return undefined; + }, onTouchMove: function (e) { - var firstTouchXY = this.lastXY; + var self = this, + lastXY; + if (!(lastXY = self.lastXY)) { + return false; + } var currentTouch = e.changedTouches[0]; - // some sensitivity + // some TOUCH_MOVE_SENSITIVITY // android browser will trigger touchmove event finger is not moved ... // ie10 will has no touch when mouse if (!currentTouch || - Math.abs(currentTouch.pageX - firstTouchXY.pageX) > sensitivity || - Math.abs(currentTouch.pageY - firstTouchXY.pageY) > sensitivity) { + Math.abs(currentTouch.pageX - lastXY.pageX) > TOUCH_MOVE_SENSITIVITY || + Math.abs(currentTouch.pageY - lastXY.pageY) > TOUCH_MOVE_SENSITIVITY) { return false; } return undefined; }, onTouchEnd: function (e) { - var touch = e.changedTouches[0]; + var self = this, lastXY; + // tapHold fired + if (!(lastXY = self.lastXY)) { + return; + } var target = e.target; - var eventObject = new DomEventObject({ - type: event, - target: target, - currentTarget: target - }); + var touch = e.changedTouches[0]; + + // cancel tapHold + if (self.tapHoldTimer) { + clearTimeout(self.tapHoldTimer); + self.tapHoldTimer = 0; + } + + // fire tap + var eventObject = new DomEventObject(e.originalEvent); + S.mix(eventObject, { - pageX: touch.pageX, - pageY: touch.pageY, + type: TAP_EVENT, which: 1, - touch: touch + pageX: lastXY.pageX, + pageY: lastXY.pageY, + target: target, + currentTarget: target }); - DomEvent.fire(target, event, eventObject); - if (eventObject.isDefaultPrevented()) { - DomEvent.on(target, 'click', { - fn: preventDefault, - once: 1 + + eventObject.touch = touch; + DomEvent.fire(target, TAP_EVENT, eventObject); + + // call e.preventDefault on tap event to prevent tap penetration in real touch device + if (eventObject.isDefaultPrevented() && S.UA.mobile) { + if (S.UA.ios) { + e.preventDefault(); + } else { + DomEvent.on(target.ownerDocument || target, 'click', { + fn: preventDefault, + once: 1 + }); + } + } + + // fire singleTap or doubleTap + var lastEndTime = self.lastEndTime, + time = e.timeStamp, + duration; + self.lastEndTime = time; + // second touch end + if (lastEndTime) { + // time between current up and last up + duration = time - lastEndTime; + // a double tap + if (duration < SINGLE_TAP_DELAY) { + // a new double tap cycle + self.lastEndTime = 0; + DomEvent.fire(target, DOUBLE_TAP_EVENT, { + touch: touch, + pageX: lastXY.pageX, + pageY: lastXY.pageY, + which: 1, + duration: duration / 1000 + }); + return; + } + // else treat as the first tap cycle + } + + // time between down and up is long enough + // then a singleTap + duration = time - self.startTime; + if (duration > SINGLE_TAP_DELAY) { + DomEvent.fire(target, SINGLE_TAP_EVENT, { + touch: touch, + pageX: lastXY.pageX, + pageY: lastXY.pageY, + which: 1, + duration: duration / 1000 }); + } else { + // buffer singleTap + // wait for a second tap + self.singleTapTimer = setTimeout(function () { + DomEvent.fire(target, SINGLE_TAP_EVENT, { + touch: touch, + pageX: lastXY.pageX, + pageY: lastXY.pageY, + which: 1, + duration: duration / 1000 + }); + }, SINGLE_TAP_DELAY); } } }); - eventHandleMap[event] = { + eventHandleMap[TAP_EVENT] = eventHandleMap[DOUBLE_TAP_EVENT] = eventHandleMap[SINGLE_TAP_EVENT] = eventHandleMap[TAP_HOLD_EVENT] = { handle: new Tap() }; @@ -67,6 +177,10 @@ KISSY.add(function (S, require) { }); /** * @ignore + * yiminghe@gmail.com 2013-12-20 + * + * - tap 和 tapHold 互斥触发 + * * * yiminghe@gmail.com 2012-10-31 * diff --git a/src/event/sub-modules/dom/sub-modules/touch/tests/manual/double-tap.html b/src/event/sub-modules/dom/sub-modules/touch/tests/manual/double-tap.html index ad035f68e5..528189104e 100644 --- a/src/event/sub-modules/dom/sub-modules/touch/tests/manual/double-tap.html +++ b/src/event/sub-modules/dom/sub-modules/touch/tests/manual/double-tap.html @@ -25,7 +25,7 @@

    open in ios safari test doubleTap event

    + + \ No newline at end of file diff --git a/src/io/tests/others/test-script-xiami.html b/src/io/tests/others/test-script-xiami.html new file mode 100644 index 0000000000..5986c6fb44 --- /dev/null +++ b/src/io/tests/others/test-script-xiami.html @@ -0,0 +1,17 @@ + + + \ No newline at end of file diff --git a/src/io/tests/others/test-script.html b/src/io/tests/others/test-script.html index 0b906f19d5..29a8749a1f 100644 --- a/src/io/tests/others/test-script.html +++ b/src/io/tests/others/test-script.html @@ -3,7 +3,7 @@ + + + + diff --git a/src/menubutton/demo/other/pix-select.html b/src/menubutton/demo/other/pix-select.html index 1121664987..7dceeec565 100644 --- a/src/menubutton/demo/other/pix-select.html +++ b/src/menubutton/demo/other/pix-select.html @@ -69,7 +69,13 @@

    width: 280, menu: { align: { - points: ['tl', 'tl'], + // chrome win8 does not allow adjust when console is open + overflow:{ + //adjustY:0, + //adjustX:0 + }, + // chrome win8 tap can not allow menu overlap with menubutton + //points: ['tl', 'tl'], offset: [0, -1] }, width: 278, diff --git a/src/menubutton/demo/other/simple-select.html b/src/menubutton/demo/other/simple-select.html index f4090e82c3..1f89aadcfb 100644 --- a/src/menubutton/demo/other/simple-select.html +++ b/src/menubutton/demo/other/simple-select.html @@ -31,9 +31,9 @@ cursor: pointer; } - /*.ks-option-even {*/ - /*background:#d3d3d3;*/ - /*}*/ + /*.ks-option-even {*/ + /*background:#d3d3d3;*/ + /*}*/ + + +
    + + + + \ No newline at end of file diff --git a/src/overlay/tests/specs/overlay.js b/src/overlay/tests/specs/overlay.js index 207d2fa4ab..6f4993087a 100644 --- a/src/overlay/tests/specs/overlay.js +++ b/src/overlay/tests/specs/overlay.js @@ -17,7 +17,6 @@ KISSY.add(function (S, Event, UA, Node, Overlay, ResizePlugin) { describe("overlay", function () { describe("从页面中取得已渲染元素", function () { - var o; beforeEach(function () { @@ -54,7 +53,6 @@ KISSY.add(function (S, Event, UA, Node, Overlay, ResizePlugin) { }); it("对齐居中有效", function () { - o.set("align", { points: ['cc', 'cc'] }); @@ -102,7 +100,6 @@ KISSY.add(function (S, Event, UA, Node, Overlay, ResizePlugin) { expect(showCall).toBe(0); }); - it("应该能够设置坐标", function () { o.move(100, 150); @@ -113,11 +110,9 @@ KISSY.add(function (S, Event, UA, Node, Overlay, ResizePlugin) { expect(Math.ceil(parseFloat(o.get('el').css("top")))).toBeEqual(150); }); - }); describe("完全由 javascript 渲染弹层", function () { - var o = new Overlay({ width: 400, elCls: "popup", diff --git a/src/package.js b/src/package.js index 99f01290b3..882367a936 100644 --- a/src/package.js +++ b/src/package.js @@ -109,6 +109,10 @@ if (!loc.getQuery().has('build') && !loc.getQuery().has('min')) { "base": "/kissy/src/date/picker/src/picker", "ignorePackageNameInUri": 1 }, + "date/picker-xtpl": { + "base": "/kissy/src/date/picker-xtpl/src/picker-xtpl", + "ignorePackageNameInUri": 1 + }, "date/popup-picker": { "base": "/kissy/src/date/popup-picker/src/popup-picker", "ignorePackageNameInUri": 1 diff --git a/src/scroll-view/assets/dpl.css b/src/scroll-view/assets/dpl.css index b028f272ce..437193731a 100644 --- a/src/scroll-view/assets/dpl.css +++ b/src/scroll-view/assets/dpl.css @@ -7,7 +7,6 @@ -webkit-tap-highlight-color: rgba(0,0,0,0); -webkit-user-drag: none; -ms-touch-action:none; - -ms-user-select:none; } .ks-scroll-view-hidden{ diff --git a/src/scroll-view/assets/nice.css b/src/scroll-view/assets/nice.css index 3b197bc5ea..50554d7731 100644 --- a/src/scroll-view/assets/nice.css +++ b/src/scroll-view/assets/nice.css @@ -7,7 +7,6 @@ -webkit-tap-highlight-color: rgba(0,0,0,0); -webkit-user-drag: none; -ms-touch-action:none; - -ms-user-select:none; } .ks-scroll-view-hidden{ diff --git a/src/scroll-view/sub-modules/base/coverage/src/base.js b/src/scroll-view/sub-modules/base/coverage/src/base.js index acab367eb0..d954145290 100644 --- a/src/scroll-view/sub-modules/base/coverage/src/base.js +++ b/src/scroll-view/sub-modules/base/coverage/src/base.js @@ -234,130 +234,159 @@ if (! _$jscoverage['/base.js']) { _$jscoverage['/base.js'].lineData[8] = 0; _$jscoverage['/base.js'].lineData[9] = 0; _$jscoverage['/base.js'].lineData[10] = 0; - _$jscoverage['/base.js'].lineData[13] = 0; - _$jscoverage['/base.js'].lineData[17] = 0; - _$jscoverage['/base.js'].lineData[18] = 0; - _$jscoverage['/base.js'].lineData[22] = 0; + _$jscoverage['/base.js'].lineData[12] = 0; + _$jscoverage['/base.js'].lineData[15] = 0; + _$jscoverage['/base.js'].lineData[16] = 0; + _$jscoverage['/base.js'].lineData[20] = 0; + _$jscoverage['/base.js'].lineData[21] = 0; _$jscoverage['/base.js'].lineData[23] = 0; - _$jscoverage['/base.js'].lineData[25] = 0; + _$jscoverage['/base.js'].lineData[24] = 0; _$jscoverage['/base.js'].lineData[26] = 0; - _$jscoverage['/base.js'].lineData[28] = 0; - _$jscoverage['/base.js'].lineData[31] = 0; - _$jscoverage['/base.js'].lineData[32] = 0; - _$jscoverage['/base.js'].lineData[41] = 0; - _$jscoverage['/base.js'].lineData[43] = 0; - _$jscoverage['/base.js'].lineData[47] = 0; + _$jscoverage['/base.js'].lineData[29] = 0; + _$jscoverage['/base.js'].lineData[30] = 0; + _$jscoverage['/base.js'].lineData[33] = 0; + _$jscoverage['/base.js'].lineData[34] = 0; + _$jscoverage['/base.js'].lineData[42] = 0; + _$jscoverage['/base.js'].lineData[45] = 0; + _$jscoverage['/base.js'].lineData[49] = 0; + _$jscoverage['/base.js'].lineData[50] = 0; + _$jscoverage['/base.js'].lineData[51] = 0; _$jscoverage['/base.js'].lineData[52] = 0; + _$jscoverage['/base.js'].lineData[54] = 0; + _$jscoverage['/base.js'].lineData[56] = 0; _$jscoverage['/base.js'].lineData[57] = 0; - _$jscoverage['/base.js'].lineData[61] = 0; - _$jscoverage['/base.js'].lineData[65] = 0; - _$jscoverage['/base.js'].lineData[67] = 0; + _$jscoverage['/base.js'].lineData[59] = 0; + _$jscoverage['/base.js'].lineData[60] = 0; + _$jscoverage['/base.js'].lineData[63] = 0; + _$jscoverage['/base.js'].lineData[68] = 0; _$jscoverage['/base.js'].lineData[71] = 0; - _$jscoverage['/base.js'].lineData[72] = 0; - _$jscoverage['/base.js'].lineData[73] = 0; - _$jscoverage['/base.js'].lineData[74] = 0; - _$jscoverage['/base.js'].lineData[77] = 0; + _$jscoverage['/base.js'].lineData[76] = 0; _$jscoverage['/base.js'].lineData[78] = 0; - _$jscoverage['/base.js'].lineData[81] = 0; _$jscoverage['/base.js'].lineData[82] = 0; _$jscoverage['/base.js'].lineData[83] = 0; _$jscoverage['/base.js'].lineData[84] = 0; - _$jscoverage['/base.js'].lineData[85] = 0; - _$jscoverage['/base.js'].lineData[86] = 0; - _$jscoverage['/base.js'].lineData[87] = 0; - _$jscoverage['/base.js'].lineData[88] = 0; _$jscoverage['/base.js'].lineData[89] = 0; _$jscoverage['/base.js'].lineData[90] = 0; _$jscoverage['/base.js'].lineData[93] = 0; _$jscoverage['/base.js'].lineData[94] = 0; - _$jscoverage['/base.js'].lineData[95] = 0; - _$jscoverage['/base.js'].lineData[96] = 0; - _$jscoverage['/base.js'].lineData[97] = 0; - _$jscoverage['/base.js'].lineData[98] = 0; - _$jscoverage['/base.js'].lineData[99] = 0; - _$jscoverage['/base.js'].lineData[100] = 0; _$jscoverage['/base.js'].lineData[101] = 0; - _$jscoverage['/base.js'].lineData[104] = 0; + _$jscoverage['/base.js'].lineData[102] = 0; + _$jscoverage['/base.js'].lineData[103] = 0; _$jscoverage['/base.js'].lineData[108] = 0; - _$jscoverage['/base.js'].lineData[109] = 0; - _$jscoverage['/base.js'].lineData[110] = 0; - _$jscoverage['/base.js'].lineData[112] = 0; _$jscoverage['/base.js'].lineData[113] = 0; - _$jscoverage['/base.js'].lineData[114] = 0; - _$jscoverage['/base.js'].lineData[115] = 0; - _$jscoverage['/base.js'].lineData[119] = 0; - _$jscoverage['/base.js'].lineData[123] = 0; + _$jscoverage['/base.js'].lineData[122] = 0; _$jscoverage['/base.js'].lineData[124] = 0; - _$jscoverage['/base.js'].lineData[126] = 0; - _$jscoverage['/base.js'].lineData[135] = 0; - _$jscoverage['/base.js'].lineData[136] = 0; - _$jscoverage['/base.js'].lineData[137] = 0; - _$jscoverage['/base.js'].lineData[138] = 0; - _$jscoverage['/base.js'].lineData[139] = 0; + _$jscoverage['/base.js'].lineData[128] = 0; + _$jscoverage['/base.js'].lineData[133] = 0; _$jscoverage['/base.js'].lineData[140] = 0; - _$jscoverage['/base.js'].lineData[141] = 0; - _$jscoverage['/base.js'].lineData[145] = 0; - _$jscoverage['/base.js'].lineData[146] = 0; - _$jscoverage['/base.js'].lineData[147] = 0; + _$jscoverage['/base.js'].lineData[144] = 0; _$jscoverage['/base.js'].lineData[148] = 0; - _$jscoverage['/base.js'].lineData[149] = 0; _$jscoverage['/base.js'].lineData[150] = 0; - _$jscoverage['/base.js'].lineData[151] = 0; + _$jscoverage['/base.js'].lineData[154] = 0; + _$jscoverage['/base.js'].lineData[155] = 0; + _$jscoverage['/base.js'].lineData[156] = 0; _$jscoverage['/base.js'].lineData[157] = 0; + _$jscoverage['/base.js'].lineData[160] = 0; _$jscoverage['/base.js'].lineData[161] = 0; - _$jscoverage['/base.js'].lineData[162] = 0; - _$jscoverage['/base.js'].lineData[163] = 0; _$jscoverage['/base.js'].lineData[164] = 0; + _$jscoverage['/base.js'].lineData[165] = 0; _$jscoverage['/base.js'].lineData[166] = 0; + _$jscoverage['/base.js'].lineData[167] = 0; _$jscoverage['/base.js'].lineData[168] = 0; - _$jscoverage['/base.js'].lineData[175] = 0; + _$jscoverage['/base.js'].lineData[169] = 0; + _$jscoverage['/base.js'].lineData[170] = 0; + _$jscoverage['/base.js'].lineData[171] = 0; + _$jscoverage['/base.js'].lineData[172] = 0; + _$jscoverage['/base.js'].lineData[173] = 0; + _$jscoverage['/base.js'].lineData[176] = 0; + _$jscoverage['/base.js'].lineData[177] = 0; + _$jscoverage['/base.js'].lineData[178] = 0; _$jscoverage['/base.js'].lineData[179] = 0; _$jscoverage['/base.js'].lineData[180] = 0; _$jscoverage['/base.js'].lineData[181] = 0; _$jscoverage['/base.js'].lineData[182] = 0; _$jscoverage['/base.js'].lineData[183] = 0; - _$jscoverage['/base.js'].lineData[185] = 0; - _$jscoverage['/base.js'].lineData[186] = 0; + _$jscoverage['/base.js'].lineData[184] = 0; _$jscoverage['/base.js'].lineData[187] = 0; - _$jscoverage['/base.js'].lineData[188] = 0; - _$jscoverage['/base.js'].lineData[189] = 0; + _$jscoverage['/base.js'].lineData[191] = 0; + _$jscoverage['/base.js'].lineData[192] = 0; _$jscoverage['/base.js'].lineData[193] = 0; - _$jscoverage['/base.js'].lineData[194] = 0; _$jscoverage['/base.js'].lineData[195] = 0; _$jscoverage['/base.js'].lineData[196] = 0; - _$jscoverage['/base.js'].lineData[200] = 0; - _$jscoverage['/base.js'].lineData[204] = 0; + _$jscoverage['/base.js'].lineData[197] = 0; + _$jscoverage['/base.js'].lineData[198] = 0; + _$jscoverage['/base.js'].lineData[202] = 0; _$jscoverage['/base.js'].lineData[206] = 0; _$jscoverage['/base.js'].lineData[207] = 0; - _$jscoverage['/base.js'].lineData[208] = 0; - _$jscoverage['/base.js'].lineData[213] = 0; - _$jscoverage['/base.js'].lineData[214] = 0; - _$jscoverage['/base.js'].lineData[215] = 0; - _$jscoverage['/base.js'].lineData[216] = 0; - _$jscoverage['/base.js'].lineData[217] = 0; + _$jscoverage['/base.js'].lineData[209] = 0; + _$jscoverage['/base.js'].lineData[218] = 0; _$jscoverage['/base.js'].lineData[219] = 0; _$jscoverage['/base.js'].lineData[220] = 0; + _$jscoverage['/base.js'].lineData[221] = 0; _$jscoverage['/base.js'].lineData[222] = 0; - _$jscoverage['/base.js'].lineData[226] = 0; + _$jscoverage['/base.js'].lineData[223] = 0; + _$jscoverage['/base.js'].lineData[224] = 0; + _$jscoverage['/base.js'].lineData[228] = 0; _$jscoverage['/base.js'].lineData[229] = 0; _$jscoverage['/base.js'].lineData[230] = 0; + _$jscoverage['/base.js'].lineData[231] = 0; _$jscoverage['/base.js'].lineData[232] = 0; _$jscoverage['/base.js'].lineData[233] = 0; _$jscoverage['/base.js'].lineData[234] = 0; - _$jscoverage['/base.js'].lineData[236] = 0; - _$jscoverage['/base.js'].lineData[237] = 0; - _$jscoverage['/base.js'].lineData[238] = 0; _$jscoverage['/base.js'].lineData[240] = 0; _$jscoverage['/base.js'].lineData[241] = 0; _$jscoverage['/base.js'].lineData[242] = 0; _$jscoverage['/base.js'].lineData[243] = 0; - _$jscoverage['/base.js'].lineData[244] = 0; _$jscoverage['/base.js'].lineData[245] = 0; - _$jscoverage['/base.js'].lineData[246] = 0; - _$jscoverage['/base.js'].lineData[248] = 0; - _$jscoverage['/base.js'].lineData[249] = 0; - _$jscoverage['/base.js'].lineData[251] = 0; - _$jscoverage['/base.js'].lineData[252] = 0; + _$jscoverage['/base.js'].lineData[247] = 0; + _$jscoverage['/base.js'].lineData[254] = 0; + _$jscoverage['/base.js'].lineData[258] = 0; + _$jscoverage['/base.js'].lineData[259] = 0; + _$jscoverage['/base.js'].lineData[260] = 0; + _$jscoverage['/base.js'].lineData[261] = 0; + _$jscoverage['/base.js'].lineData[262] = 0; + _$jscoverage['/base.js'].lineData[264] = 0; + _$jscoverage['/base.js'].lineData[265] = 0; + _$jscoverage['/base.js'].lineData[266] = 0; + _$jscoverage['/base.js'].lineData[267] = 0; + _$jscoverage['/base.js'].lineData[268] = 0; + _$jscoverage['/base.js'].lineData[272] = 0; + _$jscoverage['/base.js'].lineData[273] = 0; + _$jscoverage['/base.js'].lineData[274] = 0; + _$jscoverage['/base.js'].lineData[275] = 0; + _$jscoverage['/base.js'].lineData[279] = 0; + _$jscoverage['/base.js'].lineData[283] = 0; + _$jscoverage['/base.js'].lineData[285] = 0; + _$jscoverage['/base.js'].lineData[286] = 0; + _$jscoverage['/base.js'].lineData[287] = 0; + _$jscoverage['/base.js'].lineData[292] = 0; + _$jscoverage['/base.js'].lineData[293] = 0; + _$jscoverage['/base.js'].lineData[294] = 0; + _$jscoverage['/base.js'].lineData[295] = 0; + _$jscoverage['/base.js'].lineData[296] = 0; + _$jscoverage['/base.js'].lineData[298] = 0; + _$jscoverage['/base.js'].lineData[299] = 0; + _$jscoverage['/base.js'].lineData[301] = 0; + _$jscoverage['/base.js'].lineData[305] = 0; + _$jscoverage['/base.js'].lineData[308] = 0; + _$jscoverage['/base.js'].lineData[309] = 0; + _$jscoverage['/base.js'].lineData[311] = 0; + _$jscoverage['/base.js'].lineData[312] = 0; + _$jscoverage['/base.js'].lineData[313] = 0; + _$jscoverage['/base.js'].lineData[315] = 0; + _$jscoverage['/base.js'].lineData[316] = 0; + _$jscoverage['/base.js'].lineData[317] = 0; + _$jscoverage['/base.js'].lineData[319] = 0; + _$jscoverage['/base.js'].lineData[320] = 0; + _$jscoverage['/base.js'].lineData[321] = 0; + _$jscoverage['/base.js'].lineData[322] = 0; + _$jscoverage['/base.js'].lineData[323] = 0; + _$jscoverage['/base.js'].lineData[324] = 0; + _$jscoverage['/base.js'].lineData[325] = 0; + _$jscoverage['/base.js'].lineData[327] = 0; + _$jscoverage['/base.js'].lineData[328] = 0; + _$jscoverage['/base.js'].lineData[330] = 0; + _$jscoverage['/base.js'].lineData[331] = 0; } if (! _$jscoverage['/base.js'].functionData) { _$jscoverage['/base.js'].functionData = []; @@ -378,298 +407,339 @@ if (! _$jscoverage['/base.js'].functionData) { _$jscoverage['/base.js'].functionData[14] = 0; _$jscoverage['/base.js'].functionData[15] = 0; _$jscoverage['/base.js'].functionData[16] = 0; + _$jscoverage['/base.js'].functionData[17] = 0; } if (! _$jscoverage['/base.js'].branchData) { _$jscoverage['/base.js'].branchData = {}; - _$jscoverage['/base.js'].branchData['22'] = []; - _$jscoverage['/base.js'].branchData['22'][1] = new BranchData(); - _$jscoverage['/base.js'].branchData['25'] = []; - _$jscoverage['/base.js'].branchData['25'][1] = new BranchData(); - _$jscoverage['/base.js'].branchData['61'] = []; - _$jscoverage['/base.js'].branchData['61'][1] = new BranchData(); - _$jscoverage['/base.js'].branchData['61'][2] = new BranchData(); - _$jscoverage['/base.js'].branchData['62'] = []; - _$jscoverage['/base.js'].branchData['62'][1] = new BranchData(); - _$jscoverage['/base.js'].branchData['62'][2] = new BranchData(); - _$jscoverage['/base.js'].branchData['63'] = []; - _$jscoverage['/base.js'].branchData['63'][1] = new BranchData(); - _$jscoverage['/base.js'].branchData['63'][2] = new BranchData(); - _$jscoverage['/base.js'].branchData['73'] = []; - _$jscoverage['/base.js'].branchData['73'][1] = new BranchData(); - _$jscoverage['/base.js'].branchData['77'] = []; - _$jscoverage['/base.js'].branchData['77'][1] = new BranchData(); + _$jscoverage['/base.js'].branchData['20'] = []; + _$jscoverage['/base.js'].branchData['20'][1] = new BranchData(); + _$jscoverage['/base.js'].branchData['23'] = []; + _$jscoverage['/base.js'].branchData['23'][1] = new BranchData(); + _$jscoverage['/base.js'].branchData['56'] = []; + _$jscoverage['/base.js'].branchData['56'][1] = new BranchData(); + _$jscoverage['/base.js'].branchData['59'] = []; + _$jscoverage['/base.js'].branchData['59'][1] = new BranchData(); _$jscoverage['/base.js'].branchData['82'] = []; _$jscoverage['/base.js'].branchData['82'][1] = new BranchData(); - _$jscoverage['/base.js'].branchData['85'] = []; - _$jscoverage['/base.js'].branchData['85'][1] = new BranchData(); - _$jscoverage['/base.js'].branchData['88'] = []; - _$jscoverage['/base.js'].branchData['88'][1] = new BranchData(); + _$jscoverage['/base.js'].branchData['84'] = []; + _$jscoverage['/base.js'].branchData['84'][1] = new BranchData(); _$jscoverage['/base.js'].branchData['93'] = []; _$jscoverage['/base.js'].branchData['93'][1] = new BranchData(); - _$jscoverage['/base.js'].branchData['96'] = []; - _$jscoverage['/base.js'].branchData['96'][1] = new BranchData(); - _$jscoverage['/base.js'].branchData['99'] = []; - _$jscoverage['/base.js'].branchData['99'][1] = new BranchData(); - _$jscoverage['/base.js'].branchData['109'] = []; - _$jscoverage['/base.js'].branchData['109'][1] = new BranchData(); - _$jscoverage['/base.js'].branchData['123'] = []; - _$jscoverage['/base.js'].branchData['123'][1] = new BranchData(); - _$jscoverage['/base.js'].branchData['135'] = []; - _$jscoverage['/base.js'].branchData['135'][1] = new BranchData(); - _$jscoverage['/base.js'].branchData['139'] = []; - _$jscoverage['/base.js'].branchData['139'][1] = new BranchData(); - _$jscoverage['/base.js'].branchData['139'][2] = new BranchData(); - _$jscoverage['/base.js'].branchData['139'][3] = new BranchData(); - _$jscoverage['/base.js'].branchData['139'][4] = new BranchData(); - _$jscoverage['/base.js'].branchData['139'][5] = new BranchData(); - _$jscoverage['/base.js'].branchData['139'][6] = new BranchData(); - _$jscoverage['/base.js'].branchData['139'][7] = new BranchData(); - _$jscoverage['/base.js'].branchData['139'][8] = new BranchData(); + _$jscoverage['/base.js'].branchData['93'][2] = new BranchData(); + _$jscoverage['/base.js'].branchData['93'][3] = new BranchData(); + _$jscoverage['/base.js'].branchData['101'] = []; + _$jscoverage['/base.js'].branchData['101'][1] = new BranchData(); + _$jscoverage['/base.js'].branchData['144'] = []; + _$jscoverage['/base.js'].branchData['144'][1] = new BranchData(); + _$jscoverage['/base.js'].branchData['144'][2] = new BranchData(); _$jscoverage['/base.js'].branchData['145'] = []; _$jscoverage['/base.js'].branchData['145'][1] = new BranchData(); - _$jscoverage['/base.js'].branchData['149'] = []; - _$jscoverage['/base.js'].branchData['149'][1] = new BranchData(); - _$jscoverage['/base.js'].branchData['149'][2] = new BranchData(); - _$jscoverage['/base.js'].branchData['149'][3] = new BranchData(); - _$jscoverage['/base.js'].branchData['149'][4] = new BranchData(); - _$jscoverage['/base.js'].branchData['149'][5] = new BranchData(); - _$jscoverage['/base.js'].branchData['149'][6] = new BranchData(); - _$jscoverage['/base.js'].branchData['149'][7] = new BranchData(); - _$jscoverage['/base.js'].branchData['149'][8] = new BranchData(); - _$jscoverage['/base.js'].branchData['157'] = []; - _$jscoverage['/base.js'].branchData['157'][1] = new BranchData(); - _$jscoverage['/base.js'].branchData['162'] = []; - _$jscoverage['/base.js'].branchData['162'][1] = new BranchData(); - _$jscoverage['/base.js'].branchData['185'] = []; - _$jscoverage['/base.js'].branchData['185'][1] = new BranchData(); - _$jscoverage['/base.js'].branchData['186'] = []; - _$jscoverage['/base.js'].branchData['186'][1] = new BranchData(); - _$jscoverage['/base.js'].branchData['188'] = []; - _$jscoverage['/base.js'].branchData['188'][1] = new BranchData(); - _$jscoverage['/base.js'].branchData['193'] = []; - _$jscoverage['/base.js'].branchData['193'][1] = new BranchData(); - _$jscoverage['/base.js'].branchData['195'] = []; - _$jscoverage['/base.js'].branchData['195'][1] = new BranchData(); + _$jscoverage['/base.js'].branchData['145'][2] = new BranchData(); + _$jscoverage['/base.js'].branchData['146'] = []; + _$jscoverage['/base.js'].branchData['146'][1] = new BranchData(); + _$jscoverage['/base.js'].branchData['146'][2] = new BranchData(); + _$jscoverage['/base.js'].branchData['156'] = []; + _$jscoverage['/base.js'].branchData['156'][1] = new BranchData(); + _$jscoverage['/base.js'].branchData['160'] = []; + _$jscoverage['/base.js'].branchData['160'][1] = new BranchData(); + _$jscoverage['/base.js'].branchData['165'] = []; + _$jscoverage['/base.js'].branchData['165'][1] = new BranchData(); + _$jscoverage['/base.js'].branchData['168'] = []; + _$jscoverage['/base.js'].branchData['168'][1] = new BranchData(); + _$jscoverage['/base.js'].branchData['171'] = []; + _$jscoverage['/base.js'].branchData['171'][1] = new BranchData(); + _$jscoverage['/base.js'].branchData['176'] = []; + _$jscoverage['/base.js'].branchData['176'][1] = new BranchData(); + _$jscoverage['/base.js'].branchData['179'] = []; + _$jscoverage['/base.js'].branchData['179'][1] = new BranchData(); + _$jscoverage['/base.js'].branchData['182'] = []; + _$jscoverage['/base.js'].branchData['182'][1] = new BranchData(); + _$jscoverage['/base.js'].branchData['192'] = []; + _$jscoverage['/base.js'].branchData['192'][1] = new BranchData(); _$jscoverage['/base.js'].branchData['206'] = []; _$jscoverage['/base.js'].branchData['206'][1] = new BranchData(); - _$jscoverage['/base.js'].branchData['216'] = []; - _$jscoverage['/base.js'].branchData['216'][1] = new BranchData(); - _$jscoverage['/base.js'].branchData['219'] = []; - _$jscoverage['/base.js'].branchData['219'][1] = new BranchData(); - _$jscoverage['/base.js'].branchData['229'] = []; - _$jscoverage['/base.js'].branchData['229'][1] = new BranchData(); + _$jscoverage['/base.js'].branchData['218'] = []; + _$jscoverage['/base.js'].branchData['218'][1] = new BranchData(); + _$jscoverage['/base.js'].branchData['222'] = []; + _$jscoverage['/base.js'].branchData['222'][1] = new BranchData(); + _$jscoverage['/base.js'].branchData['222'][2] = new BranchData(); + _$jscoverage['/base.js'].branchData['222'][3] = new BranchData(); + _$jscoverage['/base.js'].branchData['222'][4] = new BranchData(); + _$jscoverage['/base.js'].branchData['222'][5] = new BranchData(); + _$jscoverage['/base.js'].branchData['222'][6] = new BranchData(); + _$jscoverage['/base.js'].branchData['222'][7] = new BranchData(); + _$jscoverage['/base.js'].branchData['222'][8] = new BranchData(); + _$jscoverage['/base.js'].branchData['228'] = []; + _$jscoverage['/base.js'].branchData['228'][1] = new BranchData(); _$jscoverage['/base.js'].branchData['232'] = []; _$jscoverage['/base.js'].branchData['232'][1] = new BranchData(); - _$jscoverage['/base.js'].branchData['236'] = []; - _$jscoverage['/base.js'].branchData['236'][1] = new BranchData(); - _$jscoverage['/base.js'].branchData['248'] = []; - _$jscoverage['/base.js'].branchData['248'][1] = new BranchData(); - _$jscoverage['/base.js'].branchData['251'] = []; - _$jscoverage['/base.js'].branchData['251'][1] = new BranchData(); + _$jscoverage['/base.js'].branchData['232'][2] = new BranchData(); + _$jscoverage['/base.js'].branchData['232'][3] = new BranchData(); + _$jscoverage['/base.js'].branchData['232'][4] = new BranchData(); + _$jscoverage['/base.js'].branchData['232'][5] = new BranchData(); + _$jscoverage['/base.js'].branchData['232'][6] = new BranchData(); + _$jscoverage['/base.js'].branchData['232'][7] = new BranchData(); + _$jscoverage['/base.js'].branchData['232'][8] = new BranchData(); + _$jscoverage['/base.js'].branchData['241'] = []; + _$jscoverage['/base.js'].branchData['241'][1] = new BranchData(); + _$jscoverage['/base.js'].branchData['264'] = []; + _$jscoverage['/base.js'].branchData['264'][1] = new BranchData(); + _$jscoverage['/base.js'].branchData['265'] = []; + _$jscoverage['/base.js'].branchData['265'][1] = new BranchData(); + _$jscoverage['/base.js'].branchData['267'] = []; + _$jscoverage['/base.js'].branchData['267'][1] = new BranchData(); + _$jscoverage['/base.js'].branchData['272'] = []; + _$jscoverage['/base.js'].branchData['272'][1] = new BranchData(); + _$jscoverage['/base.js'].branchData['274'] = []; + _$jscoverage['/base.js'].branchData['274'][1] = new BranchData(); + _$jscoverage['/base.js'].branchData['285'] = []; + _$jscoverage['/base.js'].branchData['285'][1] = new BranchData(); + _$jscoverage['/base.js'].branchData['295'] = []; + _$jscoverage['/base.js'].branchData['295'][1] = new BranchData(); + _$jscoverage['/base.js'].branchData['298'] = []; + _$jscoverage['/base.js'].branchData['298'][1] = new BranchData(); + _$jscoverage['/base.js'].branchData['308'] = []; + _$jscoverage['/base.js'].branchData['308'][1] = new BranchData(); + _$jscoverage['/base.js'].branchData['311'] = []; + _$jscoverage['/base.js'].branchData['311'][1] = new BranchData(); + _$jscoverage['/base.js'].branchData['315'] = []; + _$jscoverage['/base.js'].branchData['315'][1] = new BranchData(); + _$jscoverage['/base.js'].branchData['327'] = []; + _$jscoverage['/base.js'].branchData['327'][1] = new BranchData(); + _$jscoverage['/base.js'].branchData['330'] = []; + _$jscoverage['/base.js'].branchData['330'][1] = new BranchData(); } -_$jscoverage['/base.js'].branchData['251'][1].init(131, 17, 'top !== undefined'); -function visit60_251_1(result) { - _$jscoverage['/base.js'].branchData['251'][1].ranCondition(result); +_$jscoverage['/base.js'].branchData['330'][1].init(131, 17, 'top !== undefined'); +function visit60_330_1(result) { + _$jscoverage['/base.js'].branchData['330'][1].ranCondition(result); return result; -}_$jscoverage['/base.js'].branchData['248'][1].init(21, 18, 'left !== undefined'); -function visit59_248_1(result) { - _$jscoverage['/base.js'].branchData['248'][1].ranCondition(result); +}_$jscoverage['/base.js'].branchData['327'][1].init(21, 18, 'left !== undefined'); +function visit59_327_1(result) { + _$jscoverage['/base.js'].branchData['327'][1].ranCondition(result); return result; -}_$jscoverage['/base.js'].branchData['236'][1].init(245, 17, 'top !== undefined'); -function visit58_236_1(result) { - _$jscoverage['/base.js'].branchData['236'][1].ranCondition(result); +}_$jscoverage['/base.js'].branchData['315'][1].init(245, 17, 'top !== undefined'); +function visit58_315_1(result) { + _$jscoverage['/base.js'].branchData['315'][1].ranCondition(result); return result; -}_$jscoverage['/base.js'].branchData['232'][1].init(81, 18, 'left !== undefined'); -function visit57_232_1(result) { - _$jscoverage['/base.js'].branchData['232'][1].ranCondition(result); +}_$jscoverage['/base.js'].branchData['311'][1].init(81, 18, 'left !== undefined'); +function visit57_311_1(result) { + _$jscoverage['/base.js'].branchData['311'][1].ranCondition(result); return result; -}_$jscoverage['/base.js'].branchData['229'][1].init(110, 7, 'animCfg'); -function visit56_229_1(result) { - _$jscoverage['/base.js'].branchData['229'][1].ranCondition(result); +}_$jscoverage['/base.js'].branchData['308'][1].init(110, 7, 'animCfg'); +function visit56_308_1(result) { + _$jscoverage['/base.js'].branchData['308'][1].ranCondition(result); return result; -}_$jscoverage['/base.js'].branchData['219'][1].init(265, 7, 'cfg.top'); -function visit55_219_1(result) { - _$jscoverage['/base.js'].branchData['219'][1].ranCondition(result); +}_$jscoverage['/base.js'].branchData['298'][1].init(265, 7, 'cfg.top'); +function visit55_298_1(result) { + _$jscoverage['/base.js'].branchData['298'][1].ranCondition(result); return result; -}_$jscoverage['/base.js'].branchData['216'][1].init(134, 8, 'cfg.left'); -function visit54_216_1(result) { - _$jscoverage['/base.js'].branchData['216'][1].ranCondition(result); +}_$jscoverage['/base.js'].branchData['295'][1].init(134, 8, 'cfg.left'); +function visit54_295_1(result) { + _$jscoverage['/base.js'].branchData['295'][1].ranCondition(result); return result; -}_$jscoverage['/base.js'].branchData['206'][1].init(75, 51, '(pageOffset = self.pagesOffset) && pageOffset[index]'); -function visit53_206_1(result) { - _$jscoverage['/base.js'].branchData['206'][1].ranCondition(result); +}_$jscoverage['/base.js'].branchData['285'][1].init(75, 51, '(pageOffset = self.pagesOffset) && pageOffset[index]'); +function visit53_285_1(result) { + _$jscoverage['/base.js'].branchData['285'][1].ranCondition(result); return result; -}_$jscoverage['/base.js'].branchData['195'][1].init(70, 15, 'offset[p2] <= v'); -function visit52_195_1(result) { - _$jscoverage['/base.js'].branchData['195'][1].ranCondition(result); +}_$jscoverage['/base.js'].branchData['274'][1].init(70, 15, 'offset[p2] <= v'); +function visit52_274_1(result) { + _$jscoverage['/base.js'].branchData['274'][1].ranCondition(result); return result; -}_$jscoverage['/base.js'].branchData['193'][1].init(50, 6, 'i >= 0'); -function visit51_193_1(result) { - _$jscoverage['/base.js'].branchData['193'][1].ranCondition(result); +}_$jscoverage['/base.js'].branchData['272'][1].init(50, 6, 'i >= 0'); +function visit51_272_1(result) { + _$jscoverage['/base.js'].branchData['272'][1].ranCondition(result); return result; -}_$jscoverage['/base.js'].branchData['188'][1].init(70, 15, 'offset[p2] >= v'); -function visit50_188_1(result) { - _$jscoverage['/base.js'].branchData['188'][1].ranCondition(result); +}_$jscoverage['/base.js'].branchData['267'][1].init(70, 15, 'offset[p2] >= v'); +function visit50_267_1(result) { + _$jscoverage['/base.js'].branchData['267'][1].ranCondition(result); return result; -}_$jscoverage['/base.js'].branchData['186'][1].init(29, 22, 'i < pagesOffset.length'); -function visit49_186_1(result) { - _$jscoverage['/base.js'].branchData['186'][1].ranCondition(result); +}_$jscoverage['/base.js'].branchData['265'][1].init(29, 22, 'i < pagesOffset.length'); +function visit49_265_1(result) { + _$jscoverage['/base.js'].branchData['265'][1].ranCondition(result); return result; -}_$jscoverage['/base.js'].branchData['185'][1].init(254, 13, 'direction > 0'); -function visit48_185_1(result) { - _$jscoverage['/base.js'].branchData['185'][1].ranCondition(result); +}_$jscoverage['/base.js'].branchData['264'][1].init(254, 13, 'direction > 0'); +function visit48_264_1(result) { + _$jscoverage['/base.js'].branchData['264'][1].ranCondition(result); return result; -}_$jscoverage['/base.js'].branchData['162'][1].init(46, 23, 'self.scrollAnims.length'); -function visit47_162_1(result) { - _$jscoverage['/base.js'].branchData['162'][1].ranCondition(result); +}_$jscoverage['/base.js'].branchData['241'][1].init(46, 23, 'self.scrollAnims.length'); +function visit47_241_1(result) { + _$jscoverage['/base.js'].branchData['241'][1].ranCondition(result); return result; -}_$jscoverage['/base.js'].branchData['157'][1].init(37, 12, 'axis === \'x\''); -function visit46_157_1(result) { - _$jscoverage['/base.js'].branchData['157'][1].ranCondition(result); +}_$jscoverage['/base.js'].branchData['232'][8].init(212, 10, 'deltaX < 0'); +function visit46_232_8(result) { + _$jscoverage['/base.js'].branchData['232'][8].ranCondition(result); return result; -}_$jscoverage['/base.js'].branchData['149'][8].init(212, 10, 'deltaX < 0'); -function visit45_149_8(result) { - _$jscoverage['/base.js'].branchData['149'][8].ranCondition(result); +}_$jscoverage['/base.js'].branchData['232'][7].init(191, 17, 'scrollLeft >= max'); +function visit45_232_7(result) { + _$jscoverage['/base.js'].branchData['232'][7].ranCondition(result); return result; -}_$jscoverage['/base.js'].branchData['149'][7].init(191, 17, 'scrollLeft >= max'); -function visit44_149_7(result) { - _$jscoverage['/base.js'].branchData['149'][7].ranCondition(result); +}_$jscoverage['/base.js'].branchData['232'][6].init(191, 31, 'scrollLeft >= max && deltaX < 0'); +function visit44_232_6(result) { + _$jscoverage['/base.js'].branchData['232'][6].ranCondition(result); return result; -}_$jscoverage['/base.js'].branchData['149'][6].init(191, 31, 'scrollLeft >= max && deltaX < 0'); -function visit43_149_6(result) { - _$jscoverage['/base.js'].branchData['149'][6].ranCondition(result); +}_$jscoverage['/base.js'].branchData['232'][5].init(177, 10, 'deltaX > 0'); +function visit43_232_5(result) { + _$jscoverage['/base.js'].branchData['232'][5].ranCondition(result); return result; -}_$jscoverage['/base.js'].branchData['149'][5].init(177, 10, 'deltaX > 0'); -function visit42_149_5(result) { - _$jscoverage['/base.js'].branchData['149'][5].ranCondition(result); +}_$jscoverage['/base.js'].branchData['232'][4].init(156, 17, 'scrollLeft <= min'); +function visit42_232_4(result) { + _$jscoverage['/base.js'].branchData['232'][4].ranCondition(result); return result; -}_$jscoverage['/base.js'].branchData['149'][4].init(156, 17, 'scrollLeft <= min'); -function visit41_149_4(result) { - _$jscoverage['/base.js'].branchData['149'][4].ranCondition(result); +}_$jscoverage['/base.js'].branchData['232'][3].init(156, 31, 'scrollLeft <= min && deltaX > 0'); +function visit41_232_3(result) { + _$jscoverage['/base.js'].branchData['232'][3].ranCondition(result); return result; -}_$jscoverage['/base.js'].branchData['149'][3].init(156, 31, 'scrollLeft <= min && deltaX > 0'); -function visit40_149_3(result) { - _$jscoverage['/base.js'].branchData['149'][3].ranCondition(result); +}_$jscoverage['/base.js'].branchData['232'][2].init(156, 66, 'scrollLeft <= min && deltaX > 0 || scrollLeft >= max && deltaX < 0'); +function visit40_232_2(result) { + _$jscoverage['/base.js'].branchData['232'][2].ranCondition(result); return result; -}_$jscoverage['/base.js'].branchData['149'][2].init(156, 66, 'scrollLeft <= min && deltaX > 0 || scrollLeft >= max && deltaX < 0'); -function visit39_149_2(result) { - _$jscoverage['/base.js'].branchData['149'][2].ranCondition(result); +}_$jscoverage['/base.js'].branchData['232'][1].init(154, 69, '!(scrollLeft <= min && deltaX > 0 || scrollLeft >= max && deltaX < 0)'); +function visit39_232_1(result) { + _$jscoverage['/base.js'].branchData['232'][1].ranCondition(result); return result; -}_$jscoverage['/base.js'].branchData['149'][1].init(154, 69, '!(scrollLeft <= min && deltaX > 0 || scrollLeft >= max && deltaX < 0)'); -function visit38_149_1(result) { - _$jscoverage['/base.js'].branchData['149'][1].ranCondition(result); +}_$jscoverage['/base.js'].branchData['228'][1].init(802, 43, '(deltaX = e.deltaX) && self.allowScroll.left'); +function visit38_228_1(result) { + _$jscoverage['/base.js'].branchData['228'][1].ranCondition(result); return result; -}_$jscoverage['/base.js'].branchData['145'][1].init(802, 43, '(deltaX = e.deltaX) && self.allowScroll.left'); -function visit37_145_1(result) { - _$jscoverage['/base.js'].branchData['145'][1].ranCondition(result); +}_$jscoverage['/base.js'].branchData['222'][8].init(206, 10, 'deltaY < 0'); +function visit37_222_8(result) { + _$jscoverage['/base.js'].branchData['222'][8].ranCondition(result); + return result; +}_$jscoverage['/base.js'].branchData['222'][7].init(186, 16, 'scrollTop >= max'); +function visit36_222_7(result) { + _$jscoverage['/base.js'].branchData['222'][7].ranCondition(result); return result; -}_$jscoverage['/base.js'].branchData['139'][8].init(206, 10, 'deltaY < 0'); -function visit36_139_8(result) { - _$jscoverage['/base.js'].branchData['139'][8].ranCondition(result); +}_$jscoverage['/base.js'].branchData['222'][6].init(186, 30, 'scrollTop >= max && deltaY < 0'); +function visit35_222_6(result) { + _$jscoverage['/base.js'].branchData['222'][6].ranCondition(result); return result; -}_$jscoverage['/base.js'].branchData['139'][7].init(186, 16, 'scrollTop >= max'); -function visit35_139_7(result) { - _$jscoverage['/base.js'].branchData['139'][7].ranCondition(result); +}_$jscoverage['/base.js'].branchData['222'][5].init(172, 10, 'deltaY > 0'); +function visit34_222_5(result) { + _$jscoverage['/base.js'].branchData['222'][5].ranCondition(result); return result; -}_$jscoverage['/base.js'].branchData['139'][6].init(186, 30, 'scrollTop >= max && deltaY < 0'); -function visit34_139_6(result) { - _$jscoverage['/base.js'].branchData['139'][6].ranCondition(result); +}_$jscoverage['/base.js'].branchData['222'][4].init(152, 16, 'scrollTop <= min'); +function visit33_222_4(result) { + _$jscoverage['/base.js'].branchData['222'][4].ranCondition(result); return result; -}_$jscoverage['/base.js'].branchData['139'][5].init(172, 10, 'deltaY > 0'); -function visit33_139_5(result) { - _$jscoverage['/base.js'].branchData['139'][5].ranCondition(result); +}_$jscoverage['/base.js'].branchData['222'][3].init(152, 30, 'scrollTop <= min && deltaY > 0'); +function visit32_222_3(result) { + _$jscoverage['/base.js'].branchData['222'][3].ranCondition(result); return result; -}_$jscoverage['/base.js'].branchData['139'][4].init(152, 16, 'scrollTop <= min'); -function visit32_139_4(result) { - _$jscoverage['/base.js'].branchData['139'][4].ranCondition(result); +}_$jscoverage['/base.js'].branchData['222'][2].init(152, 64, 'scrollTop <= min && deltaY > 0 || scrollTop >= max && deltaY < 0'); +function visit31_222_2(result) { + _$jscoverage['/base.js'].branchData['222'][2].ranCondition(result); return result; -}_$jscoverage['/base.js'].branchData['139'][3].init(152, 30, 'scrollTop <= min && deltaY > 0'); -function visit31_139_3(result) { - _$jscoverage['/base.js'].branchData['139'][3].ranCondition(result); +}_$jscoverage['/base.js'].branchData['222'][1].init(150, 67, '!(scrollTop <= min && deltaY > 0 || scrollTop >= max && deltaY < 0)'); +function visit30_222_1(result) { + _$jscoverage['/base.js'].branchData['222'][1].ranCondition(result); return result; -}_$jscoverage['/base.js'].branchData['139'][2].init(152, 64, 'scrollTop <= min && deltaY > 0 || scrollTop >= max && deltaY < 0'); -function visit30_139_2(result) { - _$jscoverage['/base.js'].branchData['139'][2].ranCondition(result); +}_$jscoverage['/base.js'].branchData['218'][1].init(355, 42, '(deltaY = e.deltaY) && self.allowScroll.top'); +function visit29_218_1(result) { + _$jscoverage['/base.js'].branchData['218'][1].ranCondition(result); return result; -}_$jscoverage['/base.js'].branchData['139'][1].init(150, 67, '!(scrollTop <= min && deltaY > 0 || scrollTop >= max && deltaY < 0)'); -function visit29_139_1(result) { - _$jscoverage['/base.js'].branchData['139'][1].ranCondition(result); +}_$jscoverage['/base.js'].branchData['206'][1].init(17, 20, 'this.get(\'disabled\')'); +function visit28_206_1(result) { + _$jscoverage['/base.js'].branchData['206'][1].ranCondition(result); return result; -}_$jscoverage['/base.js'].branchData['135'][1].init(355, 42, '(deltaY = e.deltaY) && self.allowScroll.top'); -function visit28_135_1(result) { - _$jscoverage['/base.js'].branchData['135'][1].ranCondition(result); +}_$jscoverage['/base.js'].branchData['192'][1].init(49, 18, 'control.scrollStep'); +function visit27_192_1(result) { + _$jscoverage['/base.js'].branchData['192'][1].ranCondition(result); return result; -}_$jscoverage['/base.js'].branchData['123'][1].init(17, 20, 'this.get(\'disabled\')'); -function visit27_123_1(result) { - _$jscoverage['/base.js'].branchData['123'][1].ranCondition(result); +}_$jscoverage['/base.js'].branchData['182'][1].init(296, 24, 'keyCode === KeyCode.LEFT'); +function visit26_182_1(result) { + _$jscoverage['/base.js'].branchData['182'][1].ranCondition(result); return result; -}_$jscoverage['/base.js'].branchData['109'][1].init(49, 18, 'control.scrollStep'); -function visit26_109_1(result) { - _$jscoverage['/base.js'].branchData['109'][1].ranCondition(result); +}_$jscoverage['/base.js'].branchData['179'][1].init(129, 25, 'keyCode === KeyCode.RIGHT'); +function visit25_179_1(result) { + _$jscoverage['/base.js'].branchData['179'][1].ranCondition(result); return result; -}_$jscoverage['/base.js'].branchData['99'][1].init(296, 24, 'keyCode === KeyCode.LEFT'); -function visit25_99_1(result) { - _$jscoverage['/base.js'].branchData['99'][1].ranCondition(result); +}_$jscoverage['/base.js'].branchData['176'][1].init(1618, 6, 'allowX'); +function visit24_176_1(result) { + _$jscoverage['/base.js'].branchData['176'][1].ranCondition(result); return result; -}_$jscoverage['/base.js'].branchData['96'][1].init(129, 25, 'keyCode === KeyCode.RIGHT'); -function visit24_96_1(result) { - _$jscoverage['/base.js'].branchData['96'][1].ranCondition(result); +}_$jscoverage['/base.js'].branchData['171'][1].init(722, 27, 'keyCode === KeyCode.PAGE_UP'); +function visit23_171_1(result) { + _$jscoverage['/base.js'].branchData['171'][1].ranCondition(result); return result; -}_$jscoverage['/base.js'].branchData['93'][1].init(1618, 6, 'allowX'); -function visit23_93_1(result) { - _$jscoverage['/base.js'].branchData['93'][1].ranCondition(result); +}_$jscoverage['/base.js'].branchData['168'][1].init(552, 29, 'keyCode === KeyCode.PAGE_DOWN'); +function visit22_168_1(result) { + _$jscoverage['/base.js'].branchData['168'][1].ranCondition(result); return result; -}_$jscoverage['/base.js'].branchData['88'][1].init(722, 27, 'keyCode === KeyCode.PAGE_UP'); -function visit22_88_1(result) { - _$jscoverage['/base.js'].branchData['88'][1].ranCondition(result); +}_$jscoverage['/base.js'].branchData['165'][1].init(390, 22, 'keyCode === KeyCode.UP'); +function visit21_165_1(result) { + _$jscoverage['/base.js'].branchData['165'][1].ranCondition(result); return result; -}_$jscoverage['/base.js'].branchData['85'][1].init(552, 29, 'keyCode === KeyCode.PAGE_DOWN'); -function visit21_85_1(result) { - _$jscoverage['/base.js'].branchData['85'][1].ranCondition(result); +}_$jscoverage['/base.js'].branchData['160'][1].init(180, 24, 'keyCode === KeyCode.DOWN'); +function visit20_160_1(result) { + _$jscoverage['/base.js'].branchData['160'][1].ranCondition(result); return result; -}_$jscoverage['/base.js'].branchData['82'][1].init(390, 22, 'keyCode === KeyCode.UP'); -function visit20_82_1(result) { - _$jscoverage['/base.js'].branchData['82'][1].ranCondition(result); +}_$jscoverage['/base.js'].branchData['156'][1].init(702, 6, 'allowY'); +function visit19_156_1(result) { + _$jscoverage['/base.js'].branchData['156'][1].ranCondition(result); + return result; +}_$jscoverage['/base.js'].branchData['146'][2].init(330, 21, 'nodeName === \'select\''); +function visit18_146_2(result) { + _$jscoverage['/base.js'].branchData['146'][2].ranCondition(result); + return result; +}_$jscoverage['/base.js'].branchData['146'][1].init(42, 75, 'nodeName === \'select\' || $target.hasAttr(\'contenteditable\')'); +function visit17_146_1(result) { + _$jscoverage['/base.js'].branchData['146'][1].ranCondition(result); return result; -}_$jscoverage['/base.js'].branchData['77'][1].init(180, 24, 'keyCode === KeyCode.DOWN'); -function visit19_77_1(result) { - _$jscoverage['/base.js'].branchData['77'][1].ranCondition(result); +}_$jscoverage['/base.js'].branchData['145'][2].init(286, 23, 'nodeName === \'textarea\''); +function visit16_145_2(result) { + _$jscoverage['/base.js'].branchData['145'][2].ranCondition(result); return result; -}_$jscoverage['/base.js'].branchData['73'][1].init(702, 6, 'allowY'); -function visit18_73_1(result) { - _$jscoverage['/base.js'].branchData['73'][1].ranCondition(result); +}_$jscoverage['/base.js'].branchData['145'][1].init(39, 118, 'nodeName === \'textarea\' || nodeName === \'select\' || $target.hasAttr(\'contenteditable\')'); +function visit15_145_1(result) { + _$jscoverage['/base.js'].branchData['145'][1].ranCondition(result); + return result; +}_$jscoverage['/base.js'].branchData['144'][2].init(244, 20, 'nodeName === \'input\''); +function visit14_144_2(result) { + _$jscoverage['/base.js'].branchData['144'][2].ranCondition(result); + return result; +}_$jscoverage['/base.js'].branchData['144'][1].init(244, 158, 'nodeName === \'input\' || nodeName === \'textarea\' || nodeName === \'select\' || $target.hasAttr(\'contenteditable\')'); +function visit13_144_1(result) { + _$jscoverage['/base.js'].branchData['144'][1].ranCondition(result); + return result; +}_$jscoverage['/base.js'].branchData['101'][1].init(786, 9, 'pageIndex'); +function visit12_101_1(result) { + _$jscoverage['/base.js'].branchData['101'][1].ranCondition(result); + return result; +}_$jscoverage['/base.js'].branchData['93'][3].init(196, 19, 'top <= maxScrollTop'); +function visit11_93_3(result) { + _$jscoverage['/base.js'].branchData['93'][3].ranCondition(result); return result; -}_$jscoverage['/base.js'].branchData['63'][2].init(330, 21, 'nodeName === \'select\''); -function visit17_63_2(result) { - _$jscoverage['/base.js'].branchData['63'][2].ranCondition(result); +}_$jscoverage['/base.js'].branchData['93'][2].init(171, 21, 'left <= maxScrollLeft'); +function visit10_93_2(result) { + _$jscoverage['/base.js'].branchData['93'][2].ranCondition(result); return result; -}_$jscoverage['/base.js'].branchData['63'][1].init(42, 75, 'nodeName === \'select\' || $target.hasAttr(\'contenteditable\')'); -function visit16_63_1(result) { - _$jscoverage['/base.js'].branchData['63'][1].ranCondition(result); +}_$jscoverage['/base.js'].branchData['93'][1].init(171, 44, 'left <= maxScrollLeft && top <= maxScrollTop'); +function visit9_93_1(result) { + _$jscoverage['/base.js'].branchData['93'][1].ranCondition(result); return result; -}_$jscoverage['/base.js'].branchData['62'][2].init(286, 23, 'nodeName === \'textarea\''); -function visit15_62_2(result) { - _$jscoverage['/base.js'].branchData['62'][2].ranCondition(result); +}_$jscoverage['/base.js'].branchData['84'][1].init(89, 24, 'typeof snap === \'string\''); +function visit8_84_1(result) { + _$jscoverage['/base.js'].branchData['84'][1].ranCondition(result); return result; -}_$jscoverage['/base.js'].branchData['62'][1].init(39, 118, 'nodeName === \'textarea\' || nodeName === \'select\' || $target.hasAttr(\'contenteditable\')'); -function visit14_62_1(result) { - _$jscoverage['/base.js'].branchData['62'][1].ranCondition(result); +}_$jscoverage['/base.js'].branchData['82'][1].init(1424, 4, 'snap'); +function visit7_82_1(result) { + _$jscoverage['/base.js'].branchData['82'][1].ranCondition(result); return result; -}_$jscoverage['/base.js'].branchData['61'][2].init(244, 20, 'nodeName === \'input\''); -function visit13_61_2(result) { - _$jscoverage['/base.js'].branchData['61'][2].ranCondition(result); +}_$jscoverage['/base.js'].branchData['59'][1].init(860, 25, 'scrollWidth > clientWidth'); +function visit6_59_1(result) { + _$jscoverage['/base.js'].branchData['59'][1].ranCondition(result); return result; -}_$jscoverage['/base.js'].branchData['61'][1].init(244, 158, 'nodeName === \'input\' || nodeName === \'textarea\' || nodeName === \'select\' || $target.hasAttr(\'contenteditable\')'); -function visit12_61_1(result) { - _$jscoverage['/base.js'].branchData['61'][1].ranCondition(result); +}_$jscoverage['/base.js'].branchData['56'][1].init(774, 27, 'scrollHeight > clientHeight'); +function visit5_56_1(result) { + _$jscoverage['/base.js'].branchData['56'][1].ranCondition(result); return result; -}_$jscoverage['/base.js'].branchData['25'][1].init(247, 10, 'scrollLeft'); -function visit11_25_1(result) { - _$jscoverage['/base.js'].branchData['25'][1].ranCondition(result); +}_$jscoverage['/base.js'].branchData['23'][1].init(247, 10, 'scrollLeft'); +function visit4_23_1(result) { + _$jscoverage['/base.js'].branchData['23'][1].ranCondition(result); return result; -}_$jscoverage['/base.js'].branchData['22'][1].init(142, 9, 'scrollTop'); -function visit10_22_1(result) { - _$jscoverage['/base.js'].branchData['22'][1].ranCondition(result); +}_$jscoverage['/base.js'].branchData['20'][1].init(142, 9, 'scrollTop'); +function visit3_20_1(result) { + _$jscoverage['/base.js'].branchData['20'][1].ranCondition(result); return result; }_$jscoverage['/base.js'].lineData[6]++; KISSY.add(function(S, require) { @@ -682,343 +752,417 @@ KISSY.add(function(S, require) { var Container = require('component/container'); _$jscoverage['/base.js'].lineData[10]++; var Render = require('./base/render'); - _$jscoverage['/base.js'].lineData[13]++; - var $ = S.all, isTouchEventSupported = S.Features.isTouchEventSupported(), KeyCode = Node.KeyCode; - _$jscoverage['/base.js'].lineData[17]++; + _$jscoverage['/base.js'].lineData[12]++; + var $ = S.all, KeyCode = Node.KeyCode; + _$jscoverage['/base.js'].lineData[15]++; function onElScroll() { _$jscoverage['/base.js'].functionData[1]++; - _$jscoverage['/base.js'].lineData[18]++; + _$jscoverage['/base.js'].lineData[16]++; var self = this, el = self.el, scrollTop = el.scrollTop, scrollLeft = el.scrollLeft; - _$jscoverage['/base.js'].lineData[22]++; - if (visit10_22_1(scrollTop)) { - _$jscoverage['/base.js'].lineData[23]++; + _$jscoverage['/base.js'].lineData[20]++; + if (visit3_20_1(scrollTop)) { + _$jscoverage['/base.js'].lineData[21]++; self.set('scrollTop', scrollTop + self.get('scrollTop')); } - _$jscoverage['/base.js'].lineData[25]++; - if (visit11_25_1(scrollLeft)) { - _$jscoverage['/base.js'].lineData[26]++; + _$jscoverage['/base.js'].lineData[23]++; + if (visit4_23_1(scrollLeft)) { + _$jscoverage['/base.js'].lineData[24]++; self.set('scrollLeft', scrollLeft + self.get('scrollLeft')); } - _$jscoverage['/base.js'].lineData[28]++; + _$jscoverage['/base.js'].lineData[26]++; el.scrollTop = el.scrollLeft = 0; } - _$jscoverage['/base.js'].lineData[31]++; + _$jscoverage['/base.js'].lineData[29]++; function frame(anim, fx) { _$jscoverage['/base.js'].functionData[2]++; - _$jscoverage['/base.js'].lineData[32]++; + _$jscoverage['/base.js'].lineData[30]++; anim.scrollView.set(fx.prop, fx.val); } - _$jscoverage['/base.js'].lineData[41]++; + _$jscoverage['/base.js'].lineData[33]++; + function reflow(v) { + _$jscoverage['/base.js'].functionData[3]++; + _$jscoverage['/base.js'].lineData[34]++; + var control = this, $contentEl = control.$contentEl; + _$jscoverage['/base.js'].lineData[42]++; + var scrollHeight = v.scrollHeight, scrollWidth = v.scrollWidth; + _$jscoverage['/base.js'].lineData[45]++; + var clientHeight = v.clientHeight, allowScroll, clientWidth = v.clientWidth; + _$jscoverage['/base.js'].lineData[49]++; + control.scrollHeight = scrollHeight; + _$jscoverage['/base.js'].lineData[50]++; + control.scrollWidth = scrollWidth; + _$jscoverage['/base.js'].lineData[51]++; + control.clientHeight = clientHeight; + _$jscoverage['/base.js'].lineData[52]++; + control.clientWidth = clientWidth; + _$jscoverage['/base.js'].lineData[54]++; + allowScroll = control.allowScroll = {}; + _$jscoverage['/base.js'].lineData[56]++; + if (visit5_56_1(scrollHeight > clientHeight)) { + _$jscoverage['/base.js'].lineData[57]++; + allowScroll.top = 1; + } + _$jscoverage['/base.js'].lineData[59]++; + if (visit6_59_1(scrollWidth > clientWidth)) { + _$jscoverage['/base.js'].lineData[60]++; + allowScroll.left = 1; + } + _$jscoverage['/base.js'].lineData[63]++; + control.minScroll = { + left: 0, + top: 0}; + _$jscoverage['/base.js'].lineData[68]++; + var maxScrollLeft, maxScrollTop; + _$jscoverage['/base.js'].lineData[71]++; + control.maxScroll = { + left: maxScrollLeft = scrollWidth - clientWidth, + top: maxScrollTop = scrollHeight - clientHeight}; + _$jscoverage['/base.js'].lineData[76]++; + delete control.scrollStep; + _$jscoverage['/base.js'].lineData[78]++; + var snap = control.get('snap'), scrollLeft = control.get('scrollLeft'), scrollTop = control.get('scrollTop'); + _$jscoverage['/base.js'].lineData[82]++; + if (visit7_82_1(snap)) { + _$jscoverage['/base.js'].lineData[83]++; + var elOffset = $contentEl.offset(); + _$jscoverage['/base.js'].lineData[84]++; + var pages = control.pages = visit8_84_1(typeof snap === 'string') ? $contentEl.all(snap) : $contentEl.children(), pageIndex = control.get('pageIndex'), pagesOffset = control.pagesOffset = []; + _$jscoverage['/base.js'].lineData[89]++; + pages.each(function(p, i) { + _$jscoverage['/base.js'].functionData[4]++; + _$jscoverage['/base.js'].lineData[90]++; + var offset = p.offset(), left = offset.left - elOffset.left, top = offset.top - elOffset.top; + _$jscoverage['/base.js'].lineData[93]++; + if (visit9_93_1(visit10_93_2(left <= maxScrollLeft) && visit11_93_3(top <= maxScrollTop))) { + _$jscoverage['/base.js'].lineData[94]++; + pagesOffset[i] = { + left: left, + top: top, + index: i}; + } +}); + _$jscoverage['/base.js'].lineData[101]++; + if (visit12_101_1(pageIndex)) { + _$jscoverage['/base.js'].lineData[102]++; + control.scrollToPage(pageIndex); + _$jscoverage['/base.js'].lineData[103]++; + return; + } + } + _$jscoverage['/base.js'].lineData[108]++; + control.scrollToWithBounds({ + left: scrollLeft, + top: scrollTop}); + _$jscoverage['/base.js'].lineData[113]++; + control.fire('reflow', v); + } + _$jscoverage['/base.js'].lineData[122]++; return Container.extend({ initializer: function() { - _$jscoverage['/base.js'].functionData[3]++; - _$jscoverage['/base.js'].lineData[43]++; + _$jscoverage['/base.js'].functionData[5]++; + _$jscoverage['/base.js'].lineData[124]++; this.scrollAnims = []; }, bindUI: function() { - _$jscoverage['/base.js'].functionData[4]++; - _$jscoverage['/base.js'].lineData[47]++; + _$jscoverage['/base.js'].functionData[6]++; + _$jscoverage['/base.js'].lineData[128]++; var self = this, $el = self.$el; - _$jscoverage['/base.js'].lineData[52]++; + _$jscoverage['/base.js'].lineData[133]++; $el.on('mousewheel', self.handleMouseWheel, self).on('scroll', onElScroll, self); }, + _onSetDimension: reflow, handleKeyDownInternal: function(e) { - _$jscoverage['/base.js'].functionData[5]++; - _$jscoverage['/base.js'].lineData[57]++; + _$jscoverage['/base.js'].functionData[7]++; + _$jscoverage['/base.js'].lineData[140]++; var target = e.target, $target = $(target), nodeName = $target.nodeName(); - _$jscoverage['/base.js'].lineData[61]++; - if (visit12_61_1(visit13_61_2(nodeName === 'input') || visit14_62_1(visit15_62_2(nodeName === 'textarea') || visit16_63_1(visit17_63_2(nodeName === 'select') || $target.hasAttr('contenteditable'))))) { - _$jscoverage['/base.js'].lineData[65]++; + _$jscoverage['/base.js'].lineData[144]++; + if (visit13_144_1(visit14_144_2(nodeName === 'input') || visit15_145_1(visit16_145_2(nodeName === 'textarea') || visit17_146_1(visit18_146_2(nodeName === 'select') || $target.hasAttr('contenteditable'))))) { + _$jscoverage['/base.js'].lineData[148]++; return undefined; } - _$jscoverage['/base.js'].lineData[67]++; + _$jscoverage['/base.js'].lineData[150]++; var self = this, keyCode = e.keyCode, scrollStep = self.getScrollStep(), ok; - _$jscoverage['/base.js'].lineData[71]++; + _$jscoverage['/base.js'].lineData[154]++; var allowX = self.allowScroll.left; - _$jscoverage['/base.js'].lineData[72]++; + _$jscoverage['/base.js'].lineData[155]++; var allowY = self.allowScroll.top; - _$jscoverage['/base.js'].lineData[73]++; - if (visit18_73_1(allowY)) { - _$jscoverage['/base.js'].lineData[74]++; + _$jscoverage['/base.js'].lineData[156]++; + if (visit19_156_1(allowY)) { + _$jscoverage['/base.js'].lineData[157]++; var scrollStepY = scrollStep.top, clientHeight = self.clientHeight, scrollTop = self.get('scrollTop'); - _$jscoverage['/base.js'].lineData[77]++; - if (visit19_77_1(keyCode === KeyCode.DOWN)) { - _$jscoverage['/base.js'].lineData[78]++; + _$jscoverage['/base.js'].lineData[160]++; + if (visit20_160_1(keyCode === KeyCode.DOWN)) { + _$jscoverage['/base.js'].lineData[161]++; self.scrollToWithBounds({ top: scrollTop + scrollStepY}); - _$jscoverage['/base.js'].lineData[81]++; + _$jscoverage['/base.js'].lineData[164]++; ok = true; } else { - _$jscoverage['/base.js'].lineData[82]++; - if (visit20_82_1(keyCode === KeyCode.UP)) { - _$jscoverage['/base.js'].lineData[83]++; + _$jscoverage['/base.js'].lineData[165]++; + if (visit21_165_1(keyCode === KeyCode.UP)) { + _$jscoverage['/base.js'].lineData[166]++; self.scrollToWithBounds({ top: scrollTop - scrollStepY}); - _$jscoverage['/base.js'].lineData[84]++; + _$jscoverage['/base.js'].lineData[167]++; ok = true; } else { - _$jscoverage['/base.js'].lineData[85]++; - if (visit21_85_1(keyCode === KeyCode.PAGE_DOWN)) { - _$jscoverage['/base.js'].lineData[86]++; + _$jscoverage['/base.js'].lineData[168]++; + if (visit22_168_1(keyCode === KeyCode.PAGE_DOWN)) { + _$jscoverage['/base.js'].lineData[169]++; self.scrollToWithBounds({ top: scrollTop + clientHeight}); - _$jscoverage['/base.js'].lineData[87]++; + _$jscoverage['/base.js'].lineData[170]++; ok = true; } else { - _$jscoverage['/base.js'].lineData[88]++; - if (visit22_88_1(keyCode === KeyCode.PAGE_UP)) { - _$jscoverage['/base.js'].lineData[89]++; + _$jscoverage['/base.js'].lineData[171]++; + if (visit23_171_1(keyCode === KeyCode.PAGE_UP)) { + _$jscoverage['/base.js'].lineData[172]++; self.scrollToWithBounds({ top: scrollTop - clientHeight}); - _$jscoverage['/base.js'].lineData[90]++; + _$jscoverage['/base.js'].lineData[173]++; ok = true; } } } } } - _$jscoverage['/base.js'].lineData[93]++; - if (visit23_93_1(allowX)) { - _$jscoverage['/base.js'].lineData[94]++; + _$jscoverage['/base.js'].lineData[176]++; + if (visit24_176_1(allowX)) { + _$jscoverage['/base.js'].lineData[177]++; var scrollStepX = scrollStep.left; - _$jscoverage['/base.js'].lineData[95]++; + _$jscoverage['/base.js'].lineData[178]++; var scrollLeft = self.get('scrollLeft'); - _$jscoverage['/base.js'].lineData[96]++; - if (visit24_96_1(keyCode === KeyCode.RIGHT)) { - _$jscoverage['/base.js'].lineData[97]++; + _$jscoverage['/base.js'].lineData[179]++; + if (visit25_179_1(keyCode === KeyCode.RIGHT)) { + _$jscoverage['/base.js'].lineData[180]++; self.scrollToWithBounds({ left: scrollLeft + scrollStepX}); - _$jscoverage['/base.js'].lineData[98]++; + _$jscoverage['/base.js'].lineData[181]++; ok = true; } else { - _$jscoverage['/base.js'].lineData[99]++; - if (visit25_99_1(keyCode === KeyCode.LEFT)) { - _$jscoverage['/base.js'].lineData[100]++; + _$jscoverage['/base.js'].lineData[182]++; + if (visit26_182_1(keyCode === KeyCode.LEFT)) { + _$jscoverage['/base.js'].lineData[183]++; self.scrollToWithBounds({ left: scrollLeft - scrollStepX}); - _$jscoverage['/base.js'].lineData[101]++; + _$jscoverage['/base.js'].lineData[184]++; ok = true; } } } - _$jscoverage['/base.js'].lineData[104]++; + _$jscoverage['/base.js'].lineData[187]++; return ok; }, getScrollStep: function() { - _$jscoverage['/base.js'].functionData[6]++; - _$jscoverage['/base.js'].lineData[108]++; + _$jscoverage['/base.js'].functionData[8]++; + _$jscoverage['/base.js'].lineData[191]++; var control = this; - _$jscoverage['/base.js'].lineData[109]++; - if (visit26_109_1(control.scrollStep)) { - _$jscoverage['/base.js'].lineData[110]++; + _$jscoverage['/base.js'].lineData[192]++; + if (visit27_192_1(control.scrollStep)) { + _$jscoverage['/base.js'].lineData[193]++; return control.scrollStep; } - _$jscoverage['/base.js'].lineData[112]++; + _$jscoverage['/base.js'].lineData[195]++; var elDoc = $(this.get('el')[0].ownerDocument); - _$jscoverage['/base.js'].lineData[113]++; + _$jscoverage['/base.js'].lineData[196]++; var clientHeight = control.clientHeight; - _$jscoverage['/base.js'].lineData[114]++; + _$jscoverage['/base.js'].lineData[197]++; var clientWidth = control.clientWidth; - _$jscoverage['/base.js'].lineData[115]++; + _$jscoverage['/base.js'].lineData[198]++; control.scrollStep = { top: Math.max(clientHeight * clientHeight * 0.7 / elDoc.height(), 20), left: Math.max(clientWidth * clientWidth * 0.7 / elDoc.width(), 20)}; - _$jscoverage['/base.js'].lineData[119]++; + _$jscoverage['/base.js'].lineData[202]++; return control.scrollStep; }, handleMouseWheel: function(e) { - _$jscoverage['/base.js'].functionData[7]++; - _$jscoverage['/base.js'].lineData[123]++; - if (visit27_123_1(this.get('disabled'))) { - _$jscoverage['/base.js'].lineData[124]++; + _$jscoverage['/base.js'].functionData[9]++; + _$jscoverage['/base.js'].lineData[206]++; + if (visit28_206_1(this.get('disabled'))) { + _$jscoverage['/base.js'].lineData[207]++; return; } - _$jscoverage['/base.js'].lineData[126]++; + _$jscoverage['/base.js'].lineData[209]++; var max, min, self = this, scrollStep = self.getScrollStep(), deltaY, deltaX, maxScroll = self.maxScroll, minScroll = self.minScroll; - _$jscoverage['/base.js'].lineData[135]++; - if (visit28_135_1((deltaY = e.deltaY) && self.allowScroll.top)) { - _$jscoverage['/base.js'].lineData[136]++; + _$jscoverage['/base.js'].lineData[218]++; + if (visit29_218_1((deltaY = e.deltaY) && self.allowScroll.top)) { + _$jscoverage['/base.js'].lineData[219]++; var scrollTop = self.get('scrollTop'); - _$jscoverage['/base.js'].lineData[137]++; + _$jscoverage['/base.js'].lineData[220]++; max = maxScroll.top; - _$jscoverage['/base.js'].lineData[138]++; + _$jscoverage['/base.js'].lineData[221]++; min = minScroll.top; - _$jscoverage['/base.js'].lineData[139]++; - if (visit29_139_1(!(visit30_139_2(visit31_139_3(visit32_139_4(scrollTop <= min) && visit33_139_5(deltaY > 0)) || visit34_139_6(visit35_139_7(scrollTop >= max) && visit36_139_8(deltaY < 0)))))) { - _$jscoverage['/base.js'].lineData[140]++; + _$jscoverage['/base.js'].lineData[222]++; + if (visit30_222_1(!(visit31_222_2(visit32_222_3(visit33_222_4(scrollTop <= min) && visit34_222_5(deltaY > 0)) || visit35_222_6(visit36_222_7(scrollTop >= max) && visit37_222_8(deltaY < 0)))))) { + _$jscoverage['/base.js'].lineData[223]++; self.scrollToWithBounds({ top: scrollTop - e.deltaY * scrollStep.top}); - _$jscoverage['/base.js'].lineData[141]++; + _$jscoverage['/base.js'].lineData[224]++; e.preventDefault(); } } - _$jscoverage['/base.js'].lineData[145]++; - if (visit37_145_1((deltaX = e.deltaX) && self.allowScroll.left)) { - _$jscoverage['/base.js'].lineData[146]++; + _$jscoverage['/base.js'].lineData[228]++; + if (visit38_228_1((deltaX = e.deltaX) && self.allowScroll.left)) { + _$jscoverage['/base.js'].lineData[229]++; var scrollLeft = self.get('scrollLeft'); - _$jscoverage['/base.js'].lineData[147]++; + _$jscoverage['/base.js'].lineData[230]++; max = maxScroll.left; - _$jscoverage['/base.js'].lineData[148]++; + _$jscoverage['/base.js'].lineData[231]++; min = minScroll.left; - _$jscoverage['/base.js'].lineData[149]++; - if (visit38_149_1(!(visit39_149_2(visit40_149_3(visit41_149_4(scrollLeft <= min) && visit42_149_5(deltaX > 0)) || visit43_149_6(visit44_149_7(scrollLeft >= max) && visit45_149_8(deltaX < 0)))))) { - _$jscoverage['/base.js'].lineData[150]++; + _$jscoverage['/base.js'].lineData[232]++; + if (visit39_232_1(!(visit40_232_2(visit41_232_3(visit42_232_4(scrollLeft <= min) && visit43_232_5(deltaX > 0)) || visit44_232_6(visit45_232_7(scrollLeft >= max) && visit46_232_8(deltaX < 0)))))) { + _$jscoverage['/base.js'].lineData[233]++; self.scrollToWithBounds({ left: scrollLeft - e.deltaX * scrollStep.left}); - _$jscoverage['/base.js'].lineData[151]++; + _$jscoverage['/base.js'].lineData[234]++; e.preventDefault(); } } -}, - 'isAxisEnabled': function(axis) { - _$jscoverage['/base.js'].functionData[8]++; - _$jscoverage['/base.js'].lineData[157]++; - return this.allowScroll[visit46_157_1(axis === 'x') ? 'left' : 'top']; }, stopAnimation: function() { - _$jscoverage['/base.js'].functionData[9]++; - _$jscoverage['/base.js'].lineData[161]++; + _$jscoverage['/base.js'].functionData[10]++; + _$jscoverage['/base.js'].lineData[240]++; var self = this; - _$jscoverage['/base.js'].lineData[162]++; - if (visit47_162_1(self.scrollAnims.length)) { - _$jscoverage['/base.js'].lineData[163]++; + _$jscoverage['/base.js'].lineData[241]++; + if (visit47_241_1(self.scrollAnims.length)) { + _$jscoverage['/base.js'].lineData[242]++; S.each(self.scrollAnims, function(scrollAnim) { - _$jscoverage['/base.js'].functionData[10]++; - _$jscoverage['/base.js'].lineData[164]++; + _$jscoverage['/base.js'].functionData[11]++; + _$jscoverage['/base.js'].lineData[243]++; scrollAnim.stop(); }); - _$jscoverage['/base.js'].lineData[166]++; + _$jscoverage['/base.js'].lineData[245]++; self.scrollAnims = []; } - _$jscoverage['/base.js'].lineData[168]++; + _$jscoverage['/base.js'].lineData[247]++; self.scrollToWithBounds({ left: self.get('scrollLeft'), top: self.get('scrollTop')}); }, '_uiSetPageIndex': function(v) { - _$jscoverage['/base.js'].functionData[11]++; - _$jscoverage['/base.js'].lineData[175]++; + _$jscoverage['/base.js'].functionData[12]++; + _$jscoverage['/base.js'].lineData[254]++; this.scrollToPage(v); }, - _getPageIndexFromXY: function(v, allowX, direction) { - _$jscoverage['/base.js'].functionData[12]++; - _$jscoverage['/base.js'].lineData[179]++; + getPageIndexFromXY: function(v, allowX, direction) { + _$jscoverage['/base.js'].functionData[13]++; + _$jscoverage['/base.js'].lineData[258]++; var pagesOffset = this.pagesOffset.concat([]); - _$jscoverage['/base.js'].lineData[180]++; + _$jscoverage['/base.js'].lineData[259]++; var p2 = allowX ? 'left' : 'top'; - _$jscoverage['/base.js'].lineData[181]++; + _$jscoverage['/base.js'].lineData[260]++; var i, offset; - _$jscoverage['/base.js'].lineData[182]++; + _$jscoverage['/base.js'].lineData[261]++; pagesOffset.sort(function(e1, e2) { - _$jscoverage['/base.js'].functionData[13]++; - _$jscoverage['/base.js'].lineData[183]++; + _$jscoverage['/base.js'].functionData[14]++; + _$jscoverage['/base.js'].lineData[262]++; return e1[p2] - e2[p2]; }); - _$jscoverage['/base.js'].lineData[185]++; - if (visit48_185_1(direction > 0)) { - _$jscoverage['/base.js'].lineData[186]++; - for (i = 0; visit49_186_1(i < pagesOffset.length); i++) { - _$jscoverage['/base.js'].lineData[187]++; + _$jscoverage['/base.js'].lineData[264]++; + if (visit48_264_1(direction > 0)) { + _$jscoverage['/base.js'].lineData[265]++; + for (i = 0; visit49_265_1(i < pagesOffset.length); i++) { + _$jscoverage['/base.js'].lineData[266]++; offset = pagesOffset[i]; - _$jscoverage['/base.js'].lineData[188]++; - if (visit50_188_1(offset[p2] >= v)) { - _$jscoverage['/base.js'].lineData[189]++; + _$jscoverage['/base.js'].lineData[267]++; + if (visit50_267_1(offset[p2] >= v)) { + _$jscoverage['/base.js'].lineData[268]++; return offset.index; } } } else { - _$jscoverage['/base.js'].lineData[193]++; - for (i = pagesOffset.length - 1; visit51_193_1(i >= 0); i--) { - _$jscoverage['/base.js'].lineData[194]++; + _$jscoverage['/base.js'].lineData[272]++; + for (i = pagesOffset.length - 1; visit51_272_1(i >= 0); i--) { + _$jscoverage['/base.js'].lineData[273]++; offset = pagesOffset[i]; - _$jscoverage['/base.js'].lineData[195]++; - if (visit52_195_1(offset[p2] <= v)) { - _$jscoverage['/base.js'].lineData[196]++; + _$jscoverage['/base.js'].lineData[274]++; + if (visit52_274_1(offset[p2] <= v)) { + _$jscoverage['/base.js'].lineData[275]++; return offset.index; } } } - _$jscoverage['/base.js'].lineData[200]++; + _$jscoverage['/base.js'].lineData[279]++; return undefined; }, scrollToPage: function(index, animCfg) { - _$jscoverage['/base.js'].functionData[14]++; - _$jscoverage['/base.js'].lineData[204]++; + _$jscoverage['/base.js'].functionData[15]++; + _$jscoverage['/base.js'].lineData[283]++; var self = this, pageOffset; - _$jscoverage['/base.js'].lineData[206]++; - if (visit53_206_1((pageOffset = self.pagesOffset) && pageOffset[index])) { - _$jscoverage['/base.js'].lineData[207]++; + _$jscoverage['/base.js'].lineData[285]++; + if (visit53_285_1((pageOffset = self.pagesOffset) && pageOffset[index])) { + _$jscoverage['/base.js'].lineData[286]++; self.set('pageIndex', index); - _$jscoverage['/base.js'].lineData[208]++; + _$jscoverage['/base.js'].lineData[287]++; self.scrollTo(pageOffset[index], animCfg); } }, scrollToWithBounds: function(cfg, anim) { - _$jscoverage['/base.js'].functionData[15]++; - _$jscoverage['/base.js'].lineData[213]++; + _$jscoverage['/base.js'].functionData[16]++; + _$jscoverage['/base.js'].lineData[292]++; var self = this; - _$jscoverage['/base.js'].lineData[214]++; + _$jscoverage['/base.js'].lineData[293]++; var maxScroll = self.maxScroll; - _$jscoverage['/base.js'].lineData[215]++; + _$jscoverage['/base.js'].lineData[294]++; var minScroll = self.minScroll; - _$jscoverage['/base.js'].lineData[216]++; - if (visit54_216_1(cfg.left)) { - _$jscoverage['/base.js'].lineData[217]++; + _$jscoverage['/base.js'].lineData[295]++; + if (visit54_295_1(cfg.left)) { + _$jscoverage['/base.js'].lineData[296]++; cfg.left = Math.min(Math.max(cfg.left, minScroll.left), maxScroll.left); } - _$jscoverage['/base.js'].lineData[219]++; - if (visit55_219_1(cfg.top)) { - _$jscoverage['/base.js'].lineData[220]++; + _$jscoverage['/base.js'].lineData[298]++; + if (visit55_298_1(cfg.top)) { + _$jscoverage['/base.js'].lineData[299]++; cfg.top = Math.min(Math.max(cfg.top, minScroll.top), maxScroll.top); } - _$jscoverage['/base.js'].lineData[222]++; + _$jscoverage['/base.js'].lineData[301]++; self.scrollTo(cfg, anim); }, scrollTo: function(cfg, animCfg) { - _$jscoverage['/base.js'].functionData[16]++; - _$jscoverage['/base.js'].lineData[226]++; + _$jscoverage['/base.js'].functionData[17]++; + _$jscoverage['/base.js'].lineData[305]++; var self = this, left = cfg.left, top = cfg.top; - _$jscoverage['/base.js'].lineData[229]++; - if (visit56_229_1(animCfg)) { - _$jscoverage['/base.js'].lineData[230]++; + _$jscoverage['/base.js'].lineData[308]++; + if (visit56_308_1(animCfg)) { + _$jscoverage['/base.js'].lineData[309]++; var node = {}, to = {}; - _$jscoverage['/base.js'].lineData[232]++; - if (visit57_232_1(left !== undefined)) { - _$jscoverage['/base.js'].lineData[233]++; + _$jscoverage['/base.js'].lineData[311]++; + if (visit57_311_1(left !== undefined)) { + _$jscoverage['/base.js'].lineData[312]++; to.scrollLeft = left; - _$jscoverage['/base.js'].lineData[234]++; + _$jscoverage['/base.js'].lineData[313]++; node.scrollLeft = self.get('scrollLeft'); } - _$jscoverage['/base.js'].lineData[236]++; - if (visit58_236_1(top !== undefined)) { - _$jscoverage['/base.js'].lineData[237]++; + _$jscoverage['/base.js'].lineData[315]++; + if (visit58_315_1(top !== undefined)) { + _$jscoverage['/base.js'].lineData[316]++; to.scrollTop = top; - _$jscoverage['/base.js'].lineData[238]++; + _$jscoverage['/base.js'].lineData[317]++; node.scrollTop = self.get('scrollTop'); } - _$jscoverage['/base.js'].lineData[240]++; + _$jscoverage['/base.js'].lineData[319]++; animCfg.frame = frame; - _$jscoverage['/base.js'].lineData[241]++; + _$jscoverage['/base.js'].lineData[320]++; animCfg.node = node; - _$jscoverage['/base.js'].lineData[242]++; + _$jscoverage['/base.js'].lineData[321]++; animCfg.to = to; - _$jscoverage['/base.js'].lineData[243]++; + _$jscoverage['/base.js'].lineData[322]++; var anim; - _$jscoverage['/base.js'].lineData[244]++; + _$jscoverage['/base.js'].lineData[323]++; self.scrollAnims.push(anim = new Anim(animCfg)); - _$jscoverage['/base.js'].lineData[245]++; + _$jscoverage['/base.js'].lineData[324]++; anim.scrollView = self; - _$jscoverage['/base.js'].lineData[246]++; + _$jscoverage['/base.js'].lineData[325]++; anim.run(); } else { - _$jscoverage['/base.js'].lineData[248]++; - if (visit59_248_1(left !== undefined)) { - _$jscoverage['/base.js'].lineData[249]++; + _$jscoverage['/base.js'].lineData[327]++; + if (visit59_327_1(left !== undefined)) { + _$jscoverage['/base.js'].lineData[328]++; self.set('scrollLeft', left); } - _$jscoverage['/base.js'].lineData[251]++; - if (visit60_251_1(top !== undefined)) { - _$jscoverage['/base.js'].lineData[252]++; + _$jscoverage['/base.js'].lineData[330]++; + if (visit60_330_1(top !== undefined)) { + _$jscoverage['/base.js'].lineData[331]++; self.set('scrollTop', top); } } @@ -1031,8 +1175,9 @@ KISSY.add(function(S, require) { scrollTop: { view: 1, value: 0}, + dimension: {}, focusable: { - value: !isTouchEventSupported}, + value: true}, allowTextSelection: { value: true}, handleMouseEvents: { diff --git a/src/scroll-view/sub-modules/base/coverage/src/base/render.js b/src/scroll-view/sub-modules/base/coverage/src/base/render.js index e2526dbaf5..66239f1f2b 100644 --- a/src/scroll-view/sub-modules/base/coverage/src/base/render.js +++ b/src/scroll-view/sub-modules/base/coverage/src/base/render.js @@ -232,47 +232,25 @@ if (! _$jscoverage['/base/render.js']) { _$jscoverage['/base/render.js'].lineData[6] = 0; _$jscoverage['/base/render.js'].lineData[7] = 0; _$jscoverage['/base/render.js'].lineData[8] = 0; - _$jscoverage['/base/render.js'].lineData[12] = 0; - _$jscoverage['/base/render.js'].lineData[31] = 0; - _$jscoverage['/base/render.js'].lineData[33] = 0; - _$jscoverage['/base/render.js'].lineData[44] = 0; + _$jscoverage['/base/render.js'].lineData[11] = 0; + _$jscoverage['/base/render.js'].lineData[16] = 0; + _$jscoverage['/base/render.js'].lineData[19] = 0; + _$jscoverage['/base/render.js'].lineData[35] = 0; + _$jscoverage['/base/render.js'].lineData[37] = 0; _$jscoverage['/base/render.js'].lineData[47] = 0; - _$jscoverage['/base/render.js'].lineData[51] = 0; - _$jscoverage['/base/render.js'].lineData[52] = 0; + _$jscoverage['/base/render.js'].lineData[50] = 0; _$jscoverage['/base/render.js'].lineData[53] = 0; - _$jscoverage['/base/render.js'].lineData[54] = 0; - _$jscoverage['/base/render.js'].lineData[56] = 0; - _$jscoverage['/base/render.js'].lineData[58] = 0; - _$jscoverage['/base/render.js'].lineData[59] = 0; - _$jscoverage['/base/render.js'].lineData[61] = 0; _$jscoverage['/base/render.js'].lineData[62] = 0; - _$jscoverage['/base/render.js'].lineData[65] = 0; + _$jscoverage['/base/render.js'].lineData[66] = 0; _$jscoverage['/base/render.js'].lineData[70] = 0; + _$jscoverage['/base/render.js'].lineData[71] = 0; _$jscoverage['/base/render.js'].lineData[73] = 0; - _$jscoverage['/base/render.js'].lineData[78] = 0; + _$jscoverage['/base/render.js'].lineData[74] = 0; + _$jscoverage['/base/render.js'].lineData[75] = 0; _$jscoverage['/base/render.js'].lineData[80] = 0; - _$jscoverage['/base/render.js'].lineData[84] = 0; - _$jscoverage['/base/render.js'].lineData[85] = 0; - _$jscoverage['/base/render.js'].lineData[86] = 0; - _$jscoverage['/base/render.js'].lineData[91] = 0; - _$jscoverage['/base/render.js'].lineData[92] = 0; - _$jscoverage['/base/render.js'].lineData[95] = 0; - _$jscoverage['/base/render.js'].lineData[96] = 0; - _$jscoverage['/base/render.js'].lineData[103] = 0; - _$jscoverage['/base/render.js'].lineData[104] = 0; - _$jscoverage['/base/render.js'].lineData[105] = 0; - _$jscoverage['/base/render.js'].lineData[110] = 0; - _$jscoverage['/base/render.js'].lineData[117] = 0; - _$jscoverage['/base/render.js'].lineData[121] = 0; - _$jscoverage['/base/render.js'].lineData[125] = 0; - _$jscoverage['/base/render.js'].lineData[126] = 0; - _$jscoverage['/base/render.js'].lineData[128] = 0; - _$jscoverage['/base/render.js'].lineData[129] = 0; - _$jscoverage['/base/render.js'].lineData[130] = 0; - _$jscoverage['/base/render.js'].lineData[133] = 0; - _$jscoverage['/base/render.js'].lineData[134] = 0; - _$jscoverage['/base/render.js'].lineData[135] = 0; - _$jscoverage['/base/render.js'].lineData[139] = 0; + _$jscoverage['/base/render.js'].lineData[81] = 0; + _$jscoverage['/base/render.js'].lineData[82] = 0; + _$jscoverage['/base/render.js'].lineData[88] = 0; } if (! _$jscoverage['/base/render.js'].functionData) { _$jscoverage['/base/render.js'].functionData = []; @@ -282,62 +260,21 @@ if (! _$jscoverage['/base/render.js'].functionData) { _$jscoverage['/base/render.js'].functionData[3] = 0; _$jscoverage['/base/render.js'].functionData[4] = 0; _$jscoverage['/base/render.js'].functionData[5] = 0; - _$jscoverage['/base/render.js'].functionData[6] = 0; } if (! _$jscoverage['/base/render.js'].branchData) { _$jscoverage['/base/render.js'].branchData = {}; - _$jscoverage['/base/render.js'].branchData['58'] = []; - _$jscoverage['/base/render.js'].branchData['58'][1] = new BranchData(); - _$jscoverage['/base/render.js'].branchData['61'] = []; - _$jscoverage['/base/render.js'].branchData['61'][1] = new BranchData(); - _$jscoverage['/base/render.js'].branchData['84'] = []; - _$jscoverage['/base/render.js'].branchData['84'][1] = new BranchData(); - _$jscoverage['/base/render.js'].branchData['86'] = []; - _$jscoverage['/base/render.js'].branchData['86'][1] = new BranchData(); - _$jscoverage['/base/render.js'].branchData['95'] = []; - _$jscoverage['/base/render.js'].branchData['95'][1] = new BranchData(); - _$jscoverage['/base/render.js'].branchData['95'][2] = new BranchData(); - _$jscoverage['/base/render.js'].branchData['95'][3] = new BranchData(); - _$jscoverage['/base/render.js'].branchData['103'] = []; - _$jscoverage['/base/render.js'].branchData['103'][1] = new BranchData(); - _$jscoverage['/base/render.js'].branchData['125'] = []; - _$jscoverage['/base/render.js'].branchData['125'][1] = new BranchData(); + _$jscoverage['/base/render.js'].branchData['19'] = []; + _$jscoverage['/base/render.js'].branchData['19'][1] = new BranchData(); + _$jscoverage['/base/render.js'].branchData['70'] = []; + _$jscoverage['/base/render.js'].branchData['70'][1] = new BranchData(); } -_$jscoverage['/base/render.js'].branchData['125'][1].init(3946, 11, 'supportCss3'); -function visit9_125_1(result) { - _$jscoverage['/base/render.js'].branchData['125'][1].ranCondition(result); +_$jscoverage['/base/render.js'].branchData['70'][1].init(2263, 11, 'supportCss3'); +function visit2_70_1(result) { + _$jscoverage['/base/render.js'].branchData['70'][1].ranCondition(result); return result; -}_$jscoverage['/base/render.js'].branchData['103'][1].init(862, 9, 'pageIndex'); -function visit8_103_1(result) { - _$jscoverage['/base/render.js'].branchData['103'][1].ranCondition(result); - return result; -}_$jscoverage['/base/render.js'].branchData['95'][3].init(212, 19, 'top <= maxScrollTop'); -function visit7_95_3(result) { - _$jscoverage['/base/render.js'].branchData['95'][3].ranCondition(result); - return result; -}_$jscoverage['/base/render.js'].branchData['95'][2].init(187, 21, 'left <= maxScrollLeft'); -function visit6_95_2(result) { - _$jscoverage['/base/render.js'].branchData['95'][2].ranCondition(result); - return result; -}_$jscoverage['/base/render.js'].branchData['95'][1].init(187, 44, 'left <= maxScrollLeft && top <= maxScrollTop'); -function visit5_95_1(result) { - _$jscoverage['/base/render.js'].branchData['95'][1].ranCondition(result); - return result; -}_$jscoverage['/base/render.js'].branchData['86'][1].init(97, 24, 'typeof snap === \'string\''); -function visit4_86_1(result) { - _$jscoverage['/base/render.js'].branchData['86'][1].ranCondition(result); - return result; -}_$jscoverage['/base/render.js'].branchData['84'][1].init(1715, 4, 'snap'); -function visit3_84_1(result) { - _$jscoverage['/base/render.js'].branchData['84'][1].ranCondition(result); - return result; -}_$jscoverage['/base/render.js'].branchData['61'][1].init(1083, 25, 'scrollWidth > clientWidth'); -function visit2_61_1(result) { - _$jscoverage['/base/render.js'].branchData['61'][1].ranCondition(result); - return result; -}_$jscoverage['/base/render.js'].branchData['58'][1].init(985, 27, 'scrollHeight > clientHeight'); -function visit1_58_1(result) { - _$jscoverage['/base/render.js'].branchData['58'][1].ranCondition(result); +}_$jscoverage['/base/render.js'].branchData['19'][1].init(491, 56, 'S.Features.getVendorCssPropPrefix(\'transform\') !== false'); +function visit1_19_1(result) { + _$jscoverage['/base/render.js'].branchData['19'][1].ranCondition(result); return result; }_$jscoverage['/base/render.js'].lineData[6]++; KISSY.add(function(S, require) { @@ -346,117 +283,61 @@ KISSY.add(function(S, require) { var Container = require('component/container'); _$jscoverage['/base/render.js'].lineData[8]++; var ContentRenderExtension = require('component/extension/content-render'); - _$jscoverage['/base/render.js'].lineData[12]++; - var Features = S.Features, supportCss3 = Features.isTransformSupported(), transformProperty; - _$jscoverage['/base/render.js'].lineData[31]++; + _$jscoverage['/base/render.js'].lineData[11]++; + var Feature = S.Features, floor = Math.floor, transformProperty; + _$jscoverage['/base/render.js'].lineData[16]++; + var isTransform3dSupported = S.Features.isTransform3dSupported(); + _$jscoverage['/base/render.js'].lineData[19]++; + var supportCss3 = visit1_19_1(S.Features.getVendorCssPropPrefix('transform') !== false); + _$jscoverage['/base/render.js'].lineData[35]++; var methods = { syncUI: function() { _$jscoverage['/base/render.js'].functionData[1]++; - _$jscoverage['/base/render.js'].lineData[33]++; - var self = this, control = self.control, el = control.el, contentEl = control.contentEl, $contentEl = control.$contentEl; - _$jscoverage['/base/render.js'].lineData[44]++; - var scrollHeight = contentEl.offsetHeight, scrollWidth = contentEl.offsetWidth; + _$jscoverage['/base/render.js'].lineData[37]++; + var self = this, control = self.control, el = control.el, contentEl = control.contentEl; _$jscoverage['/base/render.js'].lineData[47]++; - var clientHeight = el.clientHeight, allowScroll, clientWidth = el.clientWidth; - _$jscoverage['/base/render.js'].lineData[51]++; - control.scrollHeight = scrollHeight; - _$jscoverage['/base/render.js'].lineData[52]++; - control.scrollWidth = scrollWidth; + var scrollHeight = Math.max(contentEl.offsetHeight, contentEl.scrollHeight), scrollWidth = Math.max(contentEl.offsetWidth, contentEl.scrollWidth); + _$jscoverage['/base/render.js'].lineData[50]++; + var clientHeight = el.clientHeight, clientWidth = el.clientWidth; _$jscoverage['/base/render.js'].lineData[53]++; - control.clientHeight = clientHeight; - _$jscoverage['/base/render.js'].lineData[54]++; - control.clientWidth = clientWidth; - _$jscoverage['/base/render.js'].lineData[56]++; - allowScroll = control.allowScroll = {}; - _$jscoverage['/base/render.js'].lineData[58]++; - if (visit1_58_1(scrollHeight > clientHeight)) { - _$jscoverage['/base/render.js'].lineData[59]++; - allowScroll.top = 1; - } - _$jscoverage['/base/render.js'].lineData[61]++; - if (visit2_61_1(scrollWidth > clientWidth)) { - _$jscoverage['/base/render.js'].lineData[62]++; - allowScroll.left = 1; - } - _$jscoverage['/base/render.js'].lineData[65]++; - control.minScroll = { - left: 0, - top: 0}; - _$jscoverage['/base/render.js'].lineData[70]++; - var maxScrollLeft, maxScrollTop; - _$jscoverage['/base/render.js'].lineData[73]++; - control.maxScroll = { - left: maxScrollLeft = scrollWidth - clientWidth, - top: maxScrollTop = scrollHeight - clientHeight}; - _$jscoverage['/base/render.js'].lineData[78]++; - delete control.scrollStep; - _$jscoverage['/base/render.js'].lineData[80]++; - var snap = control.get('snap'), scrollLeft = control.get('scrollLeft'), scrollTop = control.get('scrollTop'); - _$jscoverage['/base/render.js'].lineData[84]++; - if (visit3_84_1(snap)) { - _$jscoverage['/base/render.js'].lineData[85]++; - var elOffset = $contentEl.offset(); - _$jscoverage['/base/render.js'].lineData[86]++; - var pages = control.pages = visit4_86_1(typeof snap === 'string') ? $contentEl.all(snap) : $contentEl.children(), pageIndex = control.get('pageIndex'), pagesOffset = control.pagesOffset = []; - _$jscoverage['/base/render.js'].lineData[91]++; - pages.each(function(p, i) { - _$jscoverage['/base/render.js'].functionData[2]++; - _$jscoverage['/base/render.js'].lineData[92]++; - var offset = p.offset(), left = offset.left - elOffset.left, top = offset.top - elOffset.top; - _$jscoverage['/base/render.js'].lineData[95]++; - if (visit5_95_1(visit6_95_2(left <= maxScrollLeft) && visit7_95_3(top <= maxScrollTop))) { - _$jscoverage['/base/render.js'].lineData[96]++; - pagesOffset[i] = { - left: left, - top: top, - index: i}; - } -}); - _$jscoverage['/base/render.js'].lineData[103]++; - if (visit8_103_1(pageIndex)) { - _$jscoverage['/base/render.js'].lineData[104]++; - control.scrollToPage(pageIndex); - _$jscoverage['/base/render.js'].lineData[105]++; - return; - } - } - _$jscoverage['/base/render.js'].lineData[110]++; - control.scrollToWithBounds({ - left: scrollLeft, - top: scrollTop}); + control.set('dimension', { + 'scrollHeight': scrollHeight, + 'scrollWidth': scrollWidth, + 'clientWidth': clientWidth, + 'clientHeight': clientHeight}); }, '_onSetScrollLeft': function(v) { - _$jscoverage['/base/render.js'].functionData[3]++; - _$jscoverage['/base/render.js'].lineData[117]++; + _$jscoverage['/base/render.js'].functionData[2]++; + _$jscoverage['/base/render.js'].lineData[62]++; this.control.contentEl.style.left = -v + 'px'; }, '_onSetScrollTop': function(v) { - _$jscoverage['/base/render.js'].functionData[4]++; - _$jscoverage['/base/render.js'].lineData[121]++; + _$jscoverage['/base/render.js'].functionData[3]++; + _$jscoverage['/base/render.js'].lineData[66]++; this.control.contentEl.style.top = -v + 'px'; }}; - _$jscoverage['/base/render.js'].lineData[125]++; - if (visit9_125_1(supportCss3)) { - _$jscoverage['/base/render.js'].lineData[126]++; - transformProperty = Features.getTransformProperty(); - _$jscoverage['/base/render.js'].lineData[128]++; + _$jscoverage['/base/render.js'].lineData[70]++; + if (visit2_70_1(supportCss3)) { + _$jscoverage['/base/render.js'].lineData[71]++; + transformProperty = Feature.getVendorCssPropName('transform'); + _$jscoverage['/base/render.js'].lineData[73]++; methods._onSetScrollLeft = function(v) { - _$jscoverage['/base/render.js'].functionData[5]++; - _$jscoverage['/base/render.js'].lineData[129]++; + _$jscoverage['/base/render.js'].functionData[4]++; + _$jscoverage['/base/render.js'].lineData[74]++; var control = this.control; - _$jscoverage['/base/render.js'].lineData[130]++; - control.contentEl.style[transformProperty] = 'translate3d(' + -v + 'px,' + -control.get('scrollTop') + 'px,0)'; + _$jscoverage['/base/render.js'].lineData[75]++; + control.contentEl.style[transformProperty] = 'translateX(' + floor(-v) + 'px)' + ' translateY(' + floor(-control.get('scrollTop')) + 'px)' + (isTransform3dSupported ? ' translateZ(0)' : ''); }; - _$jscoverage['/base/render.js'].lineData[133]++; + _$jscoverage['/base/render.js'].lineData[80]++; methods._onSetScrollTop = function(v) { - _$jscoverage['/base/render.js'].functionData[6]++; - _$jscoverage['/base/render.js'].lineData[134]++; + _$jscoverage['/base/render.js'].functionData[5]++; + _$jscoverage['/base/render.js'].lineData[81]++; var control = this.control; - _$jscoverage['/base/render.js'].lineData[135]++; - control.contentEl.style[transformProperty] = 'translate3d(' + -control.get('scrollLeft') + 'px,' + -v + 'px,0)'; + _$jscoverage['/base/render.js'].lineData[82]++; + control.contentEl.style[transformProperty] = 'translateX(' + floor(-control.get('scrollLeft')) + 'px)' + ' translateY(' + floor(-v) + 'px)' + (isTransform3dSupported ? ' translateZ(0)' : ''); }; } - _$jscoverage['/base/render.js'].lineData[139]++; + _$jscoverage['/base/render.js'].lineData[88]++; return Container.getDefaultRender().extend([ContentRenderExtension], methods, { name: 'ScrollViewRender'}); }); diff --git a/src/scroll-view/sub-modules/base/src/base.js b/src/scroll-view/sub-modules/base/src/base.js index e528aff181..ff920a48db 100644 --- a/src/scroll-view/sub-modules/base/src/base.js +++ b/src/scroll-view/sub-modules/base/src/base.js @@ -9,9 +9,7 @@ KISSY.add(function (S, require) { var Container = require('component/container'); var Render = require('./base/render'); - var $ = S.all, - isTouchEventSupported = S.Features.isTouchEventSupported(), KeyCode = Node.KeyCode; function onElScroll() { @@ -32,6 +30,89 @@ KISSY.add(function (S, require) { anim.scrollView.set(fx.prop, fx.val); } + function reflow(v) { + var control = this, + $contentEl = control.$contentEl; + // consider pull to refresh + // refresh label will be prepended to el + // contentEl must be absolute + // or else + // relative is weird, should math.max(contentEl.scrollHeight,el.scrollHeight) + // will affect pull to refresh + var scrollHeight = v.scrollHeight, + scrollWidth = v.scrollWidth; + + var clientHeight = v.clientHeight, + allowScroll, + clientWidth = v.clientWidth; + + control.scrollHeight = scrollHeight; + control.scrollWidth = scrollWidth; + control.clientHeight = clientHeight; + control.clientWidth = clientWidth; + + allowScroll = control.allowScroll = {}; + + if (scrollHeight > clientHeight) { + allowScroll.top = 1; + } + if (scrollWidth > clientWidth) { + allowScroll.left = 1; + } + + control.minScroll = { + left: 0, + top: 0 + }; + + var maxScrollLeft, + maxScrollTop; + + control.maxScroll = { + left: maxScrollLeft = scrollWidth - clientWidth, + top: maxScrollTop = scrollHeight - clientHeight + }; + + delete control.scrollStep; + + var snap = control.get('snap'), + scrollLeft = control.get('scrollLeft'), + scrollTop = control.get('scrollTop'); + + if (snap) { + var elOffset = $contentEl.offset(); + var pages = control.pages = typeof snap === 'string' ? + $contentEl.all(snap) : + $contentEl.children(), + pageIndex = control.get('pageIndex'), + pagesOffset = control.pagesOffset = []; + pages.each(function (p, i) { + var offset = p.offset(), + left = offset.left - elOffset.left, + top = offset.top - elOffset.top; + if (left <= maxScrollLeft && top <= maxScrollTop) { + pagesOffset[i] = { + left: left, + top: top, + index: i + }; + } + }); + if (pageIndex) { + control.scrollToPage(pageIndex); + return; + } + } + + // in case content is reduces + control.scrollToWithBounds({ + left: scrollLeft, + top: scrollTop + }); + + control.fire('reflow', v); + } + /** * Make container scrollable. * module scroll-view will be this class on non-touch device @@ -52,6 +133,8 @@ KISSY.add(function (S, require) { .on('scroll', onElScroll, self); }, + _onSetDimension: reflow, + handleKeyDownInternal: function (e) { // no need to process disabled (already processed by Component) var target = e.target, @@ -153,10 +236,6 @@ KISSY.add(function (S, require) { } }, - 'isAxisEnabled': function (axis) { - return this.allowScroll[axis === 'x' ? 'left' : 'top']; - }, - stopAnimation: function () { var self = this; if (self.scrollAnims.length) { @@ -175,7 +254,7 @@ KISSY.add(function (S, require) { this.scrollToPage(v); }, - _getPageIndexFromXY: function (v, allowX, direction) { + getPageIndexFromXY: function (v, allowX, direction) { var pagesOffset = this.pagesOffset.concat([]); var p2 = allowX ? 'left' : 'top'; var i, offset; @@ -289,9 +368,12 @@ KISSY.add(function (S, require) { view: 1, value: 0 }, + + dimension: {}, + focusable: { // need process keydown - value: !isTouchEventSupported + value: true }, allowTextSelection: { value: true diff --git a/src/scroll-view/sub-modules/base/src/base/render.js b/src/scroll-view/sub-modules/base/src/base/render.js index f45bbdf921..7612aaebfa 100644 --- a/src/scroll-view/sub-modules/base/src/base/render.js +++ b/src/scroll-view/sub-modules/base/src/base/render.js @@ -7,13 +7,17 @@ KISSY.add(function (S, require) { var Container = require('component/container'); var ContentRenderExtension = require('component/extension/content-render'); - // http://www.html5rocks.com/en/tutorials/speed/html5/ - var Features = S.Features, + var Feature = S.Features, // MARKER_CLS = 'ks-scrollview-marker', - supportCss3 = Features.isTransformSupported(), + floor = Math.floor, transformProperty; + var isTransform3dSupported = S.Features.isTransform3dSupported(); + + // http://www.html5rocks.com/en/tutorials/speed/html5/ + var supportCss3 = S.Features.getVendorCssPropPrefix('transform') !== false; + // function createMarker(contentEl) { // var m; // if (m = contentEl.one('.' + MARKER_CLS)) { @@ -33,83 +37,24 @@ KISSY.add(function (S, require) { var self = this, control = self.control, el = control.el, - contentEl = control.contentEl, - $contentEl = control.$contentEl; + contentEl = control.contentEl; // consider pull to refresh // refresh label will be prepended to el // contentEl must be absolute // or else // relative is weird, should math.max(contentEl.scrollHeight,el.scrollHeight) // will affect pull to refresh - var scrollHeight = contentEl.offsetHeight, - scrollWidth = contentEl.offsetWidth; + var scrollHeight = Math.max(contentEl.offsetHeight, contentEl.scrollHeight), + scrollWidth = Math.max(contentEl.offsetWidth, contentEl.scrollWidth); var clientHeight = el.clientHeight, - allowScroll, clientWidth = el.clientWidth; - control.scrollHeight = scrollHeight; - control.scrollWidth = scrollWidth; - control.clientHeight = clientHeight; - control.clientWidth = clientWidth; - - allowScroll = control.allowScroll = {}; - - if (scrollHeight > clientHeight) { - allowScroll.top = 1; - } - if (scrollWidth > clientWidth) { - allowScroll.left = 1; - } - - control.minScroll = { - left: 0, - top: 0 - }; - - var maxScrollLeft, - maxScrollTop; - - control.maxScroll = { - left: maxScrollLeft = scrollWidth - clientWidth, - top: maxScrollTop = scrollHeight - clientHeight - }; - - delete control.scrollStep; - - var snap = control.get('snap'), - scrollLeft = control.get('scrollLeft'), - scrollTop = control.get('scrollTop'); - - if (snap) { - var elOffset = $contentEl.offset(); - var pages = control.pages = typeof snap === 'string' ? - $contentEl.all(snap) : - $contentEl.children(), - pageIndex = control.get('pageIndex'), - pagesOffset = control.pagesOffset = []; - pages.each(function (p, i) { - var offset = p.offset(), - left = offset.left - elOffset.left, - top = offset.top - elOffset.top; - if (left <= maxScrollLeft && top <= maxScrollTop) { - pagesOffset[i] = { - left: left, - top: top, - index: i - }; - } - }); - if (pageIndex) { - control.scrollToPage(pageIndex); - return; - } - } - - // in case content is reduces - control.scrollToWithBounds({ - left: scrollLeft, - top: scrollTop + control.set('dimension', { + 'scrollHeight': scrollHeight, + 'scrollWidth': scrollWidth, + 'clientWidth': clientWidth, + 'clientHeight': clientHeight }); }, @@ -123,16 +68,20 @@ KISSY.add(function (S, require) { }; if (supportCss3) { - transformProperty = Features.getTransformProperty(); + transformProperty = Feature.getVendorCssPropName('transform'); methods._onSetScrollLeft = function (v) { var control = this.control; - control.contentEl.style[transformProperty] = 'translate3d(' + -v + 'px,' + -control.get('scrollTop') + 'px,0)'; + control.contentEl.style[transformProperty] = 'translateX(' + floor(-v) + 'px)' + + ' translateY(' + floor(-control.get('scrollTop')) + 'px)' + + (isTransform3dSupported ? ' translateZ(0)' : ''); }; methods._onSetScrollTop = function (v) { var control = this.control; - control.contentEl.style[transformProperty] = 'translate3d(' + -control.get('scrollLeft') + 'px,' + -v + 'px,0)'; + control.contentEl.style[transformProperty] = 'translateX(' + floor(-control.get('scrollLeft')) + 'px)' + + ' translateY(' + floor(-v) + 'px)' + + (isTransform3dSupported ? ' translateZ(0)' : ''); }; } diff --git a/src/scroll-view/sub-modules/drag/coverage/src/drag.js b/src/scroll-view/sub-modules/drag/coverage/src/drag.js index a16c4873d4..d70a99aef2 100644 --- a/src/scroll-view/sub-modules/drag/coverage/src/drag.js +++ b/src/scroll-view/sub-modules/drag/coverage/src/drag.js @@ -233,29 +233,29 @@ if (! _$jscoverage['/drag.js']) { _$jscoverage['/drag.js'].lineData[7] = 0; _$jscoverage['/drag.js'].lineData[8] = 0; _$jscoverage['/drag.js'].lineData[9] = 0; - _$jscoverage['/drag.js'].lineData[11] = 0; - _$jscoverage['/drag.js'].lineData[13] = 0; - _$jscoverage['/drag.js'].lineData[15] = 0; - _$jscoverage['/drag.js'].lineData[17] = 0; - _$jscoverage['/drag.js'].lineData[19] = 0; - _$jscoverage['/drag.js'].lineData[21] = 0; - _$jscoverage['/drag.js'].lineData[23] = 0; + _$jscoverage['/drag.js'].lineData[10] = 0; + _$jscoverage['/drag.js'].lineData[12] = 0; + _$jscoverage['/drag.js'].lineData[14] = 0; + _$jscoverage['/drag.js'].lineData[16] = 0; + _$jscoverage['/drag.js'].lineData[18] = 0; + _$jscoverage['/drag.js'].lineData[20] = 0; + _$jscoverage['/drag.js'].lineData[22] = 0; _$jscoverage['/drag.js'].lineData[24] = 0; - _$jscoverage['/drag.js'].lineData[26] = 0; + _$jscoverage['/drag.js'].lineData[25] = 0; _$jscoverage['/drag.js'].lineData[27] = 0; _$jscoverage['/drag.js'].lineData[28] = 0; - _$jscoverage['/drag.js'].lineData[31] = 0; + _$jscoverage['/drag.js'].lineData[29] = 0; _$jscoverage['/drag.js'].lineData[32] = 0; _$jscoverage['/drag.js'].lineData[33] = 0; - _$jscoverage['/drag.js'].lineData[35] = 0; - _$jscoverage['/drag.js'].lineData[39] = 0; - _$jscoverage['/drag.js'].lineData[41] = 0; - _$jscoverage['/drag.js'].lineData[52] = 0; + _$jscoverage['/drag.js'].lineData[34] = 0; + _$jscoverage['/drag.js'].lineData[36] = 0; + _$jscoverage['/drag.js'].lineData[40] = 0; + _$jscoverage['/drag.js'].lineData[42] = 0; _$jscoverage['/drag.js'].lineData[53] = 0; _$jscoverage['/drag.js'].lineData[54] = 0; - _$jscoverage['/drag.js'].lineData[57] = 0; + _$jscoverage['/drag.js'].lineData[55] = 0; _$jscoverage['/drag.js'].lineData[58] = 0; - _$jscoverage['/drag.js'].lineData[61] = 0; + _$jscoverage['/drag.js'].lineData[59] = 0; _$jscoverage['/drag.js'].lineData[62] = 0; _$jscoverage['/drag.js'].lineData[63] = 0; _$jscoverage['/drag.js'].lineData[64] = 0; @@ -263,222 +263,232 @@ if (! _$jscoverage['/drag.js']) { _$jscoverage['/drag.js'].lineData[66] = 0; _$jscoverage['/drag.js'].lineData[67] = 0; _$jscoverage['/drag.js'].lineData[68] = 0; - _$jscoverage['/drag.js'].lineData[71] = 0; - _$jscoverage['/drag.js'].lineData[74] = 0; - _$jscoverage['/drag.js'].lineData[76] = 0; + _$jscoverage['/drag.js'].lineData[69] = 0; + _$jscoverage['/drag.js'].lineData[72] = 0; + _$jscoverage['/drag.js'].lineData[75] = 0; _$jscoverage['/drag.js'].lineData[77] = 0; - _$jscoverage['/drag.js'].lineData[81] = 0; + _$jscoverage['/drag.js'].lineData[78] = 0; _$jscoverage['/drag.js'].lineData[82] = 0; - _$jscoverage['/drag.js'].lineData[84] = 0; - _$jscoverage['/drag.js'].lineData[87] = 0; + _$jscoverage['/drag.js'].lineData[83] = 0; + _$jscoverage['/drag.js'].lineData[85] = 0; _$jscoverage['/drag.js'].lineData[88] = 0; _$jscoverage['/drag.js'].lineData[89] = 0; _$jscoverage['/drag.js'].lineData[90] = 0; - _$jscoverage['/drag.js'].lineData[92] = 0; - _$jscoverage['/drag.js'].lineData[95] = 0; + _$jscoverage['/drag.js'].lineData[91] = 0; + _$jscoverage['/drag.js'].lineData[93] = 0; _$jscoverage['/drag.js'].lineData[96] = 0; _$jscoverage['/drag.js'].lineData[97] = 0; _$jscoverage['/drag.js'].lineData[98] = 0; - _$jscoverage['/drag.js'].lineData[100] = 0; - _$jscoverage['/drag.js'].lineData[107] = 0; + _$jscoverage['/drag.js'].lineData[99] = 0; + _$jscoverage['/drag.js'].lineData[101] = 0; _$jscoverage['/drag.js'].lineData[108] = 0; _$jscoverage['/drag.js'].lineData[109] = 0; _$jscoverage['/drag.js'].lineData[110] = 0; - _$jscoverage['/drag.js'].lineData[112] = 0; + _$jscoverage['/drag.js'].lineData[111] = 0; _$jscoverage['/drag.js'].lineData[113] = 0; _$jscoverage['/drag.js'].lineData[114] = 0; _$jscoverage['/drag.js'].lineData[115] = 0; - _$jscoverage['/drag.js'].lineData[121] = 0; - _$jscoverage['/drag.js'].lineData[124] = 0; + _$jscoverage['/drag.js'].lineData[116] = 0; + _$jscoverage['/drag.js'].lineData[122] = 0; _$jscoverage['/drag.js'].lineData[125] = 0; _$jscoverage['/drag.js'].lineData[126] = 0; - _$jscoverage['/drag.js'].lineData[129] = 0; + _$jscoverage['/drag.js'].lineData[127] = 0; _$jscoverage['/drag.js'].lineData[130] = 0; - _$jscoverage['/drag.js'].lineData[134] = 0; + _$jscoverage['/drag.js'].lineData[131] = 0; _$jscoverage['/drag.js'].lineData[135] = 0; _$jscoverage['/drag.js'].lineData[136] = 0; - _$jscoverage['/drag.js'].lineData[142] = 0; - _$jscoverage['/drag.js'].lineData[144] = 0; - _$jscoverage['/drag.js'].lineData[149] = 0; - _$jscoverage['/drag.js'].lineData[160] = 0; + _$jscoverage['/drag.js'].lineData[137] = 0; + _$jscoverage['/drag.js'].lineData[143] = 0; + _$jscoverage['/drag.js'].lineData[145] = 0; + _$jscoverage['/drag.js'].lineData[150] = 0; _$jscoverage['/drag.js'].lineData[161] = 0; - _$jscoverage['/drag.js'].lineData[163] = 0; - _$jscoverage['/drag.js'].lineData[166] = 0; + _$jscoverage['/drag.js'].lineData[162] = 0; + _$jscoverage['/drag.js'].lineData[164] = 0; _$jscoverage['/drag.js'].lineData[167] = 0; _$jscoverage['/drag.js'].lineData[168] = 0; _$jscoverage['/drag.js'].lineData[169] = 0; _$jscoverage['/drag.js'].lineData[170] = 0; - _$jscoverage['/drag.js'].lineData[172] = 0; - _$jscoverage['/drag.js'].lineData[174] = 0; + _$jscoverage['/drag.js'].lineData[171] = 0; + _$jscoverage['/drag.js'].lineData[173] = 0; _$jscoverage['/drag.js'].lineData[175] = 0; _$jscoverage['/drag.js'].lineData[176] = 0; _$jscoverage['/drag.js'].lineData[177] = 0; _$jscoverage['/drag.js'].lineData[178] = 0; - _$jscoverage['/drag.js'].lineData[181] = 0; + _$jscoverage['/drag.js'].lineData[179] = 0; _$jscoverage['/drag.js'].lineData[182] = 0; - _$jscoverage['/drag.js'].lineData[186] = 0; - _$jscoverage['/drag.js'].lineData[188] = 0; + _$jscoverage['/drag.js'].lineData[183] = 0; + _$jscoverage['/drag.js'].lineData[187] = 0; _$jscoverage['/drag.js'].lineData[189] = 0; - _$jscoverage['/drag.js'].lineData[191] = 0; + _$jscoverage['/drag.js'].lineData[190] = 0; _$jscoverage['/drag.js'].lineData[192] = 0; _$jscoverage['/drag.js'].lineData[193] = 0; - _$jscoverage['/drag.js'].lineData[195] = 0; + _$jscoverage['/drag.js'].lineData[194] = 0; _$jscoverage['/drag.js'].lineData[196] = 0; _$jscoverage['/drag.js'].lineData[197] = 0; - _$jscoverage['/drag.js'].lineData[199] = 0; + _$jscoverage['/drag.js'].lineData[198] = 0; _$jscoverage['/drag.js'].lineData[200] = 0; - _$jscoverage['/drag.js'].lineData[206] = 0; - _$jscoverage['/drag.js'].lineData[208] = 0; - _$jscoverage['/drag.js'].lineData[210] = 0; - _$jscoverage['/drag.js'].lineData[212] = 0; - _$jscoverage['/drag.js'].lineData[216] = 0; + _$jscoverage['/drag.js'].lineData[201] = 0; + _$jscoverage['/drag.js'].lineData[207] = 0; + _$jscoverage['/drag.js'].lineData[209] = 0; + _$jscoverage['/drag.js'].lineData[211] = 0; + _$jscoverage['/drag.js'].lineData[213] = 0; _$jscoverage['/drag.js'].lineData[217] = 0; _$jscoverage['/drag.js'].lineData[218] = 0; - _$jscoverage['/drag.js'].lineData[220] = 0; - _$jscoverage['/drag.js'].lineData[225] = 0; + _$jscoverage['/drag.js'].lineData[219] = 0; + _$jscoverage['/drag.js'].lineData[221] = 0; _$jscoverage['/drag.js'].lineData[226] = 0; - _$jscoverage['/drag.js'].lineData[228] = 0; _$jscoverage['/drag.js'].lineData[229] = 0; - _$jscoverage['/drag.js'].lineData[231] = 0; + _$jscoverage['/drag.js'].lineData[230] = 0; _$jscoverage['/drag.js'].lineData[232] = 0; - _$jscoverage['/drag.js'].lineData[236] = 0; + _$jscoverage['/drag.js'].lineData[234] = 0; _$jscoverage['/drag.js'].lineData[237] = 0; - _$jscoverage['/drag.js'].lineData[238] = 0; _$jscoverage['/drag.js'].lineData[239] = 0; + _$jscoverage['/drag.js'].lineData[243] = 0; _$jscoverage['/drag.js'].lineData[244] = 0; _$jscoverage['/drag.js'].lineData[245] = 0; _$jscoverage['/drag.js'].lineData[247] = 0; - _$jscoverage['/drag.js'].lineData[248] = 0; _$jscoverage['/drag.js'].lineData[249] = 0; - _$jscoverage['/drag.js'].lineData[250] = 0; + _$jscoverage['/drag.js'].lineData[251] = 0; _$jscoverage['/drag.js'].lineData[253] = 0; + _$jscoverage['/drag.js'].lineData[254] = 0; + _$jscoverage['/drag.js'].lineData[255] = 0; _$jscoverage['/drag.js'].lineData[256] = 0; - _$jscoverage['/drag.js'].lineData[257] = 0; - _$jscoverage['/drag.js'].lineData[261] = 0; + _$jscoverage['/drag.js'].lineData[259] = 0; _$jscoverage['/drag.js'].lineData[262] = 0; - _$jscoverage['/drag.js'].lineData[265] = 0; + _$jscoverage['/drag.js'].lineData[263] = 0; + _$jscoverage['/drag.js'].lineData[264] = 0; + _$jscoverage['/drag.js'].lineData[266] = 0; + _$jscoverage['/drag.js'].lineData[269] = 0; _$jscoverage['/drag.js'].lineData[270] = 0; - _$jscoverage['/drag.js'].lineData[271] = 0; - _$jscoverage['/drag.js'].lineData[274] = 0; - _$jscoverage['/drag.js'].lineData[275] = 0; - _$jscoverage['/drag.js'].lineData[277] = 0; + _$jscoverage['/drag.js'].lineData[273] = 0; _$jscoverage['/drag.js'].lineData[278] = 0; _$jscoverage['/drag.js'].lineData[279] = 0; + _$jscoverage['/drag.js'].lineData[282] = 0; _$jscoverage['/drag.js'].lineData[283] = 0; + _$jscoverage['/drag.js'].lineData[285] = 0; + _$jscoverage['/drag.js'].lineData[286] = 0; _$jscoverage['/drag.js'].lineData[287] = 0; - _$jscoverage['/drag.js'].lineData[288] = 0; - _$jscoverage['/drag.js'].lineData[290] = 0; _$jscoverage['/drag.js'].lineData[291] = 0; - _$jscoverage['/drag.js'].lineData[294] = 0; + _$jscoverage['/drag.js'].lineData[295] = 0; _$jscoverage['/drag.js'].lineData[296] = 0; - _$jscoverage['/drag.js'].lineData[297] = 0; _$jscoverage['/drag.js'].lineData[298] = 0; - _$jscoverage['/drag.js'].lineData[300] = 0; - _$jscoverage['/drag.js'].lineData[303] = 0; + _$jscoverage['/drag.js'].lineData[299] = 0; + _$jscoverage['/drag.js'].lineData[302] = 0; + _$jscoverage['/drag.js'].lineData[304] = 0; _$jscoverage['/drag.js'].lineData[305] = 0; _$jscoverage['/drag.js'].lineData[306] = 0; - _$jscoverage['/drag.js'].lineData[307] = 0; - _$jscoverage['/drag.js'].lineData[309] = 0; + _$jscoverage['/drag.js'].lineData[308] = 0; + _$jscoverage['/drag.js'].lineData[311] = 0; _$jscoverage['/drag.js'].lineData[313] = 0; _$jscoverage['/drag.js'].lineData[314] = 0; + _$jscoverage['/drag.js'].lineData[315] = 0; _$jscoverage['/drag.js'].lineData[317] = 0; - _$jscoverage['/drag.js'].lineData[318] = 0; _$jscoverage['/drag.js'].lineData[321] = 0; - _$jscoverage['/drag.js'].lineData[324] = 0; + _$jscoverage['/drag.js'].lineData[322] = 0; _$jscoverage['/drag.js'].lineData[325] = 0; - _$jscoverage['/drag.js'].lineData[328] = 0; + _$jscoverage['/drag.js'].lineData[326] = 0; _$jscoverage['/drag.js'].lineData[329] = 0; - _$jscoverage['/drag.js'].lineData[330] = 0; - _$jscoverage['/drag.js'].lineData[331] = 0; _$jscoverage['/drag.js'].lineData[332] = 0; _$jscoverage['/drag.js'].lineData[333] = 0; - _$jscoverage['/drag.js'].lineData[335] = 0; _$jscoverage['/drag.js'].lineData[336] = 0; _$jscoverage['/drag.js'].lineData[337] = 0; _$jscoverage['/drag.js'].lineData[338] = 0; - _$jscoverage['/drag.js'].lineData[339] = 0; _$jscoverage['/drag.js'].lineData[340] = 0; _$jscoverage['/drag.js'].lineData[341] = 0; + _$jscoverage['/drag.js'].lineData[343] = 0; + _$jscoverage['/drag.js'].lineData[344] = 0; _$jscoverage['/drag.js'].lineData[345] = 0; - _$jscoverage['/drag.js'].lineData[346] = 0; _$jscoverage['/drag.js'].lineData[347] = 0; _$jscoverage['/drag.js'].lineData[348] = 0; _$jscoverage['/drag.js'].lineData[349] = 0; - _$jscoverage['/drag.js'].lineData[350] = 0; _$jscoverage['/drag.js'].lineData[358] = 0; _$jscoverage['/drag.js'].lineData[359] = 0; _$jscoverage['/drag.js'].lineData[360] = 0; + _$jscoverage['/drag.js'].lineData[361] = 0; + _$jscoverage['/drag.js'].lineData[362] = 0; _$jscoverage['/drag.js'].lineData[363] = 0; _$jscoverage['/drag.js'].lineData[364] = 0; _$jscoverage['/drag.js'].lineData[365] = 0; - _$jscoverage['/drag.js'].lineData[366] = 0; _$jscoverage['/drag.js'].lineData[367] = 0; + _$jscoverage['/drag.js'].lineData[368] = 0; _$jscoverage['/drag.js'].lineData[369] = 0; - _$jscoverage['/drag.js'].lineData[375] = 0; - _$jscoverage['/drag.js'].lineData[376] = 0; - _$jscoverage['/drag.js'].lineData[378] = 0; - _$jscoverage['/drag.js'].lineData[380] = 0; - _$jscoverage['/drag.js'].lineData[381] = 0; + _$jscoverage['/drag.js'].lineData[370] = 0; + _$jscoverage['/drag.js'].lineData[371] = 0; + _$jscoverage['/drag.js'].lineData[372] = 0; _$jscoverage['/drag.js'].lineData[382] = 0; - _$jscoverage['/drag.js'].lineData[385] = 0; + _$jscoverage['/drag.js'].lineData[383] = 0; + _$jscoverage['/drag.js'].lineData[384] = 0; + _$jscoverage['/drag.js'].lineData[387] = 0; + _$jscoverage['/drag.js'].lineData[388] = 0; _$jscoverage['/drag.js'].lineData[389] = 0; _$jscoverage['/drag.js'].lineData[390] = 0; _$jscoverage['/drag.js'].lineData[391] = 0; - _$jscoverage['/drag.js'].lineData[392] = 0; _$jscoverage['/drag.js'].lineData[393] = 0; - _$jscoverage['/drag.js'].lineData[394] = 0; - _$jscoverage['/drag.js'].lineData[395] = 0; _$jscoverage['/drag.js'].lineData[399] = 0; _$jscoverage['/drag.js'].lineData[400] = 0; - _$jscoverage['/drag.js'].lineData[401] = 0; _$jscoverage['/drag.js'].lineData[402] = 0; - _$jscoverage['/drag.js'].lineData[403] = 0; _$jscoverage['/drag.js'].lineData[404] = 0; _$jscoverage['/drag.js'].lineData[405] = 0; _$jscoverage['/drag.js'].lineData[406] = 0; - _$jscoverage['/drag.js'].lineData[407] = 0; - _$jscoverage['/drag.js'].lineData[408] = 0; _$jscoverage['/drag.js'].lineData[409] = 0; + _$jscoverage['/drag.js'].lineData[413] = 0; _$jscoverage['/drag.js'].lineData[414] = 0; _$jscoverage['/drag.js'].lineData[415] = 0; _$jscoverage['/drag.js'].lineData[416] = 0; _$jscoverage['/drag.js'].lineData[417] = 0; _$jscoverage['/drag.js'].lineData[418] = 0; _$jscoverage['/drag.js'].lineData[419] = 0; - _$jscoverage['/drag.js'].lineData[420] = 0; + _$jscoverage['/drag.js'].lineData[423] = 0; + _$jscoverage['/drag.js'].lineData[424] = 0; _$jscoverage['/drag.js'].lineData[425] = 0; _$jscoverage['/drag.js'].lineData[426] = 0; _$jscoverage['/drag.js'].lineData[427] = 0; + _$jscoverage['/drag.js'].lineData[428] = 0; _$jscoverage['/drag.js'].lineData[429] = 0; _$jscoverage['/drag.js'].lineData[430] = 0; + _$jscoverage['/drag.js'].lineData[431] = 0; + _$jscoverage['/drag.js'].lineData[432] = 0; _$jscoverage['/drag.js'].lineData[433] = 0; - _$jscoverage['/drag.js'].lineData[436] = 0; - _$jscoverage['/drag.js'].lineData[437] = 0; + _$jscoverage['/drag.js'].lineData[438] = 0; + _$jscoverage['/drag.js'].lineData[439] = 0; _$jscoverage['/drag.js'].lineData[440] = 0; + _$jscoverage['/drag.js'].lineData[441] = 0; _$jscoverage['/drag.js'].lineData[442] = 0; _$jscoverage['/drag.js'].lineData[443] = 0; + _$jscoverage['/drag.js'].lineData[444] = 0; + _$jscoverage['/drag.js'].lineData[449] = 0; _$jscoverage['/drag.js'].lineData[450] = 0; _$jscoverage['/drag.js'].lineData[451] = 0; + _$jscoverage['/drag.js'].lineData[453] = 0; _$jscoverage['/drag.js'].lineData[454] = 0; - _$jscoverage['/drag.js'].lineData[455] = 0; - _$jscoverage['/drag.js'].lineData[456] = 0; _$jscoverage['/drag.js'].lineData[457] = 0; + _$jscoverage['/drag.js'].lineData[460] = 0; _$jscoverage['/drag.js'].lineData[461] = 0; - _$jscoverage['/drag.js'].lineData[462] = 0; - _$jscoverage['/drag.js'].lineData[463] = 0; + _$jscoverage['/drag.js'].lineData[464] = 0; _$jscoverage['/drag.js'].lineData[466] = 0; _$jscoverage['/drag.js'].lineData[467] = 0; - _$jscoverage['/drag.js'].lineData[476] = 0; + _$jscoverage['/drag.js'].lineData[474] = 0; + _$jscoverage['/drag.js'].lineData[475] = 0; _$jscoverage['/drag.js'].lineData[478] = 0; _$jscoverage['/drag.js'].lineData[479] = 0; _$jscoverage['/drag.js'].lineData[480] = 0; _$jscoverage['/drag.js'].lineData[481] = 0; _$jscoverage['/drag.js'].lineData[485] = 0; + _$jscoverage['/drag.js'].lineData[486] = 0; _$jscoverage['/drag.js'].lineData[487] = 0; + _$jscoverage['/drag.js'].lineData[490] = 0; _$jscoverage['/drag.js'].lineData[491] = 0; - _$jscoverage['/drag.js'].lineData[495] = 0; - _$jscoverage['/drag.js'].lineData[499] = 0; _$jscoverage['/drag.js'].lineData[500] = 0; + _$jscoverage['/drag.js'].lineData[502] = 0; + _$jscoverage['/drag.js'].lineData[503] = 0; + _$jscoverage['/drag.js'].lineData[504] = 0; + _$jscoverage['/drag.js'].lineData[505] = 0; + _$jscoverage['/drag.js'].lineData[506] = 0; + _$jscoverage['/drag.js'].lineData[514] = 0; + _$jscoverage['/drag.js'].lineData[516] = 0; + _$jscoverage['/drag.js'].lineData[520] = 0; + _$jscoverage['/drag.js'].lineData[524] = 0; + _$jscoverage['/drag.js'].lineData[525] = 0; } if (! _$jscoverage['/drag.js'].functionData) { _$jscoverage['/drag.js'].functionData = []; @@ -504,450 +514,474 @@ if (! _$jscoverage['/drag.js'].functionData) { } if (! _$jscoverage['/drag.js'].branchData) { _$jscoverage['/drag.js'].branchData = {}; - _$jscoverage['/drag.js'].branchData['32'] = []; - _$jscoverage['/drag.js'].branchData['32'][1] = new BranchData(); - _$jscoverage['/drag.js'].branchData['39'] = []; - _$jscoverage['/drag.js'].branchData['39'][1] = new BranchData(); - _$jscoverage['/drag.js'].branchData['52'] = []; - _$jscoverage['/drag.js'].branchData['52'][1] = new BranchData(); + _$jscoverage['/drag.js'].branchData['33'] = []; + _$jscoverage['/drag.js'].branchData['33'][1] = new BranchData(); + _$jscoverage['/drag.js'].branchData['40'] = []; + _$jscoverage['/drag.js'].branchData['40'][1] = new BranchData(); _$jscoverage['/drag.js'].branchData['53'] = []; _$jscoverage['/drag.js'].branchData['53'][1] = new BranchData(); _$jscoverage['/drag.js'].branchData['54'] = []; _$jscoverage['/drag.js'].branchData['54'][1] = new BranchData(); - _$jscoverage['/drag.js'].branchData['57'] = []; - _$jscoverage['/drag.js'].branchData['57'][1] = new BranchData(); - _$jscoverage['/drag.js'].branchData['61'] = []; - _$jscoverage['/drag.js'].branchData['61'][1] = new BranchData(); - _$jscoverage['/drag.js'].branchData['65'] = []; - _$jscoverage['/drag.js'].branchData['65'][1] = new BranchData(); - _$jscoverage['/drag.js'].branchData['74'] = []; - _$jscoverage['/drag.js'].branchData['74'][1] = new BranchData(); - _$jscoverage['/drag.js'].branchData['74'][2] = new BranchData(); - _$jscoverage['/drag.js'].branchData['74'][3] = new BranchData(); - _$jscoverage['/drag.js'].branchData['74'][4] = new BranchData(); + _$jscoverage['/drag.js'].branchData['55'] = []; + _$jscoverage['/drag.js'].branchData['55'][1] = new BranchData(); + _$jscoverage['/drag.js'].branchData['58'] = []; + _$jscoverage['/drag.js'].branchData['58'][1] = new BranchData(); + _$jscoverage['/drag.js'].branchData['62'] = []; + _$jscoverage['/drag.js'].branchData['62'][1] = new BranchData(); + _$jscoverage['/drag.js'].branchData['66'] = []; + _$jscoverage['/drag.js'].branchData['66'][1] = new BranchData(); _$jscoverage['/drag.js'].branchData['75'] = []; _$jscoverage['/drag.js'].branchData['75'][1] = new BranchData(); _$jscoverage['/drag.js'].branchData['75'][2] = new BranchData(); - _$jscoverage['/drag.js'].branchData['88'] = []; - _$jscoverage['/drag.js'].branchData['88'][1] = new BranchData(); + _$jscoverage['/drag.js'].branchData['75'][3] = new BranchData(); + _$jscoverage['/drag.js'].branchData['75'][4] = new BranchData(); + _$jscoverage['/drag.js'].branchData['76'] = []; + _$jscoverage['/drag.js'].branchData['76'][1] = new BranchData(); + _$jscoverage['/drag.js'].branchData['76'][2] = new BranchData(); _$jscoverage['/drag.js'].branchData['89'] = []; _$jscoverage['/drag.js'].branchData['89'][1] = new BranchData(); - _$jscoverage['/drag.js'].branchData['96'] = []; - _$jscoverage['/drag.js'].branchData['96'][1] = new BranchData(); - _$jscoverage['/drag.js'].branchData['107'] = []; - _$jscoverage['/drag.js'].branchData['107'][1] = new BranchData(); - _$jscoverage['/drag.js'].branchData['109'] = []; - _$jscoverage['/drag.js'].branchData['109'][1] = new BranchData(); - _$jscoverage['/drag.js'].branchData['112'] = []; - _$jscoverage['/drag.js'].branchData['112'][1] = new BranchData(); - _$jscoverage['/drag.js'].branchData['124'] = []; - _$jscoverage['/drag.js'].branchData['124'][1] = new BranchData(); - _$jscoverage['/drag.js'].branchData['134'] = []; - _$jscoverage['/drag.js'].branchData['134'][1] = new BranchData(); - _$jscoverage['/drag.js'].branchData['134'][2] = new BranchData(); - _$jscoverage['/drag.js'].branchData['134'][3] = new BranchData(); - _$jscoverage['/drag.js'].branchData['181'] = []; - _$jscoverage['/drag.js'].branchData['181'][1] = new BranchData(); - _$jscoverage['/drag.js'].branchData['189'] = []; - _$jscoverage['/drag.js'].branchData['189'][1] = new BranchData(); - _$jscoverage['/drag.js'].branchData['189'][2] = new BranchData(); - _$jscoverage['/drag.js'].branchData['189'][3] = new BranchData(); - _$jscoverage['/drag.js'].branchData['191'] = []; - _$jscoverage['/drag.js'].branchData['191'][1] = new BranchData(); - _$jscoverage['/drag.js'].branchData['206'] = []; - _$jscoverage['/drag.js'].branchData['206'][1] = new BranchData(); - _$jscoverage['/drag.js'].branchData['217'] = []; - _$jscoverage['/drag.js'].branchData['217'][1] = new BranchData(); - _$jscoverage['/drag.js'].branchData['228'] = []; - _$jscoverage['/drag.js'].branchData['228'][1] = new BranchData(); - _$jscoverage['/drag.js'].branchData['237'] = []; - _$jscoverage['/drag.js'].branchData['237'][1] = new BranchData(); - _$jscoverage['/drag.js'].branchData['244'] = []; - _$jscoverage['/drag.js'].branchData['244'][1] = new BranchData(); - _$jscoverage['/drag.js'].branchData['261'] = []; - _$jscoverage['/drag.js'].branchData['261'][1] = new BranchData(); - _$jscoverage['/drag.js'].branchData['274'] = []; - _$jscoverage['/drag.js'].branchData['274'][1] = new BranchData(); - _$jscoverage['/drag.js'].branchData['277'] = []; - _$jscoverage['/drag.js'].branchData['277'][1] = new BranchData(); - _$jscoverage['/drag.js'].branchData['287'] = []; - _$jscoverage['/drag.js'].branchData['287'][1] = new BranchData(); - _$jscoverage['/drag.js'].branchData['290'] = []; - _$jscoverage['/drag.js'].branchData['290'][1] = new BranchData(); - _$jscoverage['/drag.js'].branchData['291'] = []; - _$jscoverage['/drag.js'].branchData['291'][1] = new BranchData(); - _$jscoverage['/drag.js'].branchData['294'] = []; - _$jscoverage['/drag.js'].branchData['294'][1] = new BranchData(); - _$jscoverage['/drag.js'].branchData['294'][2] = new BranchData(); - _$jscoverage['/drag.js'].branchData['294'][3] = new BranchData(); - _$jscoverage['/drag.js'].branchData['297'] = []; - _$jscoverage['/drag.js'].branchData['297'][1] = new BranchData(); - _$jscoverage['/drag.js'].branchData['303'] = []; - _$jscoverage['/drag.js'].branchData['303'][1] = new BranchData(); - _$jscoverage['/drag.js'].branchData['303'][2] = new BranchData(); - _$jscoverage['/drag.js'].branchData['303'][3] = new BranchData(); - _$jscoverage['/drag.js'].branchData['306'] = []; - _$jscoverage['/drag.js'].branchData['306'][1] = new BranchData(); - _$jscoverage['/drag.js'].branchData['313'] = []; - _$jscoverage['/drag.js'].branchData['313'][1] = new BranchData(); - _$jscoverage['/drag.js'].branchData['324'] = []; - _$jscoverage['/drag.js'].branchData['324'][1] = new BranchData(); + _$jscoverage['/drag.js'].branchData['90'] = []; + _$jscoverage['/drag.js'].branchData['90'][1] = new BranchData(); + _$jscoverage['/drag.js'].branchData['97'] = []; + _$jscoverage['/drag.js'].branchData['97'][1] = new BranchData(); + _$jscoverage['/drag.js'].branchData['108'] = []; + _$jscoverage['/drag.js'].branchData['108'][1] = new BranchData(); + _$jscoverage['/drag.js'].branchData['110'] = []; + _$jscoverage['/drag.js'].branchData['110'][1] = new BranchData(); + _$jscoverage['/drag.js'].branchData['113'] = []; + _$jscoverage['/drag.js'].branchData['113'][1] = new BranchData(); + _$jscoverage['/drag.js'].branchData['125'] = []; + _$jscoverage['/drag.js'].branchData['125'][1] = new BranchData(); + _$jscoverage['/drag.js'].branchData['135'] = []; + _$jscoverage['/drag.js'].branchData['135'][1] = new BranchData(); + _$jscoverage['/drag.js'].branchData['135'][2] = new BranchData(); + _$jscoverage['/drag.js'].branchData['135'][3] = new BranchData(); + _$jscoverage['/drag.js'].branchData['182'] = []; + _$jscoverage['/drag.js'].branchData['182'][1] = new BranchData(); + _$jscoverage['/drag.js'].branchData['190'] = []; + _$jscoverage['/drag.js'].branchData['190'][1] = new BranchData(); + _$jscoverage['/drag.js'].branchData['190'][2] = new BranchData(); + _$jscoverage['/drag.js'].branchData['190'][3] = new BranchData(); + _$jscoverage['/drag.js'].branchData['192'] = []; + _$jscoverage['/drag.js'].branchData['192'][1] = new BranchData(); + _$jscoverage['/drag.js'].branchData['207'] = []; + _$jscoverage['/drag.js'].branchData['207'][1] = new BranchData(); + _$jscoverage['/drag.js'].branchData['218'] = []; + _$jscoverage['/drag.js'].branchData['218'][1] = new BranchData(); + _$jscoverage['/drag.js'].branchData['229'] = []; + _$jscoverage['/drag.js'].branchData['229'][1] = new BranchData(); + _$jscoverage['/drag.js'].branchData['234'] = []; + _$jscoverage['/drag.js'].branchData['234'][1] = new BranchData(); + _$jscoverage['/drag.js'].branchData['236'] = []; + _$jscoverage['/drag.js'].branchData['236'][1] = new BranchData(); + _$jscoverage['/drag.js'].branchData['243'] = []; + _$jscoverage['/drag.js'].branchData['243'][1] = new BranchData(); + _$jscoverage['/drag.js'].branchData['247'] = []; + _$jscoverage['/drag.js'].branchData['247'][1] = new BranchData(); + _$jscoverage['/drag.js'].branchData['263'] = []; + _$jscoverage['/drag.js'].branchData['263'][1] = new BranchData(); + _$jscoverage['/drag.js'].branchData['269'] = []; + _$jscoverage['/drag.js'].branchData['269'][1] = new BranchData(); + _$jscoverage['/drag.js'].branchData['282'] = []; + _$jscoverage['/drag.js'].branchData['282'][1] = new BranchData(); + _$jscoverage['/drag.js'].branchData['285'] = []; + _$jscoverage['/drag.js'].branchData['285'][1] = new BranchData(); + _$jscoverage['/drag.js'].branchData['295'] = []; + _$jscoverage['/drag.js'].branchData['295'][1] = new BranchData(); + _$jscoverage['/drag.js'].branchData['298'] = []; + _$jscoverage['/drag.js'].branchData['298'][1] = new BranchData(); + _$jscoverage['/drag.js'].branchData['299'] = []; + _$jscoverage['/drag.js'].branchData['299'][1] = new BranchData(); + _$jscoverage['/drag.js'].branchData['302'] = []; + _$jscoverage['/drag.js'].branchData['302'][1] = new BranchData(); + _$jscoverage['/drag.js'].branchData['302'][2] = new BranchData(); + _$jscoverage['/drag.js'].branchData['302'][3] = new BranchData(); + _$jscoverage['/drag.js'].branchData['305'] = []; + _$jscoverage['/drag.js'].branchData['305'][1] = new BranchData(); + _$jscoverage['/drag.js'].branchData['311'] = []; + _$jscoverage['/drag.js'].branchData['311'][1] = new BranchData(); + _$jscoverage['/drag.js'].branchData['311'][2] = new BranchData(); + _$jscoverage['/drag.js'].branchData['311'][3] = new BranchData(); + _$jscoverage['/drag.js'].branchData['314'] = []; + _$jscoverage['/drag.js'].branchData['314'][1] = new BranchData(); + _$jscoverage['/drag.js'].branchData['321'] = []; + _$jscoverage['/drag.js'].branchData['321'][1] = new BranchData(); _$jscoverage['/drag.js'].branchData['332'] = []; _$jscoverage['/drag.js'].branchData['332'][1] = new BranchData(); - _$jscoverage['/drag.js'].branchData['339'] = []; - _$jscoverage['/drag.js'].branchData['339'][1] = new BranchData(); - _$jscoverage['/drag.js'].branchData['339'][2] = new BranchData(); - _$jscoverage['/drag.js'].branchData['340'] = []; - _$jscoverage['/drag.js'].branchData['340'][1] = new BranchData(); - _$jscoverage['/drag.js'].branchData['340'][2] = new BranchData(); - _$jscoverage['/drag.js'].branchData['347'] = []; - _$jscoverage['/drag.js'].branchData['347'][1] = new BranchData(); - _$jscoverage['/drag.js'].branchData['358'] = []; - _$jscoverage['/drag.js'].branchData['358'][1] = new BranchData(); - _$jscoverage['/drag.js'].branchData['380'] = []; - _$jscoverage['/drag.js'].branchData['380'][1] = new BranchData(); - _$jscoverage['/drag.js'].branchData['381'] = []; - _$jscoverage['/drag.js'].branchData['381'][1] = new BranchData(); - _$jscoverage['/drag.js'].branchData['389'] = []; - _$jscoverage['/drag.js'].branchData['389'][1] = new BranchData(); - _$jscoverage['/drag.js'].branchData['391'] = []; - _$jscoverage['/drag.js'].branchData['391'][1] = new BranchData(); - _$jscoverage['/drag.js'].branchData['392'] = []; - _$jscoverage['/drag.js'].branchData['392'][1] = new BranchData(); - _$jscoverage['/drag.js'].branchData['392'][2] = new BranchData(); - _$jscoverage['/drag.js'].branchData['392'][3] = new BranchData(); - _$jscoverage['/drag.js'].branchData['394'] = []; - _$jscoverage['/drag.js'].branchData['394'][1] = new BranchData(); - _$jscoverage['/drag.js'].branchData['394'][2] = new BranchData(); - _$jscoverage['/drag.js'].branchData['394'][3] = new BranchData(); - _$jscoverage['/drag.js'].branchData['402'] = []; - _$jscoverage['/drag.js'].branchData['402'][1] = new BranchData(); + _$jscoverage['/drag.js'].branchData['337'] = []; + _$jscoverage['/drag.js'].branchData['337'][1] = new BranchData(); + _$jscoverage['/drag.js'].branchData['344'] = []; + _$jscoverage['/drag.js'].branchData['344'][1] = new BranchData(); + _$jscoverage['/drag.js'].branchData['364'] = []; + _$jscoverage['/drag.js'].branchData['364'][1] = new BranchData(); + _$jscoverage['/drag.js'].branchData['364'][2] = new BranchData(); + _$jscoverage['/drag.js'].branchData['365'] = []; + _$jscoverage['/drag.js'].branchData['365'][1] = new BranchData(); + _$jscoverage['/drag.js'].branchData['365'][2] = new BranchData(); + _$jscoverage['/drag.js'].branchData['369'] = []; + _$jscoverage['/drag.js'].branchData['369'][1] = new BranchData(); + _$jscoverage['/drag.js'].branchData['382'] = []; + _$jscoverage['/drag.js'].branchData['382'][1] = new BranchData(); _$jscoverage['/drag.js'].branchData['404'] = []; _$jscoverage['/drag.js'].branchData['404'][1] = new BranchData(); - _$jscoverage['/drag.js'].branchData['406'] = []; - _$jscoverage['/drag.js'].branchData['406'][1] = new BranchData(); - _$jscoverage['/drag.js'].branchData['407'] = []; - _$jscoverage['/drag.js'].branchData['407'][1] = new BranchData(); + _$jscoverage['/drag.js'].branchData['405'] = []; + _$jscoverage['/drag.js'].branchData['405'][1] = new BranchData(); + _$jscoverage['/drag.js'].branchData['413'] = []; + _$jscoverage['/drag.js'].branchData['413'][1] = new BranchData(); _$jscoverage['/drag.js'].branchData['415'] = []; _$jscoverage['/drag.js'].branchData['415'][1] = new BranchData(); - _$jscoverage['/drag.js'].branchData['417'] = []; - _$jscoverage['/drag.js'].branchData['417'][1] = new BranchData(); + _$jscoverage['/drag.js'].branchData['416'] = []; + _$jscoverage['/drag.js'].branchData['416'][1] = new BranchData(); + _$jscoverage['/drag.js'].branchData['416'][2] = new BranchData(); + _$jscoverage['/drag.js'].branchData['416'][3] = new BranchData(); _$jscoverage['/drag.js'].branchData['418'] = []; _$jscoverage['/drag.js'].branchData['418'][1] = new BranchData(); - _$jscoverage['/drag.js'].branchData['425'] = []; - _$jscoverage['/drag.js'].branchData['425'][1] = new BranchData(); + _$jscoverage['/drag.js'].branchData['418'][2] = new BranchData(); + _$jscoverage['/drag.js'].branchData['418'][3] = new BranchData(); _$jscoverage['/drag.js'].branchData['426'] = []; _$jscoverage['/drag.js'].branchData['426'][1] = new BranchData(); - _$jscoverage['/drag.js'].branchData['436'] = []; - _$jscoverage['/drag.js'].branchData['436'][1] = new BranchData(); + _$jscoverage['/drag.js'].branchData['428'] = []; + _$jscoverage['/drag.js'].branchData['428'][1] = new BranchData(); + _$jscoverage['/drag.js'].branchData['430'] = []; + _$jscoverage['/drag.js'].branchData['430'][1] = new BranchData(); + _$jscoverage['/drag.js'].branchData['431'] = []; + _$jscoverage['/drag.js'].branchData['431'][1] = new BranchData(); + _$jscoverage['/drag.js'].branchData['439'] = []; + _$jscoverage['/drag.js'].branchData['439'][1] = new BranchData(); + _$jscoverage['/drag.js'].branchData['441'] = []; + _$jscoverage['/drag.js'].branchData['441'][1] = new BranchData(); + _$jscoverage['/drag.js'].branchData['442'] = []; + _$jscoverage['/drag.js'].branchData['442'][1] = new BranchData(); + _$jscoverage['/drag.js'].branchData['449'] = []; + _$jscoverage['/drag.js'].branchData['449'][1] = new BranchData(); + _$jscoverage['/drag.js'].branchData['450'] = []; + _$jscoverage['/drag.js'].branchData['450'][1] = new BranchData(); + _$jscoverage['/drag.js'].branchData['460'] = []; + _$jscoverage['/drag.js'].branchData['460'][1] = new BranchData(); } -_$jscoverage['/drag.js'].branchData['436'][1].init(29, 16, 'allowX || allowY'); -function visit77_436_1(result) { - _$jscoverage['/drag.js'].branchData['436'][1].ranCondition(result); +_$jscoverage['/drag.js'].branchData['460'][1].init(29, 16, 'allowX || allowY'); +function visit81_460_1(result) { + _$jscoverage['/drag.js'].branchData['460'][1].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['426'][1].init(33, 26, 'newPageIndex !== pageIndex'); -function visit76_426_1(result) { - _$jscoverage['/drag.js'].branchData['426'][1].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['450'][1].init(33, 26, 'newPageIndex !== pageIndex'); +function visit80_450_1(result) { + _$jscoverage['/drag.js'].branchData['450'][1].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['425'][1].init(2113, 26, 'newPageIndex !== undefined'); -function visit75_425_1(result) { - _$jscoverage['/drag.js'].branchData['425'][1].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['449'][1].init(2113, 26, 'newPageIndex !== undefined'); +function visit79_449_1(result) { + _$jscoverage['/drag.js'].branchData['449'][1].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['418'][1].init(41, 23, 'min < nowXY.top - x.top'); -function visit74_418_1(result) { - _$jscoverage['/drag.js'].branchData['418'][1].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['442'][1].init(41, 23, 'min < nowXY.top - x.top'); +function visit78_442_1(result) { + _$jscoverage['/drag.js'].branchData['442'][1].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['417'][1].init(86, 17, 'x.top < nowXY.top'); -function visit73_417_1(result) { - _$jscoverage['/drag.js'].branchData['417'][1].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['441'][1].init(86, 17, 'x.top < nowXY.top'); +function visit77_441_1(result) { + _$jscoverage['/drag.js'].branchData['441'][1].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['415'][1].init(93, 15, 'i < prepareXLen'); -function visit72_415_1(result) { - _$jscoverage['/drag.js'].branchData['415'][1].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['439'][1].init(93, 15, 'i < prepareXLen'); +function visit76_439_1(result) { + _$jscoverage['/drag.js'].branchData['439'][1].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['407'][1].init(41, 23, 'min < x.top - nowXY.top'); -function visit71_407_1(result) { - _$jscoverage['/drag.js'].branchData['407'][1].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['431'][1].init(41, 23, 'min < x.top - nowXY.top'); +function visit75_431_1(result) { + _$jscoverage['/drag.js'].branchData['431'][1].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['406'][1].init(86, 17, 'x.top > nowXY.top'); -function visit70_406_1(result) { - _$jscoverage['/drag.js'].branchData['406'][1].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['430'][1].init(86, 17, 'x.top > nowXY.top'); +function visit74_430_1(result) { + _$jscoverage['/drag.js'].branchData['430'][1].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['404'][1].init(93, 15, 'i < prepareXLen'); -function visit69_404_1(result) { - _$jscoverage['/drag.js'].branchData['404'][1].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['428'][1].init(93, 15, 'i < prepareXLen'); +function visit73_428_1(result) { + _$jscoverage['/drag.js'].branchData['428'][1].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['402'][1].init(957, 11, 'offsetY > 0'); -function visit68_402_1(result) { - _$jscoverage['/drag.js'].branchData['402'][1].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['426'][1].init(957, 11, 'offsetY > 0'); +function visit72_426_1(result) { + _$jscoverage['/drag.js'].branchData['426'][1].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['394'][3].init(198, 24, 'offset.left < nowXY.left'); -function visit67_394_3(result) { - _$jscoverage['/drag.js'].branchData['394'][3].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['418'][3].init(198, 24, 'offset.left < nowXY.left'); +function visit71_418_3(result) { + _$jscoverage['/drag.js'].branchData['418'][3].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['394'][2].init(183, 11, 'offsetX < 0'); -function visit66_394_2(result) { - _$jscoverage['/drag.js'].branchData['394'][2].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['418'][2].init(183, 11, 'offsetX < 0'); +function visit70_418_2(result) { + _$jscoverage['/drag.js'].branchData['418'][2].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['394'][1].init(183, 39, 'offsetX < 0 && offset.left < nowXY.left'); -function visit65_394_1(result) { - _$jscoverage['/drag.js'].branchData['394'][1].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['418'][1].init(183, 39, 'offsetX < 0 && offset.left < nowXY.left'); +function visit69_418_1(result) { + _$jscoverage['/drag.js'].branchData['418'][1].ranCondition(result); + return result; +}_$jscoverage['/drag.js'].branchData['416'][3].init(52, 24, 'offset.left > nowXY.left'); +function visit68_416_3(result) { + _$jscoverage['/drag.js'].branchData['416'][3].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['392'][3].init(52, 24, 'offset.left > nowXY.left'); -function visit64_392_3(result) { - _$jscoverage['/drag.js'].branchData['392'][3].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['416'][2].init(37, 11, 'offsetX > 0'); +function visit67_416_2(result) { + _$jscoverage['/drag.js'].branchData['416'][2].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['392'][2].init(37, 11, 'offsetX > 0'); -function visit63_392_2(result) { - _$jscoverage['/drag.js'].branchData['392'][2].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['416'][1].init(37, 39, 'offsetX > 0 && offset.left > nowXY.left'); +function visit66_416_1(result) { + _$jscoverage['/drag.js'].branchData['416'][1].ranCondition(result); + return result; +}_$jscoverage['/drag.js'].branchData['415'][1].init(90, 6, 'offset'); +function visit65_415_1(result) { + _$jscoverage['/drag.js'].branchData['415'][1].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['392'][1].init(37, 39, 'offsetX > 0 && offset.left > nowXY.left'); -function visit62_392_1(result) { - _$jscoverage['/drag.js'].branchData['392'][1].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['413'][1].init(307, 18, 'i < pagesOffsetLen'); +function visit64_413_1(result) { + _$jscoverage['/drag.js'].branchData['413'][1].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['391'][1].init(90, 6, 'offset'); -function visit61_391_1(result) { - _$jscoverage['/drag.js'].branchData['391'][1].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['405'][1].init(25, 16, 'allowX && allowY'); +function visit63_405_1(result) { + _$jscoverage['/drag.js'].branchData['405'][1].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['389'][1].init(307, 18, 'i < pagesOffsetLen'); -function visit60_389_1(result) { - _$jscoverage['/drag.js'].branchData['389'][1].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['404'][1].init(1195, 16, 'allowX || allowY'); +function visit62_404_1(result) { + _$jscoverage['/drag.js'].branchData['404'][1].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['381'][1].init(25, 16, 'allowX && allowY'); -function visit59_381_1(result) { - _$jscoverage['/drag.js'].branchData['381'][1].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['382'][1].init(469, 17, '!self.pagesOffset'); +function visit61_382_1(result) { + _$jscoverage['/drag.js'].branchData['382'][1].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['380'][1].init(1111, 16, 'allowX || allowY'); -function visit58_380_1(result) { - _$jscoverage['/drag.js'].branchData['380'][1].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['369'][1].init(38, 11, 'count === 2'); +function visit60_369_1(result) { + _$jscoverage['/drag.js'].branchData['369'][1].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['358'][1].init(385, 17, '!self.pagesOffset'); -function visit57_358_1(result) { - _$jscoverage['/drag.js'].branchData['358'][1].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['365'][2].init(293, 33, 'Math.abs(offsetY) > snapThreshold'); +function visit59_365_2(result) { + _$jscoverage['/drag.js'].branchData['365'][2].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['347'][1].init(38, 11, 'count === 2'); -function visit56_347_1(result) { - _$jscoverage['/drag.js'].branchData['347'][1].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['365'][1].init(269, 57, 'self.allowScroll.top && Math.abs(offsetY) > snapThreshold'); +function visit58_365_1(result) { + _$jscoverage['/drag.js'].branchData['365'][1].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['340'][2].init(523, 33, 'Math.abs(offsetY) > snapThreshold'); -function visit55_340_2(result) { - _$jscoverage['/drag.js'].branchData['340'][2].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['364'][2].init(213, 33, 'Math.abs(offsetX) > snapThreshold'); +function visit57_364_2(result) { + _$jscoverage['/drag.js'].branchData['364'][2].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['340'][1].init(499, 57, 'self.allowScroll.top && Math.abs(offsetY) > snapThreshold'); -function visit54_340_1(result) { - _$jscoverage['/drag.js'].branchData['340'][1].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['364'][1].init(188, 58, 'self.allowScroll.left && Math.abs(offsetX) > snapThreshold'); +function visit56_364_1(result) { + _$jscoverage['/drag.js'].branchData['364'][1].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['339'][2].init(443, 33, 'Math.abs(offsetX) > snapThreshold'); -function visit53_339_2(result) { - _$jscoverage['/drag.js'].branchData['339'][2].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['344'][1].init(260, 35, '!startMousePos || !self.isScrolling'); +function visit55_344_1(result) { + _$jscoverage['/drag.js'].branchData['344'][1].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['339'][1].init(418, 58, 'self.allowScroll.left && Math.abs(offsetX) > snapThreshold'); -function visit52_339_1(result) { - _$jscoverage['/drag.js'].branchData['339'][1].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['337'][1].init(13, 10, '!e.isTouch'); +function visit54_337_1(result) { + _$jscoverage['/drag.js'].branchData['337'][1].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['332'][1].init(147, 35, '!startMousePos || !self.isScrolling'); -function visit51_332_1(result) { +}_$jscoverage['/drag.js'].branchData['332'][1].init(10890, 7, 'S.UA.ie'); +function visit53_332_1(result) { _$jscoverage['/drag.js'].branchData['332'][1].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['324'][1].init(10632, 7, 'S.UA.ie'); -function visit50_324_1(result) { - _$jscoverage['/drag.js'].branchData['324'][1].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['321'][1].init(1765, 21, 'isTouchEventSupported'); +function visit52_321_1(result) { + _$jscoverage['/drag.js'].branchData['321'][1].ranCondition(result); + return result; +}_$jscoverage['/drag.js'].branchData['314'][1].init(110, 27, 'self.get(\'preventDefaultY\')'); +function visit51_314_1(result) { + _$jscoverage['/drag.js'].branchData['314'][1].ranCondition(result); + return result; +}_$jscoverage['/drag.js'].branchData['311'][3].init(569, 27, 'dragInitDirection === \'top\''); +function visit50_311_3(result) { + _$jscoverage['/drag.js'].branchData['311'][3].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['313'][1].init(1760, 34, 'S.Features.isTouchEventSupported()'); -function visit49_313_1(result) { - _$jscoverage['/drag.js'].branchData['313'][1].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['311'][2].init(569, 67, 'dragInitDirection === \'top\' && !self.allowScroll[dragInitDirection]'); +function visit49_311_2(result) { + _$jscoverage['/drag.js'].branchData['311'][2].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['306'][1].init(110, 27, 'self.get(\'preventDefaultY\')'); -function visit48_306_1(result) { - _$jscoverage['/drag.js'].branchData['306'][1].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['311'][1].init(560, 76, 'lockY && dragInitDirection === \'top\' && !self.allowScroll[dragInitDirection]'); +function visit48_311_1(result) { + _$jscoverage['/drag.js'].branchData['311'][1].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['303'][3].init(569, 27, 'dragInitDirection === \'top\''); -function visit47_303_3(result) { - _$jscoverage['/drag.js'].branchData['303'][3].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['305'][1].init(110, 27, 'self.get(\'preventDefaultX\')'); +function visit47_305_1(result) { + _$jscoverage['/drag.js'].branchData['305'][1].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['303'][2].init(569, 67, 'dragInitDirection === \'top\' && !self.allowScroll[dragInitDirection]'); -function visit46_303_2(result) { - _$jscoverage['/drag.js'].branchData['303'][2].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['302'][3].init(235, 28, 'dragInitDirection === \'left\''); +function visit46_302_3(result) { + _$jscoverage['/drag.js'].branchData['302'][3].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['303'][1].init(560, 76, 'lockY && dragInitDirection === \'top\' && !self.allowScroll[dragInitDirection]'); -function visit45_303_1(result) { - _$jscoverage['/drag.js'].branchData['303'][1].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['302'][2].init(235, 68, 'dragInitDirection === \'left\' && !self.allowScroll[dragInitDirection]'); +function visit45_302_2(result) { + _$jscoverage['/drag.js'].branchData['302'][2].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['297'][1].init(110, 27, 'self.get(\'preventDefaultX\')'); -function visit44_297_1(result) { - _$jscoverage['/drag.js'].branchData['297'][1].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['302'][1].init(226, 77, 'lockX && dragInitDirection === \'left\' && !self.allowScroll[dragInitDirection]'); +function visit44_302_1(result) { + _$jscoverage['/drag.js'].branchData['302'][1].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['294'][3].init(235, 28, 'dragInitDirection === \'left\''); -function visit43_294_3(result) { - _$jscoverage['/drag.js'].branchData['294'][3].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['299'][1].init(62, 13, 'xDiff > yDiff'); +function visit43_299_1(result) { + _$jscoverage['/drag.js'].branchData['299'][1].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['294'][2].init(235, 68, 'dragInitDirection === \'left\' && !self.allowScroll[dragInitDirection]'); -function visit42_294_2(result) { - _$jscoverage['/drag.js'].branchData['294'][2].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['298'][1].init(53, 45, '!(dragInitDirection = self.dragInitDirection)'); +function visit42_298_1(result) { + _$jscoverage['/drag.js'].branchData['298'][1].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['294'][1].init(226, 77, 'lockX && dragInitDirection === \'left\' && !self.allowScroll[dragInitDirection]'); -function visit41_294_1(result) { - _$jscoverage['/drag.js'].branchData['294'][1].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['295'][1].init(849, 14, 'lockX || lockY'); +function visit41_295_1(result) { + _$jscoverage['/drag.js'].branchData['295'][1].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['291'][1].init(62, 13, 'xDiff > yDiff'); -function visit40_291_1(result) { - _$jscoverage['/drag.js'].branchData['291'][1].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['285'][1].init(17, 17, '!self.isScrolling'); +function visit40_285_1(result) { + _$jscoverage['/drag.js'].branchData['285'][1].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['290'][1].init(53, 45, '!(dragInitDirection = self.dragInitDirection)'); -function visit39_290_1(result) { - _$jscoverage['/drag.js'].branchData['290'][1].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['282'][1].init(452, 37, 'Math.max(xDiff, yDiff) < PIXEL_THRESH'); +function visit39_282_1(result) { + _$jscoverage['/drag.js'].branchData['282'][1].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['287'][1].init(844, 14, 'lockX || lockY'); -function visit38_287_1(result) { - _$jscoverage['/drag.js'].branchData['287'][1].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['269'][1].init(143, 14, '!startMousePos'); +function visit38_269_1(result) { + _$jscoverage['/drag.js'].branchData['269'][1].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['277'][1].init(17, 17, '!self.isScrolling'); -function visit37_277_1(result) { - _$jscoverage['/drag.js'].branchData['277'][1].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['263'][1].init(13, 10, '!e.isTouch'); +function visit37_263_1(result) { + _$jscoverage['/drag.js'].branchData['263'][1].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['274'][1].init(447, 37, 'Math.max(xDiff, yDiff) < PIXEL_THRESH'); -function visit36_274_1(result) { - _$jscoverage['/drag.js'].branchData['274'][1].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['247'][1].init(598, 18, 'touches.length > 1'); +function visit36_247_1(result) { + _$jscoverage['/drag.js'].branchData['247'][1].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['261'][1].init(120, 14, '!startMousePos'); -function visit35_261_1(result) { - _$jscoverage['/drag.js'].branchData['261'][1].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['243'][1].init(481, 16, 'self.isScrolling'); +function visit35_243_1(result) { + _$jscoverage['/drag.js'].branchData['243'][1].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['244'][1].init(551, 18, 'touches.length > 1'); -function visit34_244_1(result) { - _$jscoverage['/drag.js'].branchData['244'][1].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['236'][1].init(93, 36, 'self.isScrolling && self.pagesOffset'); +function visit34_236_1(result) { + _$jscoverage['/drag.js'].branchData['236'][1].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['237'][1].init(319, 11, 'isScrolling'); -function visit33_237_1(result) { - _$jscoverage['/drag.js'].branchData['237'][1].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['234'][1].init(218, 131, 'self.get(\'disabled\') || (self.isScrolling && self.pagesOffset)'); +function visit33_234_1(result) { + _$jscoverage['/drag.js'].branchData['234'][1].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['228'][1].init(71, 20, 'self.get(\'disabled\')'); -function visit32_228_1(result) { - _$jscoverage['/drag.js'].branchData['228'][1].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['229'][1].init(104, 10, '!e.isTouch'); +function visit32_229_1(result) { + _$jscoverage['/drag.js'].branchData['229'][1].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['217'][1].init(343, 11, 'value === 0'); -function visit31_217_1(result) { - _$jscoverage['/drag.js'].branchData['217'][1].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['218'][1].init(347, 11, 'value === 0'); +function visit31_218_1(result) { + _$jscoverage['/drag.js'].branchData['218'][1].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['206'][1].init(1152, 18, 'value <= minScroll'); -function visit30_206_1(result) { - _$jscoverage['/drag.js'].branchData['206'][1].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['207'][1].init(1156, 18, 'value <= minScroll'); +function visit30_207_1(result) { + _$jscoverage['/drag.js'].branchData['207'][1].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['191'][1].init(56, 22, 'fx.lastValue === value'); -function visit29_191_1(result) { - _$jscoverage['/drag.js'].branchData['191'][1].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['192'][1].init(56, 22, 'fx.lastValue === value'); +function visit29_192_1(result) { + _$jscoverage['/drag.js'].branchData['192'][1].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['189'][3].init(388, 17, 'value < maxScroll'); -function visit28_189_3(result) { - _$jscoverage['/drag.js'].branchData['189'][3].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['190'][3].init(392, 17, 'value < maxScroll'); +function visit28_190_3(result) { + _$jscoverage['/drag.js'].branchData['190'][3].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['189'][2].init(367, 17, 'value > minScroll'); -function visit27_189_2(result) { - _$jscoverage['/drag.js'].branchData['189'][2].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['190'][2].init(371, 17, 'value > minScroll'); +function visit27_190_2(result) { + _$jscoverage['/drag.js'].branchData['190'][2].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['189'][1].init(367, 38, 'value > minScroll && value < maxScroll'); -function visit26_189_1(result) { - _$jscoverage['/drag.js'].branchData['189'][1].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['190'][1].init(371, 38, 'value > minScroll && value < maxScroll'); +function visit26_190_1(result) { + _$jscoverage['/drag.js'].branchData['190'][1].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['181'][1].init(98, 7, 'inertia'); -function visit25_181_1(result) { - _$jscoverage['/drag.js'].branchData['181'][1].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['182'][1].init(98, 7, 'inertia'); +function visit25_182_1(result) { + _$jscoverage['/drag.js'].branchData['182'][1].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['134'][3].init(1212, 14, 'distance === 0'); -function visit24_134_3(result) { - _$jscoverage['/drag.js'].branchData['134'][3].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['135'][3].init(1212, 14, 'distance === 0'); +function visit24_135_3(result) { + _$jscoverage['/drag.js'].branchData['135'][3].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['134'][2].init(1194, 14, 'duration === 0'); -function visit23_134_2(result) { - _$jscoverage['/drag.js'].branchData['134'][2].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['135'][2].init(1194, 14, 'duration === 0'); +function visit23_135_2(result) { + _$jscoverage['/drag.js'].branchData['135'][2].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['134'][1].init(1194, 32, 'duration === 0 || distance === 0'); -function visit22_134_1(result) { - _$jscoverage['/drag.js'].branchData['134'][1].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['135'][1].init(1194, 32, 'duration === 0 || distance === 0'); +function visit22_135_1(result) { + _$jscoverage['/drag.js'].branchData['135'][1].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['124'][1].init(941, 16, 'self.pagesOffset'); -function visit21_124_1(result) { - _$jscoverage['/drag.js'].branchData['124'][1].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['125'][1].init(941, 16, 'self.pagesOffset'); +function visit21_125_1(result) { + _$jscoverage['/drag.js'].branchData['125'][1].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['112'][1].init(573, 19, 'bound !== undefined'); -function visit20_112_1(result) { - _$jscoverage['/drag.js'].branchData['112'][1].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['113'][1].init(573, 19, 'bound !== undefined'); +function visit20_113_1(result) { + _$jscoverage['/drag.js'].branchData['113'][1].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['109'][1].init(475, 30, 'scroll > maxScroll[scrollType]'); -function visit19_109_1(result) { - _$jscoverage['/drag.js'].branchData['109'][1].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['110'][1].init(475, 30, 'scroll > maxScroll[scrollType]'); +function visit19_110_1(result) { + _$jscoverage['/drag.js'].branchData['110'][1].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['107'][1].init(378, 30, 'scroll < minScroll[scrollType]'); -function visit18_107_1(result) { - _$jscoverage['/drag.js'].branchData['107'][1].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['108'][1].init(378, 30, 'scroll < minScroll[scrollType]'); +function visit18_108_1(result) { + _$jscoverage['/drag.js'].branchData['108'][1].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['96'][1].init(13, 28, 'forbidDrag(self, scrollType)'); -function visit17_96_1(result) { - _$jscoverage['/drag.js'].branchData['96'][1].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['97'][1].init(13, 28, 'forbidDrag(self, scrollType)'); +function visit17_97_1(result) { + _$jscoverage['/drag.js'].branchData['97'][1].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['89'][1].init(77, 49, '!self.allowScroll[scrollType] && self.get(lockXY)'); -function visit16_89_1(result) { +}_$jscoverage['/drag.js'].branchData['90'][1].init(77, 49, '!self.allowScroll[scrollType] && self.get(lockXY)'); +function visit16_90_1(result) { + _$jscoverage['/drag.js'].branchData['90'][1].ranCondition(result); + return result; +}_$jscoverage['/drag.js'].branchData['89'][1].init(22, 21, 'scrollType === \'left\''); +function visit15_89_1(result) { _$jscoverage['/drag.js'].branchData['89'][1].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['88'][1].init(22, 21, 'scrollType === \'left\''); -function visit15_88_1(result) { - _$jscoverage['/drag.js'].branchData['88'][1].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['76'][2].init(117, 32, 'timeDiff > SWIPE_SAMPLE_INTERVAL'); +function visit14_76_2(result) { + _$jscoverage['/drag.js'].branchData['76'][2].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['75'][2].init(117, 32, 'timeDiff > SWIPE_SAMPLE_INTERVAL'); -function visit14_75_2(result) { - _$jscoverage['/drag.js'].branchData['75'][2].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['76'][1].init(54, 39, 'lastDirection[scrollType] !== direction'); +function visit13_76_1(result) { + _$jscoverage['/drag.js'].branchData['76'][1].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['75'][1].init(54, 39, 'lastDirection[scrollType] !== direction'); -function visit13_75_1(result) { - _$jscoverage['/drag.js'].branchData['75'][1].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['75'][4].init(1613, 39, 'lastDirection[scrollType] !== undefined'); +function visit12_75_4(result) { + _$jscoverage['/drag.js'].branchData['75'][4].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['74'][4].init(1635, 39, 'lastDirection[scrollType] !== undefined'); -function visit12_74_4(result) { - _$jscoverage['/drag.js'].branchData['74'][4].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['75'][3].init(1613, 94, 'lastDirection[scrollType] !== undefined && lastDirection[scrollType] !== direction'); +function visit11_75_3(result) { + _$jscoverage['/drag.js'].branchData['75'][3].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['74'][3].init(1635, 94, 'lastDirection[scrollType] !== undefined && lastDirection[scrollType] !== direction'); -function visit11_74_3(result) { - _$jscoverage['/drag.js'].branchData['74'][3].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['75'][2].init(1593, 114, '!eqWithLastPoint && lastDirection[scrollType] !== undefined && lastDirection[scrollType] !== direction'); +function visit10_75_2(result) { + _$jscoverage['/drag.js'].branchData['75'][2].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['74'][2].init(1615, 114, '!eqWithLastPoint && lastDirection[scrollType] !== undefined && lastDirection[scrollType] !== direction'); -function visit10_74_2(result) { - _$jscoverage['/drag.js'].branchData['74'][2].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['75'][1].init(1593, 150, '!eqWithLastPoint && lastDirection[scrollType] !== undefined && lastDirection[scrollType] !== direction || timeDiff > SWIPE_SAMPLE_INTERVAL'); +function visit9_75_1(result) { + _$jscoverage['/drag.js'].branchData['75'][1].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['74'][1].init(1615, 150, '!eqWithLastPoint && lastDirection[scrollType] !== undefined && lastDirection[scrollType] !== direction || timeDiff > SWIPE_SAMPLE_INTERVAL'); -function visit9_74_1(result) { - _$jscoverage['/drag.js'].branchData['74'][1].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['66'][1].init(1306, 30, 'scroll > maxScroll[scrollType]'); +function visit8_66_1(result) { + _$jscoverage['/drag.js'].branchData['66'][1].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['65'][1].init(1328, 30, 'scroll > maxScroll[scrollType]'); -function visit8_65_1(result) { - _$jscoverage['/drag.js'].branchData['65'][1].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['62'][1].init(1106, 30, 'scroll < minScroll[scrollType]'); +function visit7_62_1(result) { + _$jscoverage['/drag.js'].branchData['62'][1].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['61'][1].init(1128, 30, 'scroll < minScroll[scrollType]'); -function visit7_61_1(result) { - _$jscoverage['/drag.js'].branchData['61'][1].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['58'][1].init(965, 19, '!self.get(\'bounce\')'); +function visit6_58_1(result) { + _$jscoverage['/drag.js'].branchData['58'][1].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['57'][1].init(987, 19, '!self.get(\'bounce\')'); -function visit6_57_1(result) { - _$jscoverage['/drag.js'].branchData['57'][1].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['55'][1].init(117, 61, '(pos[pageOffsetProperty] - lastPageXY[pageOffsetProperty]) > 0'); +function visit5_55_1(result) { + _$jscoverage['/drag.js'].branchData['55'][1].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['54'][1].init(117, 61, '(pos[pageOffsetProperty] - lastPageXY[pageOffsetProperty]) > 0'); -function visit5_54_1(result) { +}_$jscoverage['/drag.js'].branchData['54'][1].init(31, 58, 'pos[pageOffsetProperty] === lastPageXY[pageOffsetProperty]'); +function visit4_54_1(result) { _$jscoverage['/drag.js'].branchData['54'][1].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['53'][1].init(31, 58, 'pos[pageOffsetProperty] === lastPageXY[pageOffsetProperty]'); -function visit4_53_1(result) { +}_$jscoverage['/drag.js'].branchData['53'][1].init(729, 30, 'lastPageXY[pageOffsetProperty]'); +function visit3_53_1(result) { _$jscoverage['/drag.js'].branchData['53'][1].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['52'][1].init(751, 30, 'lastPageXY[pageOffsetProperty]'); -function visit3_52_1(result) { - _$jscoverage['/drag.js'].branchData['52'][1].ranCondition(result); - return result; -}_$jscoverage['/drag.js'].branchData['39'][1].init(216, 21, 'scrollType === \'left\''); -function visit2_39_1(result) { - _$jscoverage['/drag.js'].branchData['39'][1].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['40'][1].init(194, 21, 'scrollType === \'left\''); +function visit2_40_1(result) { + _$jscoverage['/drag.js'].branchData['40'][1].ranCondition(result); return result; -}_$jscoverage['/drag.js'].branchData['32'][1].init(13, 28, 'forbidDrag(self, scrollType)'); -function visit1_32_1(result) { - _$jscoverage['/drag.js'].branchData['32'][1].ranCondition(result); +}_$jscoverage['/drag.js'].branchData['33'][1].init(13, 28, 'forbidDrag(self, scrollType)'); +function visit1_33_1(result) { + _$jscoverage['/drag.js'].branchData['33'][1].ranCondition(result); return result; }_$jscoverage['/drag.js'].lineData[6]++; KISSY.add(function(S, require) { @@ -955,170 +989,172 @@ KISSY.add(function(S, require) { _$jscoverage['/drag.js'].lineData[7]++; var ScrollViewBase = require('./base'); _$jscoverage['/drag.js'].lineData[8]++; - var Node = require('node'); + var isTouchEventSupported = S.Features.isTouchEventSupported(); _$jscoverage['/drag.js'].lineData[9]++; + var Node = require('node'); + _$jscoverage['/drag.js'].lineData[10]++; var Anim = require('anim'); - _$jscoverage['/drag.js'].lineData[11]++; + _$jscoverage['/drag.js'].lineData[12]++; var OUT_OF_BOUND_FACTOR = 0.5; - _$jscoverage['/drag.js'].lineData[13]++; + _$jscoverage['/drag.js'].lineData[14]++; var PIXEL_THRESH = 3; - _$jscoverage['/drag.js'].lineData[15]++; + _$jscoverage['/drag.js'].lineData[16]++; var Gesture = Node.Gesture; - _$jscoverage['/drag.js'].lineData[17]++; + _$jscoverage['/drag.js'].lineData[18]++; var SWIPE_SAMPLE_INTERVAL = 300; - _$jscoverage['/drag.js'].lineData[19]++; + _$jscoverage['/drag.js'].lineData[20]++; var MAX_SWIPE_VELOCITY = 6; - _$jscoverage['/drag.js'].lineData[21]++; + _$jscoverage['/drag.js'].lineData[22]++; var $document = Node.all(document); - _$jscoverage['/drag.js'].lineData[23]++; + _$jscoverage['/drag.js'].lineData[24]++; function onDragStart(self, e, scrollType) { _$jscoverage['/drag.js'].functionData[1]++; - _$jscoverage['/drag.js'].lineData[24]++; + _$jscoverage['/drag.js'].lineData[25]++; var now = e.timeStamp, scroll = self.get('scroll' + S.ucfirst(scrollType)); - _$jscoverage['/drag.js'].lineData[26]++; - self.startScroll[scrollType] = scroll; _$jscoverage['/drag.js'].lineData[27]++; - self.swipe[scrollType].startTime = now; + self.startScroll[scrollType] = scroll; _$jscoverage['/drag.js'].lineData[28]++; + self.swipe[scrollType].startTime = now; + _$jscoverage['/drag.js'].lineData[29]++; self.swipe[scrollType].scroll = scroll; } - _$jscoverage['/drag.js'].lineData[31]++; + _$jscoverage['/drag.js'].lineData[32]++; function onDragScroll(self, e, scrollType, startMousePos) { _$jscoverage['/drag.js'].functionData[2]++; - _$jscoverage['/drag.js'].lineData[32]++; - if (visit1_32_1(forbidDrag(self, scrollType))) { - _$jscoverage['/drag.js'].lineData[33]++; + _$jscoverage['/drag.js'].lineData[33]++; + if (visit1_33_1(forbidDrag(self, scrollType))) { + _$jscoverage['/drag.js'].lineData[34]++; return; } - _$jscoverage['/drag.js'].lineData[35]++; + _$jscoverage['/drag.js'].lineData[36]++; var pos = { - pageX: e.touches[0].pageX, - pageY: e.touches[0].pageY}; - _$jscoverage['/drag.js'].lineData[39]++; - var pageOffsetProperty = visit2_39_1(scrollType === 'left') ? 'pageX' : 'pageY', lastPageXY = self.lastPageXY; - _$jscoverage['/drag.js'].lineData[41]++; + pageX: e.pageX, + pageY: e.pageY}; + _$jscoverage['/drag.js'].lineData[40]++; + var pageOffsetProperty = visit2_40_1(scrollType === 'left') ? 'pageX' : 'pageY', lastPageXY = self.lastPageXY; + _$jscoverage['/drag.js'].lineData[42]++; var diff = pos[pageOffsetProperty] - startMousePos[pageOffsetProperty], eqWithLastPoint, scroll = self.startScroll[scrollType] - diff, bound, now = e.timeStamp, minScroll = self.minScroll, maxScroll = self.maxScroll, lastDirection = self.lastDirection, swipe = self.swipe, direction; - _$jscoverage['/drag.js'].lineData[52]++; - if (visit3_52_1(lastPageXY[pageOffsetProperty])) { - _$jscoverage['/drag.js'].lineData[53]++; - eqWithLastPoint = visit4_53_1(pos[pageOffsetProperty] === lastPageXY[pageOffsetProperty]); + _$jscoverage['/drag.js'].lineData[53]++; + if (visit3_53_1(lastPageXY[pageOffsetProperty])) { _$jscoverage['/drag.js'].lineData[54]++; - direction = visit5_54_1((pos[pageOffsetProperty] - lastPageXY[pageOffsetProperty]) > 0); + eqWithLastPoint = visit4_54_1(pos[pageOffsetProperty] === lastPageXY[pageOffsetProperty]); + _$jscoverage['/drag.js'].lineData[55]++; + direction = visit5_55_1((pos[pageOffsetProperty] - lastPageXY[pageOffsetProperty]) > 0); } - _$jscoverage['/drag.js'].lineData[57]++; - if (visit6_57_1(!self.get('bounce'))) { - _$jscoverage['/drag.js'].lineData[58]++; + _$jscoverage['/drag.js'].lineData[58]++; + if (visit6_58_1(!self.get('bounce'))) { + _$jscoverage['/drag.js'].lineData[59]++; scroll = Math.min(Math.max(scroll, minScroll[scrollType]), maxScroll[scrollType]); } - _$jscoverage['/drag.js'].lineData[61]++; - if (visit7_61_1(scroll < minScroll[scrollType])) { - _$jscoverage['/drag.js'].lineData[62]++; - bound = minScroll[scrollType] - scroll; + _$jscoverage['/drag.js'].lineData[62]++; + if (visit7_62_1(scroll < minScroll[scrollType])) { _$jscoverage['/drag.js'].lineData[63]++; - bound *= OUT_OF_BOUND_FACTOR; + bound = minScroll[scrollType] - scroll; _$jscoverage['/drag.js'].lineData[64]++; + bound *= OUT_OF_BOUND_FACTOR; + _$jscoverage['/drag.js'].lineData[65]++; scroll = minScroll[scrollType] - bound; } else { - _$jscoverage['/drag.js'].lineData[65]++; - if (visit8_65_1(scroll > maxScroll[scrollType])) { - _$jscoverage['/drag.js'].lineData[66]++; - bound = scroll - maxScroll[scrollType]; + _$jscoverage['/drag.js'].lineData[66]++; + if (visit8_66_1(scroll > maxScroll[scrollType])) { _$jscoverage['/drag.js'].lineData[67]++; - bound *= OUT_OF_BOUND_FACTOR; + bound = scroll - maxScroll[scrollType]; _$jscoverage['/drag.js'].lineData[68]++; + bound *= OUT_OF_BOUND_FACTOR; + _$jscoverage['/drag.js'].lineData[69]++; scroll = maxScroll[scrollType] + bound; } } - _$jscoverage['/drag.js'].lineData[71]++; + _$jscoverage['/drag.js'].lineData[72]++; var timeDiff = (now - swipe[scrollType].startTime); - _$jscoverage['/drag.js'].lineData[74]++; - if (visit9_74_1(visit10_74_2(!eqWithLastPoint && visit11_74_3(visit12_74_4(lastDirection[scrollType] !== undefined) && visit13_75_1(lastDirection[scrollType] !== direction))) || visit14_75_2(timeDiff > SWIPE_SAMPLE_INTERVAL))) { - _$jscoverage['/drag.js'].lineData[76]++; - swipe[scrollType].startTime = now; + _$jscoverage['/drag.js'].lineData[75]++; + if (visit9_75_1(visit10_75_2(!eqWithLastPoint && visit11_75_3(visit12_75_4(lastDirection[scrollType] !== undefined) && visit13_76_1(lastDirection[scrollType] !== direction))) || visit14_76_2(timeDiff > SWIPE_SAMPLE_INTERVAL))) { _$jscoverage['/drag.js'].lineData[77]++; + swipe[scrollType].startTime = now; + _$jscoverage['/drag.js'].lineData[78]++; swipe[scrollType].scroll = scroll; } - _$jscoverage['/drag.js'].lineData[81]++; - self.set('scroll' + S.ucfirst(scrollType), scroll); _$jscoverage['/drag.js'].lineData[82]++; + self.set('scroll' + S.ucfirst(scrollType), scroll); + _$jscoverage['/drag.js'].lineData[83]++; lastDirection[scrollType] = direction; - _$jscoverage['/drag.js'].lineData[84]++; + _$jscoverage['/drag.js'].lineData[85]++; lastPageXY[pageOffsetProperty] = e[pageOffsetProperty]; } - _$jscoverage['/drag.js'].lineData[87]++; + _$jscoverage['/drag.js'].lineData[88]++; function forbidDrag(self, scrollType) { _$jscoverage['/drag.js'].functionData[3]++; - _$jscoverage['/drag.js'].lineData[88]++; - var lockXY = visit15_88_1(scrollType === 'left') ? 'lockX' : 'lockY'; _$jscoverage['/drag.js'].lineData[89]++; - if (visit16_89_1(!self.allowScroll[scrollType] && self.get(lockXY))) { - _$jscoverage['/drag.js'].lineData[90]++; + var lockXY = visit15_89_1(scrollType === 'left') ? 'lockX' : 'lockY'; + _$jscoverage['/drag.js'].lineData[90]++; + if (visit16_90_1(!self.allowScroll[scrollType] && self.get(lockXY))) { + _$jscoverage['/drag.js'].lineData[91]++; return 1; } - _$jscoverage['/drag.js'].lineData[92]++; + _$jscoverage['/drag.js'].lineData[93]++; return 0; } - _$jscoverage['/drag.js'].lineData[95]++; + _$jscoverage['/drag.js'].lineData[96]++; function onDragEndAxis(self, e, scrollType, endCallback) { _$jscoverage['/drag.js'].functionData[4]++; - _$jscoverage['/drag.js'].lineData[96]++; - if (visit17_96_1(forbidDrag(self, scrollType))) { - _$jscoverage['/drag.js'].lineData[97]++; - endCallback(); + _$jscoverage['/drag.js'].lineData[97]++; + if (visit17_97_1(forbidDrag(self, scrollType))) { _$jscoverage['/drag.js'].lineData[98]++; + endCallback(); + _$jscoverage['/drag.js'].lineData[99]++; return; } - _$jscoverage['/drag.js'].lineData[100]++; + _$jscoverage['/drag.js'].lineData[101]++; var scrollAxis = 'scroll' + S.ucfirst(scrollType), scroll = self.get(scrollAxis), minScroll = self.minScroll, maxScroll = self.maxScroll, now = e.timeStamp, swipe = self.swipe, bound; - _$jscoverage['/drag.js'].lineData[107]++; - if (visit18_107_1(scroll < minScroll[scrollType])) { - _$jscoverage['/drag.js'].lineData[108]++; + _$jscoverage['/drag.js'].lineData[108]++; + if (visit18_108_1(scroll < minScroll[scrollType])) { + _$jscoverage['/drag.js'].lineData[109]++; bound = minScroll[scrollType]; } else { - _$jscoverage['/drag.js'].lineData[109]++; - if (visit19_109_1(scroll > maxScroll[scrollType])) { - _$jscoverage['/drag.js'].lineData[110]++; + _$jscoverage['/drag.js'].lineData[110]++; + if (visit19_110_1(scroll > maxScroll[scrollType])) { + _$jscoverage['/drag.js'].lineData[111]++; bound = maxScroll[scrollType]; } } - _$jscoverage['/drag.js'].lineData[112]++; - if (visit20_112_1(bound !== undefined)) { - _$jscoverage['/drag.js'].lineData[113]++; - var scrollCfg = {}; + _$jscoverage['/drag.js'].lineData[113]++; + if (visit20_113_1(bound !== undefined)) { _$jscoverage['/drag.js'].lineData[114]++; - scrollCfg[scrollType] = bound; + var scrollCfg = {}; _$jscoverage['/drag.js'].lineData[115]++; + scrollCfg[scrollType] = bound; + _$jscoverage['/drag.js'].lineData[116]++; self.scrollTo(scrollCfg, { duration: self.get('bounceDuration'), easing: self.get('bounceEasing'), queue: false, complete: endCallback}); - _$jscoverage['/drag.js'].lineData[121]++; + _$jscoverage['/drag.js'].lineData[122]++; return; } - _$jscoverage['/drag.js'].lineData[124]++; - if (visit21_124_1(self.pagesOffset)) { - _$jscoverage['/drag.js'].lineData[125]++; - endCallback(); + _$jscoverage['/drag.js'].lineData[125]++; + if (visit21_125_1(self.pagesOffset)) { _$jscoverage['/drag.js'].lineData[126]++; + endCallback(); + _$jscoverage['/drag.js'].lineData[127]++; return; } - _$jscoverage['/drag.js'].lineData[129]++; - var duration = now - swipe[scrollType].startTime; _$jscoverage['/drag.js'].lineData[130]++; + var duration = now - swipe[scrollType].startTime; + _$jscoverage['/drag.js'].lineData[131]++; var distance = (scroll - swipe[scrollType].scroll); - _$jscoverage['/drag.js'].lineData[134]++; - if (visit22_134_1(visit23_134_2(duration === 0) || visit24_134_3(distance === 0))) { - _$jscoverage['/drag.js'].lineData[135]++; - endCallback(); + _$jscoverage['/drag.js'].lineData[135]++; + if (visit22_135_1(visit23_135_2(duration === 0) || visit24_135_3(distance === 0))) { _$jscoverage['/drag.js'].lineData[136]++; + endCallback(); + _$jscoverage['/drag.js'].lineData[137]++; return; } - _$jscoverage['/drag.js'].lineData[142]++; + _$jscoverage['/drag.js'].lineData[143]++; var velocity = distance / duration; - _$jscoverage['/drag.js'].lineData[144]++; + _$jscoverage['/drag.js'].lineData[145]++; velocity = Math.min(Math.max(velocity, -MAX_SWIPE_VELOCITY), MAX_SWIPE_VELOCITY); - _$jscoverage['/drag.js'].lineData[149]++; + _$jscoverage['/drag.js'].lineData[150]++; var animCfg = { node: {}, to: {}, @@ -1126,460 +1162,484 @@ KISSY.add(function(S, require) { queue: false, complete: endCallback, frame: makeMomentumFx(self, velocity, scroll, scrollAxis, maxScroll[scrollType], minScroll[scrollType])}; - _$jscoverage['/drag.js'].lineData[160]++; - animCfg.node[scrollType] = scroll; _$jscoverage['/drag.js'].lineData[161]++; + animCfg.node[scrollType] = scroll; + _$jscoverage['/drag.js'].lineData[162]++; animCfg.to[scrollType] = null; - _$jscoverage['/drag.js'].lineData[163]++; + _$jscoverage['/drag.js'].lineData[164]++; self.scrollAnims.push(new Anim(animCfg).run()); } - _$jscoverage['/drag.js'].lineData[166]++; - var FRICTION = 0.5; _$jscoverage['/drag.js'].lineData[167]++; - var ACCELERATION = 20; + var FRICTION = 0.5; _$jscoverage['/drag.js'].lineData[168]++; - var THETA = Math.log(1 - (FRICTION / 10)); + var ACCELERATION = 20; _$jscoverage['/drag.js'].lineData[169]++; - var ALPHA = THETA / ACCELERATION; + var THETA = Math.log(1 - (FRICTION / 10)); _$jscoverage['/drag.js'].lineData[170]++; + var ALPHA = THETA / ACCELERATION; + _$jscoverage['/drag.js'].lineData[171]++; var SPRING_TENSION = 0.3; - _$jscoverage['/drag.js'].lineData[172]++; + _$jscoverage['/drag.js'].lineData[173]++; function makeMomentumFx(self, startVelocity, startScroll, scrollAxis, maxScroll, minScroll) { _$jscoverage['/drag.js'].functionData[5]++; - _$jscoverage['/drag.js'].lineData[174]++; - var velocity = startVelocity * ACCELERATION; _$jscoverage['/drag.js'].lineData[175]++; - var inertia = 1; + var velocity = startVelocity * ACCELERATION; _$jscoverage['/drag.js'].lineData[176]++; - var bounceStartTime = 0; + var inertia = 1; _$jscoverage['/drag.js'].lineData[177]++; + var bounceStartTime = 0; + _$jscoverage['/drag.js'].lineData[178]++; return function(anim, fx) { _$jscoverage['/drag.js'].functionData[6]++; - _$jscoverage['/drag.js'].lineData[178]++; + _$jscoverage['/drag.js'].lineData[179]++; var now = S.now(), deltaTime, value; - _$jscoverage['/drag.js'].lineData[181]++; - if (visit25_181_1(inertia)) { - _$jscoverage['/drag.js'].lineData[182]++; + _$jscoverage['/drag.js'].lineData[182]++; + if (visit25_182_1(inertia)) { + _$jscoverage['/drag.js'].lineData[183]++; deltaTime = now - anim.startTime; - _$jscoverage['/drag.js'].lineData[186]++; + _$jscoverage['/drag.js'].lineData[187]++; var frictionFactor = Math.exp(deltaTime * ALPHA); - _$jscoverage['/drag.js'].lineData[188]++; - value = parseInt(startScroll + velocity * (1 - frictionFactor) / (-THETA)); _$jscoverage['/drag.js'].lineData[189]++; - if (visit26_189_1(visit27_189_2(value > minScroll) && visit28_189_3(value < maxScroll))) { - _$jscoverage['/drag.js'].lineData[191]++; - if (visit29_191_1(fx.lastValue === value)) { - _$jscoverage['/drag.js'].lineData[192]++; - fx.pos = 1; + value = parseInt(startScroll + velocity * (1 - frictionFactor) / (-THETA), 10); + _$jscoverage['/drag.js'].lineData[190]++; + if (visit26_190_1(visit27_190_2(value > minScroll) && visit28_190_3(value < maxScroll))) { + _$jscoverage['/drag.js'].lineData[192]++; + if (visit29_192_1(fx.lastValue === value)) { _$jscoverage['/drag.js'].lineData[193]++; + fx.pos = 1; + _$jscoverage['/drag.js'].lineData[194]++; return; } - _$jscoverage['/drag.js'].lineData[195]++; - fx.lastValue = value; _$jscoverage['/drag.js'].lineData[196]++; - self.set(scrollAxis, value); + fx.lastValue = value; _$jscoverage['/drag.js'].lineData[197]++; + self.set(scrollAxis, value); + _$jscoverage['/drag.js'].lineData[198]++; return; } - _$jscoverage['/drag.js'].lineData[199]++; - inertia = 0; _$jscoverage['/drag.js'].lineData[200]++; + inertia = 0; + _$jscoverage['/drag.js'].lineData[201]++; velocity = velocity * frictionFactor; - _$jscoverage['/drag.js'].lineData[206]++; - startScroll = visit30_206_1(value <= minScroll) ? minScroll : maxScroll; - _$jscoverage['/drag.js'].lineData[208]++; + _$jscoverage['/drag.js'].lineData[207]++; + startScroll = visit30_207_1(value <= minScroll) ? minScroll : maxScroll; + _$jscoverage['/drag.js'].lineData[209]++; bounceStartTime = now; } else { - _$jscoverage['/drag.js'].lineData[210]++; + _$jscoverage['/drag.js'].lineData[211]++; deltaTime = now - bounceStartTime; - _$jscoverage['/drag.js'].lineData[212]++; + _$jscoverage['/drag.js'].lineData[213]++; var theta = (deltaTime / ACCELERATION), powTime = theta * Math.exp(-SPRING_TENSION * theta); - _$jscoverage['/drag.js'].lineData[216]++; - value = parseInt(velocity * powTime); _$jscoverage['/drag.js'].lineData[217]++; - if (visit31_217_1(value === 0)) { - _$jscoverage['/drag.js'].lineData[218]++; + value = parseInt(velocity * powTime, 10); + _$jscoverage['/drag.js'].lineData[218]++; + if (visit31_218_1(value === 0)) { + _$jscoverage['/drag.js'].lineData[219]++; fx.pos = 1; } - _$jscoverage['/drag.js'].lineData[220]++; + _$jscoverage['/drag.js'].lineData[221]++; self.set(scrollAxis, startScroll + value); } }; } - _$jscoverage['/drag.js'].lineData[225]++; + _$jscoverage['/drag.js'].lineData[226]++; function onDragStartHandler(e) { _$jscoverage['/drag.js'].functionData[7]++; - _$jscoverage['/drag.js'].lineData[226]++; - var self = this, touches = e.touches; - _$jscoverage['/drag.js'].lineData[228]++; - if (visit32_228_1(self.get('disabled'))) { - _$jscoverage['/drag.js'].lineData[229]++; + _$jscoverage['/drag.js'].lineData[229]++; + if (visit32_229_1(!e.isTouch)) { + _$jscoverage['/drag.js'].lineData[230]++; return; } - _$jscoverage['/drag.js'].lineData[231]++; - self.stopAnimation(); _$jscoverage['/drag.js'].lineData[232]++; - var pos = { - pageX: e.touches[0].pageX, - pageY: e.touches[0].pageY}; - _$jscoverage['/drag.js'].lineData[236]++; - var isScrolling = self.isScrolling; - _$jscoverage['/drag.js'].lineData[237]++; - if (visit33_237_1(isScrolling)) { - _$jscoverage['/drag.js'].lineData[238]++; - var pageIndex = self.get('pageIndex'); - _$jscoverage['/drag.js'].lineData[239]++; - self.fire('scrollEnd', S.mix({ - fromPageIndex: pageIndex, - pageIndex: pageIndex}, pos)); + var self = this, touches = e.touches; + _$jscoverage['/drag.js'].lineData[234]++; + if (visit33_234_1(self.get('disabled') || (visit34_236_1(self.isScrolling && self.pagesOffset)))) { + _$jscoverage['/drag.js'].lineData[237]++; + return; } - _$jscoverage['/drag.js'].lineData[244]++; - if (visit34_244_1(touches.length > 1)) { + _$jscoverage['/drag.js'].lineData[239]++; + var pos = { + pageX: e.pageX, + pageY: e.pageY}; + _$jscoverage['/drag.js'].lineData[243]++; + if (visit35_243_1(self.isScrolling)) { + _$jscoverage['/drag.js'].lineData[244]++; + self.stopAnimation(); _$jscoverage['/drag.js'].lineData[245]++; - return; + self.fire('scrollEnd', pos); } _$jscoverage['/drag.js'].lineData[247]++; + if (visit36_247_1(touches.length > 1)) { + _$jscoverage['/drag.js'].lineData[249]++; + $document.detach(Gesture.move, onDragHandler, self).detach(Gesture.end, onDragEndHandler, self); + _$jscoverage['/drag.js'].lineData[251]++; + return; + } + _$jscoverage['/drag.js'].lineData[253]++; initStates(self); - _$jscoverage['/drag.js'].lineData[248]++; + _$jscoverage['/drag.js'].lineData[254]++; self.startMousePos = pos; - _$jscoverage['/drag.js'].lineData[249]++; + _$jscoverage['/drag.js'].lineData[255]++; onDragStart(self, e, 'left'); - _$jscoverage['/drag.js'].lineData[250]++; + _$jscoverage['/drag.js'].lineData[256]++; onDragStart(self, e, 'top'); - _$jscoverage['/drag.js'].lineData[253]++; + _$jscoverage['/drag.js'].lineData[259]++; $document.on(Gesture.move, onDragHandler, self).on(Gesture.end, onDragEndHandler, self); } - _$jscoverage['/drag.js'].lineData[256]++; + _$jscoverage['/drag.js'].lineData[262]++; var onDragHandler = function(e) { _$jscoverage['/drag.js'].functionData[8]++; - _$jscoverage['/drag.js'].lineData[257]++; - var self = this, touches = e.touches, startMousePos = self.startMousePos; - _$jscoverage['/drag.js'].lineData[261]++; - if (visit35_261_1(!startMousePos)) { - _$jscoverage['/drag.js'].lineData[262]++; + _$jscoverage['/drag.js'].lineData[263]++; + if (visit37_263_1(!e.isTouch)) { + _$jscoverage['/drag.js'].lineData[264]++; + return; + } + _$jscoverage['/drag.js'].lineData[266]++; + var self = this, startMousePos = self.startMousePos; + _$jscoverage['/drag.js'].lineData[269]++; + if (visit38_269_1(!startMousePos)) { + _$jscoverage['/drag.js'].lineData[270]++; return; } - _$jscoverage['/drag.js'].lineData[265]++; + _$jscoverage['/drag.js'].lineData[273]++; var pos = { - pageX: touches[0].pageX, - pageY: touches[0].pageY}; - _$jscoverage['/drag.js'].lineData[270]++; + pageX: e.pageX, + pageY: e.pageY}; + _$jscoverage['/drag.js'].lineData[278]++; var xDiff = Math.abs(pos.pageX - startMousePos.pageX); - _$jscoverage['/drag.js'].lineData[271]++; + _$jscoverage['/drag.js'].lineData[279]++; var yDiff = Math.abs(pos.pageY - startMousePos.pageY); - _$jscoverage['/drag.js'].lineData[274]++; - if (visit36_274_1(Math.max(xDiff, yDiff) < PIXEL_THRESH)) { - _$jscoverage['/drag.js'].lineData[275]++; + _$jscoverage['/drag.js'].lineData[282]++; + if (visit39_282_1(Math.max(xDiff, yDiff) < PIXEL_THRESH)) { + _$jscoverage['/drag.js'].lineData[283]++; return; } else { - _$jscoverage['/drag.js'].lineData[277]++; - if (visit37_277_1(!self.isScrolling)) { - _$jscoverage['/drag.js'].lineData[278]++; + _$jscoverage['/drag.js'].lineData[285]++; + if (visit40_285_1(!self.isScrolling)) { + _$jscoverage['/drag.js'].lineData[286]++; self.fire('scrollStart', pos); - _$jscoverage['/drag.js'].lineData[279]++; + _$jscoverage['/drag.js'].lineData[287]++; self.isScrolling = 1; } } - _$jscoverage['/drag.js'].lineData[283]++; + _$jscoverage['/drag.js'].lineData[291]++; var lockX = self.get('lockX'), lockY = self.get('lockY'); - _$jscoverage['/drag.js'].lineData[287]++; - if (visit38_287_1(lockX || lockY)) { - _$jscoverage['/drag.js'].lineData[288]++; + _$jscoverage['/drag.js'].lineData[295]++; + if (visit41_295_1(lockX || lockY)) { + _$jscoverage['/drag.js'].lineData[296]++; var dragInitDirection; - _$jscoverage['/drag.js'].lineData[290]++; - if (visit39_290_1(!(dragInitDirection = self.dragInitDirection))) { - _$jscoverage['/drag.js'].lineData[291]++; - self.dragInitDirection = dragInitDirection = visit40_291_1(xDiff > yDiff) ? 'left' : 'top'; + _$jscoverage['/drag.js'].lineData[298]++; + if (visit42_298_1(!(dragInitDirection = self.dragInitDirection))) { + _$jscoverage['/drag.js'].lineData[299]++; + self.dragInitDirection = dragInitDirection = visit43_299_1(xDiff > yDiff) ? 'left' : 'top'; } - _$jscoverage['/drag.js'].lineData[294]++; - if (visit41_294_1(lockX && visit42_294_2(visit43_294_3(dragInitDirection === 'left') && !self.allowScroll[dragInitDirection]))) { - _$jscoverage['/drag.js'].lineData[296]++; + _$jscoverage['/drag.js'].lineData[302]++; + if (visit44_302_1(lockX && visit45_302_2(visit46_302_3(dragInitDirection === 'left') && !self.allowScroll[dragInitDirection]))) { + _$jscoverage['/drag.js'].lineData[304]++; self.isScrolling = 0; - _$jscoverage['/drag.js'].lineData[297]++; - if (visit44_297_1(self.get('preventDefaultX'))) { - _$jscoverage['/drag.js'].lineData[298]++; + _$jscoverage['/drag.js'].lineData[305]++; + if (visit47_305_1(self.get('preventDefaultX'))) { + _$jscoverage['/drag.js'].lineData[306]++; e.preventDefault(); } - _$jscoverage['/drag.js'].lineData[300]++; + _$jscoverage['/drag.js'].lineData[308]++; return; } - _$jscoverage['/drag.js'].lineData[303]++; - if (visit45_303_1(lockY && visit46_303_2(visit47_303_3(dragInitDirection === 'top') && !self.allowScroll[dragInitDirection]))) { - _$jscoverage['/drag.js'].lineData[305]++; + _$jscoverage['/drag.js'].lineData[311]++; + if (visit48_311_1(lockY && visit49_311_2(visit50_311_3(dragInitDirection === 'top') && !self.allowScroll[dragInitDirection]))) { + _$jscoverage['/drag.js'].lineData[313]++; self.isScrolling = 0; - _$jscoverage['/drag.js'].lineData[306]++; - if (visit48_306_1(self.get('preventDefaultY'))) { - _$jscoverage['/drag.js'].lineData[307]++; + _$jscoverage['/drag.js'].lineData[314]++; + if (visit51_314_1(self.get('preventDefaultY'))) { + _$jscoverage['/drag.js'].lineData[315]++; e.preventDefault(); } - _$jscoverage['/drag.js'].lineData[309]++; + _$jscoverage['/drag.js'].lineData[317]++; return; } } - _$jscoverage['/drag.js'].lineData[313]++; - if (visit49_313_1(S.Features.isTouchEventSupported())) { - _$jscoverage['/drag.js'].lineData[314]++; + _$jscoverage['/drag.js'].lineData[321]++; + if (visit52_321_1(isTouchEventSupported)) { + _$jscoverage['/drag.js'].lineData[322]++; e.preventDefault(); } - _$jscoverage['/drag.js'].lineData[317]++; + _$jscoverage['/drag.js'].lineData[325]++; onDragScroll(self, e, 'left', startMousePos); - _$jscoverage['/drag.js'].lineData[318]++; + _$jscoverage['/drag.js'].lineData[326]++; onDragScroll(self, e, 'top', startMousePos); - _$jscoverage['/drag.js'].lineData[321]++; + _$jscoverage['/drag.js'].lineData[329]++; self.fire('scrollMove', pos); }; - _$jscoverage['/drag.js'].lineData[324]++; - if (visit50_324_1(S.UA.ie)) { - _$jscoverage['/drag.js'].lineData[325]++; + _$jscoverage['/drag.js'].lineData[332]++; + if (visit53_332_1(S.UA.ie)) { + _$jscoverage['/drag.js'].lineData[333]++; onDragHandler = S.throttle(onDragHandler, 30); } - _$jscoverage['/drag.js'].lineData[328]++; + _$jscoverage['/drag.js'].lineData[336]++; function onDragEndHandler(e) { _$jscoverage['/drag.js'].functionData[9]++; - _$jscoverage['/drag.js'].lineData[329]++; + _$jscoverage['/drag.js'].lineData[337]++; + if (visit54_337_1(!e.isTouch)) { + _$jscoverage['/drag.js'].lineData[338]++; + return; + } + _$jscoverage['/drag.js'].lineData[340]++; var self = this; - _$jscoverage['/drag.js'].lineData[330]++; + _$jscoverage['/drag.js'].lineData[341]++; var startMousePos = self.startMousePos; - _$jscoverage['/drag.js'].lineData[331]++; - $document.detach(Gesture.move, onDragHandler, self); - _$jscoverage['/drag.js'].lineData[332]++; - if (visit51_332_1(!startMousePos || !self.isScrolling)) { - _$jscoverage['/drag.js'].lineData[333]++; + _$jscoverage['/drag.js'].lineData[343]++; + $document.detach(Gesture.move, onDragHandler, self).detach(Gesture.end, onDragEndHandler, self); + _$jscoverage['/drag.js'].lineData[344]++; + if (visit55_344_1(!startMousePos || !self.isScrolling)) { + _$jscoverage['/drag.js'].lineData[345]++; return; } - _$jscoverage['/drag.js'].lineData[335]++; - var count = 0; - _$jscoverage['/drag.js'].lineData[336]++; + _$jscoverage['/drag.js'].lineData[347]++; var offsetX = startMousePos.pageX - e.pageX; - _$jscoverage['/drag.js'].lineData[337]++; + _$jscoverage['/drag.js'].lineData[348]++; var offsetY = startMousePos.pageY - e.pageY; - _$jscoverage['/drag.js'].lineData[338]++; - var snapThreshold = self._snapThresholdCfg; - _$jscoverage['/drag.js'].lineData[339]++; - var allowX = visit52_339_1(self.allowScroll.left && visit53_339_2(Math.abs(offsetX) > snapThreshold)); - _$jscoverage['/drag.js'].lineData[340]++; - var allowY = visit54_340_1(self.allowScroll.top && visit55_340_2(Math.abs(offsetY) > snapThreshold)); - _$jscoverage['/drag.js'].lineData[341]++; + _$jscoverage['/drag.js'].lineData[349]++; self.fire('dragend', { pageX: e.pageX, + deltaX: -offsetX, + deltaY: -offsetY, pageY: e.pageY}); - _$jscoverage['/drag.js'].lineData[345]++; + } + _$jscoverage['/drag.js'].lineData[358]++; + function defaultDragEndFn(e) { + _$jscoverage['/drag.js'].functionData[10]++; + _$jscoverage['/drag.js'].lineData[359]++; + var self = this; + _$jscoverage['/drag.js'].lineData[360]++; + var count = 0; + _$jscoverage['/drag.js'].lineData[361]++; + var offsetX = -e.deltaX; + _$jscoverage['/drag.js'].lineData[362]++; + var offsetY = -e.deltaY; + _$jscoverage['/drag.js'].lineData[363]++; + var snapThreshold = self._snapThresholdCfg; + _$jscoverage['/drag.js'].lineData[364]++; + var allowX = visit56_364_1(self.allowScroll.left && visit57_364_2(Math.abs(offsetX) > snapThreshold)); + _$jscoverage['/drag.js'].lineData[365]++; + var allowY = visit58_365_1(self.allowScroll.top && visit59_365_2(Math.abs(offsetY) > snapThreshold)); + _$jscoverage['/drag.js'].lineData[367]++; function endCallback() { - _$jscoverage['/drag.js'].functionData[10]++; - _$jscoverage['/drag.js'].lineData[346]++; + _$jscoverage['/drag.js'].functionData[11]++; + _$jscoverage['/drag.js'].lineData[368]++; count++; - _$jscoverage['/drag.js'].lineData[347]++; - if (visit56_347_1(count === 2)) { - _$jscoverage['/drag.js'].lineData[348]++; + _$jscoverage['/drag.js'].lineData[369]++; + if (visit60_369_1(count === 2)) { + _$jscoverage['/drag.js'].lineData[370]++; var scrollEnd = function() { - _$jscoverage['/drag.js'].functionData[11]++; - _$jscoverage['/drag.js'].lineData[349]++; + _$jscoverage['/drag.js'].functionData[12]++; + _$jscoverage['/drag.js'].lineData[371]++; self.isScrolling = 0; - _$jscoverage['/drag.js'].lineData[350]++; + _$jscoverage['/drag.js'].lineData[372]++; self.fire('scrollEnd', { pageX: e.pageX, pageY: e.pageY, + deltaX: -offsetX, + deltaY: -offsetY, fromPageIndex: pageIndex, pageIndex: self.get('pageIndex')}); }; - _$jscoverage['/drag.js'].lineData[358]++; - if (visit57_358_1(!self.pagesOffset)) { - _$jscoverage['/drag.js'].lineData[359]++; + _$jscoverage['/drag.js'].lineData[382]++; + if (visit61_382_1(!self.pagesOffset)) { + _$jscoverage['/drag.js'].lineData[383]++; scrollEnd(); - _$jscoverage['/drag.js'].lineData[360]++; + _$jscoverage['/drag.js'].lineData[384]++; return; } - _$jscoverage['/drag.js'].lineData[363]++; + _$jscoverage['/drag.js'].lineData[387]++; var snapDuration = self._snapDurationCfg; - _$jscoverage['/drag.js'].lineData[364]++; + _$jscoverage['/drag.js'].lineData[388]++; var snapEasing = self._snapEasingCfg; - _$jscoverage['/drag.js'].lineData[365]++; + _$jscoverage['/drag.js'].lineData[389]++; var pageIndex = self.get('pageIndex'); - _$jscoverage['/drag.js'].lineData[366]++; + _$jscoverage['/drag.js'].lineData[390]++; var scrollLeft = self.get('scrollLeft'); - _$jscoverage['/drag.js'].lineData[367]++; + _$jscoverage['/drag.js'].lineData[391]++; var scrollTop = self.get('scrollTop'); - _$jscoverage['/drag.js'].lineData[369]++; + _$jscoverage['/drag.js'].lineData[393]++; var animCfg = { duration: snapDuration, easing: snapEasing, complete: scrollEnd}; - _$jscoverage['/drag.js'].lineData[375]++; + _$jscoverage['/drag.js'].lineData[399]++; var pagesOffset = self.pagesOffset; - _$jscoverage['/drag.js'].lineData[376]++; + _$jscoverage['/drag.js'].lineData[400]++; var pagesOffsetLen = pagesOffset.length; - _$jscoverage['/drag.js'].lineData[378]++; + _$jscoverage['/drag.js'].lineData[402]++; self.isScrolling = 0; - _$jscoverage['/drag.js'].lineData[380]++; - if (visit58_380_1(allowX || allowY)) { - _$jscoverage['/drag.js'].lineData[381]++; - if (visit59_381_1(allowX && allowY)) { - _$jscoverage['/drag.js'].lineData[382]++; + _$jscoverage['/drag.js'].lineData[404]++; + if (visit62_404_1(allowX || allowY)) { + _$jscoverage['/drag.js'].lineData[405]++; + if (visit63_405_1(allowX && allowY)) { + _$jscoverage['/drag.js'].lineData[406]++; var prepareX = [], i, newPageIndex; - _$jscoverage['/drag.js'].lineData[385]++; + _$jscoverage['/drag.js'].lineData[409]++; var nowXY = { left: scrollLeft, top: scrollTop}; - _$jscoverage['/drag.js'].lineData[389]++; - for (i = 0; visit60_389_1(i < pagesOffsetLen); i++) { - _$jscoverage['/drag.js'].lineData[390]++; + _$jscoverage['/drag.js'].lineData[413]++; + for (i = 0; visit64_413_1(i < pagesOffsetLen); i++) { + _$jscoverage['/drag.js'].lineData[414]++; var offset = pagesOffset[i]; - _$jscoverage['/drag.js'].lineData[391]++; - if (visit61_391_1(offset)) { - _$jscoverage['/drag.js'].lineData[392]++; - if (visit62_392_1(visit63_392_2(offsetX > 0) && visit64_392_3(offset.left > nowXY.left))) { - _$jscoverage['/drag.js'].lineData[393]++; + _$jscoverage['/drag.js'].lineData[415]++; + if (visit65_415_1(offset)) { + _$jscoverage['/drag.js'].lineData[416]++; + if (visit66_416_1(visit67_416_2(offsetX > 0) && visit68_416_3(offset.left > nowXY.left))) { + _$jscoverage['/drag.js'].lineData[417]++; prepareX.push(offset); } else { - _$jscoverage['/drag.js'].lineData[394]++; - if (visit65_394_1(visit66_394_2(offsetX < 0) && visit67_394_3(offset.left < nowXY.left))) { - _$jscoverage['/drag.js'].lineData[395]++; + _$jscoverage['/drag.js'].lineData[418]++; + if (visit69_418_1(visit70_418_2(offsetX < 0) && visit71_418_3(offset.left < nowXY.left))) { + _$jscoverage['/drag.js'].lineData[419]++; prepareX.push(offset); } } } } - _$jscoverage['/drag.js'].lineData[399]++; + _$jscoverage['/drag.js'].lineData[423]++; var min; - _$jscoverage['/drag.js'].lineData[400]++; + _$jscoverage['/drag.js'].lineData[424]++; var prepareXLen = prepareX.length; - _$jscoverage['/drag.js'].lineData[401]++; + _$jscoverage['/drag.js'].lineData[425]++; var x; - _$jscoverage['/drag.js'].lineData[402]++; - if (visit68_402_1(offsetY > 0)) { - _$jscoverage['/drag.js'].lineData[403]++; + _$jscoverage['/drag.js'].lineData[426]++; + if (visit72_426_1(offsetY > 0)) { + _$jscoverage['/drag.js'].lineData[427]++; min = Number.MAX_VALUE; - _$jscoverage['/drag.js'].lineData[404]++; - for (i = 0; visit69_404_1(i < prepareXLen); i++) { - _$jscoverage['/drag.js'].lineData[405]++; + _$jscoverage['/drag.js'].lineData[428]++; + for (i = 0; visit73_428_1(i < prepareXLen); i++) { + _$jscoverage['/drag.js'].lineData[429]++; x = prepareX[i]; - _$jscoverage['/drag.js'].lineData[406]++; - if (visit70_406_1(x.top > nowXY.top)) { - _$jscoverage['/drag.js'].lineData[407]++; - if (visit71_407_1(min < x.top - nowXY.top)) { - _$jscoverage['/drag.js'].lineData[408]++; + _$jscoverage['/drag.js'].lineData[430]++; + if (visit74_430_1(x.top > nowXY.top)) { + _$jscoverage['/drag.js'].lineData[431]++; + if (visit75_431_1(min < x.top - nowXY.top)) { + _$jscoverage['/drag.js'].lineData[432]++; min = x.top - nowXY.top; - _$jscoverage['/drag.js'].lineData[409]++; + _$jscoverage['/drag.js'].lineData[433]++; newPageIndex = prepareX.index; } } } } else { - _$jscoverage['/drag.js'].lineData[414]++; + _$jscoverage['/drag.js'].lineData[438]++; min = Number.MAX_VALUE; - _$jscoverage['/drag.js'].lineData[415]++; - for (i = 0; visit72_415_1(i < prepareXLen); i++) { - _$jscoverage['/drag.js'].lineData[416]++; + _$jscoverage['/drag.js'].lineData[439]++; + for (i = 0; visit76_439_1(i < prepareXLen); i++) { + _$jscoverage['/drag.js'].lineData[440]++; x = prepareX[i]; - _$jscoverage['/drag.js'].lineData[417]++; - if (visit73_417_1(x.top < nowXY.top)) { - _$jscoverage['/drag.js'].lineData[418]++; - if (visit74_418_1(min < nowXY.top - x.top)) { - _$jscoverage['/drag.js'].lineData[419]++; + _$jscoverage['/drag.js'].lineData[441]++; + if (visit77_441_1(x.top < nowXY.top)) { + _$jscoverage['/drag.js'].lineData[442]++; + if (visit78_442_1(min < nowXY.top - x.top)) { + _$jscoverage['/drag.js'].lineData[443]++; min = nowXY.top - x.top; - _$jscoverage['/drag.js'].lineData[420]++; + _$jscoverage['/drag.js'].lineData[444]++; newPageIndex = prepareX.index; } } } } - _$jscoverage['/drag.js'].lineData[425]++; - if (visit75_425_1(newPageIndex !== undefined)) { - _$jscoverage['/drag.js'].lineData[426]++; - if (visit76_426_1(newPageIndex !== pageIndex)) { - _$jscoverage['/drag.js'].lineData[427]++; + _$jscoverage['/drag.js'].lineData[449]++; + if (visit79_449_1(newPageIndex !== undefined)) { + _$jscoverage['/drag.js'].lineData[450]++; + if (visit80_450_1(newPageIndex !== pageIndex)) { + _$jscoverage['/drag.js'].lineData[451]++; self.scrollToPage(newPageIndex, animCfg); } else { - _$jscoverage['/drag.js'].lineData[429]++; + _$jscoverage['/drag.js'].lineData[453]++; self.scrollToPage(newPageIndex); - _$jscoverage['/drag.js'].lineData[430]++; + _$jscoverage['/drag.js'].lineData[454]++; scrollEnd(); } } else { - _$jscoverage['/drag.js'].lineData[433]++; + _$jscoverage['/drag.js'].lineData[457]++; scrollEnd(); } } else { - _$jscoverage['/drag.js'].lineData[436]++; - if (visit77_436_1(allowX || allowY)) { - _$jscoverage['/drag.js'].lineData[437]++; - var toPageIndex = self._getPageIndexFromXY(allowX ? scrollLeft : scrollTop, allowX, allowX ? offsetX : offsetY); - _$jscoverage['/drag.js'].lineData[440]++; + _$jscoverage['/drag.js'].lineData[460]++; + if (visit81_460_1(allowX || allowY)) { + _$jscoverage['/drag.js'].lineData[461]++; + var toPageIndex = self.getPageIndexFromXY(allowX ? scrollLeft : scrollTop, allowX, allowX ? offsetX : offsetY); + _$jscoverage['/drag.js'].lineData[464]++; self.scrollToPage(toPageIndex, animCfg); } else { - _$jscoverage['/drag.js'].lineData[442]++; + _$jscoverage['/drag.js'].lineData[466]++; self.scrollToPage(pageIndex); - _$jscoverage['/drag.js'].lineData[443]++; + _$jscoverage['/drag.js'].lineData[467]++; scrollEnd(); } } } } } - _$jscoverage['/drag.js'].lineData[450]++; + _$jscoverage['/drag.js'].lineData[474]++; onDragEndAxis(self, e, 'left', endCallback); - _$jscoverage['/drag.js'].lineData[451]++; + _$jscoverage['/drag.js'].lineData[475]++; onDragEndAxis(self, e, 'top', endCallback); } - _$jscoverage['/drag.js'].lineData[454]++; + _$jscoverage['/drag.js'].lineData[478]++; function initStates(self) { - _$jscoverage['/drag.js'].functionData[12]++; - _$jscoverage['/drag.js'].lineData[455]++; + _$jscoverage['/drag.js'].functionData[13]++; + _$jscoverage['/drag.js'].lineData[479]++; self.lastPageXY = {}; - _$jscoverage['/drag.js'].lineData[456]++; + _$jscoverage['/drag.js'].lineData[480]++; self.lastDirection = {}; - _$jscoverage['/drag.js'].lineData[457]++; + _$jscoverage['/drag.js'].lineData[481]++; self.swipe = { left: {}, top: {}}; - _$jscoverage['/drag.js'].lineData[461]++; + _$jscoverage['/drag.js'].lineData[485]++; self.startMousePos = null; - _$jscoverage['/drag.js'].lineData[462]++; + _$jscoverage['/drag.js'].lineData[486]++; self.startScroll = {}; - _$jscoverage['/drag.js'].lineData[463]++; + _$jscoverage['/drag.js'].lineData[487]++; self.dragInitDirection = null; } - _$jscoverage['/drag.js'].lineData[466]++; + _$jscoverage['/drag.js'].lineData[490]++; function preventDefault(e) { - _$jscoverage['/drag.js'].functionData[13]++; - _$jscoverage['/drag.js'].lineData[467]++; + _$jscoverage['/drag.js'].functionData[14]++; + _$jscoverage['/drag.js'].lineData[491]++; e.preventDefault(); } - _$jscoverage['/drag.js'].lineData[476]++; + _$jscoverage['/drag.js'].lineData[500]++; return ScrollViewBase.extend({ initializer: function() { - _$jscoverage['/drag.js'].functionData[14]++; - _$jscoverage['/drag.js'].lineData[478]++; + _$jscoverage['/drag.js'].functionData[15]++; + _$jscoverage['/drag.js'].lineData[502]++; var self = this; - _$jscoverage['/drag.js'].lineData[479]++; + _$jscoverage['/drag.js'].lineData[503]++; self._snapThresholdCfg = self.get('snapThreshold'); - _$jscoverage['/drag.js'].lineData[480]++; + _$jscoverage['/drag.js'].lineData[504]++; self._snapDurationCfg = self.get('snapDuration'); - _$jscoverage['/drag.js'].lineData[481]++; + _$jscoverage['/drag.js'].lineData[505]++; self._snapEasingCfg = self.get('snapEasing'); + _$jscoverage['/drag.js'].lineData[506]++; + self.publish('dragend', { + defaultFn: defaultDragEndFn, + defaultTargetOnly: true}); }, bindUI: function() { - _$jscoverage['/drag.js'].functionData[15]++; - _$jscoverage['/drag.js'].lineData[485]++; + _$jscoverage['/drag.js'].functionData[16]++; + _$jscoverage['/drag.js'].lineData[514]++; var self = this; - _$jscoverage['/drag.js'].lineData[487]++; + _$jscoverage['/drag.js'].lineData[516]++; self.$contentEl.on('dragstart', preventDefault).on(Gesture.start, onDragStartHandler, self); -}, - syncUI: function() { - _$jscoverage['/drag.js'].functionData[16]++; - _$jscoverage['/drag.js'].lineData[491]++; - initStates(this); }, destructor: function() { _$jscoverage['/drag.js'].functionData[17]++; - _$jscoverage['/drag.js'].lineData[495]++; + _$jscoverage['/drag.js'].lineData[520]++; this.stopAnimation(); }, stopAnimation: function() { _$jscoverage['/drag.js'].functionData[18]++; - _$jscoverage['/drag.js'].lineData[499]++; + _$jscoverage['/drag.js'].lineData[524]++; this.callSuper(); - _$jscoverage['/drag.js'].lineData[500]++; + _$jscoverage['/drag.js'].lineData[525]++; this.isScrolling = 0; }}, { ATTRS: { @@ -1602,6 +1662,5 @@ KISSY.add(function(S, require) { bounceDuration: { value: 0.4}, bounceEasing: { - value: 'easeOut'}}, - xclass: 'scroll-view'}); + value: 'easeOut'}}}); }); diff --git a/src/scroll-view/sub-modules/drag/src/drag.js b/src/scroll-view/sub-modules/drag/src/drag.js index 91e3c279c1..4d1069a50e 100644 --- a/src/scroll-view/sub-modules/drag/src/drag.js +++ b/src/scroll-view/sub-modules/drag/src/drag.js @@ -5,6 +5,7 @@ */ KISSY.add(function (S, require) { var ScrollViewBase = require('./base'); + var isTouchEventSupported= S.Features.isTouchEventSupported(); var Node = require('node'); var Anim = require('anim'); @@ -33,8 +34,8 @@ KISSY.add(function (S, require) { return; } var pos = { - pageX: e.touches[0].pageX, - pageY: e.touches[0].pageY + pageX: e.pageX, + pageY: e.pageY }; var pageOffsetProperty = scrollType === 'left' ? 'pageX' : 'pageY', lastPageXY = self.lastPageXY; @@ -185,7 +186,7 @@ KISSY.add(function (S, require) { // 1 -> 0 var frictionFactor = Math.exp(deltaTime * ALPHA); // 1 - e^-t - value = parseInt(startScroll + velocity * (1 - frictionFactor) / (-THETA)); + value = parseInt(startScroll + velocity * (1 - frictionFactor) / (-THETA), 10); if (value > minScroll && value < maxScroll) { // inertia if (fx.lastValue === value) { @@ -213,7 +214,7 @@ KISSY.add(function (S, require) { // long tail hump // t * e^-t powTime = theta * Math.exp(-SPRING_TENSION * theta); - value = parseInt(velocity * powTime); + value = parseInt(velocity * powTime, 10); if (value === 0) { fx.pos = 1; } @@ -223,25 +224,30 @@ KISSY.add(function (S, require) { } function onDragStartHandler(e) { + //log('touch start'); + // does not allow drag by mouse in win8 touch screen + if (!e.isTouch) { + return; + } var self = this, touches = e.touches; - if (self.get('disabled')) { + if (self.get('disabled') || + // snap mode can not stop anim in the middle + (self.isScrolling && self.pagesOffset)) { return; } - self.stopAnimation(); var pos = { - pageX: e.touches[0].pageX, - pageY: e.touches[0].pageY + pageX: e.pageX, + pageY: e.pageY }; - var isScrolling = self.isScrolling; - if (isScrolling) { - var pageIndex = self.get('pageIndex'); - self.fire('scrollEnd', S.mix({ - fromPageIndex: pageIndex, - pageIndex: pageIndex - }, pos)); + if (self.isScrolling) { + self.stopAnimation(); + self.fire('scrollEnd', pos); } if (touches.length > 1) { + $document.detach(Gesture.move, onDragHandler, self) + .detach(Gesture.end, onDragEndHandler, self); + //log('touch more than 1'); return; } initStates(self); @@ -254,8 +260,10 @@ KISSY.add(function (S, require) { } var onDragHandler = function (e) { + if (!e.isTouch) { + return; + } var self = this, - touches = e.touches, startMousePos = self.startMousePos; if (!startMousePos) { @@ -263,8 +271,8 @@ KISSY.add(function (S, require) { } var pos = { - pageX: touches[0].pageX, - pageY: touches[0].pageY + pageX: e.pageX, + pageY: e.pageY }; var xDiff = Math.abs(pos.pageX - startMousePos.pageX); @@ -310,7 +318,7 @@ KISSY.add(function (S, require) { } } - if (S.Features.isTouchEventSupported()) { + if (isTouchEventSupported) { e.preventDefault(); } @@ -326,22 +334,36 @@ KISSY.add(function (S, require) { } function onDragEndHandler(e) { + if (!e.isTouch) { + return; + } var self = this; var startMousePos = self.startMousePos; - $document.detach(Gesture.move, onDragHandler, self); + $document.detach(Gesture.move, onDragHandler, self) + .detach(Gesture.end, onDragEndHandler, self); if (!startMousePos || !self.isScrolling) { return; } - var count = 0; var offsetX = startMousePos.pageX - e.pageX; var offsetY = startMousePos.pageY - e.pageY; - var snapThreshold = self._snapThresholdCfg; - var allowX = self.allowScroll.left && Math.abs(offsetX) > snapThreshold; - var allowY = self.allowScroll.top && Math.abs(offsetY) > snapThreshold; self.fire('dragend', { pageX: e.pageX, + deltaX: -offsetX, + deltaY: -offsetY, pageY: e.pageY }); + + } + + function defaultDragEndFn(e) { + var self = this; + var count = 0; + var offsetX = -e.deltaX; + var offsetY = -e.deltaY; + var snapThreshold = self._snapThresholdCfg; + var allowX = self.allowScroll.left && Math.abs(offsetX) > snapThreshold; + var allowY = self.allowScroll.top && Math.abs(offsetY) > snapThreshold; + function endCallback() { count++; if (count === 2) { @@ -350,6 +372,8 @@ KISSY.add(function (S, require) { self.fire('scrollEnd', { pageX: e.pageX, pageY: e.pageY, + deltaX: -offsetX, + deltaY: -offsetY, fromPageIndex: pageIndex, pageIndex: self.get('pageIndex') }); @@ -434,7 +458,7 @@ KISSY.add(function (S, require) { } } else { if (allowX || allowY) { - var toPageIndex = self._getPageIndexFromXY( + var toPageIndex = self.getPageIndexFromXY( allowX ? scrollLeft : scrollTop, allowX, allowX ? offsetX : offsetY); self.scrollToPage(toPageIndex, animCfg); @@ -479,6 +503,11 @@ KISSY.add(function (S, require) { self._snapThresholdCfg = self.get('snapThreshold'); self._snapDurationCfg = self.get('snapDuration'); self._snapEasingCfg = self.get('snapEasing'); + self.publish('dragend', { + defaultFn: defaultDragEndFn, + // only process its own default function + defaultTargetOnly: true + }); }, bindUI: function () { @@ -487,10 +516,6 @@ KISSY.add(function (S, require) { .on(Gesture.start, onDragStartHandler, self); }, - syncUI: function () { - initStates(this); - }, - destructor: function () { this.stopAnimation(); }, @@ -609,8 +634,7 @@ KISSY.add(function (S, require) { bounceEasing: { value: 'easeOut' } - }, - xclass: 'scroll-view' + } } ); }); diff --git a/src/scroll-view/sub-modules/plugin/pull-to-refresh/coverage/src/pull-to-refresh.js b/src/scroll-view/sub-modules/plugin/pull-to-refresh/coverage/src/pull-to-refresh.js index f05d0eb272..bf90748450 100644 --- a/src/scroll-view/sub-modules/plugin/pull-to-refresh/coverage/src/pull-to-refresh.js +++ b/src/scroll-view/sub-modules/plugin/pull-to-refresh/coverage/src/pull-to-refresh.js @@ -261,22 +261,22 @@ if (! _$jscoverage['/pull-to-refresh.js']) { _$jscoverage['/pull-to-refresh.js'].lineData[72] = 0; _$jscoverage['/pull-to-refresh.js'].lineData[78] = 0; _$jscoverage['/pull-to-refresh.js'].lineData[79] = 0; - _$jscoverage['/pull-to-refresh.js'].lineData[80] = 0; - _$jscoverage['/pull-to-refresh.js'].lineData[85] = 0; + _$jscoverage['/pull-to-refresh.js'].lineData[81] = 0; _$jscoverage['/pull-to-refresh.js'].lineData[86] = 0; _$jscoverage['/pull-to-refresh.js'].lineData[87] = 0; _$jscoverage['/pull-to-refresh.js'].lineData[88] = 0; - _$jscoverage['/pull-to-refresh.js'].lineData[96] = 0; + _$jscoverage['/pull-to-refresh.js'].lineData[89] = 0; _$jscoverage['/pull-to-refresh.js'].lineData[97] = 0; _$jscoverage['/pull-to-refresh.js'].lineData[98] = 0; _$jscoverage['/pull-to-refresh.js'].lineData[99] = 0; _$jscoverage['/pull-to-refresh.js'].lineData[100] = 0; - _$jscoverage['/pull-to-refresh.js'].lineData[106] = 0; + _$jscoverage['/pull-to-refresh.js'].lineData[101] = 0; _$jscoverage['/pull-to-refresh.js'].lineData[107] = 0; _$jscoverage['/pull-to-refresh.js'].lineData[108] = 0; _$jscoverage['/pull-to-refresh.js'].lineData[109] = 0; _$jscoverage['/pull-to-refresh.js'].lineData[110] = 0; - _$jscoverage['/pull-to-refresh.js'].lineData[114] = 0; + _$jscoverage['/pull-to-refresh.js'].lineData[111] = 0; + _$jscoverage['/pull-to-refresh.js'].lineData[115] = 0; } if (! _$jscoverage['/pull-to-refresh.js'].functionData) { _$jscoverage['/pull-to-refresh.js'].functionData = []; @@ -305,27 +305,27 @@ if (! _$jscoverage['/pull-to-refresh.js'].branchData) { _$jscoverage['/pull-to-refresh.js'].branchData['79'] = []; _$jscoverage['/pull-to-refresh.js'].branchData['79'][1] = new BranchData(); } -_$jscoverage['/pull-to-refresh.js'].branchData['79'][1].init(43, 5, 'v < 0'); +_$jscoverage['/pull-to-refresh.js'].branchData['79'][1].init(45, 5, 'v < 0'); function visit6_79_1(result) { _$jscoverage['/pull-to-refresh.js'].branchData['79'][1].ranCondition(result); return result; -}_$jscoverage['/pull-to-refresh.js'].branchData['69'][1].init(720, 6, 'loadFn'); +}_$jscoverage['/pull-to-refresh.js'].branchData['69'][1].init(739, 6, 'loadFn'); function visit5_69_1(result) { _$jscoverage['/pull-to-refresh.js'].branchData['69'][1].ranCondition(result); return result; -}_$jscoverage['/pull-to-refresh.js'].branchData['50'][1].init(141, 18, '-b > self.elHeight'); +}_$jscoverage['/pull-to-refresh.js'].branchData['50'][1].init(145, 18, '-b > self.elHeight'); function visit4_50_1(result) { _$jscoverage['/pull-to-refresh.js'].branchData['50'][1].ranCondition(result); return result; -}_$jscoverage['/pull-to-refresh.js'].branchData['41'][1].init(194, 5, 'b < 0'); +}_$jscoverage['/pull-to-refresh.js'].branchData['41'][1].init(199, 5, 'b < 0'); function visit3_41_1(result) { _$jscoverage['/pull-to-refresh.js'].branchData['41'][1].ranCondition(result); return result; -}_$jscoverage['/pull-to-refresh.js'].branchData['39'][1].init(100, 18, '-b > self.elHeight'); +}_$jscoverage['/pull-to-refresh.js'].branchData['39'][1].init(103, 18, '-b > self.elHeight'); function visit2_39_1(result) { _$jscoverage['/pull-to-refresh.js'].branchData['39'][1].ranCondition(result); return result; -}_$jscoverage['/pull-to-refresh.js'].branchData['22'][1].init(17, 16, '!this.scrollView'); +}_$jscoverage['/pull-to-refresh.js'].branchData['22'][1].init(18, 16, '!this.scrollView'); function visit1_22_1(result) { _$jscoverage['/pull-to-refresh.js'].branchData['22'][1].ranCondition(result); return result; @@ -419,49 +419,49 @@ KISSY.add(function(S, require) { v = v.newVal; _$jscoverage['/pull-to-refresh.js'].lineData[79]++; if (visit6_79_1(v < 0)) { - _$jscoverage['/pull-to-refresh.js'].lineData[80]++; + _$jscoverage['/pull-to-refresh.js'].lineData[81]++; this.el.style[transformProperty] = 'translate3d(0,' + -v + 'px,0)'; } }, pluginRenderUI: function(scrollView) { _$jscoverage['/pull-to-refresh.js'].functionData[6]++; - _$jscoverage['/pull-to-refresh.js'].lineData[85]++; - var self = this; _$jscoverage['/pull-to-refresh.js'].lineData[86]++; - self.scrollView = scrollView; + var self = this; _$jscoverage['/pull-to-refresh.js'].lineData[87]++; - var prefixCls = scrollView.get('prefixCls'); + self.scrollView = scrollView; _$jscoverage['/pull-to-refresh.js'].lineData[88]++; + var prefixCls = scrollView.get('prefixCls'); + _$jscoverage['/pull-to-refresh.js'].lineData[89]++; var el = S.all(substitute('
    ' + '
    ' + '' + '' + '
    ' + '
    ', { prefixCls: prefixCls})); - _$jscoverage['/pull-to-refresh.js'].lineData[96]++; - self.labelEl = el.one('.' + prefixCls + 'scroll-view-pull-label'); _$jscoverage['/pull-to-refresh.js'].lineData[97]++; - scrollView.get('el').prepend(el); + self.labelEl = el.one('.' + prefixCls + 'scroll-view-pull-label'); _$jscoverage['/pull-to-refresh.js'].lineData[98]++; - self.$el = el; + scrollView.get('el').prepend(el); _$jscoverage['/pull-to-refresh.js'].lineData[99]++; - self.el = el[0]; + self.$el = el; _$jscoverage['/pull-to-refresh.js'].lineData[100]++; + self.el = el[0]; + _$jscoverage['/pull-to-refresh.js'].lineData[101]++; self._onSetState({ newValue: 'pulling'}); }, pluginBindUI: function(scrollView) { _$jscoverage['/pull-to-refresh.js'].functionData[7]++; - _$jscoverage['/pull-to-refresh.js'].lineData[106]++; - var self = this; _$jscoverage['/pull-to-refresh.js'].lineData[107]++; - scrollView.on('scrollMove', self._onScrollMove, self); + var self = this; _$jscoverage['/pull-to-refresh.js'].lineData[108]++; - scrollView.on('dragend', self._onDragEnd, self); + scrollView.on('scrollMove', self._onScrollMove, self); _$jscoverage['/pull-to-refresh.js'].lineData[109]++; - self.on('afterStateChange', self._onSetState, self); + scrollView.on('dragend', self._onDragEnd, self); _$jscoverage['/pull-to-refresh.js'].lineData[110]++; + self.on('afterStateChange', self._onSetState, self); + _$jscoverage['/pull-to-refresh.js'].lineData[111]++; scrollView.on('afterScrollTopChange', self._onSetScrollTop, self); }, pluginDestructor: function() { _$jscoverage['/pull-to-refresh.js'].functionData[8]++; - _$jscoverage['/pull-to-refresh.js'].lineData[114]++; + _$jscoverage['/pull-to-refresh.js'].lineData[115]++; this.$el.remove(); }}, { ATTRS: { diff --git a/src/scroll-view/sub-modules/plugin/pull-to-refresh/src/pull-to-refresh.js b/src/scroll-view/sub-modules/plugin/pull-to-refresh/src/pull-to-refresh.js index 8c0f9dd059..d27003a71d 100644 --- a/src/scroll-view/sub-modules/plugin/pull-to-refresh/src/pull-to-refresh.js +++ b/src/scroll-view/sub-modules/plugin/pull-to-refresh/src/pull-to-refresh.js @@ -77,6 +77,7 @@ KISSY.add(function (S, require) { _onSetScrollTop: function (v) { v = v.newVal; if (v < 0) { + // does not care ie9 and non 3d browser this.el.style[transformProperty] = 'translate3d(0,' + -v + 'px,0)'; } }, diff --git a/src/scroll-view/sub-modules/plugin/scrollbar/coverage/src/scrollbar.js b/src/scroll-view/sub-modules/plugin/scrollbar/coverage/src/scrollbar.js index 3122cc4867..237489162b 100644 --- a/src/scroll-view/sub-modules/plugin/scrollbar/coverage/src/scrollbar.js +++ b/src/scroll-view/sub-modules/plugin/scrollbar/coverage/src/scrollbar.js @@ -232,100 +232,98 @@ if (! _$jscoverage['/scrollbar.js']) { _$jscoverage['/scrollbar.js'].lineData[6] = 0; _$jscoverage['/scrollbar.js'].lineData[7] = 0; _$jscoverage['/scrollbar.js'].lineData[8] = 0; + _$jscoverage['/scrollbar.js'].lineData[10] = 0; + _$jscoverage['/scrollbar.js'].lineData[11] = 0; + _$jscoverage['/scrollbar.js'].lineData[12] = 0; + _$jscoverage['/scrollbar.js'].lineData[13] = 0; _$jscoverage['/scrollbar.js'].lineData[14] = 0; + _$jscoverage['/scrollbar.js'].lineData[15] = 0; + _$jscoverage['/scrollbar.js'].lineData[16] = 0; _$jscoverage['/scrollbar.js'].lineData[18] = 0; _$jscoverage['/scrollbar.js'].lineData[19] = 0; - _$jscoverage['/scrollbar.js'].lineData[20] = 0; - _$jscoverage['/scrollbar.js'].lineData[21] = 0; - _$jscoverage['/scrollbar.js'].lineData[22] = 0; - _$jscoverage['/scrollbar.js'].lineData[23] = 0; + _$jscoverage['/scrollbar.js'].lineData[25] = 0; + _$jscoverage['/scrollbar.js'].lineData[26] = 0; _$jscoverage['/scrollbar.js'].lineData[28] = 0; _$jscoverage['/scrollbar.js'].lineData[29] = 0; - _$jscoverage['/scrollbar.js'].lineData[32] = 0; - _$jscoverage['/scrollbar.js'].lineData[33] = 0; + _$jscoverage['/scrollbar.js'].lineData[31] = 0; _$jscoverage['/scrollbar.js'].lineData[34] = 0; _$jscoverage['/scrollbar.js'].lineData[35] = 0; - _$jscoverage['/scrollbar.js'].lineData[38] = 0; - _$jscoverage['/scrollbar.js'].lineData[39] = 0; _$jscoverage['/scrollbar.js'].lineData[41] = 0; + _$jscoverage['/scrollbar.js'].lineData[42] = 0; _$jscoverage['/scrollbar.js'].lineData[44] = 0; _$jscoverage['/scrollbar.js'].lineData[45] = 0; - _$jscoverage['/scrollbar.js'].lineData[46] = 0; _$jscoverage['/scrollbar.js'].lineData[47] = 0; - _$jscoverage['/scrollbar.js'].lineData[50] = 0; - _$jscoverage['/scrollbar.js'].lineData[51] = 0; - _$jscoverage['/scrollbar.js'].lineData[53] = 0; - _$jscoverage['/scrollbar.js'].lineData[58] = 0; - _$jscoverage['/scrollbar.js'].lineData[59] = 0; + _$jscoverage['/scrollbar.js'].lineData[56] = 0; _$jscoverage['/scrollbar.js'].lineData[60] = 0; _$jscoverage['/scrollbar.js'].lineData[61] = 0; - _$jscoverage['/scrollbar.js'].lineData[63] = 0; - _$jscoverage['/scrollbar.js'].lineData[64] = 0; - _$jscoverage['/scrollbar.js'].lineData[65] = 0; + _$jscoverage['/scrollbar.js'].lineData[62] = 0; + _$jscoverage['/scrollbar.js'].lineData[66] = 0; + _$jscoverage['/scrollbar.js'].lineData[67] = 0; + _$jscoverage['/scrollbar.js'].lineData[68] = 0; + _$jscoverage['/scrollbar.js'].lineData[69] = 0; + _$jscoverage['/scrollbar.js'].lineData[71] = 0; + _$jscoverage['/scrollbar.js'].lineData[72] = 0; + _$jscoverage['/scrollbar.js'].lineData[73] = 0; + _$jscoverage['/scrollbar.js'].lineData[75] = 0; } if (! _$jscoverage['/scrollbar.js'].functionData) { _$jscoverage['/scrollbar.js'].functionData = []; _$jscoverage['/scrollbar.js'].functionData[0] = 0; _$jscoverage['/scrollbar.js'].functionData[1] = 0; _$jscoverage['/scrollbar.js'].functionData[2] = 0; + _$jscoverage['/scrollbar.js'].functionData[3] = 0; } if (! _$jscoverage['/scrollbar.js'].branchData) { _$jscoverage['/scrollbar.js'].branchData = {}; + _$jscoverage['/scrollbar.js'].branchData['18'] = []; + _$jscoverage['/scrollbar.js'].branchData['18'][1] = new BranchData(); + _$jscoverage['/scrollbar.js'].branchData['25'] = []; + _$jscoverage['/scrollbar.js'].branchData['25'][1] = new BranchData(); _$jscoverage['/scrollbar.js'].branchData['28'] = []; _$jscoverage['/scrollbar.js'].branchData['28'][1] = new BranchData(); - _$jscoverage['/scrollbar.js'].branchData['32'] = []; - _$jscoverage['/scrollbar.js'].branchData['32'][1] = new BranchData(); _$jscoverage['/scrollbar.js'].branchData['34'] = []; _$jscoverage['/scrollbar.js'].branchData['34'][1] = new BranchData(); - _$jscoverage['/scrollbar.js'].branchData['38'] = []; - _$jscoverage['/scrollbar.js'].branchData['38'][1] = new BranchData(); + _$jscoverage['/scrollbar.js'].branchData['41'] = []; + _$jscoverage['/scrollbar.js'].branchData['41'][1] = new BranchData(); _$jscoverage['/scrollbar.js'].branchData['44'] = []; _$jscoverage['/scrollbar.js'].branchData['44'][1] = new BranchData(); - _$jscoverage['/scrollbar.js'].branchData['46'] = []; - _$jscoverage['/scrollbar.js'].branchData['46'][1] = new BranchData(); - _$jscoverage['/scrollbar.js'].branchData['50'] = []; - _$jscoverage['/scrollbar.js'].branchData['50'][1] = new BranchData(); - _$jscoverage['/scrollbar.js'].branchData['59'] = []; - _$jscoverage['/scrollbar.js'].branchData['59'][1] = new BranchData(); - _$jscoverage['/scrollbar.js'].branchData['63'] = []; - _$jscoverage['/scrollbar.js'].branchData['63'][1] = new BranchData(); + _$jscoverage['/scrollbar.js'].branchData['67'] = []; + _$jscoverage['/scrollbar.js'].branchData['67'][1] = new BranchData(); + _$jscoverage['/scrollbar.js'].branchData['71'] = []; + _$jscoverage['/scrollbar.js'].branchData['71'][1] = new BranchData(); } -_$jscoverage['/scrollbar.js'].branchData['63'][1].init(178, 15, 'self.scrollBarY'); -function visit34_63_1(result) { - _$jscoverage['/scrollbar.js'].branchData['63'][1].ranCondition(result); +_$jscoverage['/scrollbar.js'].branchData['71'][1].init(178, 15, 'self.scrollBarY'); +function visit34_71_1(result) { + _$jscoverage['/scrollbar.js'].branchData['71'][1].ranCondition(result); return result; -}_$jscoverage['/scrollbar.js'].branchData['59'][1].init(46, 15, 'self.scrollBarX'); -function visit33_59_1(result) { - _$jscoverage['/scrollbar.js'].branchData['59'][1].ranCondition(result); +}_$jscoverage['/scrollbar.js'].branchData['67'][1].init(46, 15, 'self.scrollBarX'); +function visit33_67_1(result) { + _$jscoverage['/scrollbar.js'].branchData['67'][1].ranCondition(result); return result; -}_$jscoverage['/scrollbar.js'].branchData['50'][1].init(93, 23, 'autoHideY !== undefined'); -function visit32_50_1(result) { - _$jscoverage['/scrollbar.js'].branchData['50'][1].ranCondition(result); - return result; -}_$jscoverage['/scrollbar.js'].branchData['46'][1].init(992, 26, 'scrollView.allowScroll.top'); -function visit31_46_1(result) { - _$jscoverage['/scrollbar.js'].branchData['46'][1].ranCondition(result); - return result; -}_$jscoverage['/scrollbar.js'].branchData['44'][1].init(909, 15, 'self.scrollBarY'); -function visit30_44_1(result) { +}_$jscoverage['/scrollbar.js'].branchData['44'][1].init(326, 23, 'autoHideY !== undefined'); +function visit32_44_1(result) { _$jscoverage['/scrollbar.js'].branchData['44'][1].ranCondition(result); return result; -}_$jscoverage['/scrollbar.js'].branchData['38'][1].init(93, 23, 'autoHideX !== undefined'); -function visit29_38_1(result) { - _$jscoverage['/scrollbar.js'].branchData['38'][1].ranCondition(result); +}_$jscoverage['/scrollbar.js'].branchData['41'][1].init(226, 23, 'minLength !== undefined'); +function visit31_41_1(result) { + _$jscoverage['/scrollbar.js'].branchData['41'][1].ranCondition(result); return result; -}_$jscoverage['/scrollbar.js'].branchData['34'][1].init(589, 27, 'scrollView.allowScroll.left'); -function visit28_34_1(result) { +}_$jscoverage['/scrollbar.js'].branchData['34'][1].init(780, 46, '!self.scrollBarY && scrollView.allowScroll.top'); +function visit30_34_1(result) { _$jscoverage['/scrollbar.js'].branchData['34'][1].ranCondition(result); return result; -}_$jscoverage['/scrollbar.js'].branchData['32'][1].init(506, 15, 'self.scrollBarX'); -function visit27_32_1(result) { - _$jscoverage['/scrollbar.js'].branchData['32'][1].ranCondition(result); - return result; -}_$jscoverage['/scrollbar.js'].branchData['28'][1].init(405, 23, 'minLength !== undefined'); -function visit26_28_1(result) { +}_$jscoverage['/scrollbar.js'].branchData['28'][1].init(326, 23, 'autoHideX !== undefined'); +function visit29_28_1(result) { _$jscoverage['/scrollbar.js'].branchData['28'][1].ranCondition(result); return result; +}_$jscoverage['/scrollbar.js'].branchData['25'][1].init(226, 23, 'minLength !== undefined'); +function visit28_25_1(result) { + _$jscoverage['/scrollbar.js'].branchData['25'][1].ranCondition(result); + return result; +}_$jscoverage['/scrollbar.js'].branchData['18'][1].init(239, 47, '!self.scrollBarX && scrollView.allowScroll.left'); +function visit27_18_1(result) { + _$jscoverage['/scrollbar.js'].branchData['18'][1].ranCondition(result); + return result; }_$jscoverage['/scrollbar.js'].lineData[6]++; KISSY.add(function(S, require) { _$jscoverage['/scrollbar.js'].functionData[0]++; @@ -333,87 +331,94 @@ KISSY.add(function(S, require) { var Base = require('base'); _$jscoverage['/scrollbar.js'].lineData[8]++; var ScrollBar = require('./scrollbar/control'); - _$jscoverage['/scrollbar.js'].lineData[14]++; - return Base.extend({ - pluginId: this.getName(), - pluginSyncUI: function(scrollView) { - _$jscoverage['/scrollbar.js'].functionData[1]++; - _$jscoverage['/scrollbar.js'].lineData[18]++; - var self = this; - _$jscoverage['/scrollbar.js'].lineData[19]++; - var minLength = self.get('minLength'); - _$jscoverage['/scrollbar.js'].lineData[20]++; - var autoHideX = self.get('autoHideX'); - _$jscoverage['/scrollbar.js'].lineData[21]++; - var autoHideY = self.get('autoHideY'); - _$jscoverage['/scrollbar.js'].lineData[22]++; - var my; - _$jscoverage['/scrollbar.js'].lineData[23]++; - var cfg = { + _$jscoverage['/scrollbar.js'].lineData[10]++; + function onScrollViewReflow() { + _$jscoverage['/scrollbar.js'].functionData[1]++; + _$jscoverage['/scrollbar.js'].lineData[11]++; + var self = this; + _$jscoverage['/scrollbar.js'].lineData[12]++; + var scrollView = self.scrollView; + _$jscoverage['/scrollbar.js'].lineData[13]++; + var minLength = self.get('minLength'); + _$jscoverage['/scrollbar.js'].lineData[14]++; + var autoHideX = self.get('autoHideX'); + _$jscoverage['/scrollbar.js'].lineData[15]++; + var autoHideY = self.get('autoHideY'); + _$jscoverage['/scrollbar.js'].lineData[16]++; + var cfg; + _$jscoverage['/scrollbar.js'].lineData[18]++; + if (visit27_18_1(!self.scrollBarX && scrollView.allowScroll.left)) { + _$jscoverage['/scrollbar.js'].lineData[19]++; + cfg = { + axis: 'x', scrollView: scrollView, elBefore: scrollView.$contentEl}; - _$jscoverage['/scrollbar.js'].lineData[28]++; - if (visit26_28_1(minLength !== undefined)) { - _$jscoverage['/scrollbar.js'].lineData[29]++; - cfg.minLength = minLength; - } - _$jscoverage['/scrollbar.js'].lineData[32]++; - if (visit27_32_1(self.scrollBarX)) { - _$jscoverage['/scrollbar.js'].lineData[33]++; - self.scrollBarX.sync(); - } else { - _$jscoverage['/scrollbar.js'].lineData[34]++; - if (visit28_34_1(scrollView.allowScroll.left)) { - _$jscoverage['/scrollbar.js'].lineData[35]++; - my = { - axis: 'x'}; - _$jscoverage['/scrollbar.js'].lineData[38]++; - if (visit29_38_1(autoHideX !== undefined)) { - _$jscoverage['/scrollbar.js'].lineData[39]++; + _$jscoverage['/scrollbar.js'].lineData[25]++; + if (visit28_25_1(minLength !== undefined)) { + _$jscoverage['/scrollbar.js'].lineData[26]++; + cfg.minLength = minLength; + } + _$jscoverage['/scrollbar.js'].lineData[28]++; + if (visit29_28_1(autoHideX !== undefined)) { + _$jscoverage['/scrollbar.js'].lineData[29]++; cfg.autoHide = autoHideX; } - _$jscoverage['/scrollbar.js'].lineData[41]++; - self.scrollBarX = new ScrollBar(S.merge(cfg, my)).render(); + _$jscoverage['/scrollbar.js'].lineData[31]++; + self.scrollBarX = new ScrollBar(cfg).render(); } - } - _$jscoverage['/scrollbar.js'].lineData[44]++; - if (visit30_44_1(self.scrollBarY)) { - _$jscoverage['/scrollbar.js'].lineData[45]++; - self.scrollBarY.sync(); - } else { - _$jscoverage['/scrollbar.js'].lineData[46]++; - if (visit31_46_1(scrollView.allowScroll.top)) { - _$jscoverage['/scrollbar.js'].lineData[47]++; - my = { - axis: 'y'}; - _$jscoverage['/scrollbar.js'].lineData[50]++; - if (visit32_50_1(autoHideY !== undefined)) { - _$jscoverage['/scrollbar.js'].lineData[51]++; + _$jscoverage['/scrollbar.js'].lineData[34]++; + if (visit30_34_1(!self.scrollBarY && scrollView.allowScroll.top)) { + _$jscoverage['/scrollbar.js'].lineData[35]++; + cfg = { + axis: 'y', + scrollView: scrollView, + elBefore: scrollView.$contentEl}; + _$jscoverage['/scrollbar.js'].lineData[41]++; + if (visit31_41_1(minLength !== undefined)) { + _$jscoverage['/scrollbar.js'].lineData[42]++; + cfg.minLength = minLength; + } + _$jscoverage['/scrollbar.js'].lineData[44]++; + if (visit32_44_1(autoHideY !== undefined)) { + _$jscoverage['/scrollbar.js'].lineData[45]++; cfg.autoHide = autoHideY; } - _$jscoverage['/scrollbar.js'].lineData[53]++; - self.scrollBarY = new ScrollBar(S.merge(cfg, my)).render(); + _$jscoverage['/scrollbar.js'].lineData[47]++; + self.scrollBarY = new ScrollBar(cfg).render(); } } -}, - pluginDestructor: function() { + _$jscoverage['/scrollbar.js'].lineData[56]++; + return Base.extend({ + pluginId: this.getName(), + pluginBindUI: function(scrollView) { _$jscoverage['/scrollbar.js'].functionData[2]++; - _$jscoverage['/scrollbar.js'].lineData[58]++; + _$jscoverage['/scrollbar.js'].lineData[60]++; + var self = this; + _$jscoverage['/scrollbar.js'].lineData[61]++; + self.scrollView = scrollView; + _$jscoverage['/scrollbar.js'].lineData[62]++; + scrollView.on('reflow', onScrollViewReflow, self); +}, + pluginDestructor: function(scrollView) { + _$jscoverage['/scrollbar.js'].functionData[3]++; + _$jscoverage['/scrollbar.js'].lineData[66]++; var self = this; - _$jscoverage['/scrollbar.js'].lineData[59]++; - if (visit33_59_1(self.scrollBarX)) { - _$jscoverage['/scrollbar.js'].lineData[60]++; + _$jscoverage['/scrollbar.js'].lineData[67]++; + if (visit33_67_1(self.scrollBarX)) { + _$jscoverage['/scrollbar.js'].lineData[68]++; self.scrollBarX.destroy(); - _$jscoverage['/scrollbar.js'].lineData[61]++; + _$jscoverage['/scrollbar.js'].lineData[69]++; self.scrollBarX = null; } - _$jscoverage['/scrollbar.js'].lineData[63]++; - if (visit34_63_1(self.scrollBarY)) { - _$jscoverage['/scrollbar.js'].lineData[64]++; + _$jscoverage['/scrollbar.js'].lineData[71]++; + if (visit34_71_1(self.scrollBarY)) { + _$jscoverage['/scrollbar.js'].lineData[72]++; self.scrollBarY.destroy(); - _$jscoverage['/scrollbar.js'].lineData[65]++; + _$jscoverage['/scrollbar.js'].lineData[73]++; self.scrollBarY = null; } + _$jscoverage['/scrollbar.js'].lineData[75]++; + scrollView.detach('reflow', onScrollViewReflow, self); }}, { ATTRS: { minLength: {}, diff --git a/src/scroll-view/sub-modules/plugin/scrollbar/coverage/src/scrollbar/control.js b/src/scroll-view/sub-modules/plugin/scrollbar/coverage/src/scrollbar/control.js index a6755cedbf..ccc6b02300 100644 --- a/src/scroll-view/sub-modules/plugin/scrollbar/coverage/src/scrollbar/control.js +++ b/src/scroll-view/sub-modules/plugin/scrollbar/coverage/src/scrollbar/control.js @@ -233,97 +233,137 @@ if (! _$jscoverage['/scrollbar/control.js']) { _$jscoverage['/scrollbar/control.js'].lineData[7] = 0; _$jscoverage['/scrollbar/control.js'].lineData[8] = 0; _$jscoverage['/scrollbar/control.js'].lineData[9] = 0; - _$jscoverage['/scrollbar/control.js'].lineData[11] = 0; - _$jscoverage['/scrollbar/control.js'].lineData[13] = 0; - _$jscoverage['/scrollbar/control.js'].lineData[15] = 0; - _$jscoverage['/scrollbar/control.js'].lineData[17] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[10] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[12] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[14] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[16] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[18] = 0; _$jscoverage['/scrollbar/control.js'].lineData[19] = 0; - _$jscoverage['/scrollbar/control.js'].lineData[26] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[22] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[23] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[24] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[25] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[27] = 0; _$jscoverage['/scrollbar/control.js'].lineData[28] = 0; _$jscoverage['/scrollbar/control.js'].lineData[29] = 0; - _$jscoverage['/scrollbar/control.js'].lineData[30] = 0; _$jscoverage['/scrollbar/control.js'].lineData[31] = 0; _$jscoverage['/scrollbar/control.js'].lineData[32] = 0; - _$jscoverage['/scrollbar/control.js'].lineData[33] = 0; - _$jscoverage['/scrollbar/control.js'].lineData[34] = 0; _$jscoverage['/scrollbar/control.js'].lineData[35] = 0; - _$jscoverage['/scrollbar/control.js'].lineData[37] = 0; _$jscoverage['/scrollbar/control.js'].lineData[38] = 0; - _$jscoverage['/scrollbar/control.js'].lineData[40] = 0; - _$jscoverage['/scrollbar/control.js'].lineData[41] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[39] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[44] = 0; _$jscoverage['/scrollbar/control.js'].lineData[45] = 0; _$jscoverage['/scrollbar/control.js'].lineData[48] = 0; - _$jscoverage['/scrollbar/control.js'].lineData[49] = 0; - _$jscoverage['/scrollbar/control.js'].lineData[51] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[50] = 0; _$jscoverage['/scrollbar/control.js'].lineData[53] = 0; - _$jscoverage['/scrollbar/control.js'].lineData[55] = 0; - _$jscoverage['/scrollbar/control.js'].lineData[56] = 0; - _$jscoverage['/scrollbar/control.js'].lineData[57] = 0; - _$jscoverage['/scrollbar/control.js'].lineData[58] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[54] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[65] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[66] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[67] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[69] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[70] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[71] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[72] = 0; _$jscoverage['/scrollbar/control.js'].lineData[73] = 0; - _$jscoverage['/scrollbar/control.js'].lineData[78] = 0; - _$jscoverage['/scrollbar/control.js'].lineData[79] = 0; - _$jscoverage['/scrollbar/control.js'].lineData[83] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[74] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[76] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[80] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[81] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[84] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[85] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[86] = 0; _$jscoverage['/scrollbar/control.js'].lineData[87] = 0; - _$jscoverage['/scrollbar/control.js'].lineData[89] = 0; - _$jscoverage['/scrollbar/control.js'].lineData[90] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[91] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[93] = 0; _$jscoverage['/scrollbar/control.js'].lineData[94] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[95] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[96] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[98] = 0; _$jscoverage['/scrollbar/control.js'].lineData[99] = 0; _$jscoverage['/scrollbar/control.js'].lineData[100] = 0; - _$jscoverage['/scrollbar/control.js'].lineData[104] = 0; - _$jscoverage['/scrollbar/control.js'].lineData[105] = 0; - _$jscoverage['/scrollbar/control.js'].lineData[106] = 0; - _$jscoverage['/scrollbar/control.js'].lineData[110] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[101] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[103] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[107] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[108] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[109] = 0; _$jscoverage['/scrollbar/control.js'].lineData[111] = 0; _$jscoverage['/scrollbar/control.js'].lineData[112] = 0; - _$jscoverage['/scrollbar/control.js'].lineData[113] = 0; - _$jscoverage['/scrollbar/control.js'].lineData[118] = 0; _$jscoverage['/scrollbar/control.js'].lineData[119] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[120] = 0; _$jscoverage['/scrollbar/control.js'].lineData[121] = 0; _$jscoverage['/scrollbar/control.js'].lineData[122] = 0; - _$jscoverage['/scrollbar/control.js'].lineData[129] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[123] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[126] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[127] = 0; _$jscoverage['/scrollbar/control.js'].lineData[130] = 0; _$jscoverage['/scrollbar/control.js'].lineData[131] = 0; _$jscoverage['/scrollbar/control.js'].lineData[132] = 0; _$jscoverage['/scrollbar/control.js'].lineData[133] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[135] = 0; _$jscoverage['/scrollbar/control.js'].lineData[136] = 0; _$jscoverage['/scrollbar/control.js'].lineData[137] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[138] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[139] = 0; _$jscoverage['/scrollbar/control.js'].lineData[141] = 0; - _$jscoverage['/scrollbar/control.js'].lineData[142] = 0; - _$jscoverage['/scrollbar/control.js'].lineData[143] = 0; - _$jscoverage['/scrollbar/control.js'].lineData[145] = 0; - _$jscoverage['/scrollbar/control.js'].lineData[146] = 0; - _$jscoverage['/scrollbar/control.js'].lineData[147] = 0; - _$jscoverage['/scrollbar/control.js'].lineData[148] = 0; - _$jscoverage['/scrollbar/control.js'].lineData[149] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[150] = 0; _$jscoverage['/scrollbar/control.js'].lineData[151] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[153] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[156] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[157] = 0; _$jscoverage['/scrollbar/control.js'].lineData[160] = 0; _$jscoverage['/scrollbar/control.js'].lineData[161] = 0; - _$jscoverage['/scrollbar/control.js'].lineData[163] = 0; - _$jscoverage['/scrollbar/control.js'].lineData[167] = 0; - _$jscoverage['/scrollbar/control.js'].lineData[171] = 0; - _$jscoverage['/scrollbar/control.js'].lineData[172] = 0; - _$jscoverage['/scrollbar/control.js'].lineData[173] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[174] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[175] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[176] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[178] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[179] = 0; _$jscoverage['/scrollbar/control.js'].lineData[180] = 0; _$jscoverage['/scrollbar/control.js'].lineData[181] = 0; _$jscoverage['/scrollbar/control.js'].lineData[182] = 0; - _$jscoverage['/scrollbar/control.js'].lineData[183] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[184] = 0; _$jscoverage['/scrollbar/control.js'].lineData[185] = 0; _$jscoverage['/scrollbar/control.js'].lineData[186] = 0; - _$jscoverage['/scrollbar/control.js'].lineData[187] = 0; - _$jscoverage['/scrollbar/control.js'].lineData[188] = 0; _$jscoverage['/scrollbar/control.js'].lineData[190] = 0; - _$jscoverage['/scrollbar/control.js'].lineData[194] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[191] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[192] = 0; _$jscoverage['/scrollbar/control.js'].lineData[195] = 0; - _$jscoverage['/scrollbar/control.js'].lineData[233] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[196] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[197] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[198] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[207] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[209] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[210] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[211] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[212] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[213] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[214] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[215] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[216] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[218] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[219] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[221] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[222] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[224] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[228] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[231] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[232] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[234] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[236] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[238] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[240] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[246] = 0; _$jscoverage['/scrollbar/control.js'].lineData[250] = 0; - _$jscoverage['/scrollbar/control.js'].lineData[252] = 0; - _$jscoverage['/scrollbar/control.js'].lineData[253] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[254] = 0; _$jscoverage['/scrollbar/control.js'].lineData[255] = 0; - _$jscoverage['/scrollbar/control.js'].lineData[262] = 0; - _$jscoverage['/scrollbar/control.js'].lineData[263] = 0; - _$jscoverage['/scrollbar/control.js'].lineData[264] = 0; - _$jscoverage['/scrollbar/control.js'].lineData[266] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[292] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[309] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[311] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[312] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[314] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[321] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[322] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[323] = 0; + _$jscoverage['/scrollbar/control.js'].lineData[325] = 0; } if (! _$jscoverage['/scrollbar/control.js'].functionData) { _$jscoverage['/scrollbar/control.js'].functionData = []; @@ -348,115 +388,142 @@ if (! _$jscoverage['/scrollbar/control.js'].functionData) { _$jscoverage['/scrollbar/control.js'].functionData[18] = 0; _$jscoverage['/scrollbar/control.js'].functionData[19] = 0; _$jscoverage['/scrollbar/control.js'].functionData[20] = 0; + _$jscoverage['/scrollbar/control.js'].functionData[21] = 0; + _$jscoverage['/scrollbar/control.js'].functionData[22] = 0; + _$jscoverage['/scrollbar/control.js'].functionData[23] = 0; } if (! _$jscoverage['/scrollbar/control.js'].branchData) { _$jscoverage['/scrollbar/control.js'].branchData = {}; - _$jscoverage['/scrollbar/control.js'].branchData['29'] = []; - _$jscoverage['/scrollbar/control.js'].branchData['29'][1] = new BranchData(); - _$jscoverage['/scrollbar/control.js'].branchData['31'] = []; - _$jscoverage['/scrollbar/control.js'].branchData['31'][1] = new BranchData(); - _$jscoverage['/scrollbar/control.js'].branchData['32'] = []; - _$jscoverage['/scrollbar/control.js'].branchData['32'][1] = new BranchData(); - _$jscoverage['/scrollbar/control.js'].branchData['48'] = []; - _$jscoverage['/scrollbar/control.js'].branchData['48'][1] = new BranchData(); - _$jscoverage['/scrollbar/control.js'].branchData['56'] = []; - _$jscoverage['/scrollbar/control.js'].branchData['56'][1] = new BranchData(); - _$jscoverage['/scrollbar/control.js'].branchData['111'] = []; - _$jscoverage['/scrollbar/control.js'].branchData['111'][1] = new BranchData(); + _$jscoverage['/scrollbar/control.js'].branchData['24'] = []; + _$jscoverage['/scrollbar/control.js'].branchData['24'][1] = new BranchData(); + _$jscoverage['/scrollbar/control.js'].branchData['28'] = []; + _$jscoverage['/scrollbar/control.js'].branchData['28'][1] = new BranchData(); + _$jscoverage['/scrollbar/control.js'].branchData['65'] = []; + _$jscoverage['/scrollbar/control.js'].branchData['65'][1] = new BranchData(); + _$jscoverage['/scrollbar/control.js'].branchData['68'] = []; + _$jscoverage['/scrollbar/control.js'].branchData['68'][1] = new BranchData(); + _$jscoverage['/scrollbar/control.js'].branchData['86'] = []; + _$jscoverage['/scrollbar/control.js'].branchData['86'][1] = new BranchData(); + _$jscoverage['/scrollbar/control.js'].branchData['95'] = []; + _$jscoverage['/scrollbar/control.js'].branchData['95'][1] = new BranchData(); + _$jscoverage['/scrollbar/control.js'].branchData['100'] = []; + _$jscoverage['/scrollbar/control.js'].branchData['100'][1] = new BranchData(); + _$jscoverage['/scrollbar/control.js'].branchData['108'] = []; + _$jscoverage['/scrollbar/control.js'].branchData['108'][1] = new BranchData(); _$jscoverage['/scrollbar/control.js'].branchData['118'] = []; _$jscoverage['/scrollbar/control.js'].branchData['118'][1] = new BranchData(); - _$jscoverage['/scrollbar/control.js'].branchData['128'] = []; - _$jscoverage['/scrollbar/control.js'].branchData['128'][1] = new BranchData(); - _$jscoverage['/scrollbar/control.js'].branchData['128'][2] = new BranchData(); - _$jscoverage['/scrollbar/control.js'].branchData['142'] = []; - _$jscoverage['/scrollbar/control.js'].branchData['142'][1] = new BranchData(); - _$jscoverage['/scrollbar/control.js'].branchData['148'] = []; - _$jscoverage['/scrollbar/control.js'].branchData['148'][1] = new BranchData(); - _$jscoverage['/scrollbar/control.js'].branchData['148'][2] = new BranchData(); - _$jscoverage['/scrollbar/control.js'].branchData['172'] = []; - _$jscoverage['/scrollbar/control.js'].branchData['172'][1] = new BranchData(); - _$jscoverage['/scrollbar/control.js'].branchData['182'] = []; - _$jscoverage['/scrollbar/control.js'].branchData['182'][1] = new BranchData(); - _$jscoverage['/scrollbar/control.js'].branchData['187'] = []; - _$jscoverage['/scrollbar/control.js'].branchData['187'][1] = new BranchData(); - _$jscoverage['/scrollbar/control.js'].branchData['194'] = []; - _$jscoverage['/scrollbar/control.js'].branchData['194'][1] = new BranchData(); - _$jscoverage['/scrollbar/control.js'].branchData['252'] = []; - _$jscoverage['/scrollbar/control.js'].branchData['252'][1] = new BranchData(); - _$jscoverage['/scrollbar/control.js'].branchData['263'] = []; - _$jscoverage['/scrollbar/control.js'].branchData['263'][1] = new BranchData(); + _$jscoverage['/scrollbar/control.js'].branchData['118'][2] = new BranchData(); + _$jscoverage['/scrollbar/control.js'].branchData['132'] = []; + _$jscoverage['/scrollbar/control.js'].branchData['132'][1] = new BranchData(); + _$jscoverage['/scrollbar/control.js'].branchData['138'] = []; + _$jscoverage['/scrollbar/control.js'].branchData['138'][1] = new BranchData(); + _$jscoverage['/scrollbar/control.js'].branchData['138'][2] = new BranchData(); + _$jscoverage['/scrollbar/control.js'].branchData['174'] = []; + _$jscoverage['/scrollbar/control.js'].branchData['174'][1] = new BranchData(); + _$jscoverage['/scrollbar/control.js'].branchData['179'] = []; + _$jscoverage['/scrollbar/control.js'].branchData['179'][1] = new BranchData(); + _$jscoverage['/scrollbar/control.js'].branchData['196'] = []; + _$jscoverage['/scrollbar/control.js'].branchData['196'][1] = new BranchData(); + _$jscoverage['/scrollbar/control.js'].branchData['210'] = []; + _$jscoverage['/scrollbar/control.js'].branchData['210'][1] = new BranchData(); + _$jscoverage['/scrollbar/control.js'].branchData['212'] = []; + _$jscoverage['/scrollbar/control.js'].branchData['212'][1] = new BranchData(); + _$jscoverage['/scrollbar/control.js'].branchData['213'] = []; + _$jscoverage['/scrollbar/control.js'].branchData['213'][1] = new BranchData(); + _$jscoverage['/scrollbar/control.js'].branchData['231'] = []; + _$jscoverage['/scrollbar/control.js'].branchData['231'][1] = new BranchData(); + _$jscoverage['/scrollbar/control.js'].branchData['311'] = []; + _$jscoverage['/scrollbar/control.js'].branchData['311'][1] = new BranchData(); + _$jscoverage['/scrollbar/control.js'].branchData['322'] = []; + _$jscoverage['/scrollbar/control.js'].branchData['322'][1] = new BranchData(); } -_$jscoverage['/scrollbar/control.js'].branchData['263'][1].init(84, 13, 'v < minLength'); -function visit18_263_1(result) { - _$jscoverage['/scrollbar/control.js'].branchData['263'][1].ranCondition(result); +_$jscoverage['/scrollbar/control.js'].branchData['322'][1].init(84, 13, 'v < minLength'); +function visit22_322_1(result) { + _$jscoverage['/scrollbar/control.js'].branchData['322'][1].ranCondition(result); return result; -}_$jscoverage['/scrollbar/control.js'].branchData['252'][1].init(85, 13, 'v < minLength'); -function visit17_252_1(result) { - _$jscoverage['/scrollbar/control.js'].branchData['252'][1].ranCondition(result); +}_$jscoverage['/scrollbar/control.js'].branchData['311'][1].init(85, 13, 'v < minLength'); +function visit21_311_1(result) { + _$jscoverage['/scrollbar/control.js'].branchData['311'][1].ranCondition(result); return result; -}_$jscoverage['/scrollbar/control.js'].branchData['194'][1].init(17, 7, 'this.dd'); -function visit16_194_1(result) { - _$jscoverage['/scrollbar/control.js'].branchData['194'][1].ranCondition(result); +}_$jscoverage['/scrollbar/control.js'].branchData['231'][1].init(141, 8, 'autoHide'); +function visit20_231_1(result) { + _$jscoverage['/scrollbar/control.js'].branchData['231'][1].ranCondition(result); return result; -}_$jscoverage['/scrollbar/control.js'].branchData['187'][1].init(301, 38, 'self.hideFn && !scrollView.isScrolling'); -function visit15_187_1(result) { - _$jscoverage['/scrollbar/control.js'].branchData['187'][1].ranCondition(result); +}_$jscoverage['/scrollbar/control.js'].branchData['213'][1].init(290, 21, 'scrollType === \'left\''); +function visit19_213_1(result) { + _$jscoverage['/scrollbar/control.js'].branchData['213'][1].ranCondition(result); return result; -}_$jscoverage['/scrollbar/control.js'].branchData['182'][1].init(129, 40, '!scrollView.allowScroll[self.scrollType]'); -function visit14_182_1(result) { - _$jscoverage['/scrollbar/control.js'].branchData['182'][1].ranCondition(result); +}_$jscoverage['/scrollbar/control.js'].branchData['212'][1].init(208, 21, 'scrollType === \'left\''); +function visit18_212_1(result) { + _$jscoverage['/scrollbar/control.js'].branchData['212'][1].ranCondition(result); return result; -}_$jscoverage['/scrollbar/control.js'].branchData['172'][1].init(46, 11, 'self.hideFn'); -function visit13_172_1(result) { - _$jscoverage['/scrollbar/control.js'].branchData['172'][1].ranCondition(result); +}_$jscoverage['/scrollbar/control.js'].branchData['210'][1].init(77, 24, 'self.get(\'axis\') === \'x\''); +function visit17_210_1(result) { + _$jscoverage['/scrollbar/control.js'].branchData['210'][1].ranCondition(result); return result; -}_$jscoverage['/scrollbar/control.js'].branchData['148'][2].init(237, 17, 'dragEl === target'); -function visit12_148_2(result) { - _$jscoverage['/scrollbar/control.js'].branchData['148'][2].ranCondition(result); +}_$jscoverage['/scrollbar/control.js'].branchData['196'][1].init(13, 14, 'self.hideTimer'); +function visit16_196_1(result) { + _$jscoverage['/scrollbar/control.js'].branchData['196'][1].ranCondition(result); return result; -}_$jscoverage['/scrollbar/control.js'].branchData['148'][1].init(237, 45, 'dragEl === target || $dragEl.contains(target)'); -function visit11_148_1(result) { - _$jscoverage['/scrollbar/control.js'].branchData['148'][1].ranCondition(result); +}_$jscoverage['/scrollbar/control.js'].branchData['179'][1].init(934, 15, 'val < minScroll'); +function visit15_179_1(result) { + _$jscoverage['/scrollbar/control.js'].branchData['179'][1].ranCondition(result); return result; -}_$jscoverage['/scrollbar/control.js'].branchData['142'][1].init(46, 20, 'self.get(\'disabled\')'); -function visit10_142_1(result) { - _$jscoverage['/scrollbar/control.js'].branchData['142'][1].ranCondition(result); +}_$jscoverage['/scrollbar/control.js'].branchData['174'][1].init(632, 15, 'val > maxScroll'); +function visit14_174_1(result) { + _$jscoverage['/scrollbar/control.js'].branchData['174'][1].ranCondition(result); return result; -}_$jscoverage['/scrollbar/control.js'].branchData['128'][2].init(294, 23, 'target === self.downBtn'); -function visit9_128_2(result) { - _$jscoverage['/scrollbar/control.js'].branchData['128'][2].ranCondition(result); +}_$jscoverage['/scrollbar/control.js'].branchData['138'][2].init(205, 17, 'dragEl === target'); +function visit13_138_2(result) { + _$jscoverage['/scrollbar/control.js'].branchData['138'][2].ranCondition(result); return result; -}_$jscoverage['/scrollbar/control.js'].branchData['128'][1].init(294, 57, 'target === self.downBtn || self.$downBtn.contains(target)'); -function visit8_128_1(result) { - _$jscoverage['/scrollbar/control.js'].branchData['128'][1].ranCondition(result); +}_$jscoverage['/scrollbar/control.js'].branchData['138'][1].init(205, 45, 'dragEl === target || $dragEl.contains(target)'); +function visit12_138_1(result) { + _$jscoverage['/scrollbar/control.js'].branchData['138'][1].ranCondition(result); return result; -}_$jscoverage['/scrollbar/control.js'].branchData['118'][1].init(17, 20, 'this.get(\'disabled\')'); -function visit7_118_1(result) { +}_$jscoverage['/scrollbar/control.js'].branchData['132'][1].init(38, 20, 'self.get(\'disabled\')'); +function visit11_132_1(result) { + _$jscoverage['/scrollbar/control.js'].branchData['132'][1].ranCondition(result); + return result; +}_$jscoverage['/scrollbar/control.js'].branchData['118'][2].init(270, 23, 'target === self.downBtn'); +function visit10_118_2(result) { + _$jscoverage['/scrollbar/control.js'].branchData['118'][2].ranCondition(result); + return result; +}_$jscoverage['/scrollbar/control.js'].branchData['118'][1].init(270, 57, 'target === self.downBtn || self.$downBtn.contains(target)'); +function visit9_118_1(result) { _$jscoverage['/scrollbar/control.js'].branchData['118'][1].ranCondition(result); return result; -}_$jscoverage['/scrollbar/control.js'].branchData['111'][1].init(46, 14, 'self.hideTimer'); -function visit6_111_1(result) { - _$jscoverage['/scrollbar/control.js'].branchData['111'][1].ranCondition(result); +}_$jscoverage['/scrollbar/control.js'].branchData['108'][1].init(13, 20, 'this.get(\'disabled\')'); +function visit8_108_1(result) { + _$jscoverage['/scrollbar/control.js'].branchData['108'][1].ranCondition(result); + return result; +}_$jscoverage['/scrollbar/control.js'].branchData['100'][1].init(264, 38, 'self.hideFn && !scrollView.isScrolling'); +function visit7_100_1(result) { + _$jscoverage['/scrollbar/control.js'].branchData['100'][1].ranCondition(result); + return result; +}_$jscoverage['/scrollbar/control.js'].branchData['95'][1].init(113, 40, '!scrollView.allowScroll[self.scrollType]'); +function visit6_95_1(result) { + _$jscoverage['/scrollbar/control.js'].branchData['95'][1].ranCondition(result); return result; -}_$jscoverage['/scrollbar/control.js'].branchData['56'][1].init(335, 9, 'allowDrag'); -function visit5_56_1(result) { - _$jscoverage['/scrollbar/control.js'].branchData['56'][1].ranCondition(result); +}_$jscoverage['/scrollbar/control.js'].branchData['86'][1].init(38, 11, 'self.hideFn'); +function visit5_86_1(result) { + _$jscoverage['/scrollbar/control.js'].branchData['86'][1].ranCondition(result); return result; -}_$jscoverage['/scrollbar/control.js'].branchData['48'][1].init(148, 8, 'autoHide'); -function visit4_48_1(result) { - _$jscoverage['/scrollbar/control.js'].branchData['48'][1].ranCondition(result); +}_$jscoverage['/scrollbar/control.js'].branchData['68'][1].init(37, 22, 'whProperty === \'width\''); +function visit4_68_1(result) { + _$jscoverage['/scrollbar/control.js'].branchData['68'][1].ranCondition(result); return result; -}_$jscoverage['/scrollbar/control.js'].branchData['32'][1].init(290, 21, 'scrollType === \'left\''); -function visit3_32_1(result) { - _$jscoverage['/scrollbar/control.js'].branchData['32'][1].ranCondition(result); +}_$jscoverage['/scrollbar/control.js'].branchData['65'][1].init(403, 42, 'scrollView.allowScroll[control.scrollType]'); +function visit3_65_1(result) { + _$jscoverage['/scrollbar/control.js'].branchData['65'][1].ranCondition(result); return result; -}_$jscoverage['/scrollbar/control.js'].branchData['31'][1].init(208, 21, 'scrollType === \'left\''); -function visit2_31_1(result) { - _$jscoverage['/scrollbar/control.js'].branchData['31'][1].ranCondition(result); +}_$jscoverage['/scrollbar/control.js'].branchData['28'][1].init(135, 20, 'self.get(\'disabled\')'); +function visit2_28_1(result) { + _$jscoverage['/scrollbar/control.js'].branchData['28'][1].ranCondition(result); return result; -}_$jscoverage['/scrollbar/control.js'].branchData['29'][1].init(77, 24, 'self.get(\'axis\') === \'x\''); -function visit1_29_1(result) { - _$jscoverage['/scrollbar/control.js'].branchData['29'][1].ranCondition(result); +}_$jscoverage['/scrollbar/control.js'].branchData['24'][1].init(42, 10, '!e.isTouch'); +function visit1_24_1(result) { + _$jscoverage['/scrollbar/control.js'].branchData['24'][1].ranCondition(result); return result; }_$jscoverage['/scrollbar/control.js'].lineData[6]++; KISSY.add(function(S, require) { @@ -464,235 +531,313 @@ KISSY.add(function(S, require) { _$jscoverage['/scrollbar/control.js'].lineData[7]++; var Node = require('node'); _$jscoverage['/scrollbar/control.js'].lineData[8]++; - var Control = require('component/control'); + var $document = Node.all(document); _$jscoverage['/scrollbar/control.js'].lineData[9]++; + var Control = require('component/control'); + _$jscoverage['/scrollbar/control.js'].lineData[10]++; var ScrollBarRender = require('./render'); - _$jscoverage['/scrollbar/control.js'].lineData[11]++; + _$jscoverage['/scrollbar/control.js'].lineData[12]++; var MIN_BAR_LENGTH = 20; - _$jscoverage['/scrollbar/control.js'].lineData[13]++; + _$jscoverage['/scrollbar/control.js'].lineData[14]++; var SCROLLBAR_EVENT_NS = '.ks-scrollbar'; - _$jscoverage['/scrollbar/control.js'].lineData[15]++; + _$jscoverage['/scrollbar/control.js'].lineData[16]++; var Gesture = Node.Gesture; - _$jscoverage['/scrollbar/control.js'].lineData[17]++; - var Features = S.Features; - _$jscoverage['/scrollbar/control.js'].lineData[19]++; - var allowDrag = !Features.isTouchGestureSupported(); - _$jscoverage['/scrollbar/control.js'].lineData[26]++; - return Control.extend({ - initializer: function() { - _$jscoverage['/scrollbar/control.js'].functionData[1]++; - _$jscoverage['/scrollbar/control.js'].lineData[28]++; - var self = this; - _$jscoverage['/scrollbar/control.js'].lineData[29]++; - var scrollType = self.scrollType = visit1_29_1(self.get('axis') === 'x') ? 'left' : 'top'; - _$jscoverage['/scrollbar/control.js'].lineData[30]++; - var ucScrollType = S.ucfirst(scrollType); - _$jscoverage['/scrollbar/control.js'].lineData[31]++; - self.pageXyProperty = visit2_31_1(scrollType === 'left') ? 'pageX' : 'pageY'; - _$jscoverage['/scrollbar/control.js'].lineData[32]++; - var wh = self.whProperty = visit3_32_1(scrollType === 'left') ? 'width' : 'height'; - _$jscoverage['/scrollbar/control.js'].lineData[33]++; - var ucWH = S.ucfirst(wh); - _$jscoverage['/scrollbar/control.js'].lineData[34]++; - self.afterScrollChangeEvent = 'afterScroll' + ucScrollType + 'Change'; - _$jscoverage['/scrollbar/control.js'].lineData[35]++; - self.scrollProperty = 'scroll' + ucScrollType; - _$jscoverage['/scrollbar/control.js'].lineData[37]++; - self.dragWHProperty = 'drag' + ucWH; + _$jscoverage['/scrollbar/control.js'].lineData[18]++; + function preventDefault(e) { + _$jscoverage['/scrollbar/control.js'].functionData[1]++; + _$jscoverage['/scrollbar/control.js'].lineData[19]++; + e.preventDefault(); + } + _$jscoverage['/scrollbar/control.js'].lineData[22]++; + function onDragStartHandler(e) { + _$jscoverage['/scrollbar/control.js'].functionData[2]++; + _$jscoverage['/scrollbar/control.js'].lineData[23]++; + e.stopPropagation(); + _$jscoverage['/scrollbar/control.js'].lineData[24]++; + if (visit1_24_1(!e.isTouch)) { + _$jscoverage['/scrollbar/control.js'].lineData[25]++; + e.preventDefault(); + } + _$jscoverage['/scrollbar/control.js'].lineData[27]++; + var self = this; + _$jscoverage['/scrollbar/control.js'].lineData[28]++; + if (visit2_28_1(self.get('disabled'))) { + _$jscoverage['/scrollbar/control.js'].lineData[29]++; + return; + } + _$jscoverage['/scrollbar/control.js'].lineData[31]++; + self.startMousePos = e[self.pageXyProperty]; + _$jscoverage['/scrollbar/control.js'].lineData[32]++; + self.startScroll = self.scrollView.get(self.scrollProperty); + _$jscoverage['/scrollbar/control.js'].lineData[35]++; + $document.on(Gesture.move, onDragHandler, self).on(Gesture.end, onDragEndHandler, self); + } _$jscoverage['/scrollbar/control.js'].lineData[38]++; - self.dragLTProperty = 'drag' + ucScrollType; - _$jscoverage['/scrollbar/control.js'].lineData[40]++; - self.clientWHProperty = 'client' + ucWH; - _$jscoverage['/scrollbar/control.js'].lineData[41]++; - self.scrollWHProperty = 'scroll' + ucWH; -}, - bindUI: function() { - _$jscoverage['/scrollbar/control.js'].functionData[2]++; - _$jscoverage['/scrollbar/control.js'].lineData[45]++; - var self = this, autoHide = self.get('autoHide'), scrollView = self.get('scrollView'); + function onDragHandler(e) { + _$jscoverage['/scrollbar/control.js'].functionData[3]++; + _$jscoverage['/scrollbar/control.js'].lineData[39]++; + var self = this, diff = e[self.pageXyProperty] - self.startMousePos, scrollView = self.scrollView, scrollType = self.scrollType, scrollCfg = {}; + _$jscoverage['/scrollbar/control.js'].lineData[44]++; + scrollCfg[scrollType] = self.startScroll + diff / self.trackElSize * self.scrollLength; + _$jscoverage['/scrollbar/control.js'].lineData[45]++; + scrollView.scrollToWithBounds(scrollCfg); + } _$jscoverage['/scrollbar/control.js'].lineData[48]++; - if (visit4_48_1(autoHide)) { - _$jscoverage['/scrollbar/control.js'].lineData[49]++; - self.hideFn = S.bind(self.hide, self); - } else { - _$jscoverage['/scrollbar/control.js'].lineData[51]++; - S.each([self.$downBtn, self.$upBtn], function(b) { - _$jscoverage['/scrollbar/control.js'].functionData[3]++; + function onDragEndHandler() { + _$jscoverage['/scrollbar/control.js'].functionData[4]++; + _$jscoverage['/scrollbar/control.js'].lineData[50]++; + $document.detach(Gesture.move, onDragHandler, this).detach(Gesture.end, onDragEndHandler, this); + } _$jscoverage['/scrollbar/control.js'].lineData[53]++; - b.on(Gesture.start, self.onUpDownBtnMouseDown, self).on(Gesture.end, self.onUpDownBtnMouseUp, self); -}); - _$jscoverage['/scrollbar/control.js'].lineData[55]++; - self.$trackEl.on(Gesture.start, self.onTrackElMouseDown, self); - _$jscoverage['/scrollbar/control.js'].lineData[56]++; - if (visit5_56_1(allowDrag)) { - _$jscoverage['/scrollbar/control.js'].lineData[57]++; - S.use('dd', function(S, DD) { - _$jscoverage['/scrollbar/control.js'].functionData[4]++; - _$jscoverage['/scrollbar/control.js'].lineData[58]++; - self.dd = new DD.Draggable({ - node: self.$dragEl, - disabled: self.get('disabled'), - groups: false, - halt: true}).on('drag', self.onDrag, self).on('dragstart', self.onDragStart, self); -}); + function onScrollViewReflow() { + _$jscoverage['/scrollbar/control.js'].functionData[5]++; + _$jscoverage['/scrollbar/control.js'].lineData[54]++; + var control = this, scrollView = control.scrollView, trackEl = control.trackEl, scrollWHProperty = control.scrollWHProperty, whProperty = control.whProperty, clientWHProperty = control.clientWHProperty, dragWHProperty = control.dragWHProperty, ratio, trackElSize, barSize; + _$jscoverage['/scrollbar/control.js'].lineData[65]++; + if (visit3_65_1(scrollView.allowScroll[control.scrollType])) { + _$jscoverage['/scrollbar/control.js'].lineData[66]++; + control.scrollLength = scrollView[scrollWHProperty]; + _$jscoverage['/scrollbar/control.js'].lineData[67]++; + trackElSize = control.trackElSize = visit4_68_1(whProperty === 'width') ? trackEl.offsetWidth : trackEl.offsetHeight; + _$jscoverage['/scrollbar/control.js'].lineData[69]++; + ratio = scrollView[clientWHProperty] / control.scrollLength; + _$jscoverage['/scrollbar/control.js'].lineData[70]++; + barSize = ratio * trackElSize; + _$jscoverage['/scrollbar/control.js'].lineData[71]++; + control.set(dragWHProperty, barSize); + _$jscoverage['/scrollbar/control.js'].lineData[72]++; + control.barSize = barSize; + _$jscoverage['/scrollbar/control.js'].lineData[73]++; + syncOnScroll(control); + _$jscoverage['/scrollbar/control.js'].lineData[74]++; + control.set('visible', true); + } else { + _$jscoverage['/scrollbar/control.js'].lineData[76]++; + control.set('visible', false); } } - _$jscoverage['/scrollbar/control.js'].lineData[73]++; - scrollView.on(self.afterScrollChangeEvent + SCROLLBAR_EVENT_NS, self.afterScrollChange, self).on('scrollEnd' + SCROLLBAR_EVENT_NS, self.onScrollEnd, self).on('afterDisabledChange', self.onScrollViewDisabled, self); -}, - destructor: function() { - _$jscoverage['/scrollbar/control.js'].functionData[5]++; - _$jscoverage['/scrollbar/control.js'].lineData[78]++; - this.get('scrollView').detach(SCROLLBAR_EVENT_NS); - _$jscoverage['/scrollbar/control.js'].lineData[79]++; - this.clearHideTimer(); -}, - onScrollViewDisabled: function(e) { - _$jscoverage['/scrollbar/control.js'].functionData[6]++; - _$jscoverage['/scrollbar/control.js'].lineData[83]++; - this.set('disabled', e.newVal); -}, - onDragStart: function() { - _$jscoverage['/scrollbar/control.js'].functionData[7]++; - _$jscoverage['/scrollbar/control.js'].lineData[87]++; - var self = this, scrollView = self.scrollView; - _$jscoverage['/scrollbar/control.js'].lineData[89]++; - self.startMousePos = self.dd.get('startMousePos')[self.scrollType]; - _$jscoverage['/scrollbar/control.js'].lineData[90]++; - self.startScroll = scrollView.get(self.scrollProperty); -}, - onDrag: function(e) { - _$jscoverage['/scrollbar/control.js'].functionData[8]++; - _$jscoverage['/scrollbar/control.js'].lineData[94]++; - var self = this, diff = e[self.pageXyProperty] - self.startMousePos, scrollView = self.scrollView, scrollType = self.scrollType, scrollCfg = {}; - _$jscoverage['/scrollbar/control.js'].lineData[99]++; - scrollCfg[scrollType] = self.startScroll + diff / self.trackElSize * self.scrollLength; - _$jscoverage['/scrollbar/control.js'].lineData[100]++; - scrollView.scrollToWithBounds(scrollCfg); -}, - startHideTimer: function() { - _$jscoverage['/scrollbar/control.js'].functionData[9]++; - _$jscoverage['/scrollbar/control.js'].lineData[104]++; - var self = this; - _$jscoverage['/scrollbar/control.js'].lineData[105]++; - self.clearHideTimer(); - _$jscoverage['/scrollbar/control.js'].lineData[106]++; - self.hideTimer = setTimeout(self.hideFn, self.get('hideDelay') * 1000); -}, - clearHideTimer: function() { - _$jscoverage['/scrollbar/control.js'].functionData[10]++; - _$jscoverage['/scrollbar/control.js'].lineData[110]++; - var self = this; - _$jscoverage['/scrollbar/control.js'].lineData[111]++; - if (visit6_111_1(self.hideTimer)) { - _$jscoverage['/scrollbar/control.js'].lineData[112]++; - clearTimeout(self.hideTimer); - _$jscoverage['/scrollbar/control.js'].lineData[113]++; - self.hideTimer = null; + _$jscoverage['/scrollbar/control.js'].lineData[80]++; + function onScrollViewDisabled(e) { + _$jscoverage['/scrollbar/control.js'].functionData[6]++; + _$jscoverage['/scrollbar/control.js'].lineData[81]++; + this.set('disabled', e.newVal); } -}, - onUpDownBtnMouseDown: function(e) { - _$jscoverage['/scrollbar/control.js'].functionData[11]++; - _$jscoverage['/scrollbar/control.js'].lineData[118]++; - if (visit7_118_1(this.get('disabled'))) { + _$jscoverage['/scrollbar/control.js'].lineData[84]++; + function onScrollEnd() { + _$jscoverage['/scrollbar/control.js'].functionData[7]++; + _$jscoverage['/scrollbar/control.js'].lineData[85]++; + var self = this; + _$jscoverage['/scrollbar/control.js'].lineData[86]++; + if (visit5_86_1(self.hideFn)) { + _$jscoverage['/scrollbar/control.js'].lineData[87]++; + startHideTimer(self); + } + } + _$jscoverage['/scrollbar/control.js'].lineData[91]++; + function afterScrollChange() { + _$jscoverage['/scrollbar/control.js'].functionData[8]++; + _$jscoverage['/scrollbar/control.js'].lineData[93]++; + var self = this; + _$jscoverage['/scrollbar/control.js'].lineData[94]++; + var scrollView = self.scrollView; + _$jscoverage['/scrollbar/control.js'].lineData[95]++; + if (visit6_95_1(!scrollView.allowScroll[self.scrollType])) { + _$jscoverage['/scrollbar/control.js'].lineData[96]++; + return; + } + _$jscoverage['/scrollbar/control.js'].lineData[98]++; + clearHideTimer(self); + _$jscoverage['/scrollbar/control.js'].lineData[99]++; + self.set('visible', true); + _$jscoverage['/scrollbar/control.js'].lineData[100]++; + if (visit7_100_1(self.hideFn && !scrollView.isScrolling)) { + _$jscoverage['/scrollbar/control.js'].lineData[101]++; + startHideTimer(self); + } + _$jscoverage['/scrollbar/control.js'].lineData[103]++; + syncOnScroll(self); + } + _$jscoverage['/scrollbar/control.js'].lineData[107]++; + function onUpDownBtnMouseDown(e) { + _$jscoverage['/scrollbar/control.js'].functionData[9]++; + _$jscoverage['/scrollbar/control.js'].lineData[108]++; + if (visit8_108_1(this.get('disabled'))) { + _$jscoverage['/scrollbar/control.js'].lineData[109]++; + return; + } + _$jscoverage['/scrollbar/control.js'].lineData[111]++; + e.halt(); + _$jscoverage['/scrollbar/control.js'].lineData[112]++; + var self = this, scrollView = self.scrollView, scrollProperty = self.scrollProperty, scrollType = self.scrollType, step = scrollView.getScrollStep()[self.scrollType], target = e.target, direction = (visit9_118_1(visit10_118_2(target === self.downBtn) || self.$downBtn.contains(target))) ? 1 : -1; _$jscoverage['/scrollbar/control.js'].lineData[119]++; - return; + clearInterval(self.mouseInterval); + _$jscoverage['/scrollbar/control.js'].lineData[120]++; + function doScroll() { + _$jscoverage['/scrollbar/control.js'].functionData[10]++; + _$jscoverage['/scrollbar/control.js'].lineData[121]++; + var scrollCfg = {}; + _$jscoverage['/scrollbar/control.js'].lineData[122]++; + scrollCfg[scrollType] = scrollView.get(scrollProperty) + direction * step; + _$jscoverage['/scrollbar/control.js'].lineData[123]++; + scrollView.scrollToWithBounds(scrollCfg); + } + _$jscoverage['/scrollbar/control.js'].lineData[126]++; + self.mouseInterval = setInterval(doScroll, 100); + _$jscoverage['/scrollbar/control.js'].lineData[127]++; + doScroll(); } - _$jscoverage['/scrollbar/control.js'].lineData[121]++; - e.halt(); - _$jscoverage['/scrollbar/control.js'].lineData[122]++; - var self = this, scrollView = self.scrollView, scrollProperty = self.scrollProperty, scrollType = self.scrollType, step = scrollView.getScrollStep()[self.scrollType], target = e.target, direction = (visit8_128_1(visit9_128_2(target === self.downBtn) || self.$downBtn.contains(target))) ? 1 : -1; - _$jscoverage['/scrollbar/control.js'].lineData[129]++; - clearInterval(self.mouseInterval); _$jscoverage['/scrollbar/control.js'].lineData[130]++; - function doScroll() { - _$jscoverage['/scrollbar/control.js'].functionData[12]++; + function onTrackElMouseDown(e) { + _$jscoverage['/scrollbar/control.js'].functionData[11]++; _$jscoverage['/scrollbar/control.js'].lineData[131]++; - var scrollCfg = {}; + var self = this; _$jscoverage['/scrollbar/control.js'].lineData[132]++; - scrollCfg[scrollType] = scrollView.get(scrollProperty) + direction * step; - _$jscoverage['/scrollbar/control.js'].lineData[133]++; + if (visit11_132_1(self.get('disabled'))) { + _$jscoverage['/scrollbar/control.js'].lineData[133]++; + return; + } + _$jscoverage['/scrollbar/control.js'].lineData[135]++; + var target = e.target; + _$jscoverage['/scrollbar/control.js'].lineData[136]++; + var dragEl = self.dragEl; + _$jscoverage['/scrollbar/control.js'].lineData[137]++; + var $dragEl = self.$dragEl; + _$jscoverage['/scrollbar/control.js'].lineData[138]++; + if (visit12_138_1(visit13_138_2(dragEl === target) || $dragEl.contains(target))) { + _$jscoverage['/scrollbar/control.js'].lineData[139]++; + return; + } + _$jscoverage['/scrollbar/control.js'].lineData[141]++; + var scrollType = self.scrollType, pageXy = self.pageXyProperty, trackEl = self.$trackEl, scrollView = self.scrollView, per = Math.max(0, (e[pageXy] - trackEl.offset()[scrollType] - self.barSize / 2) / self.trackElSize), scrollCfg = {}; + _$jscoverage['/scrollbar/control.js'].lineData[150]++; + scrollCfg[scrollType] = per * self.scrollLength; + _$jscoverage['/scrollbar/control.js'].lineData[151]++; scrollView.scrollToWithBounds(scrollCfg); + _$jscoverage['/scrollbar/control.js'].lineData[153]++; + e.halt(); } - _$jscoverage['/scrollbar/control.js'].lineData[136]++; - self.mouseInterval = setInterval(doScroll, 100); - _$jscoverage['/scrollbar/control.js'].lineData[137]++; - doScroll(); -}, - onTrackElMouseDown: function(e) { - _$jscoverage['/scrollbar/control.js'].functionData[13]++; - _$jscoverage['/scrollbar/control.js'].lineData[141]++; - var self = this; - _$jscoverage['/scrollbar/control.js'].lineData[142]++; - if (visit10_142_1(self.get('disabled'))) { - _$jscoverage['/scrollbar/control.js'].lineData[143]++; - return; - } - _$jscoverage['/scrollbar/control.js'].lineData[145]++; - var target = e.target; - _$jscoverage['/scrollbar/control.js'].lineData[146]++; - var dragEl = self.dragEl; - _$jscoverage['/scrollbar/control.js'].lineData[147]++; - var $dragEl = self.$dragEl; - _$jscoverage['/scrollbar/control.js'].lineData[148]++; - if (visit11_148_1(visit12_148_2(dragEl === target) || $dragEl.contains(target))) { - _$jscoverage['/scrollbar/control.js'].lineData[149]++; - return; + _$jscoverage['/scrollbar/control.js'].lineData[156]++; + function onUpDownBtnMouseUp() { + _$jscoverage['/scrollbar/control.js'].functionData[12]++; + _$jscoverage['/scrollbar/control.js'].lineData[157]++; + clearInterval(this.mouseInterval); } - _$jscoverage['/scrollbar/control.js'].lineData[151]++; - var scrollType = self.scrollType, pageXy = self.pageXyProperty, trackEl = self.$trackEl, scrollView = self.scrollView, per = Math.max(0, (e[pageXy] - trackEl.offset()[scrollType] - self.barSize / 2) / self.trackElSize), scrollCfg = {}; _$jscoverage['/scrollbar/control.js'].lineData[160]++; - scrollCfg[scrollType] = per * self.scrollLength; - _$jscoverage['/scrollbar/control.js'].lineData[161]++; - scrollView.scrollToWithBounds(scrollCfg); - _$jscoverage['/scrollbar/control.js'].lineData[163]++; - e.halt(); -}, - onUpDownBtnMouseUp: function() { - _$jscoverage['/scrollbar/control.js'].functionData[14]++; - _$jscoverage['/scrollbar/control.js'].lineData[167]++; - clearInterval(this.mouseInterval); -}, - onScrollEnd: function() { - _$jscoverage['/scrollbar/control.js'].functionData[15]++; - _$jscoverage['/scrollbar/control.js'].lineData[171]++; - var self = this; - _$jscoverage['/scrollbar/control.js'].lineData[172]++; - if (visit13_172_1(self.hideFn)) { - _$jscoverage['/scrollbar/control.js'].lineData[173]++; - self.startHideTimer(); + function syncOnScroll(control) { + _$jscoverage['/scrollbar/control.js'].functionData[13]++; + _$jscoverage['/scrollbar/control.js'].lineData[161]++; + var scrollType = control.scrollType, scrollView = control.scrollView, dragLTProperty = control.dragLTProperty, dragWHProperty = control.dragWHProperty, trackElSize = control.trackElSize, barSize = control.barSize, contentSize = control.scrollLength, val = scrollView.get(control.scrollProperty), maxScrollOffset = scrollView.maxScroll, minScrollOffset = scrollView.minScroll, minScroll = minScrollOffset[scrollType], maxScroll = maxScrollOffset[scrollType], dragVal; + _$jscoverage['/scrollbar/control.js'].lineData[174]++; + if (visit14_174_1(val > maxScroll)) { + _$jscoverage['/scrollbar/control.js'].lineData[175]++; + dragVal = maxScroll / contentSize * trackElSize; + _$jscoverage['/scrollbar/control.js'].lineData[176]++; + control.set(dragWHProperty, barSize - (val - maxScroll)); + _$jscoverage['/scrollbar/control.js'].lineData[178]++; + control.set(dragLTProperty, dragVal + barSize - control.get(dragWHProperty)); + } else { + _$jscoverage['/scrollbar/control.js'].lineData[179]++; + if (visit15_179_1(val < minScroll)) { + _$jscoverage['/scrollbar/control.js'].lineData[180]++; + dragVal = minScroll / contentSize * trackElSize; + _$jscoverage['/scrollbar/control.js'].lineData[181]++; + control.set(dragWHProperty, barSize - (minScroll - val)); + _$jscoverage['/scrollbar/control.js'].lineData[182]++; + control.set(dragLTProperty, dragVal); + } else { + _$jscoverage['/scrollbar/control.js'].lineData[184]++; + dragVal = val / contentSize * trackElSize; + _$jscoverage['/scrollbar/control.js'].lineData[185]++; + control.set(dragLTProperty, dragVal); + _$jscoverage['/scrollbar/control.js'].lineData[186]++; + control.set(dragWHProperty, barSize); + } + } } -}, - afterScrollChange: function() { - _$jscoverage['/scrollbar/control.js'].functionData[16]++; - _$jscoverage['/scrollbar/control.js'].lineData[180]++; - var self = this; - _$jscoverage['/scrollbar/control.js'].lineData[181]++; - var scrollView = self.scrollView; - _$jscoverage['/scrollbar/control.js'].lineData[182]++; - if (visit14_182_1(!scrollView.allowScroll[self.scrollType])) { - _$jscoverage['/scrollbar/control.js'].lineData[183]++; - return; + _$jscoverage['/scrollbar/control.js'].lineData[190]++; + function startHideTimer(self) { + _$jscoverage['/scrollbar/control.js'].functionData[14]++; + _$jscoverage['/scrollbar/control.js'].lineData[191]++; + clearHideTimer(self); + _$jscoverage['/scrollbar/control.js'].lineData[192]++; + self.hideTimer = setTimeout(self.hideFn, self.get('hideDelay') * 1000); } - _$jscoverage['/scrollbar/control.js'].lineData[185]++; - self.clearHideTimer(); - _$jscoverage['/scrollbar/control.js'].lineData[186]++; - self.set('visible', true); - _$jscoverage['/scrollbar/control.js'].lineData[187]++; - if (visit15_187_1(self.hideFn && !scrollView.isScrolling)) { - _$jscoverage['/scrollbar/control.js'].lineData[188]++; - self.startHideTimer(); + _$jscoverage['/scrollbar/control.js'].lineData[195]++; + function clearHideTimer(self) { + _$jscoverage['/scrollbar/control.js'].functionData[15]++; + _$jscoverage['/scrollbar/control.js'].lineData[196]++; + if (visit16_196_1(self.hideTimer)) { + _$jscoverage['/scrollbar/control.js'].lineData[197]++; + clearTimeout(self.hideTimer); + _$jscoverage['/scrollbar/control.js'].lineData[198]++; + self.hideTimer = null; + } } - _$jscoverage['/scrollbar/control.js'].lineData[190]++; - self.view.syncOnScrollChange(); + _$jscoverage['/scrollbar/control.js'].lineData[207]++; + return Control.extend({ + initializer: function() { + _$jscoverage['/scrollbar/control.js'].functionData[16]++; + _$jscoverage['/scrollbar/control.js'].lineData[209]++; + var self = this; + _$jscoverage['/scrollbar/control.js'].lineData[210]++; + var scrollType = self.scrollType = visit17_210_1(self.get('axis') === 'x') ? 'left' : 'top'; + _$jscoverage['/scrollbar/control.js'].lineData[211]++; + var ucScrollType = S.ucfirst(scrollType); + _$jscoverage['/scrollbar/control.js'].lineData[212]++; + self.pageXyProperty = visit18_212_1(scrollType === 'left') ? 'pageX' : 'pageY'; + _$jscoverage['/scrollbar/control.js'].lineData[213]++; + var wh = self.whProperty = visit19_213_1(scrollType === 'left') ? 'width' : 'height'; + _$jscoverage['/scrollbar/control.js'].lineData[214]++; + var ucWH = S.ucfirst(wh); + _$jscoverage['/scrollbar/control.js'].lineData[215]++; + self.afterScrollChangeEvent = 'afterScroll' + ucScrollType + 'Change'; + _$jscoverage['/scrollbar/control.js'].lineData[216]++; + self.scrollProperty = 'scroll' + ucScrollType; + _$jscoverage['/scrollbar/control.js'].lineData[218]++; + self.dragWHProperty = 'drag' + ucWH; + _$jscoverage['/scrollbar/control.js'].lineData[219]++; + self.dragLTProperty = 'drag' + ucScrollType; + _$jscoverage['/scrollbar/control.js'].lineData[221]++; + self.clientWHProperty = 'client' + ucWH; + _$jscoverage['/scrollbar/control.js'].lineData[222]++; + self.scrollWHProperty = 'scroll' + ucWH; + _$jscoverage['/scrollbar/control.js'].lineData[224]++; + self.scrollView = self.get('scrollView'); }, - _onSetDisabled: function(v) { + bindUI: function() { _$jscoverage['/scrollbar/control.js'].functionData[17]++; - _$jscoverage['/scrollbar/control.js'].lineData[194]++; - if (visit16_194_1(this.dd)) { - _$jscoverage['/scrollbar/control.js'].lineData[195]++; - this.dd.set('disabled', v); + _$jscoverage['/scrollbar/control.js'].lineData[228]++; + var self = this, autoHide = self.get('autoHide'), scrollView = self.scrollView; + _$jscoverage['/scrollbar/control.js'].lineData[231]++; + if (visit20_231_1(autoHide)) { + _$jscoverage['/scrollbar/control.js'].lineData[232]++; + self.hideFn = S.bind(self.hide, self); + } else { + _$jscoverage['/scrollbar/control.js'].lineData[234]++; + S.each([self.$downBtn, self.$upBtn], function(b) { + _$jscoverage['/scrollbar/control.js'].functionData[18]++; + _$jscoverage['/scrollbar/control.js'].lineData[236]++; + b.on(Gesture.start, onUpDownBtnMouseDown, self).on(Gesture.end, onUpDownBtnMouseUp, self); +}); + _$jscoverage['/scrollbar/control.js'].lineData[238]++; + self.$trackEl.on(Gesture.start, onTrackElMouseDown, self); + _$jscoverage['/scrollbar/control.js'].lineData[240]++; + self.$dragEl.on('dragstart', preventDefault).on(Gesture.start, onDragStartHandler, self); } + _$jscoverage['/scrollbar/control.js'].lineData[246]++; + scrollView.on(self.afterScrollChangeEvent + SCROLLBAR_EVENT_NS, afterScrollChange, self).on('scrollEnd' + SCROLLBAR_EVENT_NS, onScrollEnd, self).on('afterDisabledChange' + SCROLLBAR_EVENT_NS, onScrollViewDisabled, self).on('reflow' + SCROLLBAR_EVENT_NS, onScrollViewReflow, self); +}, + syncUI: function() { + _$jscoverage['/scrollbar/control.js'].functionData[19]++; + _$jscoverage['/scrollbar/control.js'].lineData[250]++; + onScrollViewReflow.call(this); +}, + destructor: function() { + _$jscoverage['/scrollbar/control.js'].functionData[20]++; + _$jscoverage['/scrollbar/control.js'].lineData[254]++; + this.scrollView.detach(SCROLLBAR_EVENT_NS); + _$jscoverage['/scrollbar/control.js'].lineData[255]++; + clearHideTimer(this); }}, { ATTRS: { minLength: { @@ -704,44 +849,46 @@ KISSY.add(function(S, require) { value: S.UA.ios}, visible: { valueFn: function() { - _$jscoverage['/scrollbar/control.js'].functionData[18]++; - _$jscoverage['/scrollbar/control.js'].lineData[233]++; + _$jscoverage['/scrollbar/control.js'].functionData[21]++; + _$jscoverage['/scrollbar/control.js'].lineData[292]++; return !this.get('autoHide'); }}, hideDelay: { value: 0.1}, dragWidth: { setter: function(v) { - _$jscoverage['/scrollbar/control.js'].functionData[19]++; - _$jscoverage['/scrollbar/control.js'].lineData[250]++; + _$jscoverage['/scrollbar/control.js'].functionData[22]++; + _$jscoverage['/scrollbar/control.js'].lineData[309]++; var minLength = this.get('minLength'); - _$jscoverage['/scrollbar/control.js'].lineData[252]++; - if (visit17_252_1(v < minLength)) { - _$jscoverage['/scrollbar/control.js'].lineData[253]++; + _$jscoverage['/scrollbar/control.js'].lineData[311]++; + if (visit21_311_1(v < minLength)) { + _$jscoverage['/scrollbar/control.js'].lineData[312]++; return minLength; } - _$jscoverage['/scrollbar/control.js'].lineData[255]++; + _$jscoverage['/scrollbar/control.js'].lineData[314]++; return v; }, view: 1}, dragHeight: { setter: function(v) { - _$jscoverage['/scrollbar/control.js'].functionData[20]++; - _$jscoverage['/scrollbar/control.js'].lineData[262]++; + _$jscoverage['/scrollbar/control.js'].functionData[23]++; + _$jscoverage['/scrollbar/control.js'].lineData[321]++; var minLength = this.get('minLength'); - _$jscoverage['/scrollbar/control.js'].lineData[263]++; - if (visit18_263_1(v < minLength)) { - _$jscoverage['/scrollbar/control.js'].lineData[264]++; + _$jscoverage['/scrollbar/control.js'].lineData[322]++; + if (visit22_322_1(v < minLength)) { + _$jscoverage['/scrollbar/control.js'].lineData[323]++; return minLength; } - _$jscoverage['/scrollbar/control.js'].lineData[266]++; + _$jscoverage['/scrollbar/control.js'].lineData[325]++; return v; }, view: 1}, dragLeft: { - view: 1}, + view: 1, + value: 0}, dragTop: { - view: 1}, + view: 1, + value: 0}, dragEl: {}, downBtn: {}, upBtn: {}, diff --git a/src/scroll-view/sub-modules/plugin/scrollbar/coverage/src/scrollbar/render.js b/src/scroll-view/sub-modules/plugin/scrollbar/coverage/src/scrollbar/render.js index 6fc1050e94..afe98a7577 100644 --- a/src/scroll-view/sub-modules/plugin/scrollbar/coverage/src/scrollbar/render.js +++ b/src/scroll-view/sub-modules/plugin/scrollbar/coverage/src/scrollbar/render.js @@ -232,6 +232,7 @@ if (! _$jscoverage['/scrollbar/render.js']) { _$jscoverage['/scrollbar/render.js'].lineData[6] = 0; _$jscoverage['/scrollbar/render.js'].lineData[7] = 0; _$jscoverage['/scrollbar/render.js'].lineData[8] = 0; + _$jscoverage['/scrollbar/render.js'].lineData[9] = 0; _$jscoverage['/scrollbar/render.js'].lineData[11] = 0; _$jscoverage['/scrollbar/render.js'].lineData[13] = 0; _$jscoverage['/scrollbar/render.js'].lineData[15] = 0; @@ -246,40 +247,16 @@ if (! _$jscoverage['/scrollbar/render.js']) { _$jscoverage['/scrollbar/render.js'].lineData[32] = 0; _$jscoverage['/scrollbar/render.js'].lineData[33] = 0; _$jscoverage['/scrollbar/render.js'].lineData[37] = 0; + _$jscoverage['/scrollbar/render.js'].lineData[41] = 0; + _$jscoverage['/scrollbar/render.js'].lineData[45] = 0; _$jscoverage['/scrollbar/render.js'].lineData[49] = 0; - _$jscoverage['/scrollbar/render.js'].lineData[51] = 0; - _$jscoverage['/scrollbar/render.js'].lineData[52] = 0; _$jscoverage['/scrollbar/render.js'].lineData[53] = 0; - _$jscoverage['/scrollbar/render.js'].lineData[55] = 0; + _$jscoverage['/scrollbar/render.js'].lineData[54] = 0; _$jscoverage['/scrollbar/render.js'].lineData[56] = 0; _$jscoverage['/scrollbar/render.js'].lineData[57] = 0; - _$jscoverage['/scrollbar/render.js'].lineData[58] = 0; - _$jscoverage['/scrollbar/render.js'].lineData[59] = 0; - _$jscoverage['/scrollbar/render.js'].lineData[60] = 0; _$jscoverage['/scrollbar/render.js'].lineData[62] = 0; - _$jscoverage['/scrollbar/render.js'].lineData[67] = 0; - _$jscoverage['/scrollbar/render.js'].lineData[82] = 0; - _$jscoverage['/scrollbar/render.js'].lineData[83] = 0; - _$jscoverage['/scrollbar/render.js'].lineData[84] = 0; - _$jscoverage['/scrollbar/render.js'].lineData[86] = 0; - _$jscoverage['/scrollbar/render.js'].lineData[87] = 0; - _$jscoverage['/scrollbar/render.js'].lineData[88] = 0; - _$jscoverage['/scrollbar/render.js'].lineData[89] = 0; - _$jscoverage['/scrollbar/render.js'].lineData[90] = 0; - _$jscoverage['/scrollbar/render.js'].lineData[92] = 0; - _$jscoverage['/scrollbar/render.js'].lineData[93] = 0; - _$jscoverage['/scrollbar/render.js'].lineData[94] = 0; - _$jscoverage['/scrollbar/render.js'].lineData[99] = 0; - _$jscoverage['/scrollbar/render.js'].lineData[103] = 0; - _$jscoverage['/scrollbar/render.js'].lineData[107] = 0; - _$jscoverage['/scrollbar/render.js'].lineData[111] = 0; - _$jscoverage['/scrollbar/render.js'].lineData[115] = 0; - _$jscoverage['/scrollbar/render.js'].lineData[117] = 0; - _$jscoverage['/scrollbar/render.js'].lineData[118] = 0; - _$jscoverage['/scrollbar/render.js'].lineData[119] = 0; - _$jscoverage['/scrollbar/render.js'].lineData[122] = 0; - _$jscoverage['/scrollbar/render.js'].lineData[123] = 0; - _$jscoverage['/scrollbar/render.js'].lineData[127] = 0; + _$jscoverage['/scrollbar/render.js'].lineData[63] = 0; + _$jscoverage['/scrollbar/render.js'].lineData[69] = 0; } if (! _$jscoverage['/scrollbar/render.js'].functionData) { _$jscoverage['/scrollbar/render.js'].functionData = []; @@ -292,41 +269,21 @@ if (! _$jscoverage['/scrollbar/render.js'].functionData) { _$jscoverage['/scrollbar/render.js'].functionData[6] = 0; _$jscoverage['/scrollbar/render.js'].functionData[7] = 0; _$jscoverage['/scrollbar/render.js'].functionData[8] = 0; - _$jscoverage['/scrollbar/render.js'].functionData[9] = 0; - _$jscoverage['/scrollbar/render.js'].functionData[10] = 0; } if (! _$jscoverage['/scrollbar/render.js'].branchData) { _$jscoverage['/scrollbar/render.js'].branchData = {}; - _$jscoverage['/scrollbar/render.js'].branchData['51'] = []; - _$jscoverage['/scrollbar/render.js'].branchData['51'][1] = new BranchData(); - _$jscoverage['/scrollbar/render.js'].branchData['54'] = []; - _$jscoverage['/scrollbar/render.js'].branchData['54'][1] = new BranchData(); - _$jscoverage['/scrollbar/render.js'].branchData['82'] = []; - _$jscoverage['/scrollbar/render.js'].branchData['82'][1] = new BranchData(); - _$jscoverage['/scrollbar/render.js'].branchData['87'] = []; - _$jscoverage['/scrollbar/render.js'].branchData['87'][1] = new BranchData(); - _$jscoverage['/scrollbar/render.js'].branchData['117'] = []; - _$jscoverage['/scrollbar/render.js'].branchData['117'][1] = new BranchData(); + _$jscoverage['/scrollbar/render.js'].branchData['11'] = []; + _$jscoverage['/scrollbar/render.js'].branchData['11'][1] = new BranchData(); + _$jscoverage['/scrollbar/render.js'].branchData['53'] = []; + _$jscoverage['/scrollbar/render.js'].branchData['53'][1] = new BranchData(); } -_$jscoverage['/scrollbar/render.js'].branchData['117'][1].init(4473, 11, 'supportCss3'); -function visit23_117_1(result) { - _$jscoverage['/scrollbar/render.js'].branchData['117'][1].ranCondition(result); +_$jscoverage['/scrollbar/render.js'].branchData['53'][1].init(1730, 11, 'supportCss3'); +function visit24_53_1(result) { + _$jscoverage['/scrollbar/render.js'].branchData['53'][1].ranCondition(result); return result; -}_$jscoverage['/scrollbar/render.js'].branchData['87'][1].init(1079, 15, 'val < minScroll'); -function visit22_87_1(result) { - _$jscoverage['/scrollbar/render.js'].branchData['87'][1].ranCondition(result); - return result; -}_$jscoverage['/scrollbar/render.js'].branchData['82'][1].init(757, 15, 'val > maxScroll'); -function visit21_82_1(result) { - _$jscoverage['/scrollbar/render.js'].branchData['82'][1].ranCondition(result); - return result; -}_$jscoverage['/scrollbar/render.js'].branchData['54'][1].init(41, 22, 'whProperty === \'width\''); -function visit20_54_1(result) { - _$jscoverage['/scrollbar/render.js'].branchData['54'][1].ranCondition(result); - return result; -}_$jscoverage['/scrollbar/render.js'].branchData['51'][1].init(537, 42, 'scrollView.allowScroll[control.scrollType]'); -function visit19_51_1(result) { - _$jscoverage['/scrollbar/render.js'].branchData['51'][1].ranCondition(result); +}_$jscoverage['/scrollbar/render.js'].branchData['11'][1].init(252, 56, 'S.Features.getVendorCssPropPrefix(\'transform\') !== false'); +function visit23_11_1(result) { + _$jscoverage['/scrollbar/render.js'].branchData['11'][1].ranCondition(result); return result; }_$jscoverage['/scrollbar/render.js'].lineData[6]++; KISSY.add(function(S, require) { @@ -335,8 +292,10 @@ KISSY.add(function(S, require) { var Control = require('component/control'); _$jscoverage['/scrollbar/render.js'].lineData[8]++; var ScrollBarTpl = require('./scrollbar-xtpl'); + _$jscoverage['/scrollbar/render.js'].lineData[9]++; + var isTransform3dSupported = S.Features.isTransform3dSupported(); _$jscoverage['/scrollbar/render.js'].lineData[11]++; - var supportCss3 = S.Features.isTransformSupported(); + var supportCss3 = visit23_11_1(S.Features.getVendorCssPropPrefix('transform') !== false); _$jscoverage['/scrollbar/render.js'].lineData[13]++; var methods = { beforeCreateDom: function(renderData, childrenElSelectors) { @@ -371,104 +330,44 @@ KISSY.add(function(S, require) { _$jscoverage['/scrollbar/render.js'].lineData[33]++; control.upBtn = control.$upBtn[0]; }, - syncUI: function() { + '_onSetDragHeight': function(v) { _$jscoverage['/scrollbar/render.js'].functionData[3]++; _$jscoverage['/scrollbar/render.js'].lineData[37]++; - var self = this, control = self.control, scrollView = control.get('scrollView'), trackEl = control.trackEl, scrollWHProperty = control.scrollWHProperty, whProperty = control.whProperty, clientWHProperty = control.clientWHProperty, dragWHProperty = control.dragWHProperty, ratio, trackElSize, barSize; - _$jscoverage['/scrollbar/render.js'].lineData[49]++; - control.scrollView = scrollView; - _$jscoverage['/scrollbar/render.js'].lineData[51]++; - if (visit19_51_1(scrollView.allowScroll[control.scrollType])) { - _$jscoverage['/scrollbar/render.js'].lineData[52]++; - control.scrollLength = scrollView[scrollWHProperty]; - _$jscoverage['/scrollbar/render.js'].lineData[53]++; - trackElSize = control.trackElSize = visit20_54_1(whProperty === 'width') ? trackEl.offsetWidth : trackEl.offsetHeight; - _$jscoverage['/scrollbar/render.js'].lineData[55]++; - ratio = scrollView[clientWHProperty] / control.scrollLength; - _$jscoverage['/scrollbar/render.js'].lineData[56]++; - barSize = ratio * trackElSize; - _$jscoverage['/scrollbar/render.js'].lineData[57]++; - control.set(dragWHProperty, barSize); - _$jscoverage['/scrollbar/render.js'].lineData[58]++; - control.barSize = barSize; - _$jscoverage['/scrollbar/render.js'].lineData[59]++; - self.syncOnScrollChange(); - _$jscoverage['/scrollbar/render.js'].lineData[60]++; - control.set('visible', true); - } else { - _$jscoverage['/scrollbar/render.js'].lineData[62]++; - control.set('visible', false); - } -}, - syncOnScrollChange: function() { - _$jscoverage['/scrollbar/render.js'].functionData[4]++; - _$jscoverage['/scrollbar/render.js'].lineData[67]++; - var self = this, control = self.control, scrollType = control.scrollType, scrollView = control.scrollView, dragLTProperty = control.dragLTProperty, dragWHProperty = control.dragWHProperty, trackElSize = control.trackElSize, barSize = control.barSize, contentSize = control.scrollLength, val = scrollView.get(control.scrollProperty), maxScrollOffset = scrollView.maxScroll, minScrollOffset = scrollView.minScroll, minScroll = minScrollOffset[scrollType], maxScroll = maxScrollOffset[scrollType], dragVal; - _$jscoverage['/scrollbar/render.js'].lineData[82]++; - if (visit21_82_1(val > maxScroll)) { - _$jscoverage['/scrollbar/render.js'].lineData[83]++; - dragVal = maxScroll / contentSize * trackElSize; - _$jscoverage['/scrollbar/render.js'].lineData[84]++; - control.set(dragWHProperty, barSize - (val - maxScroll)); - _$jscoverage['/scrollbar/render.js'].lineData[86]++; - control.set(dragLTProperty, dragVal + barSize - control.get(dragWHProperty)); - } else { - _$jscoverage['/scrollbar/render.js'].lineData[87]++; - if (visit22_87_1(val < minScroll)) { - _$jscoverage['/scrollbar/render.js'].lineData[88]++; - dragVal = minScroll / contentSize * trackElSize; - _$jscoverage['/scrollbar/render.js'].lineData[89]++; - control.set(dragWHProperty, barSize - (minScroll - val)); - _$jscoverage['/scrollbar/render.js'].lineData[90]++; - control.set(dragLTProperty, dragVal); - } else { - _$jscoverage['/scrollbar/render.js'].lineData[92]++; - dragVal = val / contentSize * trackElSize; - _$jscoverage['/scrollbar/render.js'].lineData[93]++; - control.set(dragLTProperty, dragVal); - _$jscoverage['/scrollbar/render.js'].lineData[94]++; - control.set(dragWHProperty, barSize); - } - } -}, - '_onSetDragHeight': function(v) { - _$jscoverage['/scrollbar/render.js'].functionData[5]++; - _$jscoverage['/scrollbar/render.js'].lineData[99]++; this.control.dragEl.style.height = v + 'px'; }, '_onSetDragWidth': function(v) { - _$jscoverage['/scrollbar/render.js'].functionData[6]++; - _$jscoverage['/scrollbar/render.js'].lineData[103]++; + _$jscoverage['/scrollbar/render.js'].functionData[4]++; + _$jscoverage['/scrollbar/render.js'].lineData[41]++; this.control.dragEl.style.width = v + 'px'; }, '_onSetDragLeft': function(v) { - _$jscoverage['/scrollbar/render.js'].functionData[7]++; - _$jscoverage['/scrollbar/render.js'].lineData[107]++; + _$jscoverage['/scrollbar/render.js'].functionData[5]++; + _$jscoverage['/scrollbar/render.js'].lineData[45]++; this.control.dragEl.style.left = v + 'px'; }, '_onSetDragTop': function(v) { - _$jscoverage['/scrollbar/render.js'].functionData[8]++; - _$jscoverage['/scrollbar/render.js'].lineData[111]++; + _$jscoverage['/scrollbar/render.js'].functionData[6]++; + _$jscoverage['/scrollbar/render.js'].lineData[49]++; this.control.dragEl.style.top = v + 'px'; }}; - _$jscoverage['/scrollbar/render.js'].lineData[115]++; - var transformProperty = S.Features.getTransformProperty(); - _$jscoverage['/scrollbar/render.js'].lineData[117]++; - if (visit23_117_1(supportCss3)) { - _$jscoverage['/scrollbar/render.js'].lineData[118]++; + _$jscoverage['/scrollbar/render.js'].lineData[53]++; + if (visit24_53_1(supportCss3)) { + _$jscoverage['/scrollbar/render.js'].lineData[54]++; + var transformProperty = S.Features.getVendorCssPropName('transform'); + _$jscoverage['/scrollbar/render.js'].lineData[56]++; methods._onSetDragLeft = function(v) { - _$jscoverage['/scrollbar/render.js'].functionData[9]++; - _$jscoverage['/scrollbar/render.js'].lineData[119]++; - this.control.dragEl.style[transformProperty] = 'translateX(' + v + 'px) translateZ(0)'; + _$jscoverage['/scrollbar/render.js'].functionData[7]++; + _$jscoverage['/scrollbar/render.js'].lineData[57]++; + this.control.dragEl.style[transformProperty] = 'translateX(' + v + 'px)' + ' translateY(' + this.control.get('dragTop') + 'px)' + (isTransform3dSupported ? ' translateZ(0)' : ''); }; - _$jscoverage['/scrollbar/render.js'].lineData[122]++; + _$jscoverage['/scrollbar/render.js'].lineData[62]++; methods._onSetDragTop = function(v) { - _$jscoverage['/scrollbar/render.js'].functionData[10]++; - _$jscoverage['/scrollbar/render.js'].lineData[123]++; - this.control.dragEl.style[transformProperty] = 'translateY(' + v + 'px) translateZ(0)'; + _$jscoverage['/scrollbar/render.js'].functionData[8]++; + _$jscoverage['/scrollbar/render.js'].lineData[63]++; + this.control.dragEl.style[transformProperty] = 'translateX(' + this.control.get('dragLeft') + 'px)' + ' translateY(' + v + 'px)' + (isTransform3dSupported ? ' translateZ(0)' : ''); }; } - _$jscoverage['/scrollbar/render.js'].lineData[127]++; + _$jscoverage['/scrollbar/render.js'].lineData[69]++; return Control.getDefaultRender().extend(methods, { ATTRS: { contentTpl: { diff --git a/src/scroll-view/sub-modules/plugin/scrollbar/coverage/src/scrollbar/scrollbar-xtpl.js b/src/scroll-view/sub-modules/plugin/scrollbar/coverage/src/scrollbar/scrollbar-xtpl.js index df9b3ccfdd..b77f12ceef 100644 --- a/src/scroll-view/sub-modules/plugin/scrollbar/coverage/src/scrollbar/scrollbar-xtpl.js +++ b/src/scroll-view/sub-modules/plugin/scrollbar/coverage/src/scrollbar/scrollbar-xtpl.js @@ -235,8 +235,6 @@ if (! _$jscoverage['/scrollbar/scrollbar-xtpl.js']) { _$jscoverage['/scrollbar/scrollbar-xtpl.js'].lineData[9] = 0; _$jscoverage['/scrollbar/scrollbar-xtpl.js'].lineData[10] = 0; _$jscoverage['/scrollbar/scrollbar-xtpl.js'].lineData[12] = 0; - _$jscoverage['/scrollbar/scrollbar-xtpl.js'].lineData[15] = 0; - _$jscoverage['/scrollbar/scrollbar-xtpl.js'].lineData[16] = 0; _$jscoverage['/scrollbar/scrollbar-xtpl.js'].lineData[17] = 0; _$jscoverage['/scrollbar/scrollbar-xtpl.js'].lineData[18] = 0; _$jscoverage['/scrollbar/scrollbar-xtpl.js'].lineData[19] = 0; @@ -305,6 +303,8 @@ if (! _$jscoverage['/scrollbar/scrollbar-xtpl.js']) { _$jscoverage['/scrollbar/scrollbar-xtpl.js'].lineData[82] = 0; _$jscoverage['/scrollbar/scrollbar-xtpl.js'].lineData[83] = 0; _$jscoverage['/scrollbar/scrollbar-xtpl.js'].lineData[84] = 0; + _$jscoverage['/scrollbar/scrollbar-xtpl.js'].lineData[85] = 0; + _$jscoverage['/scrollbar/scrollbar-xtpl.js'].lineData[86] = 0; } if (! _$jscoverage['/scrollbar/scrollbar-xtpl.js'].functionData) { _$jscoverage['/scrollbar/scrollbar-xtpl.js'].functionData = []; @@ -318,11 +318,11 @@ if (! _$jscoverage['/scrollbar/scrollbar-xtpl.js'].branchData) { _$jscoverage['/scrollbar/scrollbar-xtpl.js'].branchData['9'][2] = new BranchData(); } _$jscoverage['/scrollbar/scrollbar-xtpl.js'].branchData['9'][2].init(165, 29, 'typeof module !== "undefined"'); -function visit25_9_2(result) { +function visit26_9_2(result) { _$jscoverage['/scrollbar/scrollbar-xtpl.js'].branchData['9'][2].ranCondition(result); return result; }_$jscoverage['/scrollbar/scrollbar-xtpl.js'].branchData['9'][1].init(165, 45, 'typeof module !== "undefined" && module.kissy'); -function visit24_9_1(result) { +function visit25_9_1(result) { _$jscoverage['/scrollbar/scrollbar-xtpl.js'].branchData['9'][1].ranCondition(result); return result; }_$jscoverage['/scrollbar/scrollbar-xtpl.js'].lineData[2]++; @@ -334,151 +334,151 @@ KISSY.add(function(S, require, exports, module) { _$jscoverage['/scrollbar/scrollbar-xtpl.js'].lineData[5]++; var buffer = "", config = this.config, engine = this, moduleWrap, utils = config.utils; _$jscoverage['/scrollbar/scrollbar-xtpl.js'].lineData[9]++; - if (visit24_9_1(visit25_9_2(typeof module !== "undefined") && module.kissy)) { + if (visit25_9_1(visit26_9_2(typeof module !== "undefined") && module.kissy)) { _$jscoverage['/scrollbar/scrollbar-xtpl.js'].lineData[10]++; moduleWrap = module; } _$jscoverage['/scrollbar/scrollbar-xtpl.js'].lineData[12]++; - var runBlockCommandUtil = utils.runBlockCommand, getExpressionUtil = utils.getExpression, getPropertyOrRunCommandUtil = utils.getPropertyOrRunCommand; - _$jscoverage['/scrollbar/scrollbar-xtpl.js'].lineData[15]++; - buffer += '
    up\n
    \n
    up\n
    \n
    down\n
    \n
    down\n
    \n
    ie7 bug elBefore: scrollView.$contentEl @@ -28,33 +25,44 @@ KISSY.add(function (S, require) { if (minLength !== undefined) { cfg.minLength = minLength; } - - if (self.scrollBarX) { - self.scrollBarX.sync(); - } else if (scrollView.allowScroll.left) { - my = { - axis: 'x' - }; - if (autoHideX !== undefined) { - cfg.autoHide = autoHideX; - } - self.scrollBarX = new ScrollBar(S.merge(cfg, my)).render(); + if (autoHideX !== undefined) { + cfg.autoHide = autoHideX; } + self.scrollBarX = new ScrollBar(cfg).render(); + } - if (self.scrollBarY) { - self.scrollBarY.sync(); - } else if (scrollView.allowScroll.top) { - my = { - axis: 'y' - }; - if (autoHideY !== undefined) { - cfg.autoHide = autoHideY; - } - self.scrollBarY = new ScrollBar(S.merge(cfg, my)).render(); + if (!self.scrollBarY && scrollView.allowScroll.top) { + cfg = { + axis: 'y', + scrollView: scrollView, + // render: scrollView.get('el') => ie7 bug + elBefore: scrollView.$contentEl + }; + if (minLength !== undefined) { + cfg.minLength = minLength; + } + if (autoHideY !== undefined) { + cfg.autoHide = autoHideY; } + self.scrollBarY = new ScrollBar(cfg).render(); + } + } + + /** + * ScrollBar plugin for ScrollView. + * @class KISSY.ScrollView.Plugin.ScrollBar + * @extend KISSY.Base + */ + return Base.extend({ + pluginId: this.getName(), + + pluginBindUI: function (scrollView) { + var self = this; + self.scrollView = scrollView; + scrollView.on('reflow', onScrollViewReflow, self); }, - pluginDestructor: function () { + pluginDestructor: function (scrollView) { var self = this; if (self.scrollBarX) { self.scrollBarX.destroy(); @@ -64,6 +72,7 @@ KISSY.add(function (S, require) { self.scrollBarY.destroy(); self.scrollBarY = null; } + scrollView.detach('reflow', onScrollViewReflow, self); } }, { ATTRS: { diff --git a/src/scroll-view/sub-modules/plugin/scrollbar/src/scrollbar/control.js b/src/scroll-view/sub-modules/plugin/scrollbar/src/scrollbar/control.js index ba03141a2f..f6b60854c0 100644 --- a/src/scroll-view/sub-modules/plugin/scrollbar/src/scrollbar/control.js +++ b/src/scroll-view/sub-modules/plugin/scrollbar/src/scrollbar/control.js @@ -5,6 +5,7 @@ */ KISSY.add(function (S, require) { var Node = require('node'); + var $document = Node.all(document); var Control = require('component/control'); var ScrollBarRender = require('./render'); @@ -14,9 +15,189 @@ KISSY.add(function (S, require) { var Gesture = Node.Gesture; - var Features = S.Features; + function preventDefault(e) { + e.preventDefault(); + } - var allowDrag = !Features.isTouchGestureSupported(); + function onDragStartHandler(e) { + e.stopPropagation(); + if (!e.isTouch) { + e.preventDefault(); + } + var self = this; + if (self.get('disabled')) { + return; + } + self.startMousePos = e[self.pageXyProperty]; + self.startScroll = self.scrollView.get(self.scrollProperty); + // ie10 if mouse out of window + $document.on(Gesture.move, onDragHandler, self) + .on(Gesture.end, onDragEndHandler, self); + } + + function onDragHandler(e) { + var self = this, + diff = e[self.pageXyProperty] - self.startMousePos, + scrollView = self.scrollView, + scrollType = self.scrollType, + scrollCfg = {}; + scrollCfg[scrollType] = self.startScroll + diff / self.trackElSize * self.scrollLength; + scrollView.scrollToWithBounds(scrollCfg); + } + + function onDragEndHandler() { + $document.detach(Gesture.move, onDragHandler, this) + .detach(Gesture.end, onDragEndHandler, this); + } + + function onScrollViewReflow() { + var control = this, + scrollView = control.scrollView, + trackEl = control.trackEl, + scrollWHProperty = control.scrollWHProperty, + whProperty = control.whProperty, + clientWHProperty = control.clientWHProperty, + dragWHProperty = control.dragWHProperty, + ratio, + trackElSize, + barSize; + + if (scrollView.allowScroll[control.scrollType]) { + control.scrollLength = scrollView[scrollWHProperty]; + trackElSize = control.trackElSize = + whProperty === 'width' ? trackEl.offsetWidth : trackEl.offsetHeight; + ratio = scrollView[clientWHProperty] / control.scrollLength; + barSize = ratio * trackElSize; + control.set(dragWHProperty, barSize); + control.barSize = barSize; + syncOnScroll(control); + control.set('visible', true); + } else { + control.set('visible', false); + } + } + + function onScrollViewDisabled(e) { + this.set('disabled', e.newVal); + } + + function onScrollEnd() { + var self = this; + if (self.hideFn) { + startHideTimer(self); + } + } + + function afterScrollChange() { + // only show when scroll + var self = this; + var scrollView = self.scrollView; + if (!scrollView.allowScroll[self.scrollType]) { + return; + } + clearHideTimer(self); + self.set('visible', true); + if (self.hideFn && !scrollView.isScrolling) { + startHideTimer(self); + } + syncOnScroll(self); + } + + + function onUpDownBtnMouseDown(e) { + if (this.get('disabled')) { + return; + } + e.halt(); + var self = this, + scrollView = self.scrollView, + scrollProperty = self.scrollProperty, + scrollType = self.scrollType, + step = scrollView.getScrollStep()[self.scrollType], + target = e.target, + direction = (target === self.downBtn || self.$downBtn.contains(target)) ? 1 : -1; + clearInterval(self.mouseInterval); + function doScroll() { + var scrollCfg = {}; + scrollCfg[scrollType] = scrollView.get(scrollProperty) + direction * step; + scrollView.scrollToWithBounds(scrollCfg); + } + + self.mouseInterval = setInterval(doScroll, 100); + doScroll(); + } + + function onTrackElMouseDown(e) { + var self = this; + if (self.get('disabled')) { + return; + } + var target = e.target; + var dragEl = self.dragEl; + var $dragEl = self.$dragEl; + if (dragEl === target || $dragEl.contains(target)) { + return; + } + var scrollType = self.scrollType, + pageXy = self.pageXyProperty, + trackEl = self.$trackEl, + scrollView = self.scrollView, + // align mouse with bar center + per = Math.max(0, (e[pageXy] - + trackEl.offset()[scrollType] - + self.barSize / 2) / self.trackElSize), + scrollCfg = {}; + scrollCfg[scrollType] = per * self.scrollLength; + scrollView.scrollToWithBounds(scrollCfg); + // prevent drag + e.halt(); + } + + function onUpDownBtnMouseUp() { + clearInterval(this.mouseInterval); + } + + function syncOnScroll(control) { + var scrollType = control.scrollType, + scrollView = control.scrollView, + dragLTProperty = control.dragLTProperty, + dragWHProperty = control.dragWHProperty, + trackElSize = control.trackElSize, + barSize = control.barSize, + contentSize = control.scrollLength, + val = scrollView.get(control.scrollProperty), + maxScrollOffset = scrollView.maxScroll, + minScrollOffset = scrollView.minScroll, + minScroll = minScrollOffset[scrollType], + maxScroll = maxScrollOffset[scrollType], + dragVal; + if (val > maxScroll) { + dragVal = maxScroll / contentSize * trackElSize; + control.set(dragWHProperty, barSize - (val - maxScroll)); + // dragSizeAxis has minLength + control.set(dragLTProperty, dragVal + barSize - control.get(dragWHProperty)); + } else if (val < minScroll) { + dragVal = minScroll / contentSize * trackElSize; + control.set(dragWHProperty, barSize - (minScroll - val)); + control.set(dragLTProperty, dragVal); + } else { + dragVal = val / contentSize * trackElSize; + control.set(dragLTProperty, dragVal); + control.set(dragWHProperty, barSize); + } + } + + function startHideTimer(self) { + clearHideTimer(self); + self.hideTimer = setTimeout(self.hideFn, self.get('hideDelay') * 1000); + } + + function clearHideTimer(self) { + if (self.hideTimer) { + clearTimeout(self.hideTimer); + self.hideTimer = null; + } + } /** * @class KISSY.ScrollView.ScrollBar @@ -39,161 +220,39 @@ KISSY.add(function (S, require) { self.clientWHProperty = 'client' + ucWH; self.scrollWHProperty = 'scroll' + ucWH; + + self.scrollView = self.get('scrollView'); }, bindUI: function () { var self = this, autoHide = self.get('autoHide'), - scrollView = self.get('scrollView'); + scrollView = self.scrollView; if (autoHide) { self.hideFn = S.bind(self.hide, self); } else { S.each([self.$downBtn, self.$upBtn], function (b) { - b.on(Gesture.start, self.onUpDownBtnMouseDown, self) - .on(Gesture.end, self.onUpDownBtnMouseUp, self); + b.on(Gesture.start, onUpDownBtnMouseDown, self) + .on(Gesture.end, onUpDownBtnMouseUp, self); }); - self.$trackEl.on(Gesture.start, self.onTrackElMouseDown, self); - if (allowDrag) { - S.use('dd', function (S, DD) { - self.dd = new DD.Draggable({ - node: self.$dragEl, - disabled: self.get('disabled'), - groups: false, - // allow nested scroll-view - halt: true - }).on('drag', self.onDrag, self) - .on('dragstart', self.onDragStart, self); - }); - } + self.$trackEl.on(Gesture.start, onTrackElMouseDown, self); + self.$dragEl.on('dragstart', preventDefault) + .on(Gesture.start, onDragStartHandler, self); } scrollView - .on(self.afterScrollChangeEvent + SCROLLBAR_EVENT_NS, - self.afterScrollChange, self) - .on('scrollEnd' + SCROLLBAR_EVENT_NS, self.onScrollEnd, self) - .on('afterDisabledChange', self.onScrollViewDisabled, self); - }, - - - destructor: function () { - this.get('scrollView').detach(SCROLLBAR_EVENT_NS); - this.clearHideTimer(); - }, - - onScrollViewDisabled: function (e) { - this.set('disabled', e.newVal); - }, - - onDragStart: function () { - var self = this, - scrollView = self.scrollView; - self.startMousePos = self.dd.get('startMousePos')[self.scrollType]; - self.startScroll = scrollView.get(self.scrollProperty); - }, - - onDrag: function (e) { - var self = this, - diff = e[self.pageXyProperty] - self.startMousePos, - scrollView = self.scrollView, - scrollType = self.scrollType, - scrollCfg = {}; - scrollCfg[scrollType] = self.startScroll + diff / self.trackElSize * self.scrollLength; - scrollView.scrollToWithBounds(scrollCfg); - }, - - startHideTimer: function () { - var self = this; - self.clearHideTimer(); - self.hideTimer = setTimeout(self.hideFn, self.get('hideDelay') * 1000); - }, - - clearHideTimer: function () { - var self = this; - if (self.hideTimer) { - clearTimeout(self.hideTimer); - self.hideTimer = null; - } + .on(self.afterScrollChangeEvent + SCROLLBAR_EVENT_NS, afterScrollChange, self) + .on('scrollEnd' + SCROLLBAR_EVENT_NS, onScrollEnd, self) + .on('afterDisabledChange' + SCROLLBAR_EVENT_NS, onScrollViewDisabled, self) + .on('reflow' + SCROLLBAR_EVENT_NS, onScrollViewReflow, self); }, - onUpDownBtnMouseDown: function (e) { - if (this.get('disabled')) { - return; - } - e.halt(); - var self = this, - scrollView = self.scrollView, - scrollProperty = self.scrollProperty, - scrollType = self.scrollType, - step = scrollView.getScrollStep()[self.scrollType], - target = e.target, - direction = (target === self.downBtn || self.$downBtn.contains(target)) ? 1 : -1; - clearInterval(self.mouseInterval); - function doScroll() { - var scrollCfg = {}; - scrollCfg[scrollType] = scrollView.get(scrollProperty) + direction * step; - scrollView.scrollToWithBounds(scrollCfg); - } - - self.mouseInterval = setInterval(doScroll, 100); - doScroll(); + syncUI: function () { + onScrollViewReflow.call(this); }, - onTrackElMouseDown: function (e) { - var self = this; - if (self.get('disabled')) { - return; - } - var target = e.target; - var dragEl = self.dragEl; - var $dragEl = self.$dragEl; - if (dragEl === target || $dragEl.contains(target)) { - return; - } - var scrollType = self.scrollType, - pageXy = self.pageXyProperty, - trackEl = self.$trackEl, - scrollView = self.scrollView, - // align mouse with bar center - per = Math.max(0, (e[pageXy] - - trackEl.offset()[scrollType] - - self.barSize / 2) / self.trackElSize), - scrollCfg = {}; - scrollCfg[scrollType] = per * self.scrollLength; - scrollView.scrollToWithBounds(scrollCfg); - // prevent drag - e.halt(); - }, - - onUpDownBtnMouseUp: function () { - clearInterval(this.mouseInterval); - }, - - onScrollEnd: function () { - var self = this; - if (self.hideFn) { - self.startHideTimer(); - } - }, - - // percentage matters! - afterScrollChange: function () { - // only show when scroll - var self = this; - var scrollView = self.scrollView; - if (!scrollView.allowScroll[self.scrollType]) { - return; - } - self.clearHideTimer(); - self.set('visible', true); - if (self.hideFn && !scrollView.isScrolling) { - self.startHideTimer(); - } - self.view.syncOnScrollChange(); - }, - - _onSetDisabled: function (v) { - if (this.dd) { - this.dd.set('disabled', v); - } + destructor: function () { + this.scrollView.detach(SCROLLBAR_EVENT_NS); + clearHideTimer(this); } }, { ATTRS: { @@ -269,11 +328,13 @@ KISSY.add(function (S, require) { }, dragLeft: { - view: 1 + view: 1, + value: 0 }, dragTop: { - view: 1 + view: 1, + value: 0 }, dragEl: { diff --git a/src/scroll-view/sub-modules/plugin/scrollbar/src/scrollbar/render.js b/src/scroll-view/sub-modules/plugin/scrollbar/src/scrollbar/render.js index 584b9a90b0..aba7d45c73 100644 --- a/src/scroll-view/sub-modules/plugin/scrollbar/src/scrollbar/render.js +++ b/src/scroll-view/sub-modules/plugin/scrollbar/src/scrollbar/render.js @@ -6,9 +6,9 @@ KISSY.add(function (S, require) { var Control = require('component/control'); var ScrollBarTpl = require('./scrollbar-xtpl'); - + var isTransform3dSupported = S.Features.isTransform3dSupported(); // http://www.html5rocks.com/en/tutorials/speed/html5/ - var supportCss3 = S.Features.isTransformSupported(); + var supportCss3 = S.Features.getVendorCssPropPrefix('transform') !== false; var methods = { beforeCreateDom: function (renderData, childrenElSelectors) { @@ -33,68 +33,6 @@ KISSY.add(function (S, require) { control.upBtn = control.$upBtn[0]; }, - syncUI: function () { - var self = this, - control = self.control, - scrollView = control.get('scrollView'), - trackEl = control.trackEl, - scrollWHProperty = control.scrollWHProperty, - whProperty = control.whProperty, - clientWHProperty = control.clientWHProperty, - dragWHProperty = control.dragWHProperty, - ratio, - trackElSize, - barSize; - - control.scrollView = scrollView; - - if (scrollView.allowScroll[control.scrollType]) { - control.scrollLength = scrollView[scrollWHProperty]; - trackElSize = control.trackElSize = - whProperty === 'width' ? trackEl.offsetWidth : trackEl.offsetHeight; - ratio = scrollView[clientWHProperty] / control.scrollLength; - barSize = ratio * trackElSize; - control.set(dragWHProperty, barSize); - control.barSize = barSize; - self.syncOnScrollChange(); - control.set('visible', true); - } else { - control.set('visible', false); - } - }, - - syncOnScrollChange: function () { - var self = this, - control = self.control, - scrollType = control.scrollType, - scrollView = control.scrollView, - dragLTProperty = control.dragLTProperty, - dragWHProperty = control.dragWHProperty, - trackElSize = control.trackElSize, - barSize = control.barSize, - contentSize = control.scrollLength, - val = scrollView.get(control.scrollProperty), - maxScrollOffset = scrollView.maxScroll, - minScrollOffset = scrollView.minScroll, - minScroll = minScrollOffset[scrollType], - maxScroll = maxScrollOffset[scrollType], - dragVal; - if (val > maxScroll) { - dragVal = maxScroll / contentSize * trackElSize; - control.set(dragWHProperty, barSize - (val - maxScroll)); - // dragSizeAxis has minLength - control.set(dragLTProperty, dragVal + barSize - control.get(dragWHProperty)); - } else if (val < minScroll) { - dragVal = minScroll / contentSize * trackElSize; - control.set(dragWHProperty, barSize - (minScroll - val)); - control.set(dragLTProperty, dragVal); - } else { - dragVal = val / contentSize * trackElSize; - control.set(dragLTProperty, dragVal); - control.set(dragWHProperty, barSize); - } - }, - '_onSetDragHeight': function (v) { this.control.dragEl.style.height = v + 'px'; }, @@ -112,15 +50,19 @@ KISSY.add(function (S, require) { } }; - var transformProperty = S.Features.getTransformProperty(); - if (supportCss3) { + var transformProperty = S.Features.getVendorCssPropName('transform'); + methods._onSetDragLeft = function (v) { - this.control.dragEl.style[transformProperty] = 'translateX(' + v + 'px) translateZ(0)'; + this.control.dragEl.style[transformProperty] = 'translateX(' + v + 'px)' + + ' translateY(' + this.control.get('dragTop') + 'px)' + + (isTransform3dSupported ? ' translateZ(0)' : ''); }; methods._onSetDragTop = function (v) { - this.control.dragEl.style[transformProperty] = 'translateY(' + v + 'px) translateZ(0)'; + this.control.dragEl.style[transformProperty] = 'translateX(' + this.control.get('dragLeft') + 'px)' + + ' translateY(' + v + 'px)' + + (isTransform3dSupported ? ' translateZ(0)' : ''); }; } diff --git a/src/scroll-view/sub-modules/plugin/scrollbar/src/scrollbar/scrollbar-xtpl.js b/src/scroll-view/sub-modules/plugin/scrollbar/src/scrollbar/scrollbar-xtpl.js index 186c62caef..9e56708b4d 100644 --- a/src/scroll-view/sub-modules/plugin/scrollbar/src/scrollbar/scrollbar-xtpl.js +++ b/src/scroll-view/sub-modules/plugin/scrollbar/src/scrollbar/scrollbar-xtpl.js @@ -1,6 +1,6 @@ /** Compiled By kissy-xtemplate */ KISSY.add(function (S, require, exports, module) { - /*jshint quotmark: false, unused:false, indent:false*/ + /*jshint quotmark:false, loopfunc:true, indent:false, asi:true, unused:false, boss:true*/ return function (scope, S, undefined) { var buffer = "", config = this.config, @@ -10,76 +10,78 @@ KISSY.add(function (S, require, exports, module) { moduleWrap = module; } var runBlockCommandUtil = utils.runBlockCommand, - getExpressionUtil = utils.getExpression, + renderOutputUtil = utils.renderOutput, + getPropertyUtil = utils.getProperty, + runInlineCommandUtil = utils.runInlineCommand, getPropertyOrRunCommandUtil = utils.getPropertyOrRunCommand; buffer += '
    up\n
    \n
    down\n
    \n
    7'); -function visit24_118_3(result) { - _$jscoverage['/features.js'].branchData['118'][3].ranCondition(result); +}_$jscoverage['/features.js'].branchData['172'][3].init(193, 6, 'ie > 7'); +function visit35_172_3(result) { + _$jscoverage['/features.js'].branchData['172'][3].ranCondition(result); return result; -}_$jscoverage['/features.js'].branchData['118'][2].init(186, 13, '!ie || ie > 7'); -function visit23_118_2(result) { - _$jscoverage['/features.js'].branchData['118'][2].ranCondition(result); +}_$jscoverage['/features.js'].branchData['172'][2].init(186, 13, '!ie || ie > 7'); +function visit34_172_2(result) { + _$jscoverage['/features.js'].branchData['172'][2].ranCondition(result); return result; -}_$jscoverage['/features.js'].branchData['118'][1].init(159, 41, '(\'onhashchange\' in win) && (!ie || ie > 7)'); -function visit22_118_1(result) { - _$jscoverage['/features.js'].branchData['118'][1].ranCondition(result); +}_$jscoverage['/features.js'].branchData['172'][1].init(159, 41, '(\'onhashchange\' in win) && (!ie || ie > 7)'); +function visit33_172_1(result) { + _$jscoverage['/features.js'].branchData['172'][1].ranCondition(result); return result; -}_$jscoverage['/features.js'].branchData['99'][2].init(50, 42, 'isPointerSupported || isMsPointerSupported'); -function visit21_99_2(result) { - _$jscoverage['/features.js'].branchData['99'][2].ranCondition(result); +}_$jscoverage['/features.js'].branchData['153'][2].init(50, 42, 'isPointerSupported || isMsPointerSupported'); +function visit32_153_2(result) { + _$jscoverage['/features.js'].branchData['153'][2].ranCondition(result); return result; -}_$jscoverage['/features.js'].branchData['99'][1].init(20, 72, 'isTouchEventSupportedState || isPointerSupported || isMsPointerSupported'); -function visit20_99_1(result) { - _$jscoverage['/features.js'].branchData['99'][1].ranCondition(result); +}_$jscoverage['/features.js'].branchData['153'][1].init(20, 72, 'isTouchEventSupportedState || isPointerSupported || isMsPointerSupported'); +function visit31_153_1(result) { + _$jscoverage['/features.js'].branchData['153'][1].ranCondition(result); return result; -}_$jscoverage['/features.js'].branchData['59'][1].init(904, 19, 'win.navigator || {}'); -function visit19_59_1(result) { - _$jscoverage['/features.js'].branchData['59'][1].ranCondition(result); +}_$jscoverage['/features.js'].branchData['110'][1].init(502, 94, 'vendorInfos[name] || {\n name: name, \n prefix: false}'); +function visit30_110_1(result) { + _$jscoverage['/features.js'].branchData['110'][1].ranCondition(result); return result; -}_$jscoverage['/features.js'].branchData['51'][2].init(361, 29, 'transformPrefix === undefined'); -function visit18_51_2(result) { - _$jscoverage['/features.js'].branchData['51'][2].ranCondition(result); +}_$jscoverage['/features.js'].branchData['102'][1].init(79, 34, 'vendorName in documentElementStyle'); +function visit29_102_1(result) { + _$jscoverage['/features.js'].branchData['102'][1].ranCondition(result); return result; -}_$jscoverage['/features.js'].branchData['51'][1].init(361, 82, 'transformPrefix === undefined && transform in documentElementStyle'); -function visit17_51_1(result) { - _$jscoverage['/features.js'].branchData['51'][1].ranCondition(result); +}_$jscoverage['/features.js'].branchData['90'][1].init(147, 53, '!documentElementStyle || name in documentElementStyle'); +function visit28_90_1(result) { + _$jscoverage['/features.js'].branchData['90'][1].ranCondition(result); return result; -}_$jscoverage['/features.js'].branchData['46'][2].init(154, 30, 'transitionPrefix === undefined'); -function visit16_46_2(result) { - _$jscoverage['/features.js'].branchData['46'][2].ranCondition(result); +}_$jscoverage['/features.js'].branchData['86'][1].init(13, 17, 'vendorInfos[name]'); +function visit27_86_1(result) { + _$jscoverage['/features.js'].branchData['86'][1].ranCondition(result); return result; -}_$jscoverage['/features.js'].branchData['46'][1].init(154, 84, 'transitionPrefix === undefined && transition in documentElementStyle'); -function visit15_46_1(result) { - _$jscoverage['/features.js'].branchData['46'][1].ranCondition(result); +}_$jscoverage['/features.js'].branchData['75'][5].init(513, 16, 'has3d !== \'none\''); +function visit26_75_5(result) { + _$jscoverage['/features.js'].branchData['75'][5].ranCondition(result); return result; -}_$jscoverage['/features.js'].branchData['38'][1].init(70, 8, 'ie !== 8'); -function visit14_38_1(result) { - _$jscoverage['/features.js'].branchData['38'][1].ranCondition(result); +}_$jscoverage['/features.js'].branchData['75'][4].init(493, 16, 'has3d.length > 0'); +function visit25_75_4(result) { + _$jscoverage['/features.js'].branchData['75'][4].ranCondition(result); return result; -}_$jscoverage['/features.js'].branchData['36'][1].init(13, 79, 'documentElement.querySelector && ie !== 8'); -function visit13_36_1(result) { - _$jscoverage['/features.js'].branchData['36'][1].ranCondition(result); +}_$jscoverage['/features.js'].branchData['75'][3].init(493, 36, 'has3d.length > 0 && has3d !== \'none\''); +function visit24_75_3(result) { + _$jscoverage['/features.js'].branchData['75'][3].ranCondition(result); + return result; +}_$jscoverage['/features.js'].branchData['75'][2].init(470, 19, 'has3d !== undefined'); +function visit23_75_2(result) { + _$jscoverage['/features.js'].branchData['75'][2].ranCondition(result); + return result; +}_$jscoverage['/features.js'].branchData['75'][1].init(470, 59, 'has3d !== undefined && has3d.length > 0 && has3d !== \'none\''); +function visit22_75_1(result) { + _$jscoverage['/features.js'].branchData['75'][1].ranCondition(result); + return result; +}_$jscoverage['/features.js'].branchData['73'][1].init(292, 85, 'computedStyle.getPropertyValue(transformProperty) || computedStyle[transformProperty]'); +function visit21_73_1(result) { + _$jscoverage['/features.js'].branchData['73'][1].ranCondition(result); + return result; +}_$jscoverage['/features.js'].branchData['64'][1].init(1063, 17, 'transformProperty'); +function visit20_64_1(result) { + _$jscoverage['/features.js'].branchData['64'][1].ranCondition(result); + return result; +}_$jscoverage['/features.js'].branchData['60'][1].init(904, 19, 'win.navigator || {}'); +function visit19_60_1(result) { + _$jscoverage['/features.js'].branchData['60'][1].ranCondition(result); + return result; +}_$jscoverage['/features.js'].branchData['52'][2].init(361, 29, 'transformPrefix === undefined'); +function visit18_52_2(result) { + _$jscoverage['/features.js'].branchData['52'][2].ranCondition(result); + return result; +}_$jscoverage['/features.js'].branchData['52'][1].init(361, 82, 'transformPrefix === undefined && transform in documentElementStyle'); +function visit17_52_1(result) { + _$jscoverage['/features.js'].branchData['52'][1].ranCondition(result); return result; -}_$jscoverage['/features.js'].branchData['35'][1].init(807, 15, 'documentElement'); -function visit12_35_1(result) { - _$jscoverage['/features.js'].branchData['35'][1].ranCondition(result); +}_$jscoverage['/features.js'].branchData['47'][2].init(154, 30, 'transitionPrefix === undefined'); +function visit16_47_2(result) { + _$jscoverage['/features.js'].branchData['47'][2].ranCondition(result); return result; -}_$jscoverage['/features.js'].branchData['32'][1].init(725, 41, '(\'ontouchstart\' in doc) && !(UA.phantomjs)'); -function visit11_32_1(result) { - _$jscoverage['/features.js'].branchData['32'][1].ranCondition(result); +}_$jscoverage['/features.js'].branchData['47'][1].init(154, 84, 'transitionPrefix === undefined && transition in documentElementStyle'); +function visit15_47_1(result) { + _$jscoverage['/features.js'].branchData['47'][1].ranCondition(result); + return result; +}_$jscoverage['/features.js'].branchData['39'][1].init(70, 8, 'ie !== 8'); +function visit14_39_1(result) { + _$jscoverage['/features.js'].branchData['39'][1].ranCondition(result); + return result; +}_$jscoverage['/features.js'].branchData['37'][1].init(13, 79, 'documentElement.querySelector && ie !== 8'); +function visit13_37_1(result) { + _$jscoverage['/features.js'].branchData['37'][1].ranCondition(result); + return result; +}_$jscoverage['/features.js'].branchData['36'][1].init(839, 15, 'documentElement'); +function visit12_36_1(result) { + _$jscoverage['/features.js'].branchData['36'][1].ranCondition(result); + return result; +}_$jscoverage['/features.js'].branchData['33'][1].init(757, 41, '(\'ontouchstart\' in doc) && !(UA.phantomjs)'); +function visit11_33_1(result) { + _$jscoverage['/features.js'].branchData['33'][1].ranCondition(result); return result; }_$jscoverage['/features.js'].branchData['19'][1].init(245, 18, 'win.document || {}'); function visit10_19_1(result) { @@ -405,120 +497,197 @@ function visit10_19_1(result) { (function(S, undefined) { _$jscoverage['/features.js'].functionData[0]++; _$jscoverage['/features.js'].lineData[7]++; - var Env = S.Env, win = Env.host, UA = S.UA, VENDORS = ['', 'Webkit', 'Moz', 'O', 'ms'], doc = visit10_19_1(win.document || {}), isMsPointerSupported, isPointerSupported, transitionProperty, transformProperty, transitionPrefix, transformPrefix, documentElement = doc.documentElement, documentElementStyle, isClassListSupportedState = true, isQuerySelectorSupportedState = false, isTouchEventSupportedState = visit11_32_1(('ontouchstart' in doc) && !(UA.phantomjs)), ie = UA.ieMode; - _$jscoverage['/features.js'].lineData[35]++; - if (visit12_35_1(documentElement)) { - _$jscoverage['/features.js'].lineData[36]++; - if (visit13_36_1(documentElement.querySelector && visit14_38_1(ie !== 8))) { - _$jscoverage['/features.js'].lineData[39]++; + var Env = S.Env, win = Env.host, UA = S.UA, VENDORS = ['', 'Webkit', 'Moz', 'O', 'ms'], doc = visit10_19_1(win.document || {}), isMsPointerSupported, isPointerSupported, transitionProperty, transformProperty, transitionPrefix, transformPrefix, isTransform3dSupported, documentElement = doc.documentElement, documentElementStyle, isClassListSupportedState = true, isQuerySelectorSupportedState = false, isTouchEventSupportedState = visit11_33_1(('ontouchstart' in doc) && !(UA.phantomjs)), ie = UA.ieMode; + _$jscoverage['/features.js'].lineData[36]++; + if (visit12_36_1(documentElement)) { + _$jscoverage['/features.js'].lineData[37]++; + if (visit13_37_1(documentElement.querySelector && visit14_39_1(ie !== 8))) { + _$jscoverage['/features.js'].lineData[40]++; isQuerySelectorSupportedState = true; } - _$jscoverage['/features.js'].lineData[41]++; + _$jscoverage['/features.js'].lineData[42]++; documentElementStyle = documentElement.style; - _$jscoverage['/features.js'].lineData[43]++; + _$jscoverage['/features.js'].lineData[44]++; S.each(VENDORS, function(val) { _$jscoverage['/features.js'].functionData[1]++; - _$jscoverage['/features.js'].lineData[44]++; + _$jscoverage['/features.js'].lineData[45]++; var transition = val ? val + 'Transition' : 'transition', transform = val ? val + 'Transform' : 'transform'; - _$jscoverage['/features.js'].lineData[46]++; - if (visit15_46_1(visit16_46_2(transitionPrefix === undefined) && transition in documentElementStyle)) { - _$jscoverage['/features.js'].lineData[48]++; - transitionPrefix = val; + _$jscoverage['/features.js'].lineData[47]++; + if (visit15_47_1(visit16_47_2(transitionPrefix === undefined) && transition in documentElementStyle)) { _$jscoverage['/features.js'].lineData[49]++; + transitionPrefix = val; + _$jscoverage['/features.js'].lineData[50]++; transitionProperty = transition; } - _$jscoverage['/features.js'].lineData[51]++; - if (visit17_51_1(visit18_51_2(transformPrefix === undefined) && transform in documentElementStyle)) { - _$jscoverage['/features.js'].lineData[53]++; - transformPrefix = val; + _$jscoverage['/features.js'].lineData[52]++; + if (visit17_52_1(visit18_52_2(transformPrefix === undefined) && transform in documentElementStyle)) { _$jscoverage['/features.js'].lineData[54]++; + transformPrefix = val; + _$jscoverage['/features.js'].lineData[55]++; transformProperty = transform; } }); - _$jscoverage['/features.js'].lineData[58]++; - isClassListSupportedState = 'classList' in documentElement; _$jscoverage['/features.js'].lineData[59]++; - var navigator = (visit19_59_1(win.navigator || {})); + isClassListSupportedState = 'classList' in documentElement; _$jscoverage['/features.js'].lineData[60]++; - isMsPointerSupported = 'msPointerEnabled' in navigator; + var navigator = (visit19_60_1(win.navigator || {})); _$jscoverage['/features.js'].lineData[61]++; + isMsPointerSupported = 'msPointerEnabled' in navigator; + _$jscoverage['/features.js'].lineData[62]++; isPointerSupported = 'pointerEnabled' in navigator; + _$jscoverage['/features.js'].lineData[64]++; + if (visit20_64_1(transformProperty)) { + _$jscoverage['/features.js'].lineData[68]++; + try { + _$jscoverage['/features.js'].lineData[69]++; + var el = doc.createElement('p'); + _$jscoverage['/features.js'].lineData[70]++; + documentElement.insertBefore(el, documentElement.firstChild); + _$jscoverage['/features.js'].lineData[71]++; + el.style[transformProperty] = 'translate3d(1px,1px,1px)'; + _$jscoverage['/features.js'].lineData[72]++; + var computedStyle = win.getComputedStyle(el); + _$jscoverage['/features.js'].lineData[73]++; + var has3d = visit21_73_1(computedStyle.getPropertyValue(transformProperty) || computedStyle[transformProperty]); + _$jscoverage['/features.js'].lineData[74]++; + documentElement.removeChild(el); + _$jscoverage['/features.js'].lineData[75]++; + isTransform3dSupported = (visit22_75_1(visit23_75_2(has3d !== undefined) && visit24_75_3(visit25_75_4(has3d.length > 0) && visit26_75_5(has3d !== 'none')))); + } catch (e) { + _$jscoverage['/features.js'].lineData[78]++; + isTransform3dSupported = true; +} + } } - _$jscoverage['/features.js'].lineData[70]++; + _$jscoverage['/features.js'].lineData[83]++; + var vendorInfos = {}; + _$jscoverage['/features.js'].lineData[85]++; + function getVendorInfo(name) { + _$jscoverage['/features.js'].functionData[2]++; + _$jscoverage['/features.js'].lineData[86]++; + if (visit27_86_1(vendorInfos[name])) { + _$jscoverage['/features.js'].lineData[87]++; + return vendorInfos[name]; + } + _$jscoverage['/features.js'].lineData[90]++; + if (visit28_90_1(!documentElementStyle || name in documentElementStyle)) { + _$jscoverage['/features.js'].lineData[91]++; + vendorInfos[name] = { + name: name, + prefix: ''}; + } else { + _$jscoverage['/features.js'].lineData[96]++; + var upperFirstName = name.charAt(0).toUpperCase() + name.slice(1), vendorName, i = VENDORS.length; + _$jscoverage['/features.js'].lineData[100]++; + while (i--) { + _$jscoverage['/features.js'].lineData[101]++; + vendorName = VENDORS[i] + upperFirstName; + _$jscoverage['/features.js'].lineData[102]++; + if (visit29_102_1(vendorName in documentElementStyle)) { + _$jscoverage['/features.js'].lineData[103]++; + vendorInfos[name] = { + name: vendorName, + prefix: VENDORS[i]}; + } + } + _$jscoverage['/features.js'].lineData[110]++; + vendorInfos[name] = visit30_110_1(vendorInfos[name] || { + name: name, + prefix: false}); + } + _$jscoverage['/features.js'].lineData[115]++; + return vendorInfos[name]; + } + _$jscoverage['/features.js'].lineData[124]++; S.Features = { isMsPointerSupported: function() { - _$jscoverage['/features.js'].functionData[2]++; - _$jscoverage['/features.js'].lineData[78]++; + _$jscoverage['/features.js'].functionData[3]++; + _$jscoverage['/features.js'].lineData[132]++; return isMsPointerSupported; }, isPointerSupported: function() { - _$jscoverage['/features.js'].functionData[3]++; - _$jscoverage['/features.js'].lineData[87]++; + _$jscoverage['/features.js'].functionData[4]++; + _$jscoverage['/features.js'].lineData[141]++; return isPointerSupported; }, isTouchEventSupported: function() { - _$jscoverage['/features.js'].functionData[4]++; - _$jscoverage['/features.js'].lineData[95]++; + _$jscoverage['/features.js'].functionData[5]++; + _$jscoverage['/features.js'].lineData[149]++; return isTouchEventSupportedState; }, isTouchGestureSupported: function() { - _$jscoverage['/features.js'].functionData[5]++; - _$jscoverage['/features.js'].lineData[99]++; - return visit20_99_1(isTouchEventSupportedState || visit21_99_2(isPointerSupported || isMsPointerSupported)); + _$jscoverage['/features.js'].functionData[6]++; + _$jscoverage['/features.js'].lineData[153]++; + return visit31_153_1(isTouchEventSupportedState || visit32_153_2(isPointerSupported || isMsPointerSupported)); }, isDeviceMotionSupported: function() { - _$jscoverage['/features.js'].functionData[6]++; - _$jscoverage['/features.js'].lineData[107]++; + _$jscoverage['/features.js'].functionData[7]++; + _$jscoverage['/features.js'].lineData[161]++; return !!win.DeviceMotionEvent; }, 'isHashChangeSupported': function() { - _$jscoverage['/features.js'].functionData[7]++; - _$jscoverage['/features.js'].lineData[118]++; - return visit22_118_1(('onhashchange' in win) && (visit23_118_2(!ie || visit24_118_3(ie > 7)))); + _$jscoverage['/features.js'].functionData[8]++; + _$jscoverage['/features.js'].lineData[172]++; + return visit33_172_1(('onhashchange' in win) && (visit34_172_2(!ie || visit35_172_3(ie > 7)))); }, 'isTransitionSupported': function() { - _$jscoverage['/features.js'].functionData[8]++; - _$jscoverage['/features.js'].lineData[126]++; - return visit25_126_1(transitionPrefix !== undefined); + _$jscoverage['/features.js'].functionData[9]++; + _$jscoverage['/features.js'].lineData[180]++; + return visit36_180_1(transitionPrefix !== undefined); }, 'isTransformSupported': function() { - _$jscoverage['/features.js'].functionData[9]++; - _$jscoverage['/features.js'].lineData[134]++; - return visit26_134_1(transformPrefix !== undefined); + _$jscoverage['/features.js'].functionData[10]++; + _$jscoverage['/features.js'].lineData[188]++; + return visit37_188_1(transformPrefix !== undefined); +}, + 'isTransform3dSupported': function() { + _$jscoverage['/features.js'].functionData[11]++; + _$jscoverage['/features.js'].lineData[196]++; + return isTransform3dSupported; }, 'isClassListSupported': function() { - _$jscoverage['/features.js'].functionData[10]++; - _$jscoverage['/features.js'].lineData[142]++; + _$jscoverage['/features.js'].functionData[12]++; + _$jscoverage['/features.js'].lineData[204]++; return isClassListSupportedState; }, 'isQuerySelectorSupported': function() { - _$jscoverage['/features.js'].functionData[11]++; - _$jscoverage['/features.js'].lineData[151]++; - return visit27_151_1(!S.config('dom/selector') && isQuerySelectorSupportedState); + _$jscoverage['/features.js'].functionData[13]++; + _$jscoverage['/features.js'].lineData[213]++; + return visit38_213_1(!S.config('dom/selector') && isQuerySelectorSupportedState); }, 'isIELessThan': function(v) { - _$jscoverage['/features.js'].functionData[12]++; - _$jscoverage['/features.js'].lineData[161]++; - return !!(visit28_161_1(ie && visit29_161_2(ie < v))); + _$jscoverage['/features.js'].functionData[14]++; + _$jscoverage['/features.js'].lineData[223]++; + return !!(visit39_223_1(ie && visit40_223_2(ie < v))); }, 'getTransitionPrefix': function() { - _$jscoverage['/features.js'].functionData[13]++; - _$jscoverage['/features.js'].lineData[169]++; + _$jscoverage['/features.js'].functionData[15]++; + _$jscoverage['/features.js'].lineData[231]++; return transitionPrefix; }, 'getTransformPrefix': function() { - _$jscoverage['/features.js'].functionData[14]++; - _$jscoverage['/features.js'].lineData[177]++; + _$jscoverage['/features.js'].functionData[16]++; + _$jscoverage['/features.js'].lineData[239]++; return transformPrefix; }, 'getTransitionProperty': function() { - _$jscoverage['/features.js'].functionData[15]++; - _$jscoverage['/features.js'].lineData[185]++; + _$jscoverage['/features.js'].functionData[17]++; + _$jscoverage['/features.js'].lineData[247]++; return transitionProperty; }, 'getTransformProperty': function() { - _$jscoverage['/features.js'].functionData[16]++; - _$jscoverage['/features.js'].lineData[193]++; + _$jscoverage['/features.js'].functionData[18]++; + _$jscoverage['/features.js'].lineData[255]++; return transformProperty; +}, + getVendorCssPropPrefix: function(name) { + _$jscoverage['/features.js'].functionData[19]++; + _$jscoverage['/features.js'].lineData[259]++; + return getVendorInfo(name).prefix; +}, + getVendorCssPropName: function(name) { + _$jscoverage['/features.js'].functionData[20]++; + _$jscoverage['/features.js'].lineData[263]++; + return getVendorInfo(name).name; }}; })(KISSY); diff --git a/src/seed/coverage/src/kissy.js b/src/seed/coverage/src/kissy.js index 334bd8a473..5f59130a80 100644 --- a/src/seed/coverage/src/kissy.js +++ b/src/seed/coverage/src/kissy.js @@ -370,132 +370,132 @@ if (! _$jscoverage['/kissy.js'].branchData) { _$jscoverage['/kissy.js'].branchData['282'] = []; _$jscoverage['/kissy.js'].branchData['282'][1] = new BranchData(); } -_$jscoverage['/kissy.js'].branchData['282'][1].init(8934, 9, '\'@DEBUG@\''); -function visit61_282_1(result) { +_$jscoverage['/kissy.js'].branchData['282'][1].init(8943, 9, '\'@DEBUG@\''); +function visit72_282_1(result) { _$jscoverage['/kissy.js'].branchData['282'][1].ranCondition(result); return result; }_$jscoverage['/kissy.js'].branchData['278'][1].init(21, 12, 'pre || EMPTY'); -function visit60_278_1(result) { +function visit71_278_1(result) { _$jscoverage['/kissy.js'].branchData['278'][1].ranCondition(result); return result; }_$jscoverage['/kissy.js'].branchData['266'][1].init(17, 9, '\'@DEBUG@\''); -function visit59_266_1(result) { +function visit70_266_1(result) { _$jscoverage['/kissy.js'].branchData['266'][1].ranCondition(result); return result; }_$jscoverage['/kissy.js'].branchData['246'][1].init(29, 19, 'cat && console[cat]'); -function visit58_246_1(result) { +function visit69_246_1(result) { _$jscoverage['/kissy.js'].branchData['246'][1].ranCondition(result); return result; -}_$jscoverage['/kissy.js'].branchData['245'][3].init(1818, 22, 'console.log && matched'); -function visit57_245_3(result) { +}_$jscoverage['/kissy.js'].branchData['245'][3].init(1827, 22, 'console.log && matched'); +function visit68_245_3(result) { _$jscoverage['/kissy.js'].branchData['245'][3].ranCondition(result); return result; -}_$jscoverage['/kissy.js'].branchData['245'][2].init(1793, 21, 'console !== undefined'); -function visit56_245_2(result) { +}_$jscoverage['/kissy.js'].branchData['245'][2].init(1793, 30, 'typeof console !== \'undefined\''); +function visit67_245_2(result) { _$jscoverage['/kissy.js'].branchData['245'][2].ranCondition(result); return result; -}_$jscoverage['/kissy.js'].branchData['245'][1].init(1793, 47, 'console !== undefined && console.log && matched'); -function visit55_245_1(result) { +}_$jscoverage['/kissy.js'].branchData['245'][1].init(1793, 56, 'typeof console !== \'undefined\' && console.log && matched'); +function visit66_245_1(result) { _$jscoverage['/kissy.js'].branchData['245'][1].ranCondition(result); return result; }_$jscoverage['/kissy.js'].branchData['240'][1].init(1574, 7, 'matched'); -function visit54_240_1(result) { +function visit65_240_1(result) { _$jscoverage['/kissy.js'].branchData['240'][1].ranCondition(result); return result; }_$jscoverage['/kissy.js'].branchData['234'][4].init(309, 17, 'maxLevel >= level'); -function visit53_234_4(result) { +function visit64_234_4(result) { _$jscoverage['/kissy.js'].branchData['234'][4].ranCondition(result); return result; }_$jscoverage['/kissy.js'].branchData['234'][3].init(309, 38, 'maxLevel >= level && logger.match(reg)'); -function visit52_234_3(result) { +function visit63_234_3(result) { _$jscoverage['/kissy.js'].branchData['234'][3].ranCondition(result); return result; }_$jscoverage['/kissy.js'].branchData['234'][2].init(288, 17, 'minLevel <= level'); -function visit51_234_2(result) { +function visit62_234_2(result) { _$jscoverage['/kissy.js'].branchData['234'][2].ranCondition(result); return result; }_$jscoverage['/kissy.js'].branchData['234'][1].init(288, 59, 'minLevel <= level && maxLevel >= level && logger.match(reg)'); -function visit50_234_1(result) { +function visit61_234_1(result) { _$jscoverage['/kissy.js'].branchData['234'][1].ranCondition(result); return result; }_$jscoverage['/kissy.js'].branchData['233'][1].init(210, 44, 'loggerLevel[l.minLevel] || loggerLevel.debug'); -function visit49_233_1(result) { +function visit60_233_1(result) { _$jscoverage['/kissy.js'].branchData['233'][1].ranCondition(result); return result; }_$jscoverage['/kissy.js'].branchData['232'][1].init(125, 44, 'loggerLevel[l.maxLevel] || loggerLevel.error'); -function visit48_232_1(result) { +function visit59_232_1(result) { _$jscoverage['/kissy.js'].branchData['232'][1].ranCondition(result); return result; }_$jscoverage['/kissy.js'].branchData['229'][1].init(74, 15, 'i < list.length'); -function visit47_229_1(result) { +function visit58_229_1(result) { _$jscoverage['/kissy.js'].branchData['229'][1].ranCondition(result); return result; }_$jscoverage['/kissy.js'].branchData['222'][4].init(309, 17, 'maxLevel >= level'); -function visit46_222_4(result) { +function visit57_222_4(result) { _$jscoverage['/kissy.js'].branchData['222'][4].ranCondition(result); return result; }_$jscoverage['/kissy.js'].branchData['222'][3].init(309, 38, 'maxLevel >= level && logger.match(reg)'); -function visit45_222_3(result) { +function visit56_222_3(result) { _$jscoverage['/kissy.js'].branchData['222'][3].ranCondition(result); return result; }_$jscoverage['/kissy.js'].branchData['222'][2].init(288, 17, 'minLevel <= level'); -function visit44_222_2(result) { +function visit55_222_2(result) { _$jscoverage['/kissy.js'].branchData['222'][2].ranCondition(result); return result; }_$jscoverage['/kissy.js'].branchData['222'][1].init(288, 59, 'minLevel <= level && maxLevel >= level && logger.match(reg)'); -function visit43_222_1(result) { +function visit54_222_1(result) { _$jscoverage['/kissy.js'].branchData['222'][1].ranCondition(result); return result; }_$jscoverage['/kissy.js'].branchData['221'][1].init(210, 44, 'loggerLevel[l.minLevel] || loggerLevel.debug'); -function visit42_221_1(result) { +function visit53_221_1(result) { _$jscoverage['/kissy.js'].branchData['221'][1].ranCondition(result); return result; }_$jscoverage['/kissy.js'].branchData['220'][1].init(125, 44, 'loggerLevel[l.maxLevel] || loggerLevel.error'); -function visit41_220_1(result) { +function visit52_220_1(result) { _$jscoverage['/kissy.js'].branchData['220'][1].ranCondition(result); return result; }_$jscoverage['/kissy.js'].branchData['217'][1].init(74, 15, 'i < list.length'); -function visit40_217_1(result) { +function visit51_217_1(result) { _$jscoverage['/kissy.js'].branchData['217'][1].ranCondition(result); return result; }_$jscoverage['/kissy.js'].branchData['214'][1].init(198, 37, 'loggerLevel[cat] || loggerLevel.debug'); -function visit39_214_1(result) { +function visit50_214_1(result) { _$jscoverage['/kissy.js'].branchData['214'][1].ranCondition(result); return result; }_$jscoverage['/kissy.js'].branchData['213'][1].init(154, 14, 'cat || \'debug\''); -function visit38_213_1(result) { +function visit49_213_1(result) { _$jscoverage['/kissy.js'].branchData['213'][1].ranCondition(result); return result; }_$jscoverage['/kissy.js'].branchData['211'][1].init(37, 21, 'S.Config.logger || {}'); -function visit37_211_1(result) { +function visit48_211_1(result) { _$jscoverage['/kissy.js'].branchData['211'][1].ranCondition(result); return result; }_$jscoverage['/kissy.js'].branchData['210'][1].init(54, 6, 'logger'); -function visit36_210_1(result) { +function visit47_210_1(result) { _$jscoverage['/kissy.js'].branchData['210'][1].ranCondition(result); return result; }_$jscoverage['/kissy.js'].branchData['208'][1].init(17, 9, '\'@DEBUG@\''); -function visit35_208_1(result) { +function visit46_208_1(result) { _$jscoverage['/kissy.js'].branchData['208'][1].ranCondition(result); return result; }_$jscoverage['/kissy.js'].branchData['190'][1].init(25, 3, 'cfg'); -function visit34_190_1(result) { +function visit45_190_1(result) { _$jscoverage['/kissy.js'].branchData['190'][1].ranCondition(result); return result; }_$jscoverage['/kissy.js'].branchData['184'][1].init(25, 3, 'cfg'); -function visit33_184_1(result) { +function visit44_184_1(result) { _$jscoverage['/kissy.js'].branchData['184'][1].ranCondition(result); return result; }_$jscoverage['/kissy.js'].branchData['183'][1].init(66, 25, 'configValue === undefined'); -function visit32_183_1(result) { +function visit43_183_1(result) { _$jscoverage['/kissy.js'].branchData['183'][1].ranCondition(result); return result; }_$jscoverage['/kissy.js'].branchData['175'][1].init(64, 2, 'fn'); -function visit31_175_1(result) { +function visit42_175_1(result) { _$jscoverage['/kissy.js'].branchData['175'][1].ranCondition(result); return result; }_$jscoverage['/kissy.js'].branchData['172'][1].init(181, 22, 'S.isObject(configName)'); -function visit30_172_1(result) { +function visit41_172_1(result) { _$jscoverage['/kissy.js'].branchData['172'][1].ranCondition(result); return result; }_$jscoverage['/kissy.js'].lineData[26]++; @@ -544,14 +544,14 @@ var KISSY = (function(undefined) { _$jscoverage['/kissy.js'].lineData[166]++; var cfg, r, self = this, fn, Config = S.Config, configFns = Config.fns; _$jscoverage['/kissy.js'].lineData[172]++; - if (visit30_172_1(S.isObject(configName))) { + if (visit41_172_1(S.isObject(configName))) { _$jscoverage['/kissy.js'].lineData[173]++; S.each(configName, function(configValue, p) { _$jscoverage['/kissy.js'].functionData[5]++; _$jscoverage['/kissy.js'].lineData[174]++; fn = configFns[p]; _$jscoverage['/kissy.js'].lineData[175]++; - if (visit31_175_1(fn)) { + if (visit42_175_1(fn)) { _$jscoverage['/kissy.js'].lineData[176]++; fn.call(self, configValue); } else { @@ -563,9 +563,9 @@ var KISSY = (function(undefined) { _$jscoverage['/kissy.js'].lineData[182]++; cfg = configFns[configName]; _$jscoverage['/kissy.js'].lineData[183]++; - if (visit32_183_1(configValue === undefined)) { + if (visit43_183_1(configValue === undefined)) { _$jscoverage['/kissy.js'].lineData[184]++; - if (visit33_184_1(cfg)) { + if (visit44_184_1(cfg)) { _$jscoverage['/kissy.js'].lineData[185]++; r = cfg.call(self); } else { @@ -574,7 +574,7 @@ var KISSY = (function(undefined) { } } else { _$jscoverage['/kissy.js'].lineData[190]++; - if (visit34_190_1(cfg)) { + if (visit45_190_1(cfg)) { _$jscoverage['/kissy.js'].lineData[191]++; r = cfg.call(self, configValue); } else { @@ -589,33 +589,33 @@ var KISSY = (function(undefined) { log: function(msg, cat, logger) { _$jscoverage['/kissy.js'].functionData[6]++; _$jscoverage['/kissy.js'].lineData[208]++; - if (visit35_208_1('@DEBUG@')) { + if (visit46_208_1('@DEBUG@')) { _$jscoverage['/kissy.js'].lineData[209]++; var matched = 1; _$jscoverage['/kissy.js'].lineData[210]++; - if (visit36_210_1(logger)) { + if (visit47_210_1(logger)) { _$jscoverage['/kissy.js'].lineData[211]++; - var loggerCfg = visit37_211_1(S.Config.logger || {}), list, i, l, level, minLevel, maxLevel, reg; + var loggerCfg = visit48_211_1(S.Config.logger || {}), list, i, l, level, minLevel, maxLevel, reg; _$jscoverage['/kissy.js'].lineData[213]++; - cat = visit38_213_1(cat || 'debug'); + cat = visit49_213_1(cat || 'debug'); _$jscoverage['/kissy.js'].lineData[214]++; - level = visit39_214_1(loggerLevel[cat] || loggerLevel.debug); + level = visit50_214_1(loggerLevel[cat] || loggerLevel.debug); _$jscoverage['/kissy.js'].lineData[215]++; if ((list = loggerCfg.includes)) { _$jscoverage['/kissy.js'].lineData[216]++; matched = 0; _$jscoverage['/kissy.js'].lineData[217]++; - for (i = 0; visit40_217_1(i < list.length); i++) { + for (i = 0; visit51_217_1(i < list.length); i++) { _$jscoverage['/kissy.js'].lineData[218]++; l = list[i]; _$jscoverage['/kissy.js'].lineData[219]++; reg = l.logger; _$jscoverage['/kissy.js'].lineData[220]++; - maxLevel = visit41_220_1(loggerLevel[l.maxLevel] || loggerLevel.error); + maxLevel = visit52_220_1(loggerLevel[l.maxLevel] || loggerLevel.error); _$jscoverage['/kissy.js'].lineData[221]++; - minLevel = visit42_221_1(loggerLevel[l.minLevel] || loggerLevel.debug); + minLevel = visit53_221_1(loggerLevel[l.minLevel] || loggerLevel.debug); _$jscoverage['/kissy.js'].lineData[222]++; - if (visit43_222_1(visit44_222_2(minLevel <= level) && visit45_222_3(visit46_222_4(maxLevel >= level) && logger.match(reg)))) { + if (visit54_222_1(visit55_222_2(minLevel <= level) && visit56_222_3(visit57_222_4(maxLevel >= level) && logger.match(reg)))) { _$jscoverage['/kissy.js'].lineData[223]++; matched = 1; _$jscoverage['/kissy.js'].lineData[224]++; @@ -628,17 +628,17 @@ var KISSY = (function(undefined) { _$jscoverage['/kissy.js'].lineData[228]++; matched = 1; _$jscoverage['/kissy.js'].lineData[229]++; - for (i = 0; visit47_229_1(i < list.length); i++) { + for (i = 0; visit58_229_1(i < list.length); i++) { _$jscoverage['/kissy.js'].lineData[230]++; l = list[i]; _$jscoverage['/kissy.js'].lineData[231]++; reg = l.logger; _$jscoverage['/kissy.js'].lineData[232]++; - maxLevel = visit48_232_1(loggerLevel[l.maxLevel] || loggerLevel.error); + maxLevel = visit59_232_1(loggerLevel[l.maxLevel] || loggerLevel.error); _$jscoverage['/kissy.js'].lineData[233]++; - minLevel = visit49_233_1(loggerLevel[l.minLevel] || loggerLevel.debug); + minLevel = visit60_233_1(loggerLevel[l.minLevel] || loggerLevel.debug); _$jscoverage['/kissy.js'].lineData[234]++; - if (visit50_234_1(visit51_234_2(minLevel <= level) && visit52_234_3(visit53_234_4(maxLevel >= level) && logger.match(reg)))) { + if (visit61_234_1(visit62_234_2(minLevel <= level) && visit63_234_3(visit64_234_4(maxLevel >= level) && logger.match(reg)))) { _$jscoverage['/kissy.js'].lineData[235]++; matched = 0; _$jscoverage['/kissy.js'].lineData[236]++; @@ -648,15 +648,15 @@ var KISSY = (function(undefined) { } } _$jscoverage['/kissy.js'].lineData[240]++; - if (visit54_240_1(matched)) { + if (visit65_240_1(matched)) { _$jscoverage['/kissy.js'].lineData[241]++; msg = logger + ': ' + msg; } } _$jscoverage['/kissy.js'].lineData[245]++; - if (visit55_245_1(visit56_245_2(console !== undefined) && visit57_245_3(console.log && matched))) { + if (visit66_245_1(visit67_245_2(typeof console !== 'undefined') && visit68_245_3(console.log && matched))) { _$jscoverage['/kissy.js'].lineData[246]++; - console[visit58_246_1(cat && console[cat]) ? cat : 'log'](msg); + console[visit69_246_1(cat && console[cat]) ? cat : 'log'](msg); _$jscoverage['/kissy.js'].lineData[247]++; return msg; } @@ -672,7 +672,7 @@ var KISSY = (function(undefined) { error: function(msg) { _$jscoverage['/kissy.js'].functionData[8]++; _$jscoverage['/kissy.js'].lineData[266]++; - if (visit59_266_1('@DEBUG@')) { + if (visit70_266_1('@DEBUG@')) { _$jscoverage['/kissy.js'].lineData[268]++; throw msg instanceof Error ? msg : new Error(msg); } @@ -680,10 +680,10 @@ var KISSY = (function(undefined) { guid: function(pre) { _$jscoverage['/kissy.js'].functionData[9]++; _$jscoverage['/kissy.js'].lineData[278]++; - return (visit60_278_1(pre || EMPTY)) + guid++; + return (visit71_278_1(pre || EMPTY)) + guid++; }}; _$jscoverage['/kissy.js'].lineData[282]++; - if (visit61_282_1('@DEBUG@')) { + if (visit72_282_1('@DEBUG@')) { _$jscoverage['/kissy.js'].lineData[283]++; S.Config.logger = { excludes: [{ diff --git a/src/seed/coverage/src/lang/array.js b/src/seed/coverage/src/lang/array.js index 59b66dc561..e24af21387 100644 --- a/src/seed/coverage/src/lang/array.js +++ b/src/seed/coverage/src/lang/array.js @@ -458,239 +458,239 @@ if (! _$jscoverage['/lang/array.js'].branchData) { _$jscoverage['/lang/array.js'].branchData['332'][1] = new BranchData(); } _$jscoverage['/lang/array.js'].branchData['332'][1].init(812, 5, 'i < l'); -function visit120_332_1(result) { +function visit131_332_1(result) { _$jscoverage['/lang/array.js'].branchData['332'][1].ranCondition(result); return result; }_$jscoverage['/lang/array.js'].branchData['328'][4].init(147, 23, 'lengthType === \'number\''); -function visit119_328_4(result) { +function visit130_328_4(result) { _$jscoverage['/lang/array.js'].branchData['328'][4].ranCondition(result); return result; }_$jscoverage['/lang/array.js'].branchData['328'][3].init(132, 38, '\'item\' in o && lengthType === \'number\''); -function visit118_328_3(result) { +function visit129_328_3(result) { _$jscoverage['/lang/array.js'].branchData['328'][3].ranCondition(result); return result; }_$jscoverage['/lang/array.js'].branchData['328'][2].init(105, 20, 'oType === \'function\''); -function visit117_328_2(result) { +function visit128_328_2(result) { _$jscoverage['/lang/array.js'].branchData['328'][2].ranCondition(result); return result; }_$jscoverage['/lang/array.js'].branchData['328'][1].init(105, 66, 'oType === \'function\' && !(\'item\' in o && lengthType === \'number\')'); -function visit116_328_1(result) { +function visit127_328_1(result) { _$jscoverage['/lang/array.js'].branchData['328'][1].ranCondition(result); return result; }_$jscoverage['/lang/array.js'].branchData['326'][2].init(528, 18, 'oType === \'string\''); -function visit115_326_2(result) { +function visit126_326_2(result) { _$jscoverage['/lang/array.js'].branchData['326'][2].ranCondition(result); return result; }_$jscoverage['/lang/array.js'].branchData['326'][1].init(26, 173, 'oType === \'string\' || (oType === \'function\' && !(\'item\' in o && lengthType === \'number\'))'); -function visit114_326_1(result) { +function visit125_326_1(result) { _$jscoverage['/lang/array.js'].branchData['326'][1].ranCondition(result); return result; }_$jscoverage['/lang/array.js'].branchData['325'][1].init(198, 200, 'o.alert || oType === \'string\' || (oType === \'function\' && !(\'item\' in o && lengthType === \'number\'))'); -function visit113_325_1(result) { +function visit124_325_1(result) { _$jscoverage['/lang/array.js'].branchData['325'][1].ranCondition(result); return result; }_$jscoverage['/lang/array.js'].branchData['320'][2].init(299, 23, 'lengthType !== \'number\''); -function visit112_320_2(result) { +function visit123_320_2(result) { _$jscoverage['/lang/array.js'].branchData['320'][2].ranCondition(result); return result; }_$jscoverage['/lang/array.js'].branchData['320'][1].init(299, 399, 'lengthType !== \'number\' || o.alert || oType === \'string\' || (oType === \'function\' && !(\'item\' in o && lengthType === \'number\'))'); -function visit111_320_1(result) { +function visit122_320_1(result) { _$jscoverage['/lang/array.js'].branchData['320'][1].ranCondition(result); return result; }_$jscoverage['/lang/array.js'].branchData['314'][1].init(87, 12, 'S.isArray(o)'); -function visit110_314_1(result) { +function visit121_314_1(result) { _$jscoverage['/lang/array.js'].branchData['314'][1].ranCondition(result); return result; }_$jscoverage['/lang/array.js'].branchData['311'][1].init(17, 9, 'o == null'); -function visit109_311_1(result) { +function visit120_311_1(result) { _$jscoverage['/lang/array.js'].branchData['311'][1].ranCondition(result); return result; }_$jscoverage['/lang/array.js'].branchData['298'][1].init(25, 44, 'i in arr && fn.call(context, arr[i], i, arr)'); -function visit108_298_1(result) { +function visit119_298_1(result) { _$jscoverage['/lang/array.js'].branchData['298'][1].ranCondition(result); return result; }_$jscoverage['/lang/array.js'].branchData['297'][1].init(83, 7, 'i < len'); -function visit107_297_1(result) { +function visit118_297_1(result) { _$jscoverage['/lang/array.js'].branchData['297'][1].ranCondition(result); return result; }_$jscoverage['/lang/array.js'].branchData['296'][2].init(27, 17, 'arr && arr.length'); -function visit106_296_2(result) { +function visit117_296_2(result) { _$jscoverage['/lang/array.js'].branchData['296'][2].ranCondition(result); return result; }_$jscoverage['/lang/array.js'].branchData['296'][1].init(27, 22, 'arr && arr.length || 0'); -function visit105_296_1(result) { +function visit116_296_1(result) { _$jscoverage['/lang/array.js'].branchData['296'][1].ranCondition(result); return result; }_$jscoverage['/lang/array.js'].branchData['293'][1].init(43, 15, 'context || this'); -function visit104_293_1(result) { +function visit115_293_1(result) { _$jscoverage['/lang/array.js'].branchData['293'][1].ranCondition(result); return result; }_$jscoverage['/lang/array.js'].branchData['275'][1].init(25, 45, 'i in arr && !fn.call(context, arr[i], i, arr)'); -function visit103_275_1(result) { +function visit114_275_1(result) { _$jscoverage['/lang/array.js'].branchData['275'][1].ranCondition(result); return result; }_$jscoverage['/lang/array.js'].branchData['274'][1].init(83, 7, 'i < len'); -function visit102_274_1(result) { +function visit113_274_1(result) { _$jscoverage['/lang/array.js'].branchData['274'][1].ranCondition(result); return result; }_$jscoverage['/lang/array.js'].branchData['273'][2].init(27, 17, 'arr && arr.length'); -function visit101_273_2(result) { +function visit112_273_2(result) { _$jscoverage['/lang/array.js'].branchData['273'][2].ranCondition(result); return result; }_$jscoverage['/lang/array.js'].branchData['273'][1].init(27, 22, 'arr && arr.length || 0'); -function visit100_273_1(result) { +function visit111_273_1(result) { _$jscoverage['/lang/array.js'].branchData['273'][1].ranCondition(result); return result; }_$jscoverage['/lang/array.js'].branchData['270'][1].init(44, 15, 'context || this'); -function visit99_270_1(result) { +function visit110_270_1(result) { _$jscoverage['/lang/array.js'].branchData['270'][1].ranCondition(result); return result; }_$jscoverage['/lang/array.js'].branchData['250'][1].init(21, 8, 'k in arr'); -function visit98_250_1(result) { +function visit109_250_1(result) { _$jscoverage['/lang/array.js'].branchData['250'][1].ranCondition(result); return result; }_$jscoverage['/lang/array.js'].branchData['249'][1].init(990, 7, 'k < len'); -function visit97_249_1(result) { +function visit108_249_1(result) { _$jscoverage['/lang/array.js'].branchData['249'][1].ranCondition(result); return result; }_$jscoverage['/lang/array.js'].branchData['242'][1].init(270, 8, 'k >= len'); -function visit96_242_1(result) { +function visit107_242_1(result) { _$jscoverage['/lang/array.js'].branchData['242'][1].ranCondition(result); return result; }_$jscoverage['/lang/array.js'].branchData['235'][1].init(25, 8, 'k in arr'); -function visit95_235_1(result) { +function visit106_235_1(result) { _$jscoverage['/lang/array.js'].branchData['235'][1].ranCondition(result); return result; }_$jscoverage['/lang/array.js'].branchData['230'][1].init(435, 21, 'arguments.length >= 3'); -function visit94_230_1(result) { +function visit105_230_1(result) { _$jscoverage['/lang/array.js'].branchData['230'][1].ranCondition(result); return result; }_$jscoverage['/lang/array.js'].branchData['224'][3].init(268, 22, 'arguments.length === 2'); -function visit93_224_3(result) { +function visit104_224_3(result) { _$jscoverage['/lang/array.js'].branchData['224'][3].ranCondition(result); return result; }_$jscoverage['/lang/array.js'].branchData['224'][2].init(255, 9, 'len === 0'); -function visit92_224_2(result) { +function visit103_224_2(result) { _$jscoverage['/lang/array.js'].branchData['224'][2].ranCondition(result); return result; }_$jscoverage['/lang/array.js'].branchData['224'][1].init(255, 35, 'len === 0 && arguments.length === 2'); -function visit91_224_1(result) { +function visit102_224_1(result) { _$jscoverage['/lang/array.js'].branchData['224'][1].ranCondition(result); return result; }_$jscoverage['/lang/array.js'].branchData['219'][1].init(51, 30, 'typeof callback !== \'function\''); -function visit90_219_1(result) { +function visit101_219_1(result) { _$jscoverage['/lang/array.js'].branchData['219'][1].ranCondition(result); return result; }_$jscoverage['/lang/array.js'].branchData['198'][1].init(42, 15, 'context || this'); -function visit89_198_1(result) { +function visit100_198_1(result) { _$jscoverage['/lang/array.js'].branchData['198'][1].ranCondition(result); return result; }_$jscoverage['/lang/array.js'].branchData['195'][1].init(104, 106, 'el || i in arr'); -function visit88_195_1(result) { +function visit99_195_1(result) { _$jscoverage['/lang/array.js'].branchData['195'][1].ranCondition(result); return result; }_$jscoverage['/lang/array.js'].branchData['194'][1].init(30, 23, 'typeof arr === \'string\''); -function visit87_194_1(result) { +function visit98_194_1(result) { _$jscoverage['/lang/array.js'].branchData['194'][1].ranCondition(result); return result; }_$jscoverage['/lang/array.js'].branchData['193'][1].init(113, 7, 'i < len'); -function visit86_193_1(result) { +function visit97_193_1(result) { _$jscoverage['/lang/array.js'].branchData['193'][1].ranCondition(result); return result; }_$jscoverage['/lang/array.js'].branchData['188'][1].init(42, 15, 'context || this'); -function visit85_188_1(result) { +function visit96_188_1(result) { _$jscoverage['/lang/array.js'].branchData['188'][1].ranCondition(result); return result; }_$jscoverage['/lang/array.js'].branchData['166'][2].init(33, 15, 'context || this'); -function visit84_166_2(result) { +function visit95_166_2(result) { _$jscoverage['/lang/array.js'].branchData['166'][2].ranCondition(result); return result; }_$jscoverage['/lang/array.js'].branchData['166'][1].init(25, 38, 'fn.call(context || this, item, i, arr)'); -function visit83_166_1(result) { +function visit94_166_1(result) { _$jscoverage['/lang/array.js'].branchData['166'][1].ranCondition(result); return result; }_$jscoverage['/lang/array.js'].branchData['161'][1].init(45, 15, 'context || this'); -function visit82_161_1(result) { +function visit93_161_1(result) { _$jscoverage['/lang/array.js'].branchData['161'][1].ranCondition(result); return result; }_$jscoverage['/lang/array.js'].branchData['144'][1].init(20, 25, 'S.indexOf(item, arr) > -1'); -function visit81_144_1(result) { +function visit92_144_1(result) { _$jscoverage['/lang/array.js'].branchData['144'][1].ranCondition(result); return result; }_$jscoverage['/lang/array.js'].branchData['130'][1].init(402, 8, 'override'); -function visit80_130_1(result) { +function visit91_130_1(result) { _$jscoverage['/lang/array.js'].branchData['130'][1].ranCondition(result); return result; }_$jscoverage['/lang/array.js'].branchData['124'][1].init(54, 33, '(n = S.lastIndexOf(item, b)) !== i'); -function visit79_124_1(result) { +function visit90_124_1(result) { _$jscoverage['/lang/array.js'].branchData['124'][1].ranCondition(result); return result; }_$jscoverage['/lang/array.js'].branchData['122'][1].init(187, 12, 'i < b.length'); -function visit78_122_1(result) { +function visit89_122_1(result) { _$jscoverage['/lang/array.js'].branchData['122'][1].ranCondition(result); return result; }_$jscoverage['/lang/array.js'].branchData['115'][1].init(48, 8, 'override'); -function visit77_115_1(result) { +function visit88_115_1(result) { _$jscoverage['/lang/array.js'].branchData['115'][1].ranCondition(result); return result; }_$jscoverage['/lang/array.js'].branchData['98'][1].init(25, 15, 'arr[i] === item'); -function visit76_98_1(result) { +function visit87_98_1(result) { _$jscoverage['/lang/array.js'].branchData['98'][1].ranCondition(result); return result; }_$jscoverage['/lang/array.js'].branchData['97'][1].init(46, 6, 'i >= 0'); -function visit75_97_1(result) { +function visit86_97_1(result) { _$jscoverage['/lang/array.js'].branchData['97'][1].ranCondition(result); return result; }_$jscoverage['/lang/array.js'].branchData['75'][1].init(25, 15, 'arr[i] === item'); -function visit74_75_1(result) { +function visit85_75_1(result) { _$jscoverage['/lang/array.js'].branchData['75'][1].ranCondition(result); return result; }_$jscoverage['/lang/array.js'].branchData['74'][1].init(51, 7, 'i < len'); -function visit73_74_1(result) { +function visit84_74_1(result) { _$jscoverage['/lang/array.js'].branchData['74'][1].ranCondition(result); return result; }_$jscoverage['/lang/array.js'].branchData['52'][1].init(29, 42, 'fn.call(context, val, i, object) === FALSE'); -function visit72_52_1(result) { +function visit83_52_1(result) { _$jscoverage['/lang/array.js'].branchData['52'][1].ranCondition(result); return result; }_$jscoverage['/lang/array.js'].branchData['51'][1].init(46, 10, 'i < length'); -function visit71_51_1(result) { +function visit82_51_1(result) { _$jscoverage['/lang/array.js'].branchData['51'][1].ranCondition(result); return result; }_$jscoverage['/lang/array.js'].branchData['45'][1].init(122, 52, 'fn.call(context, object[key], key, object) === FALSE'); -function visit70_45_1(result) { +function visit81_45_1(result) { _$jscoverage['/lang/array.js'].branchData['45'][1].ranCondition(result); return result; }_$jscoverage['/lang/array.js'].branchData['42'][1].init(71, 15, 'i < keys.length'); -function visit69_42_1(result) { +function visit80_42_1(result) { _$jscoverage['/lang/array.js'].branchData['42'][1].ranCondition(result); return result; }_$jscoverage['/lang/array.js'].branchData['40'][1].init(379, 5, 'isObj'); -function visit68_40_1(result) { +function visit79_40_1(result) { _$jscoverage['/lang/array.js'].branchData['40'][1].ranCondition(result); return result; }_$jscoverage['/lang/array.js'].branchData['38'][1].init(341, 15, 'context || null'); -function visit67_38_1(result) { +function visit78_38_1(result) { _$jscoverage['/lang/array.js'].branchData['38'][1].ranCondition(result); return result; }_$jscoverage['/lang/array.js'].branchData['36'][3].init(265, 29, 'S.type(object) === \'function\''); -function visit66_36_3(result) { +function visit77_36_3(result) { _$jscoverage['/lang/array.js'].branchData['36'][3].ranCondition(result); return result; }_$jscoverage['/lang/array.js'].branchData['36'][2].init(241, 20, 'length === undefined'); -function visit65_36_2(result) { +function visit76_36_2(result) { _$jscoverage['/lang/array.js'].branchData['36'][2].ranCondition(result); return result; }_$jscoverage['/lang/array.js'].branchData['36'][1].init(241, 53, 'length === undefined || S.type(object) === \'function\''); -function visit64_36_1(result) { +function visit75_36_1(result) { _$jscoverage['/lang/array.js'].branchData['36'][1].ranCondition(result); return result; }_$jscoverage['/lang/array.js'].branchData['34'][1].init(115, 23, 'object && object.length'); -function visit63_34_1(result) { +function visit74_34_1(result) { _$jscoverage['/lang/array.js'].branchData['34'][1].ranCondition(result); return result; }_$jscoverage['/lang/array.js'].branchData['29'][1].init(17, 6, 'object'); -function visit62_29_1(result) { +function visit73_29_1(result) { _$jscoverage['/lang/array.js'].branchData['29'][1].ranCondition(result); return result; }_$jscoverage['/lang/array.js'].lineData[7]++; @@ -703,30 +703,30 @@ function visit62_29_1(result) { each: function(object, fn, context) { _$jscoverage['/lang/array.js'].functionData[1]++; _$jscoverage['/lang/array.js'].lineData[29]++; - if (visit62_29_1(object)) { + if (visit73_29_1(object)) { _$jscoverage['/lang/array.js'].lineData[30]++; - var key, val, keys, i = 0, length = visit63_34_1(object && object.length), isObj = visit64_36_1(visit65_36_2(length === undefined) || visit66_36_3(S.type(object) === 'function')); + var key, val, keys, i = 0, length = visit74_34_1(object && object.length), isObj = visit75_36_1(visit76_36_2(length === undefined) || visit77_36_3(S.type(object) === 'function')); _$jscoverage['/lang/array.js'].lineData[38]++; - context = visit67_38_1(context || null); + context = visit78_38_1(context || null); _$jscoverage['/lang/array.js'].lineData[40]++; - if (visit68_40_1(isObj)) { + if (visit79_40_1(isObj)) { _$jscoverage['/lang/array.js'].lineData[41]++; keys = S.keys(object); _$jscoverage['/lang/array.js'].lineData[42]++; - for (; visit69_42_1(i < keys.length); i++) { + for (; visit80_42_1(i < keys.length); i++) { _$jscoverage['/lang/array.js'].lineData[43]++; key = keys[i]; _$jscoverage['/lang/array.js'].lineData[45]++; - if (visit70_45_1(fn.call(context, object[key], key, object) === FALSE)) { + if (visit81_45_1(fn.call(context, object[key], key, object) === FALSE)) { _$jscoverage['/lang/array.js'].lineData[46]++; break; } } } else { _$jscoverage['/lang/array.js'].lineData[50]++; - for (val = object[0]; visit71_51_1(i < length); val = object[++i]) { + for (val = object[0]; visit82_51_1(i < length); val = object[++i]) { _$jscoverage['/lang/array.js'].lineData[52]++; - if (visit72_52_1(fn.call(context, val, i, object) === FALSE)) { + if (visit83_52_1(fn.call(context, val, i, object) === FALSE)) { _$jscoverage['/lang/array.js'].lineData[53]++; break; } @@ -743,9 +743,9 @@ function visit62_29_1(result) { } : function(item, arr) { _$jscoverage['/lang/array.js'].functionData[3]++; _$jscoverage['/lang/array.js'].lineData[74]++; - for (var i = 0, len = arr.length; visit73_74_1(i < len); ++i) { + for (var i = 0, len = arr.length; visit84_74_1(i < len); ++i) { _$jscoverage['/lang/array.js'].lineData[75]++; - if (visit74_75_1(arr[i] === item)) { + if (visit85_75_1(arr[i] === item)) { _$jscoverage['/lang/array.js'].lineData[76]++; return i; } @@ -760,9 +760,9 @@ function visit62_29_1(result) { } : function(item, arr) { _$jscoverage['/lang/array.js'].functionData[5]++; _$jscoverage['/lang/array.js'].lineData[97]++; - for (var i = arr.length - 1; visit75_97_1(i >= 0); i--) { + for (var i = arr.length - 1; visit86_97_1(i >= 0); i--) { _$jscoverage['/lang/array.js'].lineData[98]++; - if (visit76_98_1(arr[i] === item)) { + if (visit87_98_1(arr[i] === item)) { _$jscoverage['/lang/array.js'].lineData[99]++; break; } @@ -775,18 +775,18 @@ function visit62_29_1(result) { _$jscoverage['/lang/array.js'].lineData[114]++; var b = a.slice(); _$jscoverage['/lang/array.js'].lineData[115]++; - if (visit77_115_1(override)) { + if (visit88_115_1(override)) { _$jscoverage['/lang/array.js'].lineData[116]++; b.reverse(); } _$jscoverage['/lang/array.js'].lineData[118]++; var i = 0, n, item; _$jscoverage['/lang/array.js'].lineData[122]++; - while (visit78_122_1(i < b.length)) { + while (visit89_122_1(i < b.length)) { _$jscoverage['/lang/array.js'].lineData[123]++; item = b[i]; _$jscoverage['/lang/array.js'].lineData[124]++; - while (visit79_124_1((n = S.lastIndexOf(item, b)) !== i)) { + while (visit90_124_1((n = S.lastIndexOf(item, b)) !== i)) { _$jscoverage['/lang/array.js'].lineData[125]++; b.splice(n, 1); } @@ -794,7 +794,7 @@ function visit62_29_1(result) { i += 1; } _$jscoverage['/lang/array.js'].lineData[130]++; - if (visit80_130_1(override)) { + if (visit91_130_1(override)) { _$jscoverage['/lang/array.js'].lineData[131]++; b.reverse(); } @@ -804,12 +804,12 @@ function visit62_29_1(result) { inArray: function(item, arr) { _$jscoverage['/lang/array.js'].functionData[7]++; _$jscoverage['/lang/array.js'].lineData[144]++; - return visit81_144_1(S.indexOf(item, arr) > -1); + return visit92_144_1(S.indexOf(item, arr) > -1); }, filter: filter ? function(arr, fn, context) { _$jscoverage['/lang/array.js'].functionData[8]++; _$jscoverage['/lang/array.js'].lineData[161]++; - return filter.call(arr, fn, visit82_161_1(context || this)); + return filter.call(arr, fn, visit93_161_1(context || this)); } : function(arr, fn, context) { _$jscoverage['/lang/array.js'].functionData[9]++; _$jscoverage['/lang/array.js'].lineData[164]++; @@ -818,7 +818,7 @@ function visit62_29_1(result) { S.each(arr, function(item, i, arr) { _$jscoverage['/lang/array.js'].functionData[10]++; _$jscoverage['/lang/array.js'].lineData[166]++; - if (visit83_166_1(fn.call(visit84_166_2(context || this), item, i, arr))) { + if (visit94_166_1(fn.call(visit95_166_2(context || this), item, i, arr))) { _$jscoverage['/lang/array.js'].lineData[167]++; ret.push(item); } @@ -829,19 +829,19 @@ function visit62_29_1(result) { map: map ? function(arr, fn, context) { _$jscoverage['/lang/array.js'].functionData[11]++; _$jscoverage['/lang/array.js'].lineData[188]++; - return map.call(arr, fn, visit85_188_1(context || this)); + return map.call(arr, fn, visit96_188_1(context || this)); } : function(arr, fn, context) { _$jscoverage['/lang/array.js'].functionData[12]++; _$jscoverage['/lang/array.js'].lineData[191]++; var len = arr.length, res = new Array(len); _$jscoverage['/lang/array.js'].lineData[193]++; - for (var i = 0; visit86_193_1(i < len); i++) { + for (var i = 0; visit97_193_1(i < len); i++) { _$jscoverage['/lang/array.js'].lineData[194]++; - var el = visit87_194_1(typeof arr === 'string') ? arr.charAt(i) : arr[i]; + var el = visit98_194_1(typeof arr === 'string') ? arr.charAt(i) : arr[i]; _$jscoverage['/lang/array.js'].lineData[195]++; - if (visit88_195_1(el || i in arr)) { + if (visit99_195_1(el || i in arr)) { _$jscoverage['/lang/array.js'].lineData[198]++; - res[i] = fn.call(visit89_198_1(context || this), el, i, arr); + res[i] = fn.call(visit100_198_1(context || this), el, i, arr); } } _$jscoverage['/lang/array.js'].lineData[201]++; @@ -852,12 +852,12 @@ function visit62_29_1(result) { _$jscoverage['/lang/array.js'].lineData[218]++; var len = arr.length; _$jscoverage['/lang/array.js'].lineData[219]++; - if (visit90_219_1(typeof callback !== 'function')) { + if (visit101_219_1(typeof callback !== 'function')) { _$jscoverage['/lang/array.js'].lineData[220]++; throw new TypeError('callback is not function!'); } _$jscoverage['/lang/array.js'].lineData[224]++; - if (visit91_224_1(visit92_224_2(len === 0) && visit93_224_3(arguments.length === 2))) { + if (visit102_224_1(visit103_224_2(len === 0) && visit104_224_3(arguments.length === 2))) { _$jscoverage['/lang/array.js'].lineData[225]++; throw new TypeError('arguments invalid'); } @@ -866,14 +866,14 @@ function visit62_29_1(result) { _$jscoverage['/lang/array.js'].lineData[229]++; var accumulator; _$jscoverage['/lang/array.js'].lineData[230]++; - if (visit94_230_1(arguments.length >= 3)) { + if (visit105_230_1(arguments.length >= 3)) { _$jscoverage['/lang/array.js'].lineData[231]++; accumulator = initialValue; } else { _$jscoverage['/lang/array.js'].lineData[234]++; do { _$jscoverage['/lang/array.js'].lineData[235]++; - if (visit95_235_1(k in arr)) { + if (visit106_235_1(k in arr)) { _$jscoverage['/lang/array.js'].lineData[236]++; accumulator = arr[k++]; _$jscoverage['/lang/array.js'].lineData[237]++; @@ -882,16 +882,16 @@ function visit62_29_1(result) { _$jscoverage['/lang/array.js'].lineData[241]++; k += 1; _$jscoverage['/lang/array.js'].lineData[242]++; - if (visit96_242_1(k >= len)) { + if (visit107_242_1(k >= len)) { _$jscoverage['/lang/array.js'].lineData[243]++; throw new TypeError(); } } while (TRUE); } _$jscoverage['/lang/array.js'].lineData[249]++; - while (visit97_249_1(k < len)) { + while (visit108_249_1(k < len)) { _$jscoverage['/lang/array.js'].lineData[250]++; - if (visit98_250_1(k in arr)) { + if (visit109_250_1(k in arr)) { _$jscoverage['/lang/array.js'].lineData[251]++; accumulator = callback.call(undefined, accumulator, arr[k], k, arr); } @@ -904,15 +904,15 @@ function visit62_29_1(result) { every: every ? function(arr, fn, context) { _$jscoverage['/lang/array.js'].functionData[14]++; _$jscoverage['/lang/array.js'].lineData[270]++; - return every.call(arr, fn, visit99_270_1(context || this)); + return every.call(arr, fn, visit110_270_1(context || this)); } : function(arr, fn, context) { _$jscoverage['/lang/array.js'].functionData[15]++; _$jscoverage['/lang/array.js'].lineData[273]++; - var len = visit100_273_1(visit101_273_2(arr && arr.length) || 0); + var len = visit111_273_1(visit112_273_2(arr && arr.length) || 0); _$jscoverage['/lang/array.js'].lineData[274]++; - for (var i = 0; visit102_274_1(i < len); i++) { + for (var i = 0; visit113_274_1(i < len); i++) { _$jscoverage['/lang/array.js'].lineData[275]++; - if (visit103_275_1(i in arr && !fn.call(context, arr[i], i, arr))) { + if (visit114_275_1(i in arr && !fn.call(context, arr[i], i, arr))) { _$jscoverage['/lang/array.js'].lineData[276]++; return FALSE; } @@ -923,15 +923,15 @@ function visit62_29_1(result) { some: some ? function(arr, fn, context) { _$jscoverage['/lang/array.js'].functionData[16]++; _$jscoverage['/lang/array.js'].lineData[293]++; - return some.call(arr, fn, visit104_293_1(context || this)); + return some.call(arr, fn, visit115_293_1(context || this)); } : function(arr, fn, context) { _$jscoverage['/lang/array.js'].functionData[17]++; _$jscoverage['/lang/array.js'].lineData[296]++; - var len = visit105_296_1(visit106_296_2(arr && arr.length) || 0); + var len = visit116_296_1(visit117_296_2(arr && arr.length) || 0); _$jscoverage['/lang/array.js'].lineData[297]++; - for (var i = 0; visit107_297_1(i < len); i++) { + for (var i = 0; visit118_297_1(i < len); i++) { _$jscoverage['/lang/array.js'].lineData[298]++; - if (visit108_298_1(i in arr && fn.call(context, arr[i], i, arr))) { + if (visit119_298_1(i in arr && fn.call(context, arr[i], i, arr))) { _$jscoverage['/lang/array.js'].lineData[299]++; return TRUE; } @@ -942,26 +942,26 @@ function visit62_29_1(result) { makeArray: function(o) { _$jscoverage['/lang/array.js'].functionData[18]++; _$jscoverage['/lang/array.js'].lineData[311]++; - if (visit109_311_1(o == null)) { + if (visit120_311_1(o == null)) { _$jscoverage['/lang/array.js'].lineData[312]++; return []; } _$jscoverage['/lang/array.js'].lineData[314]++; - if (visit110_314_1(S.isArray(o))) { + if (visit121_314_1(S.isArray(o))) { _$jscoverage['/lang/array.js'].lineData[315]++; return o; } _$jscoverage['/lang/array.js'].lineData[317]++; var lengthType = typeof o.length, oType = typeof o; _$jscoverage['/lang/array.js'].lineData[320]++; - if (visit111_320_1(visit112_320_2(lengthType !== 'number') || visit113_325_1(o.alert || visit114_326_1(visit115_326_2(oType === 'string') || (visit116_328_1(visit117_328_2(oType === 'function') && !(visit118_328_3('item' in o && visit119_328_4(lengthType === 'number'))))))))) { + if (visit122_320_1(visit123_320_2(lengthType !== 'number') || visit124_325_1(o.alert || visit125_326_1(visit126_326_2(oType === 'string') || (visit127_328_1(visit128_328_2(oType === 'function') && !(visit129_328_3('item' in o && visit130_328_4(lengthType === 'number'))))))))) { _$jscoverage['/lang/array.js'].lineData[329]++; return [o]; } _$jscoverage['/lang/array.js'].lineData[331]++; var ret = []; _$jscoverage['/lang/array.js'].lineData[332]++; - for (var i = 0, l = o.length; visit120_332_1(i < l); i++) { + for (var i = 0, l = o.length; visit131_332_1(i < l); i++) { _$jscoverage['/lang/array.js'].lineData[333]++; ret[i] = o[i]; } diff --git a/src/seed/coverage/src/lang/escape.js b/src/seed/coverage/src/lang/escape.js index ef5e70e0b1..4a6b040a42 100644 --- a/src/seed/coverage/src/lang/escape.js +++ b/src/seed/coverage/src/lang/escape.js @@ -388,107 +388,107 @@ if (! _$jscoverage['/lang/escape.js'].branchData) { _$jscoverage['/lang/escape.js'].branchData['256'][1] = new BranchData(); } _$jscoverage['/lang/escape.js'].branchData['256'][1].init(25, 19, 'S.isArray(ret[key])'); -function visit146_256_1(result) { +function visit157_256_1(result) { _$jscoverage['/lang/escape.js'].branchData['256'][1].ranCondition(result); return result; }_$jscoverage['/lang/escape.js'].branchData['255'][1].init(779, 10, 'key in ret'); -function visit145_255_1(result) { +function visit156_255_1(result) { _$jscoverage['/lang/escape.js'].branchData['255'][1].ranCondition(result); return result; }_$jscoverage['/lang/escape.js'].branchData['251'][1].init(438, 21, 'S.endsWith(key, \'[]\')'); -function visit144_251_1(result) { +function visit155_251_1(result) { _$jscoverage['/lang/escape.js'].branchData['251'][1].ranCondition(result); return result; }_$jscoverage['/lang/escape.js'].branchData['238'][1].init(69, 14, 'eqIndex === -1'); -function visit143_238_1(result) { +function visit154_238_1(result) { _$jscoverage['/lang/escape.js'].branchData['238'][1].ranCondition(result); return result; }_$jscoverage['/lang/escape.js'].branchData['236'][1].init(384, 7, 'i < len'); -function visit142_236_1(result) { +function visit153_236_1(result) { _$jscoverage['/lang/escape.js'].branchData['236'][1].ranCondition(result); return result; }_$jscoverage['/lang/escape.js'].branchData['228'][1].init(156, 8, 'eq || EQ'); -function visit141_228_1(result) { +function visit152_228_1(result) { _$jscoverage['/lang/escape.js'].branchData['228'][1].ranCondition(result); return result; }_$jscoverage['/lang/escape.js'].branchData['227'][1].init(127, 10, 'sep || SEP'); -function visit140_227_1(result) { +function visit151_227_1(result) { _$jscoverage['/lang/escape.js'].branchData['227'][1].ranCondition(result); return result; }_$jscoverage['/lang/escape.js'].branchData['224'][2].init(17, 23, 'typeof str !== \'string\''); -function visit139_224_2(result) { +function visit150_224_2(result) { _$jscoverage['/lang/escape.js'].branchData['224'][2].ranCondition(result); return result; }_$jscoverage['/lang/escape.js'].branchData['224'][1].init(17, 47, 'typeof str !== \'string\' || !(str = S.trim(str))'); -function visit138_224_1(result) { +function visit149_224_1(result) { _$jscoverage['/lang/escape.js'].branchData['224'][1].ranCondition(result); return result; }_$jscoverage['/lang/escape.js'].branchData['194'][1].init(117, 15, 'v !== undefined'); -function visit137_194_1(result) { +function visit148_194_1(result) { _$jscoverage['/lang/escape.js'].branchData['194'][1].ranCondition(result); return result; }_$jscoverage['/lang/escape.js'].branchData['192'][1].init(65, 20, 'isValidParamValue(v)'); -function visit136_192_1(result) { +function visit147_192_1(result) { _$jscoverage['/lang/escape.js'].branchData['192'][1].ranCondition(result); return result; }_$jscoverage['/lang/escape.js'].branchData['190'][1].init(51, 7, 'i < len'); -function visit135_190_1(result) { +function visit146_190_1(result) { _$jscoverage['/lang/escape.js'].branchData['190'][1].ranCondition(result); return result; }_$jscoverage['/lang/escape.js'].branchData['189'][1].init(444, 28, 'S.isArray(val) && val.length'); -function visit134_189_1(result) { +function visit145_189_1(result) { _$jscoverage['/lang/escape.js'].branchData['189'][1].ranCondition(result); return result; }_$jscoverage['/lang/escape.js'].branchData['183'][1].init(60, 17, 'val !== undefined'); -function visit133_183_1(result) { +function visit144_183_1(result) { _$jscoverage['/lang/escape.js'].branchData['183'][1].ranCondition(result); return result; }_$jscoverage['/lang/escape.js'].branchData['181'][1].init(136, 22, 'isValidParamValue(val)'); -function visit132_181_1(result) { +function visit143_181_1(result) { _$jscoverage['/lang/escape.js'].branchData['181'][1].ranCondition(result); return result; }_$jscoverage['/lang/escape.js'].branchData['170'][1].init(74, 28, 'serializeArray === undefined'); -function visit131_170_1(result) { +function visit142_170_1(result) { _$jscoverage['/lang/escape.js'].branchData['170'][1].ranCondition(result); return result; }_$jscoverage['/lang/escape.js'].branchData['169'][1].init(48, 8, 'eq || EQ'); -function visit130_169_1(result) { +function visit141_169_1(result) { _$jscoverage['/lang/escape.js'].branchData['169'][1].ranCondition(result); return result; }_$jscoverage['/lang/escape.js'].branchData['168'][1].init(19, 10, 'sep || SEP'); -function visit129_168_1(result) { +function visit140_168_1(result) { _$jscoverage['/lang/escape.js'].branchData['168'][1].ranCondition(result); return result; }_$jscoverage['/lang/escape.js'].branchData['146'][1].init(24, 42, 'htmlEntities[m] || String.fromCharCode(+n)'); -function visit128_146_1(result) { +function visit139_146_1(result) { _$jscoverage['/lang/escape.js'].branchData['146'][1].ranCondition(result); return result; }_$jscoverage['/lang/escape.js'].branchData['62'][1].init(13, 11, 'unEscapeReg'); -function visit127_62_1(result) { +function visit138_62_1(result) { _$jscoverage['/lang/escape.js'].branchData['62'][1].ranCondition(result); return result; }_$jscoverage['/lang/escape.js'].branchData['49'][1].init(13, 9, 'escapeReg'); -function visit126_49_1(result) { +function visit137_49_1(result) { _$jscoverage['/lang/escape.js'].branchData['49'][1].ranCondition(result); return result; }_$jscoverage['/lang/escape.js'].branchData['45'][5].init(166, 16, 't !== \'function\''); -function visit125_45_5(result) { +function visit136_45_5(result) { _$jscoverage['/lang/escape.js'].branchData['45'][5].ranCondition(result); return result; }_$jscoverage['/lang/escape.js'].branchData['45'][4].init(148, 14, 't !== \'object\''); -function visit124_45_4(result) { +function visit135_45_4(result) { _$jscoverage['/lang/escape.js'].branchData['45'][4].ranCondition(result); return result; }_$jscoverage['/lang/escape.js'].branchData['45'][3].init(148, 34, 't !== \'object\' && t !== \'function\''); -function visit123_45_3(result) { +function visit134_45_3(result) { _$jscoverage['/lang/escape.js'].branchData['45'][3].ranCondition(result); return result; }_$jscoverage['/lang/escape.js'].branchData['45'][2].init(132, 11, 'val == null'); -function visit122_45_2(result) { +function visit133_45_2(result) { _$jscoverage['/lang/escape.js'].branchData['45'][2].ranCondition(result); return result; }_$jscoverage['/lang/escape.js'].branchData['45'][1].init(132, 51, 'val == null || (t !== \'object\' && t !== \'function\')'); -function visit121_45_1(result) { +function visit132_45_1(result) { _$jscoverage['/lang/escape.js'].branchData['45'][1].ranCondition(result); return result; }_$jscoverage['/lang/escape.js'].lineData[7]++; @@ -520,13 +520,13 @@ function visit121_45_1(result) { _$jscoverage['/lang/escape.js'].lineData[43]++; var t = typeof val; _$jscoverage['/lang/escape.js'].lineData[45]++; - return visit121_45_1(visit122_45_2(val == null) || (visit123_45_3(visit124_45_4(t !== 'object') && visit125_45_5(t !== 'function')))); + return visit132_45_1(visit133_45_2(val == null) || (visit134_45_3(visit135_45_4(t !== 'object') && visit136_45_5(t !== 'function')))); } _$jscoverage['/lang/escape.js'].lineData[48]++; function getEscapeReg() { _$jscoverage['/lang/escape.js'].functionData[3]++; _$jscoverage['/lang/escape.js'].lineData[49]++; - if (visit126_49_1(escapeReg)) { + if (visit137_49_1(escapeReg)) { _$jscoverage['/lang/escape.js'].lineData[50]++; return escapeReg; } @@ -549,7 +549,7 @@ function visit121_45_1(result) { function getUnEscapeReg() { _$jscoverage['/lang/escape.js'].functionData[5]++; _$jscoverage['/lang/escape.js'].lineData[62]++; - if (visit127_62_1(unEscapeReg)) { + if (visit138_62_1(unEscapeReg)) { _$jscoverage['/lang/escape.js'].lineData[63]++; return unEscapeReg; } @@ -609,17 +609,17 @@ function visit121_45_1(result) { return str.replace(getUnEscapeReg(), function(m, n) { _$jscoverage['/lang/escape.js'].functionData[15]++; _$jscoverage['/lang/escape.js'].lineData[146]++; - return visit128_146_1(htmlEntities[m] || String.fromCharCode(+n)); + return visit139_146_1(htmlEntities[m] || String.fromCharCode(+n)); }); }, param: function(o, sep, eq, serializeArray) { _$jscoverage['/lang/escape.js'].functionData[16]++; _$jscoverage['/lang/escape.js'].lineData[168]++; - sep = visit129_168_1(sep || SEP); + sep = visit140_168_1(sep || SEP); _$jscoverage['/lang/escape.js'].lineData[169]++; - eq = visit130_169_1(eq || EQ); + eq = visit141_169_1(eq || EQ); _$jscoverage['/lang/escape.js'].lineData[170]++; - if (visit131_170_1(serializeArray === undefined)) { + if (visit142_170_1(serializeArray === undefined)) { _$jscoverage['/lang/escape.js'].lineData[171]++; serializeArray = TRUE; } @@ -632,11 +632,11 @@ function visit121_45_1(result) { _$jscoverage['/lang/escape.js'].lineData[178]++; key = encode(key); _$jscoverage['/lang/escape.js'].lineData[181]++; - if (visit132_181_1(isValidParamValue(val))) { + if (visit143_181_1(isValidParamValue(val))) { _$jscoverage['/lang/escape.js'].lineData[182]++; buf.push(key); _$jscoverage['/lang/escape.js'].lineData[183]++; - if (visit133_183_1(val !== undefined)) { + if (visit144_183_1(val !== undefined)) { _$jscoverage['/lang/escape.js'].lineData[184]++; buf.push(eq, encode(val + EMPTY)); } @@ -644,17 +644,17 @@ function visit121_45_1(result) { buf.push(sep); } else { _$jscoverage['/lang/escape.js'].lineData[189]++; - if (visit134_189_1(S.isArray(val) && val.length)) { + if (visit145_189_1(S.isArray(val) && val.length)) { _$jscoverage['/lang/escape.js'].lineData[190]++; - for (i = 0 , len = val.length; visit135_190_1(i < len); ++i) { + for (i = 0 , len = val.length; visit146_190_1(i < len); ++i) { _$jscoverage['/lang/escape.js'].lineData[191]++; v = val[i]; _$jscoverage['/lang/escape.js'].lineData[192]++; - if (visit136_192_1(isValidParamValue(v))) { + if (visit147_192_1(isValidParamValue(v))) { _$jscoverage['/lang/escape.js'].lineData[193]++; buf.push(key, (serializeArray ? encode('[]') : EMPTY)); _$jscoverage['/lang/escape.js'].lineData[194]++; - if (visit137_194_1(v !== undefined)) { + if (visit148_194_1(v !== undefined)) { _$jscoverage['/lang/escape.js'].lineData[195]++; buf.push(eq, encode(v + EMPTY)); } @@ -673,22 +673,22 @@ function visit121_45_1(result) { unparam: function(str, sep, eq) { _$jscoverage['/lang/escape.js'].functionData[17]++; _$jscoverage['/lang/escape.js'].lineData[224]++; - if (visit138_224_1(visit139_224_2(typeof str !== 'string') || !(str = S.trim(str)))) { + if (visit149_224_1(visit150_224_2(typeof str !== 'string') || !(str = S.trim(str)))) { _$jscoverage['/lang/escape.js'].lineData[225]++; return {}; } _$jscoverage['/lang/escape.js'].lineData[227]++; - sep = visit140_227_1(sep || SEP); + sep = visit151_227_1(sep || SEP); _$jscoverage['/lang/escape.js'].lineData[228]++; - eq = visit141_228_1(eq || EQ); + eq = visit152_228_1(eq || EQ); _$jscoverage['/lang/escape.js'].lineData[229]++; var ret = {}, eqIndex, decode = S.urlDecode, pairs = str.split(sep), key, val, i = 0, len = pairs.length; _$jscoverage['/lang/escape.js'].lineData[236]++; - for (; visit142_236_1(i < len); ++i) { + for (; visit153_236_1(i < len); ++i) { _$jscoverage['/lang/escape.js'].lineData[237]++; eqIndex = pairs[i].indexOf(eq); _$jscoverage['/lang/escape.js'].lineData[238]++; - if (visit143_238_1(eqIndex === -1)) { + if (visit154_238_1(eqIndex === -1)) { _$jscoverage['/lang/escape.js'].lineData[239]++; key = decode(pairs[i]); _$jscoverage['/lang/escape.js'].lineData[240]++; @@ -709,15 +709,15 @@ function visit121_45_1(result) { logger.error(e); } _$jscoverage['/lang/escape.js'].lineData[251]++; - if (visit144_251_1(S.endsWith(key, '[]'))) { + if (visit155_251_1(S.endsWith(key, '[]'))) { _$jscoverage['/lang/escape.js'].lineData[252]++; key = key.substring(0, key.length - 2); } } _$jscoverage['/lang/escape.js'].lineData[255]++; - if (visit145_255_1(key in ret)) { + if (visit156_255_1(key in ret)) { _$jscoverage['/lang/escape.js'].lineData[256]++; - if (visit146_256_1(S.isArray(ret[key]))) { + if (visit157_256_1(S.isArray(ret[key]))) { _$jscoverage['/lang/escape.js'].lineData[257]++; ret[key].push(val); } else { diff --git a/src/seed/coverage/src/lang/function.js b/src/seed/coverage/src/lang/function.js index cc8900aa29..b60a381e19 100644 --- a/src/seed/coverage/src/lang/function.js +++ b/src/seed/coverage/src/lang/function.js @@ -328,63 +328,63 @@ if (! _$jscoverage['/lang/function.js'].branchData) { _$jscoverage['/lang/function.js'].branchData['173'][1] = new BranchData(); } _$jscoverage['/lang/function.js'].branchData['173'][1].init(21, 11, 'bufferTimer'); -function visit161_173_1(result) { +function visit172_173_1(result) { _$jscoverage['/lang/function.js'].branchData['173'][1].ranCondition(result); return result; }_$jscoverage['/lang/function.js'].branchData['169'][1].init(76, 15, 'context || this'); -function visit160_169_1(result) { +function visit171_169_1(result) { _$jscoverage['/lang/function.js'].branchData['169'][1].ranCondition(result); return result; }_$jscoverage['/lang/function.js'].branchData['162'][1].init(30, 15, 'context || this'); -function visit159_162_1(result) { +function visit170_162_1(result) { _$jscoverage['/lang/function.js'].branchData['162'][1].ranCondition(result); return result; }_$jscoverage['/lang/function.js'].branchData['160'][1].init(46, 9, 'ms === -1'); -function visit158_160_1(result) { +function visit169_160_1(result) { _$jscoverage['/lang/function.js'].branchData['160'][1].ranCondition(result); return result; }_$jscoverage['/lang/function.js'].branchData['158'][1].init(18, 9, 'ms || 150'); -function visit157_158_1(result) { +function visit168_158_1(result) { _$jscoverage['/lang/function.js'].branchData['158'][1].ranCondition(result); return result; }_$jscoverage['/lang/function.js'].branchData['144'][1].init(62, 15, 'context || this'); -function visit156_144_1(result) { +function visit167_144_1(result) { _$jscoverage['/lang/function.js'].branchData['144'][1].ranCondition(result); return result; }_$jscoverage['/lang/function.js'].branchData['142'][1].init(56, 15, 'now - last > ms'); -function visit155_142_1(result) { +function visit166_142_1(result) { _$jscoverage['/lang/function.js'].branchData['142'][1].ranCondition(result); return result; }_$jscoverage['/lang/function.js'].branchData['134'][1].init(30, 15, 'context || this'); -function visit154_134_1(result) { +function visit165_134_1(result) { _$jscoverage['/lang/function.js'].branchData['134'][1].ranCondition(result); return result; }_$jscoverage['/lang/function.js'].branchData['132'][1].init(46, 9, 'ms === -1'); -function visit153_132_1(result) { +function visit164_132_1(result) { _$jscoverage['/lang/function.js'].branchData['132'][1].ranCondition(result); return result; }_$jscoverage['/lang/function.js'].branchData['130'][1].init(18, 9, 'ms || 150'); -function visit152_130_1(result) { +function visit163_130_1(result) { _$jscoverage['/lang/function.js'].branchData['130'][1].ranCondition(result); return result; }_$jscoverage['/lang/function.js'].branchData['110'][1].init(25, 13, 'this.interval'); -function visit151_110_1(result) { +function visit162_110_1(result) { _$jscoverage['/lang/function.js'].branchData['110'][1].ranCondition(result); return result; }_$jscoverage['/lang/function.js'].branchData['96'][1].init(239, 2, '!m'); -function visit150_96_1(result) { +function visit161_96_1(result) { _$jscoverage['/lang/function.js'].branchData['96'][1].ranCondition(result); return result; }_$jscoverage['/lang/function.js'].branchData['92'][1].init(149, 22, 'typeof fn === \'string\''); -function visit149_92_1(result) { +function visit160_92_1(result) { _$jscoverage['/lang/function.js'].branchData['92'][1].ranCondition(result); return result; }_$jscoverage['/lang/function.js'].branchData['86'][1].init(20, 9, 'when || 0'); -function visit148_86_1(result) { +function visit159_86_1(result) { _$jscoverage['/lang/function.js'].branchData['86'][1].ranCondition(result); return result; }_$jscoverage['/lang/function.js'].branchData['20'][1].init(101, 11, 'obj || this'); -function visit147_20_1(result) { +function visit158_20_1(result) { _$jscoverage['/lang/function.js'].branchData['20'][1].ranCondition(result); return result; }_$jscoverage['/lang/function.js'].lineData[7]++; @@ -403,7 +403,7 @@ function visit147_20_1(result) { _$jscoverage['/lang/function.js'].lineData[16]++; var inArgs = slice.call(arguments); _$jscoverage['/lang/function.js'].lineData[17]++; - return fn.apply(this instanceof FNOP ? this : visit147_20_1(obj || this), (r ? inArgs.concat(args) : args.concat(inArgs))); + return fn.apply(this instanceof FNOP ? this : visit158_20_1(obj || this), (r ? inArgs.concat(args) : args.concat(inArgs))); }; _$jscoverage['/lang/function.js'].lineData[24]++; FNOP.prototype = fn.prototype; @@ -422,16 +422,16 @@ function visit147_20_1(result) { later: function(fn, when, periodic, context, data) { _$jscoverage['/lang/function.js'].functionData[5]++; _$jscoverage['/lang/function.js'].lineData[86]++; - when = visit148_86_1(when || 0); + when = visit159_86_1(when || 0); _$jscoverage['/lang/function.js'].lineData[87]++; var m = fn, d = S.makeArray(data), f, r; _$jscoverage['/lang/function.js'].lineData[92]++; - if (visit149_92_1(typeof fn === 'string')) { + if (visit160_92_1(typeof fn === 'string')) { _$jscoverage['/lang/function.js'].lineData[93]++; m = context[fn]; } _$jscoverage['/lang/function.js'].lineData[96]++; - if (visit150_96_1(!m)) { + if (visit161_96_1(!m)) { _$jscoverage['/lang/function.js'].lineData[97]++; S.error('method undefined'); } @@ -450,7 +450,7 @@ function visit147_20_1(result) { cancel: function() { _$jscoverage['/lang/function.js'].functionData[7]++; _$jscoverage['/lang/function.js'].lineData[110]++; - if (visit151_110_1(this.interval)) { + if (visit162_110_1(this.interval)) { _$jscoverage['/lang/function.js'].lineData[111]++; clearInterval(r); } else { @@ -462,14 +462,14 @@ function visit147_20_1(result) { throttle: function(fn, ms, context) { _$jscoverage['/lang/function.js'].functionData[8]++; _$jscoverage['/lang/function.js'].lineData[130]++; - ms = visit152_130_1(ms || 150); + ms = visit163_130_1(ms || 150); _$jscoverage['/lang/function.js'].lineData[132]++; - if (visit153_132_1(ms === -1)) { + if (visit164_132_1(ms === -1)) { _$jscoverage['/lang/function.js'].lineData[133]++; return function() { _$jscoverage['/lang/function.js'].functionData[9]++; _$jscoverage['/lang/function.js'].lineData[134]++; - fn.apply(visit154_134_1(context || this), arguments); + fn.apply(visit165_134_1(context || this), arguments); }; } _$jscoverage['/lang/function.js'].lineData[138]++; @@ -480,25 +480,25 @@ function visit147_20_1(result) { _$jscoverage['/lang/function.js'].lineData[141]++; var now = S.now(); _$jscoverage['/lang/function.js'].lineData[142]++; - if (visit155_142_1(now - last > ms)) { + if (visit166_142_1(now - last > ms)) { _$jscoverage['/lang/function.js'].lineData[143]++; last = now; _$jscoverage['/lang/function.js'].lineData[144]++; - fn.apply(visit156_144_1(context || this), arguments); + fn.apply(visit167_144_1(context || this), arguments); } }; }, buffer: function(fn, ms, context) { _$jscoverage['/lang/function.js'].functionData[11]++; _$jscoverage['/lang/function.js'].lineData[158]++; - ms = visit157_158_1(ms || 150); + ms = visit168_158_1(ms || 150); _$jscoverage['/lang/function.js'].lineData[160]++; - if (visit158_160_1(ms === -1)) { + if (visit169_160_1(ms === -1)) { _$jscoverage['/lang/function.js'].lineData[161]++; return function() { _$jscoverage['/lang/function.js'].functionData[12]++; _$jscoverage['/lang/function.js'].lineData[162]++; - fn.apply(visit159_162_1(context || this), arguments); + fn.apply(visit170_162_1(context || this), arguments); }; } _$jscoverage['/lang/function.js'].lineData[165]++; @@ -509,13 +509,13 @@ function visit147_20_1(result) { _$jscoverage['/lang/function.js'].lineData[168]++; f.stop(); _$jscoverage['/lang/function.js'].lineData[169]++; - bufferTimer = S.later(fn, ms, 0, visit160_169_1(context || this), arguments); + bufferTimer = S.later(fn, ms, 0, visit171_169_1(context || this), arguments); } _$jscoverage['/lang/function.js'].lineData[172]++; f.stop = function() { _$jscoverage['/lang/function.js'].functionData[14]++; _$jscoverage['/lang/function.js'].lineData[173]++; - if (visit161_173_1(bufferTimer)) { + if (visit172_173_1(bufferTimer)) { _$jscoverage['/lang/function.js'].lineData[174]++; bufferTimer.cancel(); _$jscoverage['/lang/function.js'].lineData[175]++; diff --git a/src/seed/coverage/src/lang/lang.js b/src/seed/coverage/src/lang/lang.js index dd63b6f138..9061bfe9e7 100644 --- a/src/seed/coverage/src/lang/lang.js +++ b/src/seed/coverage/src/lang/lang.js @@ -410,235 +410,235 @@ if (! _$jscoverage['/lang/lang.js'].branchData) { _$jscoverage['/lang/lang.js'].branchData['201'][3] = new BranchData(); } _$jscoverage['/lang/lang.js'].branchData['201'][3].init(1555, 27, 'mismatchValues.length === 0'); -function visit219_201_3(result) { +function visit230_201_3(result) { _$jscoverage['/lang/lang.js'].branchData['201'][3].ranCondition(result); return result; }_$jscoverage['/lang/lang.js'].branchData['201'][2].init(1526, 25, 'mismatchKeys.length === 0'); -function visit218_201_2(result) { +function visit229_201_2(result) { _$jscoverage['/lang/lang.js'].branchData['201'][2].ranCondition(result); return result; }_$jscoverage['/lang/lang.js'].branchData['201'][1].init(1526, 56, 'mismatchKeys.length === 0 && mismatchValues.length === 0'); -function visit217_201_1(result) { +function visit228_201_1(result) { _$jscoverage['/lang/lang.js'].branchData['201'][1].ranCondition(result); return result; }_$jscoverage['/lang/lang.js'].branchData['196'][3].init(1339, 21, 'a.length !== b.length'); -function visit216_196_3(result) { +function visit227_196_3(result) { _$jscoverage['/lang/lang.js'].branchData['196'][3].ranCondition(result); return result; }_$jscoverage['/lang/lang.js'].branchData['196'][2].init(1323, 37, 'S.isArray(b) && a.length !== b.length'); -function visit215_196_2(result) { +function visit226_196_2(result) { _$jscoverage['/lang/lang.js'].branchData['196'][2].ranCondition(result); return result; }_$jscoverage['/lang/lang.js'].branchData['196'][1].init(1307, 53, 'S.isArray(a) && S.isArray(b) && a.length !== b.length'); -function visit214_196_1(result) { +function visit225_196_1(result) { _$jscoverage['/lang/lang.js'].branchData['196'][1].ranCondition(result); return result; }_$jscoverage['/lang/lang.js'].branchData['188'][1].init(105, 65, '!S.equals(a[property], b[property], mismatchKeys, mismatchValues)'); -function visit213_188_1(result) { +function visit224_188_1(result) { _$jscoverage['/lang/lang.js'].branchData['188'][1].ranCondition(result); return result; }_$jscoverage['/lang/lang.js'].branchData['185'][1].init(18, 27, 'property === COMPARE_MARKER'); -function visit212_185_1(result) { +function visit223_185_1(result) { _$jscoverage['/lang/lang.js'].branchData['185'][1].ranCondition(result); return result; }_$jscoverage['/lang/lang.js'].branchData['178'][1].init(18, 43, '!hasKey(b, property) && hasKey(a, property)'); -function visit211_178_1(result) { +function visit222_178_1(result) { _$jscoverage['/lang/lang.js'].branchData['178'][1].ranCondition(result); return result; }_$jscoverage['/lang/lang.js'].branchData['171'][1].init(18, 43, '!hasKey(a, property) && hasKey(b, property)'); -function visit210_171_1(result) { +function visit221_171_1(result) { _$jscoverage['/lang/lang.js'].branchData['171'][1].ranCondition(result); return result; }_$jscoverage['/lang/lang.js'].branchData['167'][5].init(59, 26, 'obj[keyName] !== undefined'); -function visit209_167_5(result) { +function visit220_167_5(result) { _$jscoverage['/lang/lang.js'].branchData['167'][5].ranCondition(result); return result; }_$jscoverage['/lang/lang.js'].branchData['167'][4].init(37, 17, 'obj !== undefined'); -function visit208_167_4(result) { +function visit219_167_4(result) { _$jscoverage['/lang/lang.js'].branchData['167'][4].ranCondition(result); return result; }_$jscoverage['/lang/lang.js'].branchData['167'][3].init(21, 12, 'obj !== null'); -function visit207_167_3(result) { +function visit218_167_3(result) { _$jscoverage['/lang/lang.js'].branchData['167'][3].ranCondition(result); return result; }_$jscoverage['/lang/lang.js'].branchData['167'][2].init(21, 33, 'obj !== null && obj !== undefined'); -function visit206_167_2(result) { +function visit217_167_2(result) { _$jscoverage['/lang/lang.js'].branchData['167'][2].ranCondition(result); return result; }_$jscoverage['/lang/lang.js'].branchData['167'][1].init(21, 64, '(obj !== null && obj !== undefined) && obj[keyName] !== undefined'); -function visit205_167_1(result) { +function visit216_167_1(result) { _$jscoverage['/lang/lang.js'].branchData['167'][1].ranCondition(result); return result; }_$jscoverage['/lang/lang.js'].branchData['161'][3].init(71, 23, 'b[COMPARE_MARKER] === a'); -function visit204_161_3(result) { +function visit215_161_3(result) { _$jscoverage['/lang/lang.js'].branchData['161'][3].ranCondition(result); return result; }_$jscoverage['/lang/lang.js'].branchData['161'][2].init(44, 23, 'a[COMPARE_MARKER] === b'); -function visit203_161_2(result) { +function visit214_161_2(result) { _$jscoverage['/lang/lang.js'].branchData['161'][2].ranCondition(result); return result; }_$jscoverage['/lang/lang.js'].branchData['161'][1].init(44, 50, 'a[COMPARE_MARKER] === b && b[COMPARE_MARKER] === a'); -function visit202_161_1(result) { +function visit213_161_1(result) { _$jscoverage['/lang/lang.js'].branchData['161'][1].ranCondition(result); return result; }_$jscoverage['/lang/lang.js'].branchData['149'][2].init(49, 43, 'f.call(input, input[k], k, input) !== FALSE'); -function visit201_149_2(result) { +function visit212_149_2(result) { _$jscoverage['/lang/lang.js'].branchData['149'][2].ranCondition(result); return result; }_$jscoverage['/lang/lang.js'].branchData['149'][1].init(42, 51, '!f || (f.call(input, input[k], k, input) !== FALSE)'); -function visit200_149_1(result) { +function visit211_149_1(result) { _$jscoverage['/lang/lang.js'].branchData['149'][1].ranCondition(result); return result; }_$jscoverage['/lang/lang.js'].branchData['148'][2].init(22, 18, 'k !== CLONE_MARKER'); -function visit199_148_2(result) { +function visit210_148_2(result) { _$jscoverage['/lang/lang.js'].branchData['148'][2].ranCondition(result); return result; }_$jscoverage['/lang/lang.js'].branchData['148'][1].init(22, 95, 'k !== CLONE_MARKER && (!f || (f.call(input, input[k], k, input) !== FALSE))'); -function visit198_148_1(result) { +function visit209_148_1(result) { _$jscoverage['/lang/lang.js'].branchData['148'][1].ranCondition(result); return result; }_$jscoverage['/lang/lang.js'].branchData['145'][1].init(2082, 13, 'isPlainObject'); -function visit197_145_1(result) { +function visit208_145_1(result) { _$jscoverage['/lang/lang.js'].branchData['145'][1].ranCondition(result); return result; }_$jscoverage['/lang/lang.js'].branchData['142'][1].init(29, 22, 'i < destination.length'); -function visit196_142_1(result) { +function visit207_142_1(result) { _$jscoverage['/lang/lang.js'].branchData['142'][1].ranCondition(result); return result; }_$jscoverage['/lang/lang.js'].branchData['141'][1].init(1903, 7, 'isArray'); -function visit195_141_1(result) { +function visit206_141_1(result) { _$jscoverage['/lang/lang.js'].branchData['141'][1].ranCondition(result); return result; }_$jscoverage['/lang/lang.js'].branchData['116'][1].init(90, 63, 'S.inArray(Constructor, [Boolean, String, Number, Date, RegExp])'); -function visit194_116_1(result) { +function visit205_116_1(result) { _$jscoverage['/lang/lang.js'].branchData['116'][1].ranCondition(result); return result; }_$jscoverage['/lang/lang.js'].branchData['113'][1].init(499, 25, 'typeof input === \'object\''); -function visit193_113_1(result) { +function visit204_113_1(result) { _$jscoverage['/lang/lang.js'].branchData['113'][1].ranCondition(result); return result; }_$jscoverage['/lang/lang.js'].branchData['110'][1].init(372, 19, 'input[CLONE_MARKER]'); -function visit192_110_1(result) { +function visit203_110_1(result) { _$jscoverage['/lang/lang.js'].branchData['110'][1].ranCondition(result); return result; }_$jscoverage['/lang/lang.js'].branchData['103'][1].init(128, 6, '!input'); -function visit191_103_1(result) { +function visit202_103_1(result) { _$jscoverage['/lang/lang.js'].branchData['103'][1].ranCondition(result); return result; }_$jscoverage['/lang/lang.js'].branchData['92'][1].init(2990, 67, 'Date.now || function() {\n return +new Date();\n}'); -function visit190_92_1(result) { +function visit201_92_1(result) { _$jscoverage['/lang/lang.js'].branchData['92'][1].ranCondition(result); return result; }_$jscoverage['/lang/lang.js'].branchData['71'][1].init(81, 15, 'v[CLONE_MARKER]'); -function visit189_71_1(result) { +function visit200_71_1(result) { _$jscoverage['/lang/lang.js'].branchData['71'][1].ranCondition(result); return result; }_$jscoverage['/lang/lang.js'].branchData['49'][1].init(943, 7, 'a === b'); -function visit188_49_1(result) { +function visit199_49_1(result) { _$jscoverage['/lang/lang.js'].branchData['49'][1].ranCondition(result); return result; }_$jscoverage['/lang/lang.js'].branchData['45'][3].init(779, 21, 'typeof b === \'object\''); -function visit187_45_3(result) { +function visit198_45_3(result) { _$jscoverage['/lang/lang.js'].branchData['45'][3].ranCondition(result); return result; }_$jscoverage['/lang/lang.js'].branchData['45'][2].init(754, 21, 'typeof a === \'object\''); -function visit186_45_2(result) { +function visit197_45_2(result) { _$jscoverage['/lang/lang.js'].branchData['45'][2].ranCondition(result); return result; }_$jscoverage['/lang/lang.js'].branchData['45'][1].init(754, 46, 'typeof a === \'object\' && typeof b === \'object\''); -function visit185_45_1(result) { +function visit196_45_1(result) { _$jscoverage['/lang/lang.js'].branchData['45'][1].ranCondition(result); return result; }_$jscoverage['/lang/lang.js'].branchData['43'][1].init(25, 7, 'a === b'); -function visit184_43_1(result) { +function visit195_43_1(result) { _$jscoverage['/lang/lang.js'].branchData['43'][1].ranCondition(result); return result; }_$jscoverage['/lang/lang.js'].branchData['42'][3].init(665, 21, 'typeof b === \'number\''); -function visit183_42_3(result) { +function visit194_42_3(result) { _$jscoverage['/lang/lang.js'].branchData['42'][3].ranCondition(result); return result; }_$jscoverage['/lang/lang.js'].branchData['42'][2].init(640, 21, 'typeof a === \'number\''); -function visit182_42_2(result) { +function visit193_42_2(result) { _$jscoverage['/lang/lang.js'].branchData['42'][2].ranCondition(result); return result; }_$jscoverage['/lang/lang.js'].branchData['42'][1].init(640, 46, 'typeof a === \'number\' && typeof b === \'number\''); -function visit181_42_1(result) { +function visit192_42_1(result) { _$jscoverage['/lang/lang.js'].branchData['42'][1].ranCondition(result); return result; }_$jscoverage['/lang/lang.js'].branchData['40'][1].init(25, 7, 'a === b'); -function visit180_40_1(result) { +function visit191_40_1(result) { _$jscoverage['/lang/lang.js'].branchData['40'][1].ranCondition(result); return result; }_$jscoverage['/lang/lang.js'].branchData['39'][3].init(551, 21, 'typeof b === \'string\''); -function visit179_39_3(result) { +function visit190_39_3(result) { _$jscoverage['/lang/lang.js'].branchData['39'][3].ranCondition(result); return result; }_$jscoverage['/lang/lang.js'].branchData['39'][2].init(526, 21, 'typeof a === \'string\''); -function visit178_39_2(result) { +function visit189_39_2(result) { _$jscoverage['/lang/lang.js'].branchData['39'][2].ranCondition(result); return result; }_$jscoverage['/lang/lang.js'].branchData['39'][1].init(526, 46, 'typeof a === \'string\' && typeof b === \'string\''); -function visit177_39_1(result) { +function visit188_39_1(result) { _$jscoverage['/lang/lang.js'].branchData['39'][1].ranCondition(result); return result; }_$jscoverage['/lang/lang.js'].branchData['37'][1].init(24, 27, 'a.getTime() === b.getTime()'); -function visit176_37_1(result) { +function visit187_37_1(result) { _$jscoverage['/lang/lang.js'].branchData['37'][1].ranCondition(result); return result; }_$jscoverage['/lang/lang.js'].branchData['36'][1].init(402, 38, 'a instanceof Date && b instanceof Date'); -function visit175_36_1(result) { +function visit186_36_1(result) { _$jscoverage['/lang/lang.js'].branchData['36'][1].ranCondition(result); return result; }_$jscoverage['/lang/lang.js'].branchData['34'][3].init(75, 9, 'b == null'); -function visit174_34_3(result) { +function visit185_34_3(result) { _$jscoverage['/lang/lang.js'].branchData['34'][3].ranCondition(result); return result; }_$jscoverage['/lang/lang.js'].branchData['34'][2].init(62, 9, 'a == null'); -function visit173_34_2(result) { +function visit184_34_2(result) { _$jscoverage['/lang/lang.js'].branchData['34'][2].ranCondition(result); return result; }_$jscoverage['/lang/lang.js'].branchData['34'][1].init(62, 22, 'a == null && b == null'); -function visit172_34_1(result) { +function visit183_34_1(result) { _$jscoverage['/lang/lang.js'].branchData['34'][1].ranCondition(result); return result; }_$jscoverage['/lang/lang.js'].branchData['32'][7].init(273, 10, 'b === null'); -function visit171_32_7(result) { +function visit182_32_7(result) { _$jscoverage['/lang/lang.js'].branchData['32'][7].ranCondition(result); return result; }_$jscoverage['/lang/lang.js'].branchData['32'][6].init(254, 15, 'b === undefined'); -function visit170_32_6(result) { +function visit181_32_6(result) { _$jscoverage['/lang/lang.js'].branchData['32'][6].ranCondition(result); return result; }_$jscoverage['/lang/lang.js'].branchData['32'][5].init(254, 29, 'b === undefined || b === null'); -function visit169_32_5(result) { +function visit180_32_5(result) { _$jscoverage['/lang/lang.js'].branchData['32'][5].ranCondition(result); return result; }_$jscoverage['/lang/lang.js'].branchData['32'][4].init(240, 10, 'a === null'); -function visit168_32_4(result) { +function visit179_32_4(result) { _$jscoverage['/lang/lang.js'].branchData['32'][4].ranCondition(result); return result; }_$jscoverage['/lang/lang.js'].branchData['32'][3].init(240, 43, 'a === null || b === undefined || b === null'); -function visit167_32_3(result) { +function visit178_32_3(result) { _$jscoverage['/lang/lang.js'].branchData['32'][3].ranCondition(result); return result; }_$jscoverage['/lang/lang.js'].branchData['32'][2].init(221, 15, 'a === undefined'); -function visit166_32_2(result) { +function visit177_32_2(result) { _$jscoverage['/lang/lang.js'].branchData['32'][2].ranCondition(result); return result; }_$jscoverage['/lang/lang.js'].branchData['32'][1].init(221, 62, 'a === undefined || a === null || b === undefined || b === null'); -function visit165_32_1(result) { +function visit176_32_1(result) { _$jscoverage['/lang/lang.js'].branchData['32'][1].ranCondition(result); return result; }_$jscoverage['/lang/lang.js'].branchData['29'][1].init(151, 7, 'a === b'); -function visit164_29_1(result) { +function visit175_29_1(result) { _$jscoverage['/lang/lang.js'].branchData['29'][1].ranCondition(result); return result; }_$jscoverage['/lang/lang.js'].branchData['27'][1].init(112, 20, 'mismatchValues || []'); -function visit163_27_1(result) { +function visit174_27_1(result) { _$jscoverage['/lang/lang.js'].branchData['27'][1].ranCondition(result); return result; }_$jscoverage['/lang/lang.js'].branchData['26'][1].init(63, 18, 'mismatchKeys || []'); -function visit162_26_1(result) { +function visit173_26_1(result) { _$jscoverage['/lang/lang.js'].branchData['26'][1].ranCondition(result); return result; }_$jscoverage['/lang/lang.js'].lineData[7]++; @@ -651,41 +651,41 @@ function visit162_26_1(result) { equals: function(a, b, mismatchKeys, mismatchValues) { _$jscoverage['/lang/lang.js'].functionData[1]++; _$jscoverage['/lang/lang.js'].lineData[26]++; - mismatchKeys = visit162_26_1(mismatchKeys || []); + mismatchKeys = visit173_26_1(mismatchKeys || []); _$jscoverage['/lang/lang.js'].lineData[27]++; - mismatchValues = visit163_27_1(mismatchValues || []); + mismatchValues = visit174_27_1(mismatchValues || []); _$jscoverage['/lang/lang.js'].lineData[29]++; - if (visit164_29_1(a === b)) { + if (visit175_29_1(a === b)) { _$jscoverage['/lang/lang.js'].lineData[30]++; return TRUE; } _$jscoverage['/lang/lang.js'].lineData[32]++; - if (visit165_32_1(visit166_32_2(a === undefined) || visit167_32_3(visit168_32_4(a === null) || visit169_32_5(visit170_32_6(b === undefined) || visit171_32_7(b === null))))) { + if (visit176_32_1(visit177_32_2(a === undefined) || visit178_32_3(visit179_32_4(a === null) || visit180_32_5(visit181_32_6(b === undefined) || visit182_32_7(b === null))))) { _$jscoverage['/lang/lang.js'].lineData[34]++; - return visit172_34_1(visit173_34_2(a == null) && visit174_34_3(b == null)); + return visit183_34_1(visit184_34_2(a == null) && visit185_34_3(b == null)); } _$jscoverage['/lang/lang.js'].lineData[36]++; - if (visit175_36_1(a instanceof Date && b instanceof Date)) { + if (visit186_36_1(a instanceof Date && b instanceof Date)) { _$jscoverage['/lang/lang.js'].lineData[37]++; - return visit176_37_1(a.getTime() === b.getTime()); + return visit187_37_1(a.getTime() === b.getTime()); } _$jscoverage['/lang/lang.js'].lineData[39]++; - if (visit177_39_1(visit178_39_2(typeof a === 'string') && visit179_39_3(typeof b === 'string'))) { + if (visit188_39_1(visit189_39_2(typeof a === 'string') && visit190_39_3(typeof b === 'string'))) { _$jscoverage['/lang/lang.js'].lineData[40]++; - return (visit180_40_1(a === b)); + return (visit191_40_1(a === b)); } _$jscoverage['/lang/lang.js'].lineData[42]++; - if (visit181_42_1(visit182_42_2(typeof a === 'number') && visit183_42_3(typeof b === 'number'))) { + if (visit192_42_1(visit193_42_2(typeof a === 'number') && visit194_42_3(typeof b === 'number'))) { _$jscoverage['/lang/lang.js'].lineData[43]++; - return (visit184_43_1(a === b)); + return (visit195_43_1(a === b)); } _$jscoverage['/lang/lang.js'].lineData[45]++; - if (visit185_45_1(visit186_45_2(typeof a === 'object') && visit187_45_3(typeof b === 'object'))) { + if (visit196_45_1(visit197_45_2(typeof a === 'object') && visit198_45_3(typeof b === 'object'))) { _$jscoverage['/lang/lang.js'].lineData[46]++; return compareObjects(a, b, mismatchKeys, mismatchValues); } _$jscoverage['/lang/lang.js'].lineData[49]++; - return (visit188_49_1(a === b)); + return (visit199_49_1(a === b)); }, clone: function(input, filter) { _$jscoverage['/lang/lang.js'].functionData[2]++; @@ -697,7 +697,7 @@ function visit162_26_1(result) { _$jscoverage['/lang/lang.js'].lineData[70]++; v = v.input; _$jscoverage['/lang/lang.js'].lineData[71]++; - if (visit189_71_1(v[CLONE_MARKER])) { + if (visit200_71_1(v[CLONE_MARKER])) { _$jscoverage['/lang/lang.js'].lineData[72]++; try { _$jscoverage['/lang/lang.js'].lineData[73]++; @@ -713,7 +713,7 @@ function visit162_26_1(result) { _$jscoverage['/lang/lang.js'].lineData[80]++; return ret; }, - now: visit190_92_1(Date.now || function() { + now: visit201_92_1(Date.now || function() { _$jscoverage['/lang/lang.js'].functionData[4]++; _$jscoverage['/lang/lang.js'].lineData[93]++; return +new Date(); @@ -724,21 +724,21 @@ function visit162_26_1(result) { _$jscoverage['/lang/lang.js'].lineData[98]++; var destination = input, isArray, isPlainObject, k, stamp; _$jscoverage['/lang/lang.js'].lineData[103]++; - if (visit191_103_1(!input)) { + if (visit202_103_1(!input)) { _$jscoverage['/lang/lang.js'].lineData[104]++; return destination; } _$jscoverage['/lang/lang.js'].lineData[110]++; - if (visit192_110_1(input[CLONE_MARKER])) { + if (visit203_110_1(input[CLONE_MARKER])) { _$jscoverage['/lang/lang.js'].lineData[112]++; return memory[input[CLONE_MARKER]].destination; } else { _$jscoverage['/lang/lang.js'].lineData[113]++; - if (visit193_113_1(typeof input === 'object')) { + if (visit204_113_1(typeof input === 'object')) { _$jscoverage['/lang/lang.js'].lineData[115]++; var Constructor = input.constructor; _$jscoverage['/lang/lang.js'].lineData[116]++; - if (visit194_116_1(S.inArray(Constructor, [Boolean, String, Number, Date, RegExp]))) { + if (visit205_116_1(S.inArray(Constructor, [Boolean, String, Number, Date, RegExp]))) { _$jscoverage['/lang/lang.js'].lineData[117]++; destination = new Constructor(input.valueOf()); } else { @@ -763,19 +763,19 @@ function visit162_26_1(result) { } } _$jscoverage['/lang/lang.js'].lineData[141]++; - if (visit195_141_1(isArray)) { + if (visit206_141_1(isArray)) { _$jscoverage['/lang/lang.js'].lineData[142]++; - for (var i = 0; visit196_142_1(i < destination.length); i++) { + for (var i = 0; visit207_142_1(i < destination.length); i++) { _$jscoverage['/lang/lang.js'].lineData[143]++; destination[i] = cloneInternal(destination[i], f, memory); } } else { _$jscoverage['/lang/lang.js'].lineData[145]++; - if (visit197_145_1(isPlainObject)) { + if (visit208_145_1(isPlainObject)) { _$jscoverage['/lang/lang.js'].lineData[146]++; for (k in input) { _$jscoverage['/lang/lang.js'].lineData[148]++; - if (visit198_148_1(visit199_148_2(k !== CLONE_MARKER) && (visit200_149_1(!f || (visit201_149_2(f.call(input, input[k], k, input) !== FALSE)))))) { + if (visit209_148_1(visit210_148_2(k !== CLONE_MARKER) && (visit211_149_1(!f || (visit212_149_2(f.call(input, input[k], k, input) !== FALSE)))))) { _$jscoverage['/lang/lang.js'].lineData[150]++; destination[k] = cloneInternal(input[k], f, memory); } @@ -789,7 +789,7 @@ function visit162_26_1(result) { function compareObjects(a, b, mismatchKeys, mismatchValues) { _$jscoverage['/lang/lang.js'].functionData[6]++; _$jscoverage['/lang/lang.js'].lineData[161]++; - if (visit202_161_1(visit203_161_2(a[COMPARE_MARKER] === b) && visit204_161_3(b[COMPARE_MARKER] === a))) { + if (visit213_161_1(visit214_161_2(a[COMPARE_MARKER] === b) && visit215_161_3(b[COMPARE_MARKER] === a))) { _$jscoverage['/lang/lang.js'].lineData[162]++; return TRUE; } @@ -801,12 +801,12 @@ function visit162_26_1(result) { var hasKey = function(obj, keyName) { _$jscoverage['/lang/lang.js'].functionData[7]++; _$jscoverage['/lang/lang.js'].lineData[167]++; - return visit205_167_1((visit206_167_2(visit207_167_3(obj !== null) && visit208_167_4(obj !== undefined))) && visit209_167_5(obj[keyName] !== undefined)); + return visit216_167_1((visit217_167_2(visit218_167_3(obj !== null) && visit219_167_4(obj !== undefined))) && visit220_167_5(obj[keyName] !== undefined)); }; _$jscoverage['/lang/lang.js'].lineData[169]++; for (var property in b) { _$jscoverage['/lang/lang.js'].lineData[171]++; - if (visit210_171_1(!hasKey(a, property) && hasKey(b, property))) { + if (visit221_171_1(!hasKey(a, property) && hasKey(b, property))) { _$jscoverage['/lang/lang.js'].lineData[172]++; mismatchKeys.push('expected has key ' + property + '", but missing from actual.'); } @@ -814,7 +814,7 @@ function visit162_26_1(result) { _$jscoverage['/lang/lang.js'].lineData[176]++; for (property in a) { _$jscoverage['/lang/lang.js'].lineData[178]++; - if (visit211_178_1(!hasKey(b, property) && hasKey(a, property))) { + if (visit222_178_1(!hasKey(b, property) && hasKey(a, property))) { _$jscoverage['/lang/lang.js'].lineData[179]++; mismatchKeys.push('expected missing key "' + property + '", but present in actual.'); } @@ -822,18 +822,18 @@ function visit162_26_1(result) { _$jscoverage['/lang/lang.js'].lineData[183]++; for (property in b) { _$jscoverage['/lang/lang.js'].lineData[185]++; - if (visit212_185_1(property === COMPARE_MARKER)) { + if (visit223_185_1(property === COMPARE_MARKER)) { _$jscoverage['/lang/lang.js'].lineData[186]++; continue; } _$jscoverage['/lang/lang.js'].lineData[188]++; - if (visit213_188_1(!S.equals(a[property], b[property], mismatchKeys, mismatchValues))) { + if (visit224_188_1(!S.equals(a[property], b[property], mismatchKeys, mismatchValues))) { _$jscoverage['/lang/lang.js'].lineData[189]++; mismatchValues.push('"' + property + '" was "' + (b[property] ? (b[property].toString()) : b[property]) + '" in expected, but was "' + (a[property] ? (a[property].toString()) : a[property]) + '" in actual.'); } } _$jscoverage['/lang/lang.js'].lineData[196]++; - if (visit214_196_1(S.isArray(a) && visit215_196_2(S.isArray(b) && visit216_196_3(a.length !== b.length)))) { + if (visit225_196_1(S.isArray(a) && visit226_196_2(S.isArray(b) && visit227_196_3(a.length !== b.length)))) { _$jscoverage['/lang/lang.js'].lineData[197]++; mismatchValues.push('arrays were not the same length'); } @@ -842,6 +842,6 @@ function visit162_26_1(result) { _$jscoverage['/lang/lang.js'].lineData[200]++; delete b[COMPARE_MARKER]; _$jscoverage['/lang/lang.js'].lineData[201]++; - return (visit217_201_1(visit218_201_2(mismatchKeys.length === 0) && visit219_201_3(mismatchValues.length === 0))); + return (visit228_201_1(visit229_201_2(mismatchKeys.length === 0) && visit230_201_3(mismatchValues.length === 0))); } })(KISSY); diff --git a/src/seed/coverage/src/lang/object.js b/src/seed/coverage/src/lang/object.js index fdceee0f25..f39612798f 100644 --- a/src/seed/coverage/src/lang/object.js +++ b/src/seed/coverage/src/lang/object.js @@ -463,191 +463,191 @@ if (! _$jscoverage['/lang/object.js'].branchData) { _$jscoverage['/lang/object.js'].branchData['360'][3] = new BranchData(); } _$jscoverage['/lang/object.js'].branchData['360'][3].init(1062, 15, 'ov || !(p in r)'); -function visit266_360_3(result) { +function visit277_360_3(result) { _$jscoverage['/lang/object.js'].branchData['360'][3].ranCondition(result); return result; }_$jscoverage['/lang/object.js'].branchData['360'][2].init(1040, 17, 'src !== undefined'); -function visit265_360_2(result) { +function visit276_360_2(result) { _$jscoverage['/lang/object.js'].branchData['360'][2].ranCondition(result); return result; }_$jscoverage['/lang/object.js'].branchData['360'][1].init(1040, 38, 'src !== undefined && (ov || !(p in r))'); -function visit264_360_1(result) { +function visit275_360_1(result) { _$jscoverage['/lang/object.js'].branchData['360'][1].ranCondition(result); return result; }_$jscoverage['/lang/object.js'].branchData['354'][2].init(136, 44, 'S.isArray(target) || S.isPlainObject(target)'); -function visit263_354_2(result) { +function visit274_354_2(result) { _$jscoverage['/lang/object.js'].branchData['354'][2].ranCondition(result); return result; }_$jscoverage['/lang/object.js'].branchData['354'][1].init(125, 56, 'target && (S.isArray(target) || S.isPlainObject(target))'); -function visit262_354_1(result) { +function visit273_354_1(result) { _$jscoverage['/lang/object.js'].branchData['354'][1].ranCondition(result); return result; }_$jscoverage['/lang/object.js'].branchData['349'][1].init(21, 27, 'src[MIX_CIRCULAR_DETECTION]'); -function visit261_349_1(result) { +function visit272_349_1(result) { _$jscoverage['/lang/object.js'].branchData['349'][1].ranCondition(result); return result; }_$jscoverage['/lang/object.js'].branchData['348'][3].init(455, 38, 'S.isArray(src) || S.isPlainObject(src)'); -function visit260_348_3(result) { +function visit271_348_3(result) { _$jscoverage['/lang/object.js'].branchData['348'][3].ranCondition(result); return result; }_$jscoverage['/lang/object.js'].branchData['348'][2].init(447, 47, 'src && (S.isArray(src) || S.isPlainObject(src))'); -function visit259_348_2(result) { +function visit270_348_2(result) { _$jscoverage['/lang/object.js'].branchData['348'][2].ranCondition(result); return result; }_$jscoverage['/lang/object.js'].branchData['348'][1].init(439, 55, 'deep && src && (S.isArray(src) || S.isPlainObject(src))'); -function visit258_348_1(result) { +function visit269_348_1(result) { _$jscoverage['/lang/object.js'].branchData['348'][1].ranCondition(result); return result; }_$jscoverage['/lang/object.js'].branchData['344'][1].init(326, 2, 'wl'); -function visit257_344_1(result) { +function visit268_344_1(result) { _$jscoverage['/lang/object.js'].branchData['344'][1].ranCondition(result); return result; }_$jscoverage['/lang/object.js'].branchData['339'][1].init(64, 20, 'target === undefined'); -function visit256_339_1(result) { +function visit267_339_1(result) { _$jscoverage['/lang/object.js'].branchData['339'][1].ranCondition(result); return result; }_$jscoverage['/lang/object.js'].branchData['337'][1].init(114, 14, 'target === src'); -function visit255_337_1(result) { +function visit266_337_1(result) { _$jscoverage['/lang/object.js'].branchData['337'][1].ranCondition(result); return result; }_$jscoverage['/lang/object.js'].branchData['333'][2].init(73, 17, '!(p in r) || deep'); -function visit254_333_2(result) { +function visit265_333_2(result) { _$jscoverage['/lang/object.js'].branchData['333'][2].ranCondition(result); return result; }_$jscoverage['/lang/object.js'].branchData['333'][1].init(67, 23, 'ov || !(p in r) || deep'); -function visit253_333_1(result) { +function visit264_333_1(result) { _$jscoverage['/lang/object.js'].branchData['333'][1].ranCondition(result); return result; }_$jscoverage['/lang/object.js'].branchData['326'][1].init(16, 19, 'k === \'constructor\''); -function visit252_326_1(result) { +function visit263_326_1(result) { _$jscoverage['/lang/object.js'].branchData['326'][1].ranCondition(result); return result; }_$jscoverage['/lang/object.js'].branchData['316'][1].init(42, 28, 'p !== MIX_CIRCULAR_DETECTION'); -function visit251_316_1(result) { +function visit262_316_1(result) { _$jscoverage['/lang/object.js'].branchData['316'][1].ranCondition(result); return result; }_$jscoverage['/lang/object.js'].branchData['314'][1].init(297, 7, 'i < len'); -function visit250_314_1(result) { +function visit261_314_1(result) { _$jscoverage['/lang/object.js'].branchData['314'][1].ranCondition(result); return result; }_$jscoverage['/lang/object.js'].branchData['300'][1].init(13, 8, '!s || !r'); -function visit249_300_1(result) { +function visit260_300_1(result) { _$jscoverage['/lang/object.js'].branchData['300'][1].ranCondition(result); return result; }_$jscoverage['/lang/object.js'].branchData['283'][1].init(35, 12, 'objectCreate'); -function visit248_283_1(result) { +function visit259_283_1(result) { _$jscoverage['/lang/object.js'].branchData['283'][1].ranCondition(result); return result; }_$jscoverage['/lang/object.js'].branchData['270'][1].init(35, 14, 'o[p[j]] || {}'); -function visit247_270_1(result) { +function visit258_270_1(result) { _$jscoverage['/lang/object.js'].branchData['270'][1].ranCondition(result); return result; }_$jscoverage['/lang/object.js'].branchData['269'][2].init(146, 12, 'j < p.length'); -function visit246_269_2(result) { +function visit257_269_2(result) { _$jscoverage['/lang/object.js'].branchData['269'][2].ranCondition(result); return result; }_$jscoverage['/lang/object.js'].branchData['269'][1].init(119, 16, 'host[p[0]] === o'); -function visit245_269_1(result) { +function visit256_269_1(result) { _$jscoverage['/lang/object.js'].branchData['269'][1].ranCondition(result); return result; }_$jscoverage['/lang/object.js'].branchData['266'][1].init(197, 5, 'i < l'); -function visit244_266_1(result) { +function visit255_266_1(result) { _$jscoverage['/lang/object.js'].branchData['266'][1].ranCondition(result); return result; }_$jscoverage['/lang/object.js'].branchData['264'][2].init(128, 20, 'args[l - 1] === TRUE'); -function visit243_264_2(result) { +function visit254_264_2(result) { _$jscoverage['/lang/object.js'].branchData['264'][2].ranCondition(result); return result; }_$jscoverage['/lang/object.js'].branchData['264'][1].init(128, 27, 'args[l - 1] === TRUE && l--'); -function visit242_264_1(result) { +function visit253_264_1(result) { _$jscoverage['/lang/object.js'].branchData['264'][1].ranCondition(result); return result; }_$jscoverage['/lang/object.js'].branchData['239'][1].init(818, 2, 'sx'); -function visit241_239_1(result) { +function visit252_239_1(result) { _$jscoverage['/lang/object.js'].branchData['239'][1].ranCondition(result); return result; }_$jscoverage['/lang/object.js'].branchData['234'][1].init(714, 2, 'px'); -function visit240_234_1(result) { +function visit251_234_1(result) { _$jscoverage['/lang/object.js'].branchData['234'][1].ranCondition(result); return result; }_$jscoverage['/lang/object.js'].branchData['216'][1].init(217, 8, '!s || !r'); -function visit239_216_1(result) { +function visit250_216_1(result) { _$jscoverage['/lang/object.js'].branchData['216'][1].ranCondition(result); return result; }_$jscoverage['/lang/object.js'].branchData['213'][1].init(119, 2, '!s'); -function visit238_213_1(result) { +function visit249_213_1(result) { _$jscoverage['/lang/object.js'].branchData['213'][1].ranCondition(result); return result; }_$jscoverage['/lang/object.js'].branchData['210'][1].init(21, 2, '!r'); -function visit237_210_1(result) { +function visit248_210_1(result) { _$jscoverage['/lang/object.js'].branchData['210'][1].ranCondition(result); return result; }_$jscoverage['/lang/object.js'].branchData['209'][1].init(17, 9, '\'@DEBUG@\''); -function visit236_209_1(result) { +function visit247_209_1(result) { _$jscoverage['/lang/object.js'].branchData['209'][1].ranCondition(result); return result; }_$jscoverage['/lang/object.js'].branchData['186'][1].init(515, 7, 'i < len'); -function visit235_186_1(result) { +function visit246_186_1(result) { _$jscoverage['/lang/object.js'].branchData['186'][1].ranCondition(result); return result; }_$jscoverage['/lang/object.js'].branchData['181'][1].init(399, 23, 'typeof ov !== \'boolean\''); -function visit234_181_1(result) { +function visit245_181_1(result) { _$jscoverage['/lang/object.js'].branchData['181'][1].ranCondition(result); return result; }_$jscoverage['/lang/object.js'].branchData['176'][1].init(271, 14, '!S.isArray(wl)'); -function visit233_176_1(result) { +function visit244_176_1(result) { _$jscoverage['/lang/object.js'].branchData['176'][1].ranCondition(result); return result; }_$jscoverage['/lang/object.js'].branchData['150'][1].init(150, 5, 'i < l'); -function visit232_150_1(result) { +function visit243_150_1(result) { _$jscoverage['/lang/object.js'].branchData['150'][1].ranCondition(result); return result; }_$jscoverage['/lang/object.js'].branchData['122'][1].init(508, 16, 'ov === undefined'); -function visit231_122_1(result) { +function visit242_122_1(result) { _$jscoverage['/lang/object.js'].branchData['122'][1].ranCondition(result); return result; }_$jscoverage['/lang/object.js'].branchData['115'][2].init(274, 24, 'typeof wl !== \'function\''); -function visit230_115_2(result) { +function visit241_115_2(result) { _$jscoverage['/lang/object.js'].branchData['115'][2].ranCondition(result); return result; }_$jscoverage['/lang/object.js'].branchData['115'][1].init(267, 32, 'wl && (typeof wl !== \'function\')'); -function visit229_115_1(result) { +function visit240_115_1(result) { _$jscoverage['/lang/object.js'].branchData['115'][1].ranCondition(result); return result; }_$jscoverage['/lang/object.js'].branchData['106'][1].init(17, 22, 'typeof ov === \'object\''); -function visit228_106_1(result) { +function visit239_106_1(result) { _$jscoverage['/lang/object.js'].branchData['106'][1].ranCondition(result); return result; }_$jscoverage['/lang/object.js'].branchData['74'][1].init(68, 19, 'o.hasOwnProperty(p)'); -function visit227_74_1(result) { +function visit238_74_1(result) { _$jscoverage['/lang/object.js'].branchData['74'][1].ranCondition(result); return result; }_$jscoverage['/lang/object.js'].branchData['72'][1].init(53, 6, 'i >= 0'); -function visit226_72_1(result) { +function visit237_72_1(result) { _$jscoverage['/lang/object.js'].branchData['72'][1].ranCondition(result); return result; }_$jscoverage['/lang/object.js'].branchData['71'][1].init(228, 10, 'hasEnumBug'); -function visit225_71_1(result) { +function visit236_71_1(result) { _$jscoverage['/lang/object.js'].branchData['71'][1].ranCondition(result); return result; }_$jscoverage['/lang/object.js'].branchData['66'][1].init(57, 19, 'o.hasOwnProperty(p)'); -function visit224_66_1(result) { +function visit235_66_1(result) { _$jscoverage['/lang/object.js'].branchData['66'][1].ranCondition(result); return result; }_$jscoverage['/lang/object.js'].branchData['61'][1].init(975, 556, 'Obj.keys || function(o) {\n var result = [], p, i;\n for (p in o) {\n if (o.hasOwnProperty(p)) {\n result.push(p);\n }\n }\n if (hasEnumBug) {\n for (i = enumProperties.length - 1; i >= 0; i--) {\n p = enumProperties[i];\n if (o.hasOwnProperty(p)) {\n result.push(p);\n }\n }\n }\n return result;\n}'); -function visit223_61_1(result) { +function visit234_61_1(result) { _$jscoverage['/lang/object.js'].branchData['61'][1].ranCondition(result); return result; }_$jscoverage['/lang/object.js'].branchData['43'][1].init(157, 9, '!readOnly'); -function visit222_43_1(result) { +function visit233_43_1(result) { _$jscoverage['/lang/object.js'].branchData['43'][1].ranCondition(result); return result; }_$jscoverage['/lang/object.js'].branchData['41'][1].init(96, 4, 'guid'); -function visit221_41_1(result) { +function visit232_41_1(result) { _$jscoverage['/lang/object.js'].branchData['41'][1].ranCondition(result); return result; }_$jscoverage['/lang/object.js'].branchData['39'][1].init(22, 22, 'marker || STAMP_MARKER'); -function visit220_39_1(result) { +function visit231_39_1(result) { _$jscoverage['/lang/object.js'].branchData['39'][1].ranCondition(result); return result; }_$jscoverage['/lang/object.js'].lineData[7]++; @@ -663,16 +663,16 @@ function visit220_39_1(result) { stamp: function(o, readOnly, marker) { _$jscoverage['/lang/object.js'].functionData[1]++; _$jscoverage['/lang/object.js'].lineData[39]++; - marker = visit220_39_1(marker || STAMP_MARKER); + marker = visit231_39_1(marker || STAMP_MARKER); _$jscoverage['/lang/object.js'].lineData[40]++; var guid = o[marker]; _$jscoverage['/lang/object.js'].lineData[41]++; - if (visit221_41_1(guid)) { + if (visit232_41_1(guid)) { _$jscoverage['/lang/object.js'].lineData[42]++; return guid; } else { _$jscoverage['/lang/object.js'].lineData[43]++; - if (visit222_43_1(!readOnly)) { + if (visit233_43_1(!readOnly)) { _$jscoverage['/lang/object.js'].lineData[44]++; try { _$jscoverage['/lang/object.js'].lineData[45]++; @@ -686,26 +686,26 @@ function visit220_39_1(result) { _$jscoverage['/lang/object.js'].lineData[51]++; return guid; }, - keys: visit223_61_1(Obj.keys || function(o) { + keys: visit234_61_1(Obj.keys || function(o) { _$jscoverage['/lang/object.js'].functionData[2]++; _$jscoverage['/lang/object.js'].lineData[62]++; var result = [], p, i; _$jscoverage['/lang/object.js'].lineData[64]++; for (p in o) { _$jscoverage['/lang/object.js'].lineData[66]++; - if (visit224_66_1(o.hasOwnProperty(p))) { + if (visit235_66_1(o.hasOwnProperty(p))) { _$jscoverage['/lang/object.js'].lineData[67]++; result.push(p); } } _$jscoverage['/lang/object.js'].lineData[71]++; - if (visit225_71_1(hasEnumBug)) { + if (visit236_71_1(hasEnumBug)) { _$jscoverage['/lang/object.js'].lineData[72]++; - for (i = enumProperties.length - 1; visit226_72_1(i >= 0); i--) { + for (i = enumProperties.length - 1; visit237_72_1(i >= 0); i--) { _$jscoverage['/lang/object.js'].lineData[73]++; p = enumProperties[i]; _$jscoverage['/lang/object.js'].lineData[74]++; - if (visit227_74_1(o.hasOwnProperty(p))) { + if (visit238_74_1(o.hasOwnProperty(p))) { _$jscoverage['/lang/object.js'].lineData[75]++; result.push(p); } @@ -717,7 +717,7 @@ function visit220_39_1(result) { mix: function(r, s, ov, wl, deep) { _$jscoverage['/lang/object.js'].functionData[3]++; _$jscoverage['/lang/object.js'].lineData[106]++; - if (visit228_106_1(typeof ov === 'object')) { + if (visit239_106_1(typeof ov === 'object')) { _$jscoverage['/lang/object.js'].lineData[107]++; wl = ov.whitelist; _$jscoverage['/lang/object.js'].lineData[111]++; @@ -726,7 +726,7 @@ function visit220_39_1(result) { ov = ov.overwrite; } _$jscoverage['/lang/object.js'].lineData[115]++; - if (visit229_115_1(wl && (visit230_115_2(typeof wl !== 'function')))) { + if (visit240_115_1(wl && (visit241_115_2(typeof wl !== 'function')))) { _$jscoverage['/lang/object.js'].lineData[116]++; var originalWl = wl; _$jscoverage['/lang/object.js'].lineData[117]++; @@ -737,7 +737,7 @@ function visit220_39_1(result) { }; } _$jscoverage['/lang/object.js'].lineData[122]++; - if (visit231_122_1(ov === undefined)) { + if (visit242_122_1(ov === undefined)) { _$jscoverage['/lang/object.js'].lineData[123]++; ov = TRUE; } @@ -760,7 +760,7 @@ function visit220_39_1(result) { _$jscoverage['/lang/object.js'].lineData[147]++; var o = {}, i, l = varArgs.length; _$jscoverage['/lang/object.js'].lineData[150]++; - for (i = 0; visit232_150_1(i < l); i++) { + for (i = 0; visit243_150_1(i < l); i++) { _$jscoverage['/lang/object.js'].lineData[151]++; S.mix(o, varArgs[i]); } @@ -774,7 +774,7 @@ function visit220_39_1(result) { _$jscoverage['/lang/object.js'].lineData[174]++; args[1] = varArgs; _$jscoverage['/lang/object.js'].lineData[176]++; - if (visit233_176_1(!S.isArray(wl))) { + if (visit244_176_1(!S.isArray(wl))) { _$jscoverage['/lang/object.js'].lineData[177]++; ov = wl; _$jscoverage['/lang/object.js'].lineData[178]++; @@ -783,14 +783,14 @@ function visit220_39_1(result) { len++; } _$jscoverage['/lang/object.js'].lineData[181]++; - if (visit234_181_1(typeof ov !== 'boolean')) { + if (visit245_181_1(typeof ov !== 'boolean')) { _$jscoverage['/lang/object.js'].lineData[182]++; ov = undefined; _$jscoverage['/lang/object.js'].lineData[183]++; len++; } _$jscoverage['/lang/object.js'].lineData[186]++; - for (; visit235_186_1(i < len); i++) { + for (; visit246_186_1(i < len); i++) { _$jscoverage['/lang/object.js'].lineData[187]++; arg = args[i]; _$jscoverage['/lang/object.js'].lineData[188]++; @@ -807,19 +807,19 @@ function visit220_39_1(result) { extend: function(r, s, px, sx) { _$jscoverage['/lang/object.js'].functionData[7]++; _$jscoverage['/lang/object.js'].lineData[209]++; - if (visit236_209_1('@DEBUG@')) { + if (visit247_209_1('@DEBUG@')) { _$jscoverage['/lang/object.js'].lineData[210]++; - if (visit237_210_1(!r)) { + if (visit248_210_1(!r)) { _$jscoverage['/lang/object.js'].lineData[211]++; logger.error('extend r is null'); } _$jscoverage['/lang/object.js'].lineData[213]++; - if (visit238_213_1(!s)) { + if (visit249_213_1(!s)) { _$jscoverage['/lang/object.js'].lineData[214]++; logger.error('extend s is null'); } _$jscoverage['/lang/object.js'].lineData[216]++; - if (visit239_216_1(!s || !r)) { + if (visit250_216_1(!s || !r)) { _$jscoverage['/lang/object.js'].lineData[217]++; return r; } @@ -835,12 +835,12 @@ function visit220_39_1(result) { _$jscoverage['/lang/object.js'].lineData[231]++; r.superclass = sp; _$jscoverage['/lang/object.js'].lineData[234]++; - if (visit240_234_1(px)) { + if (visit251_234_1(px)) { _$jscoverage['/lang/object.js'].lineData[235]++; S.mix(rp, px); } _$jscoverage['/lang/object.js'].lineData[239]++; - if (visit241_239_1(sx)) { + if (visit252_239_1(sx)) { _$jscoverage['/lang/object.js'].lineData[240]++; S.mix(r, sx); } @@ -850,17 +850,17 @@ function visit220_39_1(result) { namespace: function() { _$jscoverage['/lang/object.js'].functionData[8]++; _$jscoverage['/lang/object.js'].lineData[261]++; - var args = S.makeArray(arguments), l = args.length, o = null, i, j, p, global = (visit242_264_1(visit243_264_2(args[l - 1] === TRUE) && l--)); + var args = S.makeArray(arguments), l = args.length, o = null, i, j, p, global = (visit253_264_1(visit254_264_2(args[l - 1] === TRUE) && l--)); _$jscoverage['/lang/object.js'].lineData[266]++; - for (i = 0; visit244_266_1(i < l); i++) { + for (i = 0; visit255_266_1(i < l); i++) { _$jscoverage['/lang/object.js'].lineData[267]++; p = (EMPTY + args[i]).split('.'); _$jscoverage['/lang/object.js'].lineData[268]++; o = global ? host : this; _$jscoverage['/lang/object.js'].lineData[269]++; - for (j = (visit245_269_1(host[p[0]] === o)) ? 1 : 0; visit246_269_2(j < p.length); ++j) { + for (j = (visit256_269_1(host[p[0]] === o)) ? 1 : 0; visit257_269_2(j < p.length); ++j) { _$jscoverage['/lang/object.js'].lineData[270]++; - o = o[p[j]] = visit247_270_1(o[p[j]] || {}); + o = o[p[j]] = visit258_270_1(o[p[j]] || {}); } } _$jscoverage['/lang/object.js'].lineData[273]++; @@ -876,7 +876,7 @@ function visit220_39_1(result) { _$jscoverage['/lang/object.js'].lineData[282]++; var newProto; _$jscoverage['/lang/object.js'].lineData[283]++; - if (visit248_283_1(objectCreate)) { + if (visit259_283_1(objectCreate)) { _$jscoverage['/lang/object.js'].lineData[284]++; newProto = objectCreate(proto); } else { @@ -903,7 +903,7 @@ function visit220_39_1(result) { function mixInternal(r, s, ov, wl, deep, cache) { _$jscoverage['/lang/object.js'].functionData[12]++; _$jscoverage['/lang/object.js'].lineData[300]++; - if (visit249_300_1(!s || !r)) { + if (visit260_300_1(!s || !r)) { _$jscoverage['/lang/object.js'].lineData[301]++; return r; } @@ -918,11 +918,11 @@ function visit220_39_1(result) { _$jscoverage['/lang/object.js'].lineData[313]++; len = keys.length; _$jscoverage['/lang/object.js'].lineData[314]++; - for (i = 0; visit250_314_1(i < len); i++) { + for (i = 0; visit261_314_1(i < len); i++) { _$jscoverage['/lang/object.js'].lineData[315]++; p = keys[i]; _$jscoverage['/lang/object.js'].lineData[316]++; - if (visit251_316_1(p !== MIX_CIRCULAR_DETECTION)) { + if (visit262_316_1(p !== MIX_CIRCULAR_DETECTION)) { _$jscoverage['/lang/object.js'].lineData[318]++; _mix(p, r, s, ov, wl, deep, cache); } @@ -934,19 +934,19 @@ function visit220_39_1(result) { function removeConstructor(k, v) { _$jscoverage['/lang/object.js'].functionData[13]++; _$jscoverage['/lang/object.js'].lineData[326]++; - return visit252_326_1(k === 'constructor') ? undefined : v; + return visit263_326_1(k === 'constructor') ? undefined : v; } _$jscoverage['/lang/object.js'].lineData[329]++; function _mix(p, r, s, ov, wl, deep, cache) { _$jscoverage['/lang/object.js'].functionData[14]++; _$jscoverage['/lang/object.js'].lineData[333]++; - if (visit253_333_1(ov || visit254_333_2(!(p in r) || deep))) { + if (visit264_333_1(ov || visit265_333_2(!(p in r) || deep))) { _$jscoverage['/lang/object.js'].lineData[334]++; var target = r[p], src = s[p]; _$jscoverage['/lang/object.js'].lineData[337]++; - if (visit255_337_1(target === src)) { + if (visit266_337_1(target === src)) { _$jscoverage['/lang/object.js'].lineData[339]++; - if (visit256_339_1(target === undefined)) { + if (visit267_339_1(target === undefined)) { _$jscoverage['/lang/object.js'].lineData[340]++; r[p] = target; } @@ -954,19 +954,19 @@ function visit220_39_1(result) { return; } _$jscoverage['/lang/object.js'].lineData[344]++; - if (visit257_344_1(wl)) { + if (visit268_344_1(wl)) { _$jscoverage['/lang/object.js'].lineData[345]++; src = wl.call(s, p, src); } _$jscoverage['/lang/object.js'].lineData[348]++; - if (visit258_348_1(deep && visit259_348_2(src && (visit260_348_3(S.isArray(src) || S.isPlainObject(src)))))) { + if (visit269_348_1(deep && visit270_348_2(src && (visit271_348_3(S.isArray(src) || S.isPlainObject(src)))))) { _$jscoverage['/lang/object.js'].lineData[349]++; - if (visit261_349_1(src[MIX_CIRCULAR_DETECTION])) { + if (visit272_349_1(src[MIX_CIRCULAR_DETECTION])) { _$jscoverage['/lang/object.js'].lineData[350]++; r[p] = src[MIX_CIRCULAR_DETECTION]; } else { _$jscoverage['/lang/object.js'].lineData[354]++; - var clone = visit262_354_1(target && (visit263_354_2(S.isArray(target) || S.isPlainObject(target)))) ? target : (S.isArray(src) ? [] : {}); + var clone = visit273_354_1(target && (visit274_354_2(S.isArray(target) || S.isPlainObject(target)))) ? target : (S.isArray(src) ? [] : {}); _$jscoverage['/lang/object.js'].lineData[357]++; r[p] = clone; _$jscoverage['/lang/object.js'].lineData[358]++; @@ -974,7 +974,7 @@ function visit220_39_1(result) { } } else { _$jscoverage['/lang/object.js'].lineData[360]++; - if (visit264_360_1(visit265_360_2(src !== undefined) && (visit266_360_3(ov || !(p in r))))) { + if (visit275_360_1(visit276_360_2(src !== undefined) && (visit277_360_3(ov || !(p in r))))) { _$jscoverage['/lang/object.js'].lineData[361]++; r[p] = src; } diff --git a/src/seed/coverage/src/lang/set-immediate.js b/src/seed/coverage/src/lang/set-immediate.js index f932f1f6eb..a102e1fffc 100644 --- a/src/seed/coverage/src/lang/set-immediate.js +++ b/src/seed/coverage/src/lang/set-immediate.js @@ -238,36 +238,38 @@ if (! _$jscoverage['/lang/set-immediate.js']) { _$jscoverage['/lang/set-immediate.js'].lineData[17] = 0; _$jscoverage['/lang/set-immediate.js'].lineData[18] = 0; _$jscoverage['/lang/set-immediate.js'].lineData[20] = 0; - _$jscoverage['/lang/set-immediate.js'].lineData[22] = 0; + _$jscoverage['/lang/set-immediate.js'].lineData[21] = 0; _$jscoverage['/lang/set-immediate.js'].lineData[23] = 0; - _$jscoverage['/lang/set-immediate.js'].lineData[27] = 0; - _$jscoverage['/lang/set-immediate.js'].lineData[28] = 0; - _$jscoverage['/lang/set-immediate.js'].lineData[30] = 0; - _$jscoverage['/lang/set-immediate.js'].lineData[38] = 0; - _$jscoverage['/lang/set-immediate.js'].lineData[39] = 0; - _$jscoverage['/lang/set-immediate.js'].lineData[40] = 0; - _$jscoverage['/lang/set-immediate.js'].lineData[41] = 0; + _$jscoverage['/lang/set-immediate.js'].lineData[25] = 0; + _$jscoverage['/lang/set-immediate.js'].lineData[26] = 0; + _$jscoverage['/lang/set-immediate.js'].lineData[31] = 0; + _$jscoverage['/lang/set-immediate.js'].lineData[32] = 0; + _$jscoverage['/lang/set-immediate.js'].lineData[34] = 0; _$jscoverage['/lang/set-immediate.js'].lineData[42] = 0; + _$jscoverage['/lang/set-immediate.js'].lineData[43] = 0; + _$jscoverage['/lang/set-immediate.js'].lineData[44] = 0; + _$jscoverage['/lang/set-immediate.js'].lineData[45] = 0; _$jscoverage['/lang/set-immediate.js'].lineData[46] = 0; - _$jscoverage['/lang/set-immediate.js'].lineData[47] = 0; - _$jscoverage['/lang/set-immediate.js'].lineData[48] = 0; _$jscoverage['/lang/set-immediate.js'].lineData[50] = 0; + _$jscoverage['/lang/set-immediate.js'].lineData[51] = 0; _$jscoverage['/lang/set-immediate.js'].lineData[52] = 0; _$jscoverage['/lang/set-immediate.js'].lineData[53] = 0; - _$jscoverage['/lang/set-immediate.js'].lineData[54] = 0; + _$jscoverage['/lang/set-immediate.js'].lineData[55] = 0; _$jscoverage['/lang/set-immediate.js'].lineData[56] = 0; + _$jscoverage['/lang/set-immediate.js'].lineData[57] = 0; _$jscoverage['/lang/set-immediate.js'].lineData[59] = 0; _$jscoverage['/lang/set-immediate.js'].lineData[62] = 0; - _$jscoverage['/lang/set-immediate.js'].lineData[63] = 0; - _$jscoverage['/lang/set-immediate.js'].lineData[64] = 0; _$jscoverage['/lang/set-immediate.js'].lineData[65] = 0; + _$jscoverage['/lang/set-immediate.js'].lineData[66] = 0; _$jscoverage['/lang/set-immediate.js'].lineData[67] = 0; + _$jscoverage['/lang/set-immediate.js'].lineData[68] = 0; _$jscoverage['/lang/set-immediate.js'].lineData[70] = 0; - _$jscoverage['/lang/set-immediate.js'].lineData[72] = 0; _$jscoverage['/lang/set-immediate.js'].lineData[73] = 0; - _$jscoverage['/lang/set-immediate.js'].lineData[74] = 0; - _$jscoverage['/lang/set-immediate.js'].lineData[79] = 0; - _$jscoverage['/lang/set-immediate.js'].lineData[80] = 0; + _$jscoverage['/lang/set-immediate.js'].lineData[75] = 0; + _$jscoverage['/lang/set-immediate.js'].lineData[76] = 0; + _$jscoverage['/lang/set-immediate.js'].lineData[77] = 0; + _$jscoverage['/lang/set-immediate.js'].lineData[82] = 0; + _$jscoverage['/lang/set-immediate.js'].lineData[83] = 0; } if (! _$jscoverage['/lang/set-immediate.js'].functionData) { _$jscoverage['/lang/set-immediate.js'].functionData = []; @@ -284,52 +286,58 @@ if (! _$jscoverage['/lang/set-immediate.js'].functionData) { } if (! _$jscoverage['/lang/set-immediate.js'].branchData) { _$jscoverage['/lang/set-immediate.js'].branchData = {}; - _$jscoverage['/lang/set-immediate.js'].branchData['20'] = []; - _$jscoverage['/lang/set-immediate.js'].branchData['20'][1] = new BranchData(); - _$jscoverage['/lang/set-immediate.js'].branchData['27'] = []; - _$jscoverage['/lang/set-immediate.js'].branchData['27'][1] = new BranchData(); - _$jscoverage['/lang/set-immediate.js'].branchData['40'] = []; - _$jscoverage['/lang/set-immediate.js'].branchData['40'][1] = new BranchData(); - _$jscoverage['/lang/set-immediate.js'].branchData['47'] = []; - _$jscoverage['/lang/set-immediate.js'].branchData['47'][1] = new BranchData(); - _$jscoverage['/lang/set-immediate.js'].branchData['52'] = []; - _$jscoverage['/lang/set-immediate.js'].branchData['52'][1] = new BranchData(); - _$jscoverage['/lang/set-immediate.js'].branchData['52'][2] = new BranchData(); - _$jscoverage['/lang/set-immediate.js'].branchData['52'][3] = new BranchData(); - _$jscoverage['/lang/set-immediate.js'].branchData['56'] = []; - _$jscoverage['/lang/set-immediate.js'].branchData['56'][1] = new BranchData(); + _$jscoverage['/lang/set-immediate.js'].branchData['17'] = []; + _$jscoverage['/lang/set-immediate.js'].branchData['17'][1] = new BranchData(); + _$jscoverage['/lang/set-immediate.js'].branchData['23'] = []; + _$jscoverage['/lang/set-immediate.js'].branchData['23'][1] = new BranchData(); + _$jscoverage['/lang/set-immediate.js'].branchData['31'] = []; + _$jscoverage['/lang/set-immediate.js'].branchData['31'][1] = new BranchData(); + _$jscoverage['/lang/set-immediate.js'].branchData['44'] = []; + _$jscoverage['/lang/set-immediate.js'].branchData['44'][1] = new BranchData(); + _$jscoverage['/lang/set-immediate.js'].branchData['51'] = []; + _$jscoverage['/lang/set-immediate.js'].branchData['51'][1] = new BranchData(); + _$jscoverage['/lang/set-immediate.js'].branchData['55'] = []; + _$jscoverage['/lang/set-immediate.js'].branchData['55'][1] = new BranchData(); + _$jscoverage['/lang/set-immediate.js'].branchData['55'][2] = new BranchData(); + _$jscoverage['/lang/set-immediate.js'].branchData['55'][3] = new BranchData(); + _$jscoverage['/lang/set-immediate.js'].branchData['59'] = []; + _$jscoverage['/lang/set-immediate.js'].branchData['59'][1] = new BranchData(); } -_$jscoverage['/lang/set-immediate.js'].branchData['56'][1].init(1192, 37, 'typeof MessageChannel !== \'undefined\''); -function visit274_56_1(result) { - _$jscoverage['/lang/set-immediate.js'].branchData['56'][1].ranCondition(result); +_$jscoverage['/lang/set-immediate.js'].branchData['59'][1].init(1315, 37, 'typeof MessageChannel !== \'undefined\''); +function visit286_59_1(result) { + _$jscoverage['/lang/set-immediate.js'].branchData['59'][1].ranCondition(result); return result; -}_$jscoverage['/lang/set-immediate.js'].branchData['52'][3].init(1048, 39, 'typeof process.nextTick === \'function\''); -function visit273_52_3(result) { - _$jscoverage['/lang/set-immediate.js'].branchData['52'][3].ranCondition(result); +}_$jscoverage['/lang/set-immediate.js'].branchData['55'][3].init(1171, 39, 'typeof process.nextTick === \'function\''); +function visit285_55_3(result) { + _$jscoverage['/lang/set-immediate.js'].branchData['55'][3].ranCondition(result); return result; -}_$jscoverage['/lang/set-immediate.js'].branchData['52'][2].init(1014, 30, 'typeof process !== \'undefined\''); -function visit272_52_2(result) { - _$jscoverage['/lang/set-immediate.js'].branchData['52'][2].ranCondition(result); +}_$jscoverage['/lang/set-immediate.js'].branchData['55'][2].init(1137, 30, 'typeof process !== \'undefined\''); +function visit284_55_2(result) { + _$jscoverage['/lang/set-immediate.js'].branchData['55'][2].ranCondition(result); return result; -}_$jscoverage['/lang/set-immediate.js'].branchData['52'][1].init(1014, 73, 'typeof process !== \'undefined\' && typeof process.nextTick === \'function\''); -function visit271_52_1(result) { - _$jscoverage['/lang/set-immediate.js'].branchData['52'][1].ranCondition(result); +}_$jscoverage['/lang/set-immediate.js'].branchData['55'][1].init(1137, 73, 'typeof process !== \'undefined\' && typeof process.nextTick === \'function\''); +function visit283_55_1(result) { + _$jscoverage['/lang/set-immediate.js'].branchData['55'][1].ranCondition(result); return result; -}_$jscoverage['/lang/set-immediate.js'].branchData['47'][1].init(878, 34, 'typeof setImmediate === \'function\''); -function visit270_47_1(result) { - _$jscoverage['/lang/set-immediate.js'].branchData['47'][1].ranCondition(result); +}_$jscoverage['/lang/set-immediate.js'].branchData['51'][1].init(1002, 34, 'typeof setImmediate === \'function\''); +function visit282_51_1(result) { + _$jscoverage['/lang/set-immediate.js'].branchData['51'][1].ranCondition(result); return result; -}_$jscoverage['/lang/set-immediate.js'].branchData['40'][1].init(37, 9, '!flushing'); -function visit269_40_1(result) { - _$jscoverage['/lang/set-immediate.js'].branchData['40'][1].ranCondition(result); +}_$jscoverage['/lang/set-immediate.js'].branchData['44'][1].init(37, 9, '!flushing'); +function visit281_44_1(result) { + _$jscoverage['/lang/set-immediate.js'].branchData['44'][1].ranCondition(result); return result; -}_$jscoverage['/lang/set-immediate.js'].branchData['27'][1].init(348, 5, 'i > 1'); -function visit268_27_1(result) { - _$jscoverage['/lang/set-immediate.js'].branchData['27'][1].ranCondition(result); +}_$jscoverage['/lang/set-immediate.js'].branchData['31'][1].init(472, 5, 'i > 1'); +function visit280_31_1(result) { + _$jscoverage['/lang/set-immediate.js'].branchData['31'][1].ranCondition(result); return result; -}_$jscoverage['/lang/set-immediate.js'].branchData['20'][1].init(23, 12, 'e.stack || e'); -function visit267_20_1(result) { - _$jscoverage['/lang/set-immediate.js'].branchData['20'][1].ranCondition(result); +}_$jscoverage['/lang/set-immediate.js'].branchData['23'][1].init(27, 12, 'e.stack || e'); +function visit279_23_1(result) { + _$jscoverage['/lang/set-immediate.js'].branchData['23'][1].ranCondition(result); + return result; +}_$jscoverage['/lang/set-immediate.js'].branchData['17'][1].init(17, 9, '\'@DEBUG@\''); +function visit278_17_1(result) { + _$jscoverage['/lang/set-immediate.js'].branchData['17'][1].ranCondition(result); return result; }_$jscoverage['/lang/set-immediate.js'].lineData[5]++; (function(S) { @@ -346,94 +354,100 @@ function visit267_20_1(result) { _$jscoverage['/lang/set-immediate.js'].lineData[16]++; while ((item = queue[i++])) { _$jscoverage['/lang/set-immediate.js'].lineData[17]++; - try { + if (visit278_17_1('@DEBUG@')) { _$jscoverage['/lang/set-immediate.js'].lineData[18]++; item(); - } catch (e) { - _$jscoverage['/lang/set-immediate.js'].lineData[20]++; - S.log(visit267_20_1(e.stack || e), 'error'); - _$jscoverage['/lang/set-immediate.js'].lineData[22]++; + } else { + _$jscoverage['/lang/set-immediate.js'].lineData[20]++; + try { + _$jscoverage['/lang/set-immediate.js'].lineData[21]++; + item(); + } catch (e) { + _$jscoverage['/lang/set-immediate.js'].lineData[23]++; + S.log(visit279_23_1(e.stack || e), 'error'); + _$jscoverage['/lang/set-immediate.js'].lineData[25]++; setTimeout(function() { _$jscoverage['/lang/set-immediate.js'].functionData[2]++; - _$jscoverage['/lang/set-immediate.js'].lineData[23]++; + _$jscoverage['/lang/set-immediate.js'].lineData[26]++; throw e; }, 0); } + } } - _$jscoverage['/lang/set-immediate.js'].lineData[27]++; - if (visit268_27_1(i > 1)) { - _$jscoverage['/lang/set-immediate.js'].lineData[28]++; + _$jscoverage['/lang/set-immediate.js'].lineData[31]++; + if (visit280_31_1(i > 1)) { + _$jscoverage['/lang/set-immediate.js'].lineData[32]++; queue = []; } - _$jscoverage['/lang/set-immediate.js'].lineData[30]++; + _$jscoverage['/lang/set-immediate.js'].lineData[34]++; flushing = 0; } - _$jscoverage['/lang/set-immediate.js'].lineData[38]++; + _$jscoverage['/lang/set-immediate.js'].lineData[42]++; S.setImmediate = function(fn) { _$jscoverage['/lang/set-immediate.js'].functionData[3]++; - _$jscoverage['/lang/set-immediate.js'].lineData[39]++; + _$jscoverage['/lang/set-immediate.js'].lineData[43]++; queue.push(fn); - _$jscoverage['/lang/set-immediate.js'].lineData[40]++; - if (visit269_40_1(!flushing)) { - _$jscoverage['/lang/set-immediate.js'].lineData[41]++; + _$jscoverage['/lang/set-immediate.js'].lineData[44]++; + if (visit281_44_1(!flushing)) { + _$jscoverage['/lang/set-immediate.js'].lineData[45]++; flushing = 1; - _$jscoverage['/lang/set-immediate.js'].lineData[42]++; + _$jscoverage['/lang/set-immediate.js'].lineData[46]++; requestFlush(); } }; - _$jscoverage['/lang/set-immediate.js'].lineData[46]++; + _$jscoverage['/lang/set-immediate.js'].lineData[50]++; var requestFlush; - _$jscoverage['/lang/set-immediate.js'].lineData[47]++; - if (visit270_47_1(typeof setImmediate === 'function')) { - _$jscoverage['/lang/set-immediate.js'].lineData[48]++; + _$jscoverage['/lang/set-immediate.js'].lineData[51]++; + if (visit282_51_1(typeof setImmediate === 'function')) { + _$jscoverage['/lang/set-immediate.js'].lineData[52]++; requestFlush = function() { _$jscoverage['/lang/set-immediate.js'].functionData[4]++; - _$jscoverage['/lang/set-immediate.js'].lineData[50]++; + _$jscoverage['/lang/set-immediate.js'].lineData[53]++; setImmediate(flush); }; } else { - _$jscoverage['/lang/set-immediate.js'].lineData[52]++; - if (visit271_52_1(visit272_52_2(typeof process !== 'undefined') && visit273_52_3(typeof process.nextTick === 'function'))) { - _$jscoverage['/lang/set-immediate.js'].lineData[53]++; + _$jscoverage['/lang/set-immediate.js'].lineData[55]++; + if (visit283_55_1(visit284_55_2(typeof process !== 'undefined') && visit285_55_3(typeof process.nextTick === 'function'))) { + _$jscoverage['/lang/set-immediate.js'].lineData[56]++; requestFlush = function() { _$jscoverage['/lang/set-immediate.js'].functionData[5]++; - _$jscoverage['/lang/set-immediate.js'].lineData[54]++; + _$jscoverage['/lang/set-immediate.js'].lineData[57]++; process.nextTick(flush); }; } else { - _$jscoverage['/lang/set-immediate.js'].lineData[56]++; - if (visit274_56_1(typeof MessageChannel !== 'undefined')) { - _$jscoverage['/lang/set-immediate.js'].lineData[59]++; - var channel = new MessageChannel(); + _$jscoverage['/lang/set-immediate.js'].lineData[59]++; + if (visit286_59_1(typeof MessageChannel !== 'undefined')) { _$jscoverage['/lang/set-immediate.js'].lineData[62]++; + var channel = new MessageChannel(); + _$jscoverage['/lang/set-immediate.js'].lineData[65]++; channel.port1.onmessage = function() { _$jscoverage['/lang/set-immediate.js'].functionData[6]++; - _$jscoverage['/lang/set-immediate.js'].lineData[63]++; + _$jscoverage['/lang/set-immediate.js'].lineData[66]++; requestFlush = realRequestFlush; - _$jscoverage['/lang/set-immediate.js'].lineData[64]++; + _$jscoverage['/lang/set-immediate.js'].lineData[67]++; channel.port1.onmessage = flush; - _$jscoverage['/lang/set-immediate.js'].lineData[65]++; + _$jscoverage['/lang/set-immediate.js'].lineData[68]++; flush(); }; - _$jscoverage['/lang/set-immediate.js'].lineData[67]++; + _$jscoverage['/lang/set-immediate.js'].lineData[70]++; var realRequestFlush = function() { _$jscoverage['/lang/set-immediate.js'].functionData[7]++; - _$jscoverage['/lang/set-immediate.js'].lineData[70]++; + _$jscoverage['/lang/set-immediate.js'].lineData[73]++; channel.port2.postMessage(0); }; - _$jscoverage['/lang/set-immediate.js'].lineData[72]++; + _$jscoverage['/lang/set-immediate.js'].lineData[75]++; requestFlush = function() { _$jscoverage['/lang/set-immediate.js'].functionData[8]++; - _$jscoverage['/lang/set-immediate.js'].lineData[73]++; + _$jscoverage['/lang/set-immediate.js'].lineData[76]++; setTimeout(flush, 0); - _$jscoverage['/lang/set-immediate.js'].lineData[74]++; + _$jscoverage['/lang/set-immediate.js'].lineData[77]++; realRequestFlush(); }; } else { - _$jscoverage['/lang/set-immediate.js'].lineData[79]++; + _$jscoverage['/lang/set-immediate.js'].lineData[82]++; requestFlush = function() { _$jscoverage['/lang/set-immediate.js'].functionData[9]++; - _$jscoverage['/lang/set-immediate.js'].lineData[80]++; + _$jscoverage['/lang/set-immediate.js'].lineData[83]++; setTimeout(flush, 0); }; } diff --git a/src/seed/coverage/src/lang/string.js b/src/seed/coverage/src/lang/string.js index 306a56aaf8..fdaea2306c 100644 --- a/src/seed/coverage/src/lang/string.js +++ b/src/seed/coverage/src/lang/string.js @@ -280,47 +280,47 @@ if (! _$jscoverage['/lang/string.js'].branchData) { _$jscoverage['/lang/string.js'].branchData['81'][3] = new BranchData(); } _$jscoverage['/lang/string.js'].branchData['81'][3].init(82, 32, 'str.indexOf(suffix, ind) === ind'); -function visit285_81_3(result) { +function visit297_81_3(result) { _$jscoverage['/lang/string.js'].branchData['81'][3].ranCondition(result); return result; }_$jscoverage['/lang/string.js'].branchData['81'][2].init(70, 8, 'ind >= 0'); -function visit284_81_2(result) { +function visit296_81_2(result) { _$jscoverage['/lang/string.js'].branchData['81'][2].ranCondition(result); return result; }_$jscoverage['/lang/string.js'].branchData['81'][1].init(70, 44, 'ind >= 0 && str.indexOf(suffix, ind) === ind'); -function visit283_81_1(result) { +function visit295_81_1(result) { _$jscoverage['/lang/string.js'].branchData['81'][1].ranCondition(result); return result; }_$jscoverage['/lang/string.js'].branchData['69'][1].init(20, 32, 'str.lastIndexOf(prefix, 0) === 0'); -function visit282_69_1(result) { +function visit294_69_1(result) { _$jscoverage['/lang/string.js'].branchData['69'][1].ranCondition(result); return result; }_$jscoverage['/lang/string.js'].branchData['48'][1].init(134, 21, 'o[name] === undefined'); -function visit281_48_1(result) { +function visit293_48_1(result) { _$jscoverage['/lang/string.js'].branchData['48'][1].ranCondition(result); return result; }_$jscoverage['/lang/string.js'].branchData['45'][1].init(21, 24, 'match.charAt(0) === \'\\\\\''); -function visit280_45_1(result) { +function visit292_45_1(result) { _$jscoverage['/lang/string.js'].branchData['45'][1].ranCondition(result); return result; }_$jscoverage['/lang/string.js'].branchData['44'][1].init(124, 24, 'regexp || SUBSTITUTE_REG'); -function visit279_44_1(result) { +function visit291_44_1(result) { _$jscoverage['/lang/string.js'].branchData['44'][1].ranCondition(result); return result; }_$jscoverage['/lang/string.js'].branchData['40'][2].init(17, 23, 'typeof str !== \'string\''); -function visit278_40_2(result) { +function visit290_40_2(result) { _$jscoverage['/lang/string.js'].branchData['40'][2].ranCondition(result); return result; }_$jscoverage['/lang/string.js'].branchData['40'][1].init(17, 29, 'typeof str !== \'string\' || !o'); -function visit277_40_1(result) { +function visit289_40_1(result) { _$jscoverage['/lang/string.js'].branchData['40'][1].ranCondition(result); return result; }_$jscoverage['/lang/string.js'].branchData['28'][1].init(24, 11, 'str == null'); -function visit276_28_1(result) { +function visit288_28_1(result) { _$jscoverage['/lang/string.js'].branchData['28'][1].ranCondition(result); return result; }_$jscoverage['/lang/string.js'].branchData['25'][1].init(24, 11, 'str == null'); -function visit275_25_1(result) { +function visit287_25_1(result) { _$jscoverage['/lang/string.js'].branchData['25'][1].ranCondition(result); return result; }_$jscoverage['/lang/string.js'].lineData[7]++; @@ -333,29 +333,29 @@ function visit275_25_1(result) { trim: trim ? function(str) { _$jscoverage['/lang/string.js'].functionData[1]++; _$jscoverage['/lang/string.js'].lineData[25]++; - return visit275_25_1(str == null) ? EMPTY : trim.call(str); + return visit287_25_1(str == null) ? EMPTY : trim.call(str); } : function(str) { _$jscoverage['/lang/string.js'].functionData[2]++; _$jscoverage['/lang/string.js'].lineData[28]++; - return visit276_28_1(str == null) ? EMPTY : (str + '').replace(RE_TRIM, EMPTY); + return visit288_28_1(str == null) ? EMPTY : (str + '').replace(RE_TRIM, EMPTY); }, substitute: function(str, o, regexp) { _$jscoverage['/lang/string.js'].functionData[3]++; _$jscoverage['/lang/string.js'].lineData[40]++; - if (visit277_40_1(visit278_40_2(typeof str !== 'string') || !o)) { + if (visit289_40_1(visit290_40_2(typeof str !== 'string') || !o)) { _$jscoverage['/lang/string.js'].lineData[41]++; return str; } _$jscoverage['/lang/string.js'].lineData[44]++; - return str.replace(visit279_44_1(regexp || SUBSTITUTE_REG), function(match, name) { + return str.replace(visit291_44_1(regexp || SUBSTITUTE_REG), function(match, name) { _$jscoverage['/lang/string.js'].functionData[4]++; _$jscoverage['/lang/string.js'].lineData[45]++; - if (visit280_45_1(match.charAt(0) === '\\')) { + if (visit292_45_1(match.charAt(0) === '\\')) { _$jscoverage['/lang/string.js'].lineData[46]++; return match.slice(1); } _$jscoverage['/lang/string.js'].lineData[48]++; - return (visit281_48_1(o[name] === undefined)) ? EMPTY : o[name]; + return (visit293_48_1(o[name] === undefined)) ? EMPTY : o[name]; }); }, ucfirst: function(s) { @@ -368,13 +368,13 @@ function visit275_25_1(result) { startsWith: function(str, prefix) { _$jscoverage['/lang/string.js'].functionData[6]++; _$jscoverage['/lang/string.js'].lineData[69]++; - return visit282_69_1(str.lastIndexOf(prefix, 0) === 0); + return visit294_69_1(str.lastIndexOf(prefix, 0) === 0); }, endsWith: function(str, suffix) { _$jscoverage['/lang/string.js'].functionData[7]++; _$jscoverage['/lang/string.js'].lineData[80]++; var ind = str.length - suffix.length; _$jscoverage['/lang/string.js'].lineData[81]++; - return visit283_81_1(visit284_81_2(ind >= 0) && visit285_81_3(str.indexOf(suffix, ind) === ind)); + return visit295_81_1(visit296_81_2(ind >= 0) && visit297_81_3(str.indexOf(suffix, ind) === ind)); }}); })(KISSY); diff --git a/src/seed/coverage/src/lang/type.js b/src/seed/coverage/src/lang/type.js index 7af1680c53..86a00a0002 100644 --- a/src/seed/coverage/src/lang/type.js +++ b/src/seed/coverage/src/lang/type.js @@ -242,21 +242,21 @@ if (! _$jscoverage['/lang/type.js']) { _$jscoverage['/lang/type.js'].lineData[55] = 0; _$jscoverage['/lang/type.js'].lineData[58] = 0; _$jscoverage['/lang/type.js'].lineData[70] = 0; - _$jscoverage['/lang/type.js'].lineData[71] = 0; _$jscoverage['/lang/type.js'].lineData[74] = 0; - _$jscoverage['/lang/type.js'].lineData[76] = 0; - _$jscoverage['/lang/type.js'].lineData[78] = 0; + _$jscoverage['/lang/type.js'].lineData[77] = 0; _$jscoverage['/lang/type.js'].lineData[79] = 0; - _$jscoverage['/lang/type.js'].lineData[83] = 0; - _$jscoverage['/lang/type.js'].lineData[89] = 0; + _$jscoverage['/lang/type.js'].lineData[81] = 0; + _$jscoverage['/lang/type.js'].lineData[82] = 0; + _$jscoverage['/lang/type.js'].lineData[86] = 0; _$jscoverage['/lang/type.js'].lineData[92] = 0; - _$jscoverage['/lang/type.js'].lineData[96] = 0; - _$jscoverage['/lang/type.js'].lineData[97] = 0; - _$jscoverage['/lang/type.js'].lineData[165] = 0; - _$jscoverage['/lang/type.js'].lineData[167] = 0; + _$jscoverage['/lang/type.js'].lineData[95] = 0; + _$jscoverage['/lang/type.js'].lineData[99] = 0; + _$jscoverage['/lang/type.js'].lineData[100] = 0; + _$jscoverage['/lang/type.js'].lineData[168] = 0; _$jscoverage['/lang/type.js'].lineData[170] = 0; - _$jscoverage['/lang/type.js'].lineData[171] = 0; + _$jscoverage['/lang/type.js'].lineData[173] = 0; _$jscoverage['/lang/type.js'].lineData[174] = 0; + _$jscoverage['/lang/type.js'].lineData[177] = 0; } if (! _$jscoverage['/lang/type.js'].functionData) { _$jscoverage['/lang/type.js'].functionData = []; @@ -287,86 +287,87 @@ if (! _$jscoverage['/lang/type.js'].branchData) { _$jscoverage['/lang/type.js'].branchData['70'][2] = new BranchData(); _$jscoverage['/lang/type.js'].branchData['70'][3] = new BranchData(); _$jscoverage['/lang/type.js'].branchData['70'][4] = new BranchData(); - _$jscoverage['/lang/type.js'].branchData['70'][5] = new BranchData(); - _$jscoverage['/lang/type.js'].branchData['78'] = []; - _$jscoverage['/lang/type.js'].branchData['78'][1] = new BranchData(); - _$jscoverage['/lang/type.js'].branchData['78'][2] = new BranchData(); - _$jscoverage['/lang/type.js'].branchData['92'] = []; - _$jscoverage['/lang/type.js'].branchData['92'][1] = new BranchData(); - _$jscoverage['/lang/type.js'].branchData['92'][2] = new BranchData(); - _$jscoverage['/lang/type.js'].branchData['96'] = []; - _$jscoverage['/lang/type.js'].branchData['96'][1] = new BranchData(); - _$jscoverage['/lang/type.js'].branchData['171'] = []; - _$jscoverage['/lang/type.js'].branchData['171'][1] = new BranchData(); + _$jscoverage['/lang/type.js'].branchData['73'] = []; + _$jscoverage['/lang/type.js'].branchData['73'][1] = new BranchData(); + _$jscoverage['/lang/type.js'].branchData['81'] = []; + _$jscoverage['/lang/type.js'].branchData['81'][1] = new BranchData(); + _$jscoverage['/lang/type.js'].branchData['81'][2] = new BranchData(); + _$jscoverage['/lang/type.js'].branchData['95'] = []; + _$jscoverage['/lang/type.js'].branchData['95'][1] = new BranchData(); + _$jscoverage['/lang/type.js'].branchData['95'][2] = new BranchData(); + _$jscoverage['/lang/type.js'].branchData['99'] = []; + _$jscoverage['/lang/type.js'].branchData['99'][1] = new BranchData(); _$jscoverage['/lang/type.js'].branchData['174'] = []; _$jscoverage['/lang/type.js'].branchData['174'][1] = new BranchData(); + _$jscoverage['/lang/type.js'].branchData['177'] = []; + _$jscoverage['/lang/type.js'].branchData['177'][1] = new BranchData(); } -_$jscoverage['/lang/type.js'].branchData['174'][1].init(4673, 26, 'Array.isArray || S.isArray'); -function visit302_174_1(result) { - _$jscoverage['/lang/type.js'].branchData['174'][1].ranCondition(result); +_$jscoverage['/lang/type.js'].branchData['177'][1].init(4763, 26, 'Array.isArray || S.isArray'); +function visit314_177_1(result) { + _$jscoverage['/lang/type.js'].branchData['177'][1].ranCondition(result); return result; -}_$jscoverage['/lang/type.js'].branchData['171'][1].init(20, 16, 'S.type(o) === lc'); -function visit301_171_1(result) { - _$jscoverage['/lang/type.js'].branchData['171'][1].ranCondition(result); +}_$jscoverage['/lang/type.js'].branchData['174'][1].init(20, 16, 'S.type(o) === lc'); +function visit313_174_1(result) { + _$jscoverage['/lang/type.js'].branchData['174'][1].ranCondition(result); return result; -}_$jscoverage['/lang/type.js'].branchData['96'][1].init(2577, 9, '\'@DEBUG@\''); -function visit300_96_1(result) { - _$jscoverage['/lang/type.js'].branchData['96'][1].ranCondition(result); +}_$jscoverage['/lang/type.js'].branchData['99'][1].init(2667, 9, '\'@DEBUG@\''); +function visit312_99_1(result) { + _$jscoverage['/lang/type.js'].branchData['99'][1].ranCondition(result); return result; -}_$jscoverage['/lang/type.js'].branchData['92'][2].init(1061, 17, 'key === undefined'); -function visit299_92_2(result) { - _$jscoverage['/lang/type.js'].branchData['92'][2].ranCondition(result); +}_$jscoverage['/lang/type.js'].branchData['95'][2].init(1151, 17, 'key === undefined'); +function visit311_95_2(result) { + _$jscoverage['/lang/type.js'].branchData['95'][2].ranCondition(result); return result; -}_$jscoverage['/lang/type.js'].branchData['92'][1].init(1061, 46, '(key === undefined) || hasOwnProperty(obj, key)'); -function visit298_92_1(result) { - _$jscoverage['/lang/type.js'].branchData['92'][1].ranCondition(result); +}_$jscoverage['/lang/type.js'].branchData['95'][1].init(1151, 46, '(key === undefined) || hasOwnProperty(obj, key)'); +function visit310_95_1(result) { + _$jscoverage['/lang/type.js'].branchData['95'][1].ranCondition(result); return result; -}_$jscoverage['/lang/type.js'].branchData['78'][2].init(122, 97, '!hasOwnProperty(obj, \'constructor\') && !hasOwnProperty(objConstructor.prototype, \'isPrototypeOf\')'); -function visit297_78_2(result) { - _$jscoverage['/lang/type.js'].branchData['78'][2].ranCondition(result); +}_$jscoverage['/lang/type.js'].branchData['81'][2].init(122, 97, '!hasOwnProperty(obj, \'constructor\') && !hasOwnProperty(objConstructor.prototype, \'isPrototypeOf\')'); +function visit309_81_2(result) { + _$jscoverage['/lang/type.js'].branchData['81'][2].ranCondition(result); return result; -}_$jscoverage['/lang/type.js'].branchData['78'][1].init(85, 134, '(objConstructor = obj.constructor) && !hasOwnProperty(obj, \'constructor\') && !hasOwnProperty(objConstructor.prototype, \'isPrototypeOf\')'); -function visit296_78_1(result) { - _$jscoverage['/lang/type.js'].branchData['78'][1].ranCondition(result); +}_$jscoverage['/lang/type.js'].branchData['81'][1].init(85, 134, '(objConstructor = obj.constructor) && !hasOwnProperty(obj, \'constructor\') && !hasOwnProperty(objConstructor.prototype, \'isPrototypeOf\')'); +function visit308_81_1(result) { + _$jscoverage['/lang/type.js'].branchData['81'][1].ranCondition(result); return result; -}_$jscoverage['/lang/type.js'].branchData['70'][5].init(284, 18, 'obj.window === obj'); -function visit295_70_5(result) { - _$jscoverage['/lang/type.js'].branchData['70'][5].ranCondition(result); +}_$jscoverage['/lang/type.js'].branchData['73'][1].init(106, 17, 'obj.window == obj'); +function visit307_73_1(result) { + _$jscoverage['/lang/type.js'].branchData['73'][1].ranCondition(result); return result; -}_$jscoverage['/lang/type.js'].branchData['70'][4].init(268, 34, 'obj.nodeType || obj.window === obj'); -function visit294_70_4(result) { +}_$jscoverage['/lang/type.js'].branchData['70'][4].init(268, 124, 'obj.nodeType || obj.window == obj'); +function visit306_70_4(result) { _$jscoverage['/lang/type.js'].branchData['70'][4].ranCondition(result); return result; }_$jscoverage['/lang/type.js'].branchData['70'][3].init(240, 24, 'S.type(obj) !== \'object\''); -function visit293_70_3(result) { +function visit305_70_3(result) { _$jscoverage['/lang/type.js'].branchData['70'][3].ranCondition(result); return result; -}_$jscoverage['/lang/type.js'].branchData['70'][2].init(240, 62, 'S.type(obj) !== \'object\' || obj.nodeType || obj.window === obj'); -function visit292_70_2(result) { +}_$jscoverage['/lang/type.js'].branchData['70'][2].init(240, 152, 'S.type(obj) !== \'object\' || obj.nodeType || obj.window == obj'); +function visit304_70_2(result) { _$jscoverage['/lang/type.js'].branchData['70'][2].ranCondition(result); return result; -}_$jscoverage['/lang/type.js'].branchData['70'][1].init(232, 70, '!obj || S.type(obj) !== \'object\' || obj.nodeType || obj.window === obj'); -function visit291_70_1(result) { +}_$jscoverage['/lang/type.js'].branchData['70'][1].init(232, 160, '!obj || S.type(obj) !== \'object\' || obj.nodeType || obj.window == obj'); +function visit303_70_1(result) { _$jscoverage['/lang/type.js'].branchData['70'][1].ranCondition(result); return result; }_$jscoverage['/lang/type.js'].branchData['54'][1].init(21, 15, 'p !== undefined'); -function visit290_54_1(result) { +function visit302_54_1(result) { _$jscoverage['/lang/type.js'].branchData['54'][1].ranCondition(result); return result; }_$jscoverage['/lang/type.js'].branchData['45'][1].init(20, 15, 'o === undefined'); -function visit289_45_1(result) { +function visit301_45_1(result) { _$jscoverage['/lang/type.js'].branchData['45'][1].ranCondition(result); return result; }_$jscoverage['/lang/type.js'].branchData['36'][1].init(20, 10, 'o === null'); -function visit288_36_1(result) { +function visit300_36_1(result) { _$jscoverage['/lang/type.js'].branchData['36'][1].ranCondition(result); return result; }_$jscoverage['/lang/type.js'].branchData['27'][1].init(55, 40, 'class2type[toString.call(o)] || \'object\''); -function visit287_27_1(result) { +function visit299_27_1(result) { _$jscoverage['/lang/type.js'].branchData['27'][1].ranCondition(result); return result; }_$jscoverage['/lang/type.js'].branchData['25'][1].init(20, 9, 'o == null'); -function visit286_25_1(result) { +function visit298_25_1(result) { _$jscoverage['/lang/type.js'].branchData['25'][1].ranCondition(result); return result; }_$jscoverage['/lang/type.js'].lineData[7]++; @@ -385,24 +386,24 @@ function visit286_25_1(result) { type: function(o) { _$jscoverage['/lang/type.js'].functionData[2]++; _$jscoverage['/lang/type.js'].lineData[25]++; - return visit286_25_1(o == null) ? String(o) : visit287_27_1(class2type[toString.call(o)] || 'object'); + return visit298_25_1(o == null) ? String(o) : visit299_27_1(class2type[toString.call(o)] || 'object'); }, isNull: function(o) { _$jscoverage['/lang/type.js'].functionData[3]++; _$jscoverage['/lang/type.js'].lineData[36]++; - return visit288_36_1(o === null); + return visit300_36_1(o === null); }, isUndefined: function(o) { _$jscoverage['/lang/type.js'].functionData[4]++; _$jscoverage['/lang/type.js'].lineData[45]++; - return visit289_45_1(o === undefined); + return visit301_45_1(o === undefined); }, isEmptyObject: function(o) { _$jscoverage['/lang/type.js'].functionData[5]++; _$jscoverage['/lang/type.js'].lineData[53]++; for (var p in o) { _$jscoverage['/lang/type.js'].lineData[54]++; - if (visit290_54_1(p !== undefined)) { + if (visit302_54_1(p !== undefined)) { _$jscoverage['/lang/type.js'].lineData[55]++; return FALSE; } @@ -413,32 +414,32 @@ function visit286_25_1(result) { isPlainObject: function(obj) { _$jscoverage['/lang/type.js'].functionData[6]++; _$jscoverage['/lang/type.js'].lineData[70]++; - if (visit291_70_1(!obj || visit292_70_2(visit293_70_3(S.type(obj) !== 'object') || visit294_70_4(obj.nodeType || visit295_70_5(obj.window === obj))))) { - _$jscoverage['/lang/type.js'].lineData[71]++; + if (visit303_70_1(!obj || visit304_70_2(visit305_70_3(S.type(obj) !== 'object') || visit306_70_4(obj.nodeType || visit307_73_1(obj.window == obj))))) { + _$jscoverage['/lang/type.js'].lineData[74]++; return FALSE; } - _$jscoverage['/lang/type.js'].lineData[74]++; + _$jscoverage['/lang/type.js'].lineData[77]++; var key, objConstructor; - _$jscoverage['/lang/type.js'].lineData[76]++; + _$jscoverage['/lang/type.js'].lineData[79]++; try { - _$jscoverage['/lang/type.js'].lineData[78]++; - if (visit296_78_1((objConstructor = obj.constructor) && visit297_78_2(!hasOwnProperty(obj, 'constructor') && !hasOwnProperty(objConstructor.prototype, 'isPrototypeOf')))) { - _$jscoverage['/lang/type.js'].lineData[79]++; + _$jscoverage['/lang/type.js'].lineData[81]++; + if (visit308_81_1((objConstructor = obj.constructor) && visit309_81_2(!hasOwnProperty(obj, 'constructor') && !hasOwnProperty(objConstructor.prototype, 'isPrototypeOf')))) { + _$jscoverage['/lang/type.js'].lineData[82]++; return FALSE; } } catch (e) { - _$jscoverage['/lang/type.js'].lineData[83]++; + _$jscoverage['/lang/type.js'].lineData[86]++; return FALSE; } - _$jscoverage['/lang/type.js'].lineData[89]++; + _$jscoverage['/lang/type.js'].lineData[92]++; for (key in obj) { } - _$jscoverage['/lang/type.js'].lineData[92]++; - return (visit298_92_1((visit299_92_2(key === undefined)) || hasOwnProperty(obj, key))); + _$jscoverage['/lang/type.js'].lineData[95]++; + return (visit310_95_1((visit311_95_2(key === undefined)) || hasOwnProperty(obj, key))); }}); - _$jscoverage['/lang/type.js'].lineData[96]++; - if (visit300_96_1('@DEBUG@')) { - _$jscoverage['/lang/type.js'].lineData[97]++; + _$jscoverage['/lang/type.js'].lineData[99]++; + if (visit312_99_1('@DEBUG@')) { + _$jscoverage['/lang/type.js'].lineData[100]++; S.mix(S, { isBoolean: noop, isNumber: noop, @@ -449,18 +450,18 @@ function visit286_25_1(result) { isRegExp: noop, isObject: noop}); } - _$jscoverage['/lang/type.js'].lineData[165]++; + _$jscoverage['/lang/type.js'].lineData[168]++; S.each('Boolean Number String Function Date RegExp Object Array'.split(' '), function(name, lc) { _$jscoverage['/lang/type.js'].functionData[7]++; - _$jscoverage['/lang/type.js'].lineData[167]++; - class2type['[object ' + name + ']'] = (lc = name.toLowerCase()); _$jscoverage['/lang/type.js'].lineData[170]++; + class2type['[object ' + name + ']'] = (lc = name.toLowerCase()); + _$jscoverage['/lang/type.js'].lineData[173]++; S['is' + name] = function(o) { _$jscoverage['/lang/type.js'].functionData[8]++; - _$jscoverage['/lang/type.js'].lineData[171]++; - return visit301_171_1(S.type(o) === lc); + _$jscoverage['/lang/type.js'].lineData[174]++; + return visit313_174_1(S.type(o) === lc); }; }); - _$jscoverage['/lang/type.js'].lineData[174]++; - S.isArray = visit302_174_1(Array.isArray || S.isArray); + _$jscoverage['/lang/type.js'].lineData[177]++; + S.isArray = visit314_177_1(Array.isArray || S.isArray); })(KISSY); diff --git a/src/seed/coverage/src/loader/combo-loader.js b/src/seed/coverage/src/loader/combo-loader.js index e96ac1efa8..956de8847f 100644 --- a/src/seed/coverage/src/loader/combo-loader.js +++ b/src/seed/coverage/src/loader/combo-loader.js @@ -265,119 +265,118 @@ if (! _$jscoverage['/loader/combo-loader.js']) { _$jscoverage['/loader/combo-loader.js'].lineData[87] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[88] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[90] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[92] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[93] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[94] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[95] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[96] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[100] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[97] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[101] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[104] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[107] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[109] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[102] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[105] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[108] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[110] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[111] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[112] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[118] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[113] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[119] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[120] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[121] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[122] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[124] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[126] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[123] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[125] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[127] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[128] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[131] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[138] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[129] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[132] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[139] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[140] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[142] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[144] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[141] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[143] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[145] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[151] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[146] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[152] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[158] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[153] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[159] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[160] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[161] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[162] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[165] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[163] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[166] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[173] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[167] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[174] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[175] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[177] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[180] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[176] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[178] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[181] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[182] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[183] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[184] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[185] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[188] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[186] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[189] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[194] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[190] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[195] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[196] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[197] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[198] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[199] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[200] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[203] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[206] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[211] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[217] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[219] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[221] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[224] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[201] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[204] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[207] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[212] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[218] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[220] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[222] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[225] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[226] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[227] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[230] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[228] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[231] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[232] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[234] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[238] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[233] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[235] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[239] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[240] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[243] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[241] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[244] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[246] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[253] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[245] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[247] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[254] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[255] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[256] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[259] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[257] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[260] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[263] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[261] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[264] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[267] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[265] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[268] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[271] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[282] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[290] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[293] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[295] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[269] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[272] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[283] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[291] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[294] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[296] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[297] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[298] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[300] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[299] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[301] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[302] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[303] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[304] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[306] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[305] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[307] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[308] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[309] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[310] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[313] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[311] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[314] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[316] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[318] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[321] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[324] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[331] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[340] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[315] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[317] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[319] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[322] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[325] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[332] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[341] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[342] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[343] = 0; @@ -389,31 +388,31 @@ if (! _$jscoverage['/loader/combo-loader.js']) { _$jscoverage['/loader/combo-loader.js'].lineData[349] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[350] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[351] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[353] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[355] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[358] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[360] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[352] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[354] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[356] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[359] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[361] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[362] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[363] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[366] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[364] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[367] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[370] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[373] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[376] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[368] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[371] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[374] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[377] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[378] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[379] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[380] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[382] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[381] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[383] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[386] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[389] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[396] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[403] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[405] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[407] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[410] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[384] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[387] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[390] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[397] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[404] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[406] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[408] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[411] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[412] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[413] = 0; @@ -421,33 +420,34 @@ if (! _$jscoverage['/loader/combo-loader.js']) { _$jscoverage['/loader/combo-loader.js'].lineData[415] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[416] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[417] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[419] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[426] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[418] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[420] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[427] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[428] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[431] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[433] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[440] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[429] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[432] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[434] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[441] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[442] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[443] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[444] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[445] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[450] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[453] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[446] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[451] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[454] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[455] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[457] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[459] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[456] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[458] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[460] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[461] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[462] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[463] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[464] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[467] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[465] = 0; _$jscoverage['/loader/combo-loader.js'].lineData[468] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[472] = 0; - _$jscoverage['/loader/combo-loader.js'].lineData[476] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[469] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[473] = 0; + _$jscoverage['/loader/combo-loader.js'].lineData[477] = 0; } if (! _$jscoverage['/loader/combo-loader.js'].functionData) { _$jscoverage['/loader/combo-loader.js'].functionData = []; @@ -498,328 +498,338 @@ if (! _$jscoverage['/loader/combo-loader.js'].branchData) { _$jscoverage['/loader/combo-loader.js'].branchData['43'][1] = new BranchData(); _$jscoverage['/loader/combo-loader.js'].branchData['46'] = []; _$jscoverage['/loader/combo-loader.js'].branchData['46'][1] = new BranchData(); - _$jscoverage['/loader/combo-loader.js'].branchData['92'] = []; - _$jscoverage['/loader/combo-loader.js'].branchData['92'][1] = new BranchData(); - _$jscoverage['/loader/combo-loader.js'].branchData['92'][2] = new BranchData(); - _$jscoverage['/loader/combo-loader.js'].branchData['94'] = []; - _$jscoverage['/loader/combo-loader.js'].branchData['94'][1] = new BranchData(); + _$jscoverage['/loader/combo-loader.js'].branchData['93'] = []; + _$jscoverage['/loader/combo-loader.js'].branchData['93'][1] = new BranchData(); + _$jscoverage['/loader/combo-loader.js'].branchData['93'][2] = new BranchData(); + _$jscoverage['/loader/combo-loader.js'].branchData['93'][3] = new BranchData(); + _$jscoverage['/loader/combo-loader.js'].branchData['93'][4] = new BranchData(); _$jscoverage['/loader/combo-loader.js'].branchData['95'] = []; _$jscoverage['/loader/combo-loader.js'].branchData['95'][1] = new BranchData(); - _$jscoverage['/loader/combo-loader.js'].branchData['100'] = []; - _$jscoverage['/loader/combo-loader.js'].branchData['100'][1] = new BranchData(); - _$jscoverage['/loader/combo-loader.js'].branchData['100'][2] = new BranchData(); - _$jscoverage['/loader/combo-loader.js'].branchData['109'] = []; - _$jscoverage['/loader/combo-loader.js'].branchData['109'][1] = new BranchData(); - _$jscoverage['/loader/combo-loader.js'].branchData['109'][2] = new BranchData(); - _$jscoverage['/loader/combo-loader.js'].branchData['118'] = []; - _$jscoverage['/loader/combo-loader.js'].branchData['118'][1] = new BranchData(); - _$jscoverage['/loader/combo-loader.js'].branchData['118'][2] = new BranchData(); - _$jscoverage['/loader/combo-loader.js'].branchData['118'][3] = new BranchData(); - _$jscoverage['/loader/combo-loader.js'].branchData['122'] = []; - _$jscoverage['/loader/combo-loader.js'].branchData['122'][1] = new BranchData(); - _$jscoverage['/loader/combo-loader.js'].branchData['138'] = []; - _$jscoverage['/loader/combo-loader.js'].branchData['138'][1] = new BranchData(); - _$jscoverage['/loader/combo-loader.js'].branchData['158'] = []; - _$jscoverage['/loader/combo-loader.js'].branchData['158'][1] = new BranchData(); - _$jscoverage['/loader/combo-loader.js'].branchData['160'] = []; - _$jscoverage['/loader/combo-loader.js'].branchData['160'][1] = new BranchData(); - _$jscoverage['/loader/combo-loader.js'].branchData['165'] = []; - _$jscoverage['/loader/combo-loader.js'].branchData['165'][1] = new BranchData(); - _$jscoverage['/loader/combo-loader.js'].branchData['184'] = []; - _$jscoverage['/loader/combo-loader.js'].branchData['184'][1] = new BranchData(); - _$jscoverage['/loader/combo-loader.js'].branchData['188'] = []; - _$jscoverage['/loader/combo-loader.js'].branchData['188'][1] = new BranchData(); - _$jscoverage['/loader/combo-loader.js'].branchData['198'] = []; - _$jscoverage['/loader/combo-loader.js'].branchData['198'][1] = new BranchData(); + _$jscoverage['/loader/combo-loader.js'].branchData['96'] = []; + _$jscoverage['/loader/combo-loader.js'].branchData['96'][1] = new BranchData(); + _$jscoverage['/loader/combo-loader.js'].branchData['101'] = []; + _$jscoverage['/loader/combo-loader.js'].branchData['101'][1] = new BranchData(); + _$jscoverage['/loader/combo-loader.js'].branchData['101'][2] = new BranchData(); + _$jscoverage['/loader/combo-loader.js'].branchData['110'] = []; + _$jscoverage['/loader/combo-loader.js'].branchData['110'][1] = new BranchData(); + _$jscoverage['/loader/combo-loader.js'].branchData['110'][2] = new BranchData(); + _$jscoverage['/loader/combo-loader.js'].branchData['119'] = []; + _$jscoverage['/loader/combo-loader.js'].branchData['119'][1] = new BranchData(); + _$jscoverage['/loader/combo-loader.js'].branchData['119'][2] = new BranchData(); + _$jscoverage['/loader/combo-loader.js'].branchData['119'][3] = new BranchData(); + _$jscoverage['/loader/combo-loader.js'].branchData['123'] = []; + _$jscoverage['/loader/combo-loader.js'].branchData['123'][1] = new BranchData(); + _$jscoverage['/loader/combo-loader.js'].branchData['139'] = []; + _$jscoverage['/loader/combo-loader.js'].branchData['139'][1] = new BranchData(); + _$jscoverage['/loader/combo-loader.js'].branchData['159'] = []; + _$jscoverage['/loader/combo-loader.js'].branchData['159'][1] = new BranchData(); + _$jscoverage['/loader/combo-loader.js'].branchData['161'] = []; + _$jscoverage['/loader/combo-loader.js'].branchData['161'][1] = new BranchData(); + _$jscoverage['/loader/combo-loader.js'].branchData['166'] = []; + _$jscoverage['/loader/combo-loader.js'].branchData['166'][1] = new BranchData(); + _$jscoverage['/loader/combo-loader.js'].branchData['185'] = []; + _$jscoverage['/loader/combo-loader.js'].branchData['185'][1] = new BranchData(); + _$jscoverage['/loader/combo-loader.js'].branchData['189'] = []; + _$jscoverage['/loader/combo-loader.js'].branchData['189'][1] = new BranchData(); _$jscoverage['/loader/combo-loader.js'].branchData['199'] = []; _$jscoverage['/loader/combo-loader.js'].branchData['199'][1] = new BranchData(); - _$jscoverage['/loader/combo-loader.js'].branchData['226'] = []; - _$jscoverage['/loader/combo-loader.js'].branchData['226'][1] = new BranchData(); - _$jscoverage['/loader/combo-loader.js'].branchData['255'] = []; - _$jscoverage['/loader/combo-loader.js'].branchData['255'][1] = new BranchData(); - _$jscoverage['/loader/combo-loader.js'].branchData['263'] = []; - _$jscoverage['/loader/combo-loader.js'].branchData['263'][1] = new BranchData(); - _$jscoverage['/loader/combo-loader.js'].branchData['290'] = []; - _$jscoverage['/loader/combo-loader.js'].branchData['290'][1] = new BranchData(); - _$jscoverage['/loader/combo-loader.js'].branchData['293'] = []; - _$jscoverage['/loader/combo-loader.js'].branchData['293'][1] = new BranchData(); - _$jscoverage['/loader/combo-loader.js'].branchData['295'] = []; - _$jscoverage['/loader/combo-loader.js'].branchData['295'][1] = new BranchData(); - _$jscoverage['/loader/combo-loader.js'].branchData['297'] = []; - _$jscoverage['/loader/combo-loader.js'].branchData['297'][1] = new BranchData(); - _$jscoverage['/loader/combo-loader.js'].branchData['303'] = []; - _$jscoverage['/loader/combo-loader.js'].branchData['303'][1] = new BranchData(); - _$jscoverage['/loader/combo-loader.js'].branchData['306'] = []; - _$jscoverage['/loader/combo-loader.js'].branchData['306'][1] = new BranchData(); + _$jscoverage['/loader/combo-loader.js'].branchData['200'] = []; + _$jscoverage['/loader/combo-loader.js'].branchData['200'][1] = new BranchData(); + _$jscoverage['/loader/combo-loader.js'].branchData['227'] = []; + _$jscoverage['/loader/combo-loader.js'].branchData['227'][1] = new BranchData(); + _$jscoverage['/loader/combo-loader.js'].branchData['256'] = []; + _$jscoverage['/loader/combo-loader.js'].branchData['256'][1] = new BranchData(); + _$jscoverage['/loader/combo-loader.js'].branchData['264'] = []; + _$jscoverage['/loader/combo-loader.js'].branchData['264'][1] = new BranchData(); + _$jscoverage['/loader/combo-loader.js'].branchData['291'] = []; + _$jscoverage['/loader/combo-loader.js'].branchData['291'][1] = new BranchData(); + _$jscoverage['/loader/combo-loader.js'].branchData['294'] = []; + _$jscoverage['/loader/combo-loader.js'].branchData['294'][1] = new BranchData(); + _$jscoverage['/loader/combo-loader.js'].branchData['296'] = []; + _$jscoverage['/loader/combo-loader.js'].branchData['296'][1] = new BranchData(); + _$jscoverage['/loader/combo-loader.js'].branchData['298'] = []; + _$jscoverage['/loader/combo-loader.js'].branchData['298'][1] = new BranchData(); + _$jscoverage['/loader/combo-loader.js'].branchData['304'] = []; + _$jscoverage['/loader/combo-loader.js'].branchData['304'][1] = new BranchData(); _$jscoverage['/loader/combo-loader.js'].branchData['307'] = []; _$jscoverage['/loader/combo-loader.js'].branchData['307'][1] = new BranchData(); _$jscoverage['/loader/combo-loader.js'].branchData['308'] = []; _$jscoverage['/loader/combo-loader.js'].branchData['308'][1] = new BranchData(); - _$jscoverage['/loader/combo-loader.js'].branchData['340'] = []; - _$jscoverage['/loader/combo-loader.js'].branchData['340'][1] = new BranchData(); - _$jscoverage['/loader/combo-loader.js'].branchData['355'] = []; - _$jscoverage['/loader/combo-loader.js'].branchData['355'][1] = new BranchData(); - _$jscoverage['/loader/combo-loader.js'].branchData['355'][2] = new BranchData(); - _$jscoverage['/loader/combo-loader.js'].branchData['362'] = []; - _$jscoverage['/loader/combo-loader.js'].branchData['362'][1] = new BranchData(); - _$jscoverage['/loader/combo-loader.js'].branchData['376'] = []; - _$jscoverage['/loader/combo-loader.js'].branchData['376'][1] = new BranchData(); + _$jscoverage['/loader/combo-loader.js'].branchData['309'] = []; + _$jscoverage['/loader/combo-loader.js'].branchData['309'][1] = new BranchData(); + _$jscoverage['/loader/combo-loader.js'].branchData['341'] = []; + _$jscoverage['/loader/combo-loader.js'].branchData['341'][1] = new BranchData(); + _$jscoverage['/loader/combo-loader.js'].branchData['356'] = []; + _$jscoverage['/loader/combo-loader.js'].branchData['356'][1] = new BranchData(); + _$jscoverage['/loader/combo-loader.js'].branchData['356'][2] = new BranchData(); + _$jscoverage['/loader/combo-loader.js'].branchData['363'] = []; + _$jscoverage['/loader/combo-loader.js'].branchData['363'][1] = new BranchData(); _$jscoverage['/loader/combo-loader.js'].branchData['377'] = []; _$jscoverage['/loader/combo-loader.js'].branchData['377'][1] = new BranchData(); - _$jscoverage['/loader/combo-loader.js'].branchData['382'] = []; - _$jscoverage['/loader/combo-loader.js'].branchData['382'][1] = new BranchData(); - _$jscoverage['/loader/combo-loader.js'].branchData['382'][2] = new BranchData(); - _$jscoverage['/loader/combo-loader.js'].branchData['382'][3] = new BranchData(); - _$jscoverage['/loader/combo-loader.js'].branchData['382'][4] = new BranchData(); - _$jscoverage['/loader/combo-loader.js'].branchData['417'] = []; - _$jscoverage['/loader/combo-loader.js'].branchData['417'][1] = new BranchData(); - _$jscoverage['/loader/combo-loader.js'].branchData['440'] = []; - _$jscoverage['/loader/combo-loader.js'].branchData['440'][1] = new BranchData(); - _$jscoverage['/loader/combo-loader.js'].branchData['444'] = []; - _$jscoverage['/loader/combo-loader.js'].branchData['444'][1] = new BranchData(); - _$jscoverage['/loader/combo-loader.js'].branchData['457'] = []; - _$jscoverage['/loader/combo-loader.js'].branchData['457'][1] = new BranchData(); - _$jscoverage['/loader/combo-loader.js'].branchData['457'][2] = new BranchData(); + _$jscoverage['/loader/combo-loader.js'].branchData['378'] = []; + _$jscoverage['/loader/combo-loader.js'].branchData['378'][1] = new BranchData(); + _$jscoverage['/loader/combo-loader.js'].branchData['383'] = []; + _$jscoverage['/loader/combo-loader.js'].branchData['383'][1] = new BranchData(); + _$jscoverage['/loader/combo-loader.js'].branchData['383'][2] = new BranchData(); + _$jscoverage['/loader/combo-loader.js'].branchData['383'][3] = new BranchData(); + _$jscoverage['/loader/combo-loader.js'].branchData['383'][4] = new BranchData(); + _$jscoverage['/loader/combo-loader.js'].branchData['418'] = []; + _$jscoverage['/loader/combo-loader.js'].branchData['418'][1] = new BranchData(); + _$jscoverage['/loader/combo-loader.js'].branchData['441'] = []; + _$jscoverage['/loader/combo-loader.js'].branchData['441'][1] = new BranchData(); + _$jscoverage['/loader/combo-loader.js'].branchData['445'] = []; + _$jscoverage['/loader/combo-loader.js'].branchData['445'][1] = new BranchData(); _$jscoverage['/loader/combo-loader.js'].branchData['458'] = []; _$jscoverage['/loader/combo-loader.js'].branchData['458'][1] = new BranchData(); - _$jscoverage['/loader/combo-loader.js'].branchData['467'] = []; - _$jscoverage['/loader/combo-loader.js'].branchData['467'][1] = new BranchData(); + _$jscoverage['/loader/combo-loader.js'].branchData['458'][2] = new BranchData(); + _$jscoverage['/loader/combo-loader.js'].branchData['459'] = []; + _$jscoverage['/loader/combo-loader.js'].branchData['459'][1] = new BranchData(); + _$jscoverage['/loader/combo-loader.js'].branchData['468'] = []; + _$jscoverage['/loader/combo-loader.js'].branchData['468'][1] = new BranchData(); } -_$jscoverage['/loader/combo-loader.js'].branchData['467'][1].init(2583, 23, 'currentComboUrls.length'); -function visit357_467_1(result) { - _$jscoverage['/loader/combo-loader.js'].branchData['467'][1].ranCondition(result); +_$jscoverage['/loader/combo-loader.js'].branchData['468'][1].init(2583, 23, 'currentComboUrls.length'); +function visit371_468_1(result) { + _$jscoverage['/loader/combo-loader.js'].branchData['468'][1].ranCondition(result); return result; -}_$jscoverage['/loader/combo-loader.js'].branchData['458'][1].init(68, 72, 'l + currentComboUrls.join(comboSep).length + suffixLength > maxUrlLength'); -function visit356_458_1(result) { - _$jscoverage['/loader/combo-loader.js'].branchData['458'][1].ranCondition(result); +}_$jscoverage['/loader/combo-loader.js'].branchData['459'][1].init(68, 72, 'l + currentComboUrls.join(comboSep).length + suffixLength > maxUrlLength'); +function visit370_459_1(result) { + _$jscoverage['/loader/combo-loader.js'].branchData['459'][1].ranCondition(result); + return result; +}_$jscoverage['/loader/combo-loader.js'].branchData['458'][2].init(778, 36, 'currentComboUrls.length > maxFileNum'); +function visit369_458_2(result) { + _$jscoverage['/loader/combo-loader.js'].branchData['458'][2].ranCondition(result); return result; -}_$jscoverage['/loader/combo-loader.js'].branchData['457'][2].init(778, 36, 'currentComboUrls.length > maxFileNum'); -function visit355_457_2(result) { - _$jscoverage['/loader/combo-loader.js'].branchData['457'][2].ranCondition(result); +}_$jscoverage['/loader/combo-loader.js'].branchData['458'][1].init(778, 142, 'currentComboUrls.length > maxFileNum || (l + currentComboUrls.join(comboSep).length + suffixLength > maxUrlLength)'); +function visit368_458_1(result) { + _$jscoverage['/loader/combo-loader.js'].branchData['458'][1].ranCondition(result); return result; -}_$jscoverage['/loader/combo-loader.js'].branchData['457'][1].init(778, 142, 'currentComboUrls.length > maxFileNum || (l + currentComboUrls.join(comboSep).length + suffixLength > maxUrlLength)'); -function visit354_457_1(result) { - _$jscoverage['/loader/combo-loader.js'].branchData['457'][1].ranCondition(result); +}_$jscoverage['/loader/combo-loader.js'].branchData['445'][1].init(195, 25, '!currentMod.canBeCombined'); +function visit367_445_1(result) { + _$jscoverage['/loader/combo-loader.js'].branchData['445'][1].ranCondition(result); return result; -}_$jscoverage['/loader/combo-loader.js'].branchData['444'][1].init(195, 25, '!currentMod.canBeCombined'); -function visit353_444_1(result) { - _$jscoverage['/loader/combo-loader.js'].branchData['444'][1].ranCondition(result); +}_$jscoverage['/loader/combo-loader.js'].branchData['441'][1].init(1281, 15, 'i < mods.length'); +function visit366_441_1(result) { + _$jscoverage['/loader/combo-loader.js'].branchData['441'][1].ranCondition(result); return result; -}_$jscoverage['/loader/combo-loader.js'].branchData['440'][1].init(1281, 15, 'i < mods.length'); -function visit352_440_1(result) { - _$jscoverage['/loader/combo-loader.js'].branchData['440'][1].ranCondition(result); +}_$jscoverage['/loader/combo-loader.js'].branchData['418'][1].init(226, 15, 'tags.length > 1'); +function visit365_418_1(result) { + _$jscoverage['/loader/combo-loader.js'].branchData['418'][1].ranCondition(result); return result; -}_$jscoverage['/loader/combo-loader.js'].branchData['417'][1].init(226, 15, 'tags.length > 1'); -function visit351_417_1(result) { - _$jscoverage['/loader/combo-loader.js'].branchData['417'][1].ranCondition(result); +}_$jscoverage['/loader/combo-loader.js'].branchData['383'][4].init(53, 20, 'mods.tags[0] === tag'); +function visit364_383_4(result) { + _$jscoverage['/loader/combo-loader.js'].branchData['383'][4].ranCondition(result); return result; -}_$jscoverage['/loader/combo-loader.js'].branchData['382'][4].init(53, 20, 'mods.tags[0] === tag'); -function visit350_382_4(result) { - _$jscoverage['/loader/combo-loader.js'].branchData['382'][4].ranCondition(result); +}_$jscoverage['/loader/combo-loader.js'].branchData['383'][3].init(27, 22, 'mods.tags.length === 1'); +function visit363_383_3(result) { + _$jscoverage['/loader/combo-loader.js'].branchData['383'][3].ranCondition(result); return result; -}_$jscoverage['/loader/combo-loader.js'].branchData['382'][3].init(27, 22, 'mods.tags.length === 1'); -function visit349_382_3(result) { - _$jscoverage['/loader/combo-loader.js'].branchData['382'][3].ranCondition(result); +}_$jscoverage['/loader/combo-loader.js'].branchData['383'][2].init(27, 46, 'mods.tags.length === 1 && mods.tags[0] === tag'); +function visit362_383_2(result) { + _$jscoverage['/loader/combo-loader.js'].branchData['383'][2].ranCondition(result); return result; -}_$jscoverage['/loader/combo-loader.js'].branchData['382'][2].init(27, 46, 'mods.tags.length === 1 && mods.tags[0] === tag'); -function visit348_382_2(result) { - _$jscoverage['/loader/combo-loader.js'].branchData['382'][2].ranCondition(result); +}_$jscoverage['/loader/combo-loader.js'].branchData['383'][1].init(25, 49, '!(mods.tags.length === 1 && mods.tags[0] === tag)'); +function visit361_383_1(result) { + _$jscoverage['/loader/combo-loader.js'].branchData['383'][1].ranCondition(result); return result; -}_$jscoverage['/loader/combo-loader.js'].branchData['382'][1].init(25, 49, '!(mods.tags.length === 1 && mods.tags[0] === tag)'); -function visit347_382_1(result) { - _$jscoverage['/loader/combo-loader.js'].branchData['382'][1].ranCondition(result); +}_$jscoverage['/loader/combo-loader.js'].branchData['378'][1].init(1790, 32, '!(mods = typedCombos[comboName])'); +function visit360_378_1(result) { + _$jscoverage['/loader/combo-loader.js'].branchData['378'][1].ranCondition(result); return result; -}_$jscoverage['/loader/combo-loader.js'].branchData['377'][1].init(1790, 32, '!(mods = typedCombos[comboName])'); -function visit346_377_1(result) { +}_$jscoverage['/loader/combo-loader.js'].branchData['377'][1].init(1747, 21, 'comboMods[type] || {}'); +function visit359_377_1(result) { _$jscoverage['/loader/combo-loader.js'].branchData['377'][1].ranCondition(result); return result; -}_$jscoverage['/loader/combo-loader.js'].branchData['376'][1].init(1747, 21, 'comboMods[type] || {}'); -function visit345_376_1(result) { - _$jscoverage['/loader/combo-loader.js'].branchData['376'][1].ranCondition(result); +}_$jscoverage['/loader/combo-loader.js'].branchData['363'][1].init(29, 41, 'groupPrefixUri.isSameOriginAs(packageUri)'); +function visit358_363_1(result) { + _$jscoverage['/loader/combo-loader.js'].branchData['363'][1].ranCondition(result); return result; -}_$jscoverage['/loader/combo-loader.js'].branchData['362'][1].init(29, 41, 'groupPrefixUri.isSameOriginAs(packageUri)'); -function visit344_362_1(result) { - _$jscoverage['/loader/combo-loader.js'].branchData['362'][1].ranCondition(result); +}_$jscoverage['/loader/combo-loader.js'].branchData['356'][2].init(744, 82, 'packageInfo.isCombine() && S.startsWith(fullpath, packagePath)'); +function visit357_356_2(result) { + _$jscoverage['/loader/combo-loader.js'].branchData['356'][2].ranCondition(result); return result; -}_$jscoverage['/loader/combo-loader.js'].branchData['355'][2].init(744, 82, 'packageInfo.isCombine() && S.startsWith(fullpath, packagePath)'); -function visit343_355_2(result) { - _$jscoverage['/loader/combo-loader.js'].branchData['355'][2].ranCondition(result); +}_$jscoverage['/loader/combo-loader.js'].branchData['356'][1].init(724, 112, '(mod.canBeCombined = packageInfo.isCombine() && S.startsWith(fullpath, packagePath)) && group'); +function visit356_356_1(result) { + _$jscoverage['/loader/combo-loader.js'].branchData['356'][1].ranCondition(result); return result; -}_$jscoverage['/loader/combo-loader.js'].branchData['355'][1].init(724, 112, '(mod.canBeCombined = packageInfo.isCombine() && S.startsWith(fullpath, packagePath)) && group'); -function visit342_355_1(result) { - _$jscoverage['/loader/combo-loader.js'].branchData['355'][1].ranCondition(result); +}_$jscoverage['/loader/combo-loader.js'].branchData['341'][1].init(338, 5, 'i < l'); +function visit355_341_1(result) { + _$jscoverage['/loader/combo-loader.js'].branchData['341'][1].ranCondition(result); return result; -}_$jscoverage['/loader/combo-loader.js'].branchData['340'][1].init(338, 5, 'i < l'); -function visit341_340_1(result) { - _$jscoverage['/loader/combo-loader.js'].branchData['340'][1].ranCondition(result); +}_$jscoverage['/loader/combo-loader.js'].branchData['309'][1].init(29, 21, 'modStatus !== LOADING'); +function visit354_309_1(result) { + _$jscoverage['/loader/combo-loader.js'].branchData['309'][1].ranCondition(result); return result; -}_$jscoverage['/loader/combo-loader.js'].branchData['308'][1].init(29, 21, 'modStatus !== LOADING'); -function visit340_308_1(result) { +}_$jscoverage['/loader/combo-loader.js'].branchData['308'][1].init(25, 27, '!waitingModules.contains(m)'); +function visit353_308_1(result) { _$jscoverage['/loader/combo-loader.js'].branchData['308'][1].ranCondition(result); return result; -}_$jscoverage['/loader/combo-loader.js'].branchData['307'][1].init(25, 27, '!waitingModules.contains(m)'); -function visit339_307_1(result) { +}_$jscoverage['/loader/combo-loader.js'].branchData['307'][1].init(362, 20, 'modStatus !== LOADED'); +function visit352_307_1(result) { _$jscoverage['/loader/combo-loader.js'].branchData['307'][1].ranCondition(result); return result; -}_$jscoverage['/loader/combo-loader.js'].branchData['306'][1].init(362, 20, 'modStatus !== LOADED'); -function visit338_306_1(result) { - _$jscoverage['/loader/combo-loader.js'].branchData['306'][1].ranCondition(result); +}_$jscoverage['/loader/combo-loader.js'].branchData['304'][1].init(262, 28, 'modStatus >= READY_TO_ATTACH'); +function visit351_304_1(result) { + _$jscoverage['/loader/combo-loader.js'].branchData['304'][1].ranCondition(result); return result; -}_$jscoverage['/loader/combo-loader.js'].branchData['303'][1].init(262, 28, 'modStatus >= READY_TO_ATTACH'); -function visit337_303_1(result) { - _$jscoverage['/loader/combo-loader.js'].branchData['303'][1].ranCondition(result); +}_$jscoverage['/loader/combo-loader.js'].branchData['298'][1].init(54, 8, 'cache[m]'); +function visit350_298_1(result) { + _$jscoverage['/loader/combo-loader.js'].branchData['298'][1].ranCondition(result); return result; -}_$jscoverage['/loader/combo-loader.js'].branchData['297'][1].init(54, 8, 'cache[m]'); -function visit336_297_1(result) { - _$jscoverage['/loader/combo-loader.js'].branchData['297'][1].ranCondition(result); +}_$jscoverage['/loader/combo-loader.js'].branchData['296'][1].init(369, 19, 'i < modNames.length'); +function visit349_296_1(result) { + _$jscoverage['/loader/combo-loader.js'].branchData['296'][1].ranCondition(result); return result; -}_$jscoverage['/loader/combo-loader.js'].branchData['295'][1].init(369, 19, 'i < modNames.length'); -function visit335_295_1(result) { - _$jscoverage['/loader/combo-loader.js'].branchData['295'][1].ranCondition(result); +}_$jscoverage['/loader/combo-loader.js'].branchData['294'][1].init(331, 11, 'cache || {}'); +function visit348_294_1(result) { + _$jscoverage['/loader/combo-loader.js'].branchData['294'][1].ranCondition(result); return result; -}_$jscoverage['/loader/combo-loader.js'].branchData['293'][1].init(331, 11, 'cache || {}'); -function visit334_293_1(result) { - _$jscoverage['/loader/combo-loader.js'].branchData['293'][1].ranCondition(result); +}_$jscoverage['/loader/combo-loader.js'].branchData['291'][1].init(229, 9, 'ret || {}'); +function visit347_291_1(result) { + _$jscoverage['/loader/combo-loader.js'].branchData['291'][1].ranCondition(result); return result; -}_$jscoverage['/loader/combo-loader.js'].branchData['290'][1].init(229, 9, 'ret || {}'); -function visit333_290_1(result) { - _$jscoverage['/loader/combo-loader.js'].branchData['290'][1].ranCondition(result); +}_$jscoverage['/loader/combo-loader.js'].branchData['264'][1].init(150, 12, '!mod.factory'); +function visit346_264_1(result) { + _$jscoverage['/loader/combo-loader.js'].branchData['264'][1].ranCondition(result); return result; -}_$jscoverage['/loader/combo-loader.js'].branchData['263'][1].init(150, 12, '!mod.factory'); -function visit332_263_1(result) { - _$jscoverage['/loader/combo-loader.js'].branchData['263'][1].ranCondition(result); +}_$jscoverage['/loader/combo-loader.js'].branchData['256'][1].init(25, 9, '\'@DEBUG@\''); +function visit345_256_1(result) { + _$jscoverage['/loader/combo-loader.js'].branchData['256'][1].ranCondition(result); return result; -}_$jscoverage['/loader/combo-loader.js'].branchData['255'][1].init(25, 9, '\'@DEBUG@\''); -function visit331_255_1(result) { - _$jscoverage['/loader/combo-loader.js'].branchData['255'][1].ranCondition(result); +}_$jscoverage['/loader/combo-loader.js'].branchData['227'][1].init(25, 9, '\'@DEBUG@\''); +function visit344_227_1(result) { + _$jscoverage['/loader/combo-loader.js'].branchData['227'][1].ranCondition(result); return result; -}_$jscoverage['/loader/combo-loader.js'].branchData['226'][1].init(25, 9, '\'@DEBUG@\''); -function visit330_226_1(result) { - _$jscoverage['/loader/combo-loader.js'].branchData['226'][1].ranCondition(result); +}_$jscoverage['/loader/combo-loader.js'].branchData['200'][1].init(17, 19, 'str1[i] !== str2[i]'); +function visit343_200_1(result) { + _$jscoverage['/loader/combo-loader.js'].branchData['200'][1].ranCondition(result); return result; -}_$jscoverage['/loader/combo-loader.js'].branchData['199'][1].init(17, 19, 'str1[i] !== str2[i]'); -function visit329_199_1(result) { +}_$jscoverage['/loader/combo-loader.js'].branchData['199'][1].init(143, 5, 'i < l'); +function visit342_199_1(result) { _$jscoverage['/loader/combo-loader.js'].branchData['199'][1].ranCondition(result); return result; -}_$jscoverage['/loader/combo-loader.js'].branchData['198'][1].init(143, 5, 'i < l'); -function visit328_198_1(result) { - _$jscoverage['/loader/combo-loader.js'].branchData['198'][1].ranCondition(result); +}_$jscoverage['/loader/combo-loader.js'].branchData['189'][1].init(199, 9, 'ms.length'); +function visit341_189_1(result) { + _$jscoverage['/loader/combo-loader.js'].branchData['189'][1].ranCondition(result); return result; -}_$jscoverage['/loader/combo-loader.js'].branchData['188'][1].init(199, 9, 'ms.length'); -function visit327_188_1(result) { - _$jscoverage['/loader/combo-loader.js'].branchData['188'][1].ranCondition(result); +}_$jscoverage['/loader/combo-loader.js'].branchData['185'][1].init(21, 19, 'm.status === LOADED'); +function visit340_185_1(result) { + _$jscoverage['/loader/combo-loader.js'].branchData['185'][1].ranCondition(result); return result; -}_$jscoverage['/loader/combo-loader.js'].branchData['184'][1].init(21, 19, 'm.status === LOADED'); -function visit326_184_1(result) { - _$jscoverage['/loader/combo-loader.js'].branchData['184'][1].ranCondition(result); +}_$jscoverage['/loader/combo-loader.js'].branchData['166'][1].init(373, 2, 're'); +function visit339_166_1(result) { + _$jscoverage['/loader/combo-loader.js'].branchData['166'][1].ranCondition(result); return result; -}_$jscoverage['/loader/combo-loader.js'].branchData['165'][1].init(373, 2, 're'); -function visit325_165_1(result) { - _$jscoverage['/loader/combo-loader.js'].branchData['165'][1].ranCondition(result); +}_$jscoverage['/loader/combo-loader.js'].branchData['161'][1].init(50, 35, 'script.readyState === \'interactive\''); +function visit338_161_1(result) { + _$jscoverage['/loader/combo-loader.js'].branchData['161'][1].ranCondition(result); return result; -}_$jscoverage['/loader/combo-loader.js'].branchData['160'][1].init(50, 35, 'script.readyState === \'interactive\''); -function visit324_160_1(result) { - _$jscoverage['/loader/combo-loader.js'].branchData['160'][1].ranCondition(result); +}_$jscoverage['/loader/combo-loader.js'].branchData['159'][1].init(182, 6, 'i >= 0'); +function visit337_159_1(result) { + _$jscoverage['/loader/combo-loader.js'].branchData['159'][1].ranCondition(result); return result; -}_$jscoverage['/loader/combo-loader.js'].branchData['158'][1].init(182, 6, 'i >= 0'); -function visit323_158_1(result) { - _$jscoverage['/loader/combo-loader.js'].branchData['158'][1].ranCondition(result); +}_$jscoverage['/loader/combo-loader.js'].branchData['139'][1].init(74, 5, 'oldIE'); +function visit336_139_1(result) { + _$jscoverage['/loader/combo-loader.js'].branchData['139'][1].ranCondition(result); return result; -}_$jscoverage['/loader/combo-loader.js'].branchData['138'][1].init(74, 5, 'oldIE'); -function visit322_138_1(result) { - _$jscoverage['/loader/combo-loader.js'].branchData['138'][1].ranCondition(result); +}_$jscoverage['/loader/combo-loader.js'].branchData['123'][1].init(132, 5, 'oldIE'); +function visit335_123_1(result) { + _$jscoverage['/loader/combo-loader.js'].branchData['123'][1].ranCondition(result); return result; -}_$jscoverage['/loader/combo-loader.js'].branchData['122'][1].init(132, 5, 'oldIE'); -function visit321_122_1(result) { - _$jscoverage['/loader/combo-loader.js'].branchData['122'][1].ranCondition(result); +}_$jscoverage['/loader/combo-loader.js'].branchData['119'][3].init(391, 13, 'argsLen === 1'); +function visit334_119_3(result) { + _$jscoverage['/loader/combo-loader.js'].branchData['119'][3].ranCondition(result); return result; -}_$jscoverage['/loader/combo-loader.js'].branchData['118'][3].init(391, 13, 'argsLen === 1'); -function visit320_118_3(result) { - _$jscoverage['/loader/combo-loader.js'].branchData['118'][3].ranCondition(result); +}_$jscoverage['/loader/combo-loader.js'].branchData['119'][2].init(361, 26, 'typeof name === \'function\''); +function visit333_119_2(result) { + _$jscoverage['/loader/combo-loader.js'].branchData['119'][2].ranCondition(result); return result; -}_$jscoverage['/loader/combo-loader.js'].branchData['118'][2].init(361, 26, 'typeof name === \'function\''); -function visit319_118_2(result) { - _$jscoverage['/loader/combo-loader.js'].branchData['118'][2].ranCondition(result); +}_$jscoverage['/loader/combo-loader.js'].branchData['119'][1].init(361, 43, 'typeof name === \'function\' || argsLen === 1'); +function visit332_119_1(result) { + _$jscoverage['/loader/combo-loader.js'].branchData['119'][1].ranCondition(result); return result; -}_$jscoverage['/loader/combo-loader.js'].branchData['118'][1].init(361, 43, 'typeof name === \'function\' || argsLen === 1'); -function visit318_118_1(result) { - _$jscoverage['/loader/combo-loader.js'].branchData['118'][1].ranCondition(result); +}_$jscoverage['/loader/combo-loader.js'].branchData['110'][2].init(57, 13, 'argsLen === 3'); +function visit331_110_2(result) { + _$jscoverage['/loader/combo-loader.js'].branchData['110'][2].ranCondition(result); return result; -}_$jscoverage['/loader/combo-loader.js'].branchData['109'][2].init(57, 13, 'argsLen === 3'); -function visit317_109_2(result) { - _$jscoverage['/loader/combo-loader.js'].branchData['109'][2].ranCondition(result); +}_$jscoverage['/loader/combo-loader.js'].branchData['110'][1].init(57, 35, 'argsLen === 3 && S.isArray(factory)'); +function visit330_110_1(result) { + _$jscoverage['/loader/combo-loader.js'].branchData['110'][1].ranCondition(result); return result; -}_$jscoverage['/loader/combo-loader.js'].branchData['109'][1].init(57, 35, 'argsLen === 3 && S.isArray(factory)'); -function visit316_109_1(result) { - _$jscoverage['/loader/combo-loader.js'].branchData['109'][1].ranCondition(result); +}_$jscoverage['/loader/combo-loader.js'].branchData['101'][2].init(80, 30, 'config.requires && !config.cjs'); +function visit329_101_2(result) { + _$jscoverage['/loader/combo-loader.js'].branchData['101'][2].ranCondition(result); return result; -}_$jscoverage['/loader/combo-loader.js'].branchData['100'][2].init(80, 30, 'config.requires && !config.cjs'); -function visit315_100_2(result) { - _$jscoverage['/loader/combo-loader.js'].branchData['100'][2].ranCondition(result); +}_$jscoverage['/loader/combo-loader.js'].branchData['101'][1].init(70, 40, 'config && config.requires && !config.cjs'); +function visit328_101_1(result) { + _$jscoverage['/loader/combo-loader.js'].branchData['101'][1].ranCondition(result); return result; -}_$jscoverage['/loader/combo-loader.js'].branchData['100'][1].init(70, 40, 'config && config.requires && !config.cjs'); -function visit314_100_1(result) { - _$jscoverage['/loader/combo-loader.js'].branchData['100'][1].ranCondition(result); +}_$jscoverage['/loader/combo-loader.js'].branchData['96'][1].init(26, 12, 'config || {}'); +function visit327_96_1(result) { + _$jscoverage['/loader/combo-loader.js'].branchData['96'][1].ranCondition(result); return result; -}_$jscoverage['/loader/combo-loader.js'].branchData['95'][1].init(26, 12, 'config || {}'); -function visit313_95_1(result) { +}_$jscoverage['/loader/combo-loader.js'].branchData['95'][1].init(78, 15, 'requires.length'); +function visit326_95_1(result) { _$jscoverage['/loader/combo-loader.js'].branchData['95'][1].ranCondition(result); return result; -}_$jscoverage['/loader/combo-loader.js'].branchData['94'][1].init(78, 15, 'requires.length'); -function visit312_94_1(result) { - _$jscoverage['/loader/combo-loader.js'].branchData['94'][1].ranCondition(result); +}_$jscoverage['/loader/combo-loader.js'].branchData['93'][4].init(148, 18, 'factory.length > 1'); +function visit325_93_4(result) { + _$jscoverage['/loader/combo-loader.js'].branchData['93'][4].ranCondition(result); return result; -}_$jscoverage['/loader/combo-loader.js'].branchData['92'][2].init(67, 29, 'typeof factory === \'function\''); -function visit311_92_2(result) { - _$jscoverage['/loader/combo-loader.js'].branchData['92'][2].ranCondition(result); +}_$jscoverage['/loader/combo-loader.js'].branchData['93'][3].init(115, 29, 'typeof factory === \'function\''); +function visit324_93_3(result) { + _$jscoverage['/loader/combo-loader.js'].branchData['93'][3].ranCondition(result); return result; -}_$jscoverage['/loader/combo-loader.js'].branchData['92'][1].init(56, 40, '!config && typeof factory === \'function\''); -function visit310_92_1(result) { - _$jscoverage['/loader/combo-loader.js'].branchData['92'][1].ranCondition(result); +}_$jscoverage['/loader/combo-loader.js'].branchData['93'][2].init(115, 51, 'typeof factory === \'function\' && factory.length > 1'); +function visit323_93_2(result) { + _$jscoverage['/loader/combo-loader.js'].branchData['93'][2].ranCondition(result); + return result; +}_$jscoverage['/loader/combo-loader.js'].branchData['93'][1].init(104, 62, '!config && typeof factory === \'function\' && factory.length > 1'); +function visit322_93_1(result) { + _$jscoverage['/loader/combo-loader.js'].branchData['93'][1].ranCondition(result); return result; }_$jscoverage['/loader/combo-loader.js'].branchData['46'][1].init(163, 5, 'oldIE'); -function visit309_46_1(result) { +function visit321_46_1(result) { _$jscoverage['/loader/combo-loader.js'].branchData['46'][1].ranCondition(result); return result; }_$jscoverage['/loader/combo-loader.js'].branchData['43'][1].init(55, 23, 'mod.getType() === \'css\''); -function visit308_43_1(result) { +function visit320_43_1(result) { _$jscoverage['/loader/combo-loader.js'].branchData['43'][1].ranCondition(result); return result; }_$jscoverage['/loader/combo-loader.js'].branchData['41'][1].init(816, 11, '!rs.combine'); -function visit307_41_1(result) { +function visit319_41_1(result) { _$jscoverage['/loader/combo-loader.js'].branchData['41'][1].ranCondition(result); return result; }_$jscoverage['/loader/combo-loader.js'].branchData['27'][1].init(67, 17, 'mod && currentMod'); -function visit306_27_1(result) { +function visit318_27_1(result) { _$jscoverage['/loader/combo-loader.js'].branchData['27'][1].ranCondition(result); return result; }_$jscoverage['/loader/combo-loader.js'].branchData['16'][1].init(17, 10, '!(--count)'); -function visit305_16_1(result) { +function visit317_16_1(result) { _$jscoverage['/loader/combo-loader.js'].branchData['16'][1].ranCondition(result); return result; }_$jscoverage['/loader/combo-loader.js'].branchData['11'][1].init(21, 17, 'rss && rss.length'); -function visit304_11_1(result) { +function visit316_11_1(result) { _$jscoverage['/loader/combo-loader.js'].branchData['11'][1].ranCondition(result); return result; }_$jscoverage['/loader/combo-loader.js'].branchData['8'][1].init(43, 16, 'S.UA.ieMode < 10'); -function visit303_8_1(result) { +function visit315_8_1(result) { _$jscoverage['/loader/combo-loader.js'].branchData['8'][1].ranCondition(result); return result; }_$jscoverage['/loader/combo-loader.js'].lineData[6]++; (function(S, undefined) { _$jscoverage['/loader/combo-loader.js'].functionData[0]++; _$jscoverage['/loader/combo-loader.js'].lineData[8]++; - var oldIE = visit303_8_1(S.UA.ieMode < 10); + var oldIE = visit315_8_1(S.UA.ieMode < 10); _$jscoverage['/loader/combo-loader.js'].lineData[10]++; function loadScripts(runtime, rss, callback, charset, timeout) { _$jscoverage['/loader/combo-loader.js'].functionData[1]++; _$jscoverage['/loader/combo-loader.js'].lineData[11]++; - var count = visit304_11_1(rss && rss.length), errorList = [], successList = []; + var count = visit316_11_1(rss && rss.length), errorList = [], successList = []; _$jscoverage['/loader/combo-loader.js'].lineData[15]++; function complete() { _$jscoverage['/loader/combo-loader.js'].functionData[2]++; _$jscoverage['/loader/combo-loader.js'].lineData[16]++; - if (visit305_16_1(!(--count))) { + if (visit317_16_1(!(--count))) { _$jscoverage['/loader/combo-loader.js'].lineData[17]++; callback(successList, errorList); } @@ -837,7 +847,7 @@ function visit303_8_1(result) { _$jscoverage['/loader/combo-loader.js'].lineData[26]++; successList.push(rs); _$jscoverage['/loader/combo-loader.js'].lineData[27]++; - if (visit306_27_1(mod && currentMod)) { + if (visit318_27_1(mod && currentMod)) { _$jscoverage['/loader/combo-loader.js'].lineData[29]++; logger.debug('standard browser get mod name after load : ' + mod.name); _$jscoverage['/loader/combo-loader.js'].lineData[30]++; @@ -857,16 +867,16 @@ function visit303_8_1(result) { }, charset: charset}; _$jscoverage['/loader/combo-loader.js'].lineData[41]++; - if (visit307_41_1(!rs.combine)) { + if (visit319_41_1(!rs.combine)) { _$jscoverage['/loader/combo-loader.js'].lineData[42]++; mod = rs.mods[0]; _$jscoverage['/loader/combo-loader.js'].lineData[43]++; - if (visit308_43_1(mod.getType() === 'css')) { + if (visit320_43_1(mod.getType() === 'css')) { _$jscoverage['/loader/combo-loader.js'].lineData[44]++; mod = undefined; } else { _$jscoverage['/loader/combo-loader.js'].lineData[46]++; - if (visit309_46_1(oldIE)) { + if (visit321_46_1(oldIE)) { _$jscoverage['/loader/combo-loader.js'].lineData[47]++; startLoadModName = mod.name; _$jscoverage['/loader/combo-loader.js'].lineData[48]++; @@ -904,238 +914,238 @@ function visit303_8_1(result) { _$jscoverage['/loader/combo-loader.js'].lineData[90]++; function checkKISSYRequire(config, factory) { _$jscoverage['/loader/combo-loader.js'].functionData[7]++; - _$jscoverage['/loader/combo-loader.js'].lineData[92]++; - if (visit310_92_1(!config && visit311_92_2(typeof factory === 'function'))) { - _$jscoverage['/loader/combo-loader.js'].lineData[93]++; - var requires = Utils.getRequiresFromFn(factory); + _$jscoverage['/loader/combo-loader.js'].lineData[93]++; + if (visit322_93_1(!config && visit323_93_2(visit324_93_3(typeof factory === 'function') && visit325_93_4(factory.length > 1)))) { _$jscoverage['/loader/combo-loader.js'].lineData[94]++; - if (visit312_94_1(requires.length)) { - _$jscoverage['/loader/combo-loader.js'].lineData[95]++; - config = visit313_95_1(config || {}); + var requires = Utils.getRequiresFromFn(factory); + _$jscoverage['/loader/combo-loader.js'].lineData[95]++; + if (visit326_95_1(requires.length)) { _$jscoverage['/loader/combo-loader.js'].lineData[96]++; + config = visit327_96_1(config || {}); + _$jscoverage['/loader/combo-loader.js'].lineData[97]++; config.requires = requires; } } else { - _$jscoverage['/loader/combo-loader.js'].lineData[100]++; - if (visit314_100_1(config && visit315_100_2(config.requires && !config.cjs))) { - _$jscoverage['/loader/combo-loader.js'].lineData[101]++; + _$jscoverage['/loader/combo-loader.js'].lineData[101]++; + if (visit328_101_1(config && visit329_101_2(config.requires && !config.cjs))) { + _$jscoverage['/loader/combo-loader.js'].lineData[102]++; config.cjs = 0; } } - _$jscoverage['/loader/combo-loader.js'].lineData[104]++; + _$jscoverage['/loader/combo-loader.js'].lineData[105]++; return config; } - _$jscoverage['/loader/combo-loader.js'].lineData[107]++; + _$jscoverage['/loader/combo-loader.js'].lineData[108]++; ComboLoader.add = function(name, factory, config, runtime, argsLen) { _$jscoverage['/loader/combo-loader.js'].functionData[8]++; - _$jscoverage['/loader/combo-loader.js'].lineData[109]++; - if (visit316_109_1(visit317_109_2(argsLen === 3) && S.isArray(factory))) { - _$jscoverage['/loader/combo-loader.js'].lineData[110]++; - var tmp = factory; + _$jscoverage['/loader/combo-loader.js'].lineData[110]++; + if (visit330_110_1(visit331_110_2(argsLen === 3) && S.isArray(factory))) { _$jscoverage['/loader/combo-loader.js'].lineData[111]++; - factory = config; + var tmp = factory; _$jscoverage['/loader/combo-loader.js'].lineData[112]++; + factory = config; + _$jscoverage['/loader/combo-loader.js'].lineData[113]++; config = { requires: tmp, cjs: 1}; } - _$jscoverage['/loader/combo-loader.js'].lineData[118]++; - if (visit318_118_1(visit319_118_2(typeof name === 'function') || visit320_118_3(argsLen === 1))) { - _$jscoverage['/loader/combo-loader.js'].lineData[119]++; - config = factory; + _$jscoverage['/loader/combo-loader.js'].lineData[119]++; + if (visit332_119_1(visit333_119_2(typeof name === 'function') || visit334_119_3(argsLen === 1))) { _$jscoverage['/loader/combo-loader.js'].lineData[120]++; - factory = name; + config = factory; _$jscoverage['/loader/combo-loader.js'].lineData[121]++; - config = checkKISSYRequire(config, factory); + factory = name; _$jscoverage['/loader/combo-loader.js'].lineData[122]++; - if (visit321_122_1(oldIE)) { - _$jscoverage['/loader/combo-loader.js'].lineData[124]++; + config = checkKISSYRequire(config, factory); + _$jscoverage['/loader/combo-loader.js'].lineData[123]++; + if (visit335_123_1(oldIE)) { + _$jscoverage['/loader/combo-loader.js'].lineData[125]++; name = findModuleNameByInteractive(); - _$jscoverage['/loader/combo-loader.js'].lineData[126]++; - Utils.registerModule(runtime, name, factory, config); _$jscoverage['/loader/combo-loader.js'].lineData[127]++; - startLoadModName = null; + Utils.registerModule(runtime, name, factory, config); _$jscoverage['/loader/combo-loader.js'].lineData[128]++; + startLoadModName = null; + _$jscoverage['/loader/combo-loader.js'].lineData[129]++; startLoadModTime = 0; } else { - _$jscoverage['/loader/combo-loader.js'].lineData[131]++; + _$jscoverage['/loader/combo-loader.js'].lineData[132]++; currentMod = { factory: factory, config: config}; } } else { - _$jscoverage['/loader/combo-loader.js'].lineData[138]++; - if (visit322_138_1(oldIE)) { - _$jscoverage['/loader/combo-loader.js'].lineData[139]++; - startLoadModName = null; + _$jscoverage['/loader/combo-loader.js'].lineData[139]++; + if (visit336_139_1(oldIE)) { _$jscoverage['/loader/combo-loader.js'].lineData[140]++; + startLoadModName = null; + _$jscoverage['/loader/combo-loader.js'].lineData[141]++; startLoadModTime = 0; } else { - _$jscoverage['/loader/combo-loader.js'].lineData[142]++; + _$jscoverage['/loader/combo-loader.js'].lineData[143]++; currentMod = undefined; } - _$jscoverage['/loader/combo-loader.js'].lineData[144]++; - config = checkKISSYRequire(config, factory); _$jscoverage['/loader/combo-loader.js'].lineData[145]++; + config = checkKISSYRequire(config, factory); + _$jscoverage['/loader/combo-loader.js'].lineData[146]++; Utils.registerModule(runtime, name, factory, config); } }; - _$jscoverage['/loader/combo-loader.js'].lineData[151]++; + _$jscoverage['/loader/combo-loader.js'].lineData[152]++; function findModuleNameByInteractive() { _$jscoverage['/loader/combo-loader.js'].functionData[9]++; - _$jscoverage['/loader/combo-loader.js'].lineData[152]++; + _$jscoverage['/loader/combo-loader.js'].lineData[153]++; var scripts = S.Env.host.document.getElementsByTagName('script'), re, i, name, script; - _$jscoverage['/loader/combo-loader.js'].lineData[158]++; - for (i = scripts.length - 1; visit323_158_1(i >= 0); i--) { - _$jscoverage['/loader/combo-loader.js'].lineData[159]++; - script = scripts[i]; + _$jscoverage['/loader/combo-loader.js'].lineData[159]++; + for (i = scripts.length - 1; visit337_159_1(i >= 0); i--) { _$jscoverage['/loader/combo-loader.js'].lineData[160]++; - if (visit324_160_1(script.readyState === 'interactive')) { - _$jscoverage['/loader/combo-loader.js'].lineData[161]++; - re = script; + script = scripts[i]; + _$jscoverage['/loader/combo-loader.js'].lineData[161]++; + if (visit338_161_1(script.readyState === 'interactive')) { _$jscoverage['/loader/combo-loader.js'].lineData[162]++; + re = script; + _$jscoverage['/loader/combo-loader.js'].lineData[163]++; break; } } - _$jscoverage['/loader/combo-loader.js'].lineData[165]++; - if (visit325_165_1(re)) { - _$jscoverage['/loader/combo-loader.js'].lineData[166]++; + _$jscoverage['/loader/combo-loader.js'].lineData[166]++; + if (visit339_166_1(re)) { + _$jscoverage['/loader/combo-loader.js'].lineData[167]++; name = re.getAttribute('data-mod-name'); } else { - _$jscoverage['/loader/combo-loader.js'].lineData[173]++; - logger.debug('can not find interactive script,time diff : ' + (S.now() - startLoadModTime)); _$jscoverage['/loader/combo-loader.js'].lineData[174]++; - logger.debug('old_ie get mod name from cache : ' + startLoadModName); + logger.debug('can not find interactive script,time diff : ' + (S.now() - startLoadModTime)); _$jscoverage['/loader/combo-loader.js'].lineData[175]++; + logger.debug('old_ie get mod name from cache : ' + startLoadModName); + _$jscoverage['/loader/combo-loader.js'].lineData[176]++; name = startLoadModName; } - _$jscoverage['/loader/combo-loader.js'].lineData[177]++; + _$jscoverage['/loader/combo-loader.js'].lineData[178]++; return name; } - _$jscoverage['/loader/combo-loader.js'].lineData[180]++; + _$jscoverage['/loader/combo-loader.js'].lineData[181]++; function debugRemoteModules(rss) { _$jscoverage['/loader/combo-loader.js'].functionData[10]++; - _$jscoverage['/loader/combo-loader.js'].lineData[181]++; + _$jscoverage['/loader/combo-loader.js'].lineData[182]++; S.each(rss, function(rs) { _$jscoverage['/loader/combo-loader.js'].functionData[11]++; - _$jscoverage['/loader/combo-loader.js'].lineData[182]++; - var ms = []; _$jscoverage['/loader/combo-loader.js'].lineData[183]++; + var ms = []; + _$jscoverage['/loader/combo-loader.js'].lineData[184]++; S.each(rs.mods, function(m) { _$jscoverage['/loader/combo-loader.js'].functionData[12]++; - _$jscoverage['/loader/combo-loader.js'].lineData[184]++; - if (visit326_184_1(m.status === LOADED)) { - _$jscoverage['/loader/combo-loader.js'].lineData[185]++; + _$jscoverage['/loader/combo-loader.js'].lineData[185]++; + if (visit340_185_1(m.status === LOADED)) { + _$jscoverage['/loader/combo-loader.js'].lineData[186]++; ms.push(m.name); } }); - _$jscoverage['/loader/combo-loader.js'].lineData[188]++; - if (visit327_188_1(ms.length)) { - _$jscoverage['/loader/combo-loader.js'].lineData[189]++; + _$jscoverage['/loader/combo-loader.js'].lineData[189]++; + if (visit341_189_1(ms.length)) { + _$jscoverage['/loader/combo-loader.js'].lineData[190]++; logger.info('load remote modules: "' + ms.join(', ') + '" from: "' + rs.fullpath + '"'); } }); } - _$jscoverage['/loader/combo-loader.js'].lineData[194]++; + _$jscoverage['/loader/combo-loader.js'].lineData[195]++; function getCommonPrefix(str1, str2) { _$jscoverage['/loader/combo-loader.js'].functionData[13]++; - _$jscoverage['/loader/combo-loader.js'].lineData[195]++; - str1 = str1.split(/\//); _$jscoverage['/loader/combo-loader.js'].lineData[196]++; - str2 = str2.split(/\//); + str1 = str1.split(/\//); _$jscoverage['/loader/combo-loader.js'].lineData[197]++; - var l = Math.min(str1.length, str2.length); + str2 = str2.split(/\//); _$jscoverage['/loader/combo-loader.js'].lineData[198]++; - for (var i = 0; visit328_198_1(i < l); i++) { - _$jscoverage['/loader/combo-loader.js'].lineData[199]++; - if (visit329_199_1(str1[i] !== str2[i])) { - _$jscoverage['/loader/combo-loader.js'].lineData[200]++; + var l = Math.min(str1.length, str2.length); + _$jscoverage['/loader/combo-loader.js'].lineData[199]++; + for (var i = 0; visit342_199_1(i < l); i++) { + _$jscoverage['/loader/combo-loader.js'].lineData[200]++; + if (visit343_200_1(str1[i] !== str2[i])) { + _$jscoverage['/loader/combo-loader.js'].lineData[201]++; break; } } - _$jscoverage['/loader/combo-loader.js'].lineData[203]++; + _$jscoverage['/loader/combo-loader.js'].lineData[204]++; return str1.slice(0, i).join('/') + '/'; } - _$jscoverage['/loader/combo-loader.js'].lineData[206]++; + _$jscoverage['/loader/combo-loader.js'].lineData[207]++; S.augment(ComboLoader, { use: function(normalizedModNames) { _$jscoverage['/loader/combo-loader.js'].functionData[14]++; - _$jscoverage['/loader/combo-loader.js'].lineData[211]++; + _$jscoverage['/loader/combo-loader.js'].lineData[212]++; var self = this, allModNames, comboUrls, timeout = S.Config.timeout, runtime = self.runtime; - _$jscoverage['/loader/combo-loader.js'].lineData[217]++; + _$jscoverage['/loader/combo-loader.js'].lineData[218]++; allModNames = S.keys(self.calculate(normalizedModNames)); - _$jscoverage['/loader/combo-loader.js'].lineData[219]++; + _$jscoverage['/loader/combo-loader.js'].lineData[220]++; Utils.createModulesInfo(runtime, allModNames); - _$jscoverage['/loader/combo-loader.js'].lineData[221]++; + _$jscoverage['/loader/combo-loader.js'].lineData[222]++; comboUrls = self.getComboUrls(allModNames); - _$jscoverage['/loader/combo-loader.js'].lineData[224]++; + _$jscoverage['/loader/combo-loader.js'].lineData[225]++; S.each(comboUrls.css, function(cssOne) { _$jscoverage['/loader/combo-loader.js'].functionData[15]++; - _$jscoverage['/loader/combo-loader.js'].lineData[225]++; + _$jscoverage['/loader/combo-loader.js'].lineData[226]++; loadScripts(runtime, cssOne, function(success, error) { _$jscoverage['/loader/combo-loader.js'].functionData[16]++; - _$jscoverage['/loader/combo-loader.js'].lineData[226]++; - if (visit330_226_1('@DEBUG@')) { - _$jscoverage['/loader/combo-loader.js'].lineData[227]++; + _$jscoverage['/loader/combo-loader.js'].lineData[227]++; + if (visit344_227_1('@DEBUG@')) { + _$jscoverage['/loader/combo-loader.js'].lineData[228]++; debugRemoteModules(success); } - _$jscoverage['/loader/combo-loader.js'].lineData[230]++; + _$jscoverage['/loader/combo-loader.js'].lineData[231]++; S.each(success, function(one) { _$jscoverage['/loader/combo-loader.js'].functionData[17]++; - _$jscoverage['/loader/combo-loader.js'].lineData[231]++; + _$jscoverage['/loader/combo-loader.js'].lineData[232]++; S.each(one.mods, function(mod) { _$jscoverage['/loader/combo-loader.js'].functionData[18]++; - _$jscoverage['/loader/combo-loader.js'].lineData[232]++; + _$jscoverage['/loader/combo-loader.js'].lineData[233]++; Utils.registerModule(runtime, mod.name, S.noop); - _$jscoverage['/loader/combo-loader.js'].lineData[234]++; + _$jscoverage['/loader/combo-loader.js'].lineData[235]++; mod.notifyAll(); }); }); - _$jscoverage['/loader/combo-loader.js'].lineData[238]++; + _$jscoverage['/loader/combo-loader.js'].lineData[239]++; S.each(error, function(one) { _$jscoverage['/loader/combo-loader.js'].functionData[19]++; - _$jscoverage['/loader/combo-loader.js'].lineData[239]++; + _$jscoverage['/loader/combo-loader.js'].lineData[240]++; S.each(one.mods, function(mod) { _$jscoverage['/loader/combo-loader.js'].functionData[20]++; - _$jscoverage['/loader/combo-loader.js'].lineData[240]++; + _$jscoverage['/loader/combo-loader.js'].lineData[241]++; var msg = mod.name + ' is not loaded! can not find module in path : ' + one.fullpath; - _$jscoverage['/loader/combo-loader.js'].lineData[243]++; - S.log(msg, 'error'); _$jscoverage['/loader/combo-loader.js'].lineData[244]++; + S.log(msg, 'error'); + _$jscoverage['/loader/combo-loader.js'].lineData[245]++; mod.status = ERROR; - _$jscoverage['/loader/combo-loader.js'].lineData[246]++; + _$jscoverage['/loader/combo-loader.js'].lineData[247]++; mod.notifyAll(); }); }); }, cssOne.charset, timeout); }); - _$jscoverage['/loader/combo-loader.js'].lineData[253]++; + _$jscoverage['/loader/combo-loader.js'].lineData[254]++; S.each(comboUrls.js, function(jsOne) { _$jscoverage['/loader/combo-loader.js'].functionData[21]++; - _$jscoverage['/loader/combo-loader.js'].lineData[254]++; + _$jscoverage['/loader/combo-loader.js'].lineData[255]++; loadScripts(runtime, jsOne, function(success) { _$jscoverage['/loader/combo-loader.js'].functionData[22]++; - _$jscoverage['/loader/combo-loader.js'].lineData[255]++; - if (visit331_255_1('@DEBUG@')) { - _$jscoverage['/loader/combo-loader.js'].lineData[256]++; + _$jscoverage['/loader/combo-loader.js'].lineData[256]++; + if (visit345_256_1('@DEBUG@')) { + _$jscoverage['/loader/combo-loader.js'].lineData[257]++; debugRemoteModules(success); } - _$jscoverage['/loader/combo-loader.js'].lineData[259]++; + _$jscoverage['/loader/combo-loader.js'].lineData[260]++; S.each(jsOne, function(one) { _$jscoverage['/loader/combo-loader.js'].functionData[23]++; - _$jscoverage['/loader/combo-loader.js'].lineData[260]++; + _$jscoverage['/loader/combo-loader.js'].lineData[261]++; S.each(one.mods, function(mod) { _$jscoverage['/loader/combo-loader.js'].functionData[24]++; - _$jscoverage['/loader/combo-loader.js'].lineData[263]++; - if (visit332_263_1(!mod.factory)) { - _$jscoverage['/loader/combo-loader.js'].lineData[264]++; + _$jscoverage['/loader/combo-loader.js'].lineData[264]++; + if (visit346_264_1(!mod.factory)) { + _$jscoverage['/loader/combo-loader.js'].lineData[265]++; var msg = mod.name + ' is not loaded! can not find module in path : ' + one.fullpath; - _$jscoverage['/loader/combo-loader.js'].lineData[267]++; - S.log(msg, 'error'); _$jscoverage['/loader/combo-loader.js'].lineData[268]++; + S.log(msg, 'error'); + _$jscoverage['/loader/combo-loader.js'].lineData[269]++; mod.status = ERROR; } - _$jscoverage['/loader/combo-loader.js'].lineData[271]++; + _$jscoverage['/loader/combo-loader.js'].lineData[272]++; mod.notifyAll(); }); }); @@ -1144,233 +1154,233 @@ function visit303_8_1(result) { }, calculate: function(modNames, cache, ret) { _$jscoverage['/loader/combo-loader.js'].functionData[25]++; - _$jscoverage['/loader/combo-loader.js'].lineData[282]++; + _$jscoverage['/loader/combo-loader.js'].lineData[283]++; var i, m, mod, modStatus, self = this, waitingModules = self.waitingModules, runtime = self.runtime; - _$jscoverage['/loader/combo-loader.js'].lineData[290]++; - ret = visit333_290_1(ret || {}); - _$jscoverage['/loader/combo-loader.js'].lineData[293]++; - cache = visit334_293_1(cache || {}); - _$jscoverage['/loader/combo-loader.js'].lineData[295]++; - for (i = 0; visit335_295_1(i < modNames.length); i++) { - _$jscoverage['/loader/combo-loader.js'].lineData[296]++; - m = modNames[i]; + _$jscoverage['/loader/combo-loader.js'].lineData[291]++; + ret = visit347_291_1(ret || {}); + _$jscoverage['/loader/combo-loader.js'].lineData[294]++; + cache = visit348_294_1(cache || {}); + _$jscoverage['/loader/combo-loader.js'].lineData[296]++; + for (i = 0; visit349_296_1(i < modNames.length); i++) { _$jscoverage['/loader/combo-loader.js'].lineData[297]++; - if (visit336_297_1(cache[m])) { - _$jscoverage['/loader/combo-loader.js'].lineData[298]++; + m = modNames[i]; + _$jscoverage['/loader/combo-loader.js'].lineData[298]++; + if (visit350_298_1(cache[m])) { + _$jscoverage['/loader/combo-loader.js'].lineData[299]++; continue; } - _$jscoverage['/loader/combo-loader.js'].lineData[300]++; - cache[m] = 1; _$jscoverage['/loader/combo-loader.js'].lineData[301]++; - mod = Utils.createModuleInfo(runtime, m); + cache[m] = 1; _$jscoverage['/loader/combo-loader.js'].lineData[302]++; - modStatus = mod.status; + mod = Utils.createModuleInfo(runtime, m); _$jscoverage['/loader/combo-loader.js'].lineData[303]++; - if (visit337_303_1(modStatus >= READY_TO_ATTACH)) { - _$jscoverage['/loader/combo-loader.js'].lineData[304]++; + modStatus = mod.status; + _$jscoverage['/loader/combo-loader.js'].lineData[304]++; + if (visit351_304_1(modStatus >= READY_TO_ATTACH)) { + _$jscoverage['/loader/combo-loader.js'].lineData[305]++; continue; } - _$jscoverage['/loader/combo-loader.js'].lineData[306]++; - if (visit338_306_1(modStatus !== LOADED)) { - _$jscoverage['/loader/combo-loader.js'].lineData[307]++; - if (visit339_307_1(!waitingModules.contains(m))) { - _$jscoverage['/loader/combo-loader.js'].lineData[308]++; - if (visit340_308_1(modStatus !== LOADING)) { - _$jscoverage['/loader/combo-loader.js'].lineData[309]++; - mod.status = LOADING; + _$jscoverage['/loader/combo-loader.js'].lineData[307]++; + if (visit352_307_1(modStatus !== LOADED)) { + _$jscoverage['/loader/combo-loader.js'].lineData[308]++; + if (visit353_308_1(!waitingModules.contains(m))) { + _$jscoverage['/loader/combo-loader.js'].lineData[309]++; + if (visit354_309_1(modStatus !== LOADING)) { _$jscoverage['/loader/combo-loader.js'].lineData[310]++; + mod.status = LOADING; + _$jscoverage['/loader/combo-loader.js'].lineData[311]++; ret[m] = 1; } - _$jscoverage['/loader/combo-loader.js'].lineData[313]++; + _$jscoverage['/loader/combo-loader.js'].lineData[314]++; mod.wait(function(mod) { _$jscoverage['/loader/combo-loader.js'].functionData[26]++; - _$jscoverage['/loader/combo-loader.js'].lineData[314]++; + _$jscoverage['/loader/combo-loader.js'].lineData[315]++; waitingModules.remove(mod.name); - _$jscoverage['/loader/combo-loader.js'].lineData[316]++; + _$jscoverage['/loader/combo-loader.js'].lineData[317]++; waitingModules.notifyAll(); }); - _$jscoverage['/loader/combo-loader.js'].lineData[318]++; + _$jscoverage['/loader/combo-loader.js'].lineData[319]++; waitingModules.add(m); } } - _$jscoverage['/loader/combo-loader.js'].lineData[321]++; + _$jscoverage['/loader/combo-loader.js'].lineData[322]++; self.calculate(mod.getNormalizedRequires(), cache, ret); } - _$jscoverage['/loader/combo-loader.js'].lineData[324]++; + _$jscoverage['/loader/combo-loader.js'].lineData[325]++; return ret; }, getComboMods: function(modNames, comboPrefixes) { _$jscoverage['/loader/combo-loader.js'].functionData[27]++; - _$jscoverage['/loader/combo-loader.js'].lineData[331]++; + _$jscoverage['/loader/combo-loader.js'].lineData[332]++; var comboMods = {}, packageUri, runtime = this.runtime, i = 0, l = modNames.length, modName, mod, packageInfo, type, typedCombos, mods, tag, charset, packagePath, packageName, group, fullpath; - _$jscoverage['/loader/combo-loader.js'].lineData[340]++; - for (; visit341_340_1(i < l); ++i) { - _$jscoverage['/loader/combo-loader.js'].lineData[341]++; - modName = modNames[i]; + _$jscoverage['/loader/combo-loader.js'].lineData[341]++; + for (; visit355_341_1(i < l); ++i) { _$jscoverage['/loader/combo-loader.js'].lineData[342]++; - mod = Utils.createModuleInfo(runtime, modName); + modName = modNames[i]; _$jscoverage['/loader/combo-loader.js'].lineData[343]++; - type = mod.getType(); + mod = Utils.createModuleInfo(runtime, modName); _$jscoverage['/loader/combo-loader.js'].lineData[344]++; - fullpath = mod.getFullPath(); + type = mod.getType(); _$jscoverage['/loader/combo-loader.js'].lineData[345]++; - packageInfo = mod.getPackage(); + fullpath = mod.getFullPath(); _$jscoverage['/loader/combo-loader.js'].lineData[346]++; - packageName = packageInfo.name; + packageInfo = mod.getPackage(); _$jscoverage['/loader/combo-loader.js'].lineData[347]++; - charset = packageInfo.getCharset(); + packageName = packageInfo.name; _$jscoverage['/loader/combo-loader.js'].lineData[348]++; - tag = packageInfo.getTag(); + charset = packageInfo.getCharset(); _$jscoverage['/loader/combo-loader.js'].lineData[349]++; - group = packageInfo.getGroup(); + tag = packageInfo.getTag(); _$jscoverage['/loader/combo-loader.js'].lineData[350]++; - packagePath = packageInfo.getPrefixUriForCombo(); + group = packageInfo.getGroup(); _$jscoverage['/loader/combo-loader.js'].lineData[351]++; + packagePath = packageInfo.getPrefixUriForCombo(); + _$jscoverage['/loader/combo-loader.js'].lineData[352]++; packageUri = packageInfo.getPackageUri(); - _$jscoverage['/loader/combo-loader.js'].lineData[353]++; + _$jscoverage['/loader/combo-loader.js'].lineData[354]++; var comboName = packageName; - _$jscoverage['/loader/combo-loader.js'].lineData[355]++; - if (visit342_355_1((mod.canBeCombined = visit343_355_2(packageInfo.isCombine() && S.startsWith(fullpath, packagePath))) && group)) { - _$jscoverage['/loader/combo-loader.js'].lineData[358]++; + _$jscoverage['/loader/combo-loader.js'].lineData[356]++; + if (visit356_356_1((mod.canBeCombined = visit357_356_2(packageInfo.isCombine() && S.startsWith(fullpath, packagePath))) && group)) { + _$jscoverage['/loader/combo-loader.js'].lineData[359]++; comboName = group + '_' + charset + '_' + groupTag; - _$jscoverage['/loader/combo-loader.js'].lineData[360]++; - var groupPrefixUri; _$jscoverage['/loader/combo-loader.js'].lineData[361]++; + var groupPrefixUri; + _$jscoverage['/loader/combo-loader.js'].lineData[362]++; if ((groupPrefixUri = comboPrefixes[comboName])) { - _$jscoverage['/loader/combo-loader.js'].lineData[362]++; - if (visit344_362_1(groupPrefixUri.isSameOriginAs(packageUri))) { - _$jscoverage['/loader/combo-loader.js'].lineData[363]++; + _$jscoverage['/loader/combo-loader.js'].lineData[363]++; + if (visit358_363_1(groupPrefixUri.isSameOriginAs(packageUri))) { + _$jscoverage['/loader/combo-loader.js'].lineData[364]++; groupPrefixUri.setPath(getCommonPrefix(groupPrefixUri.getPath(), packageUri.getPath())); } else { - _$jscoverage['/loader/combo-loader.js'].lineData[366]++; - comboName = packageName; _$jscoverage['/loader/combo-loader.js'].lineData[367]++; + comboName = packageName; + _$jscoverage['/loader/combo-loader.js'].lineData[368]++; comboPrefixes[packageName] = packageUri; } } else { - _$jscoverage['/loader/combo-loader.js'].lineData[370]++; + _$jscoverage['/loader/combo-loader.js'].lineData[371]++; comboPrefixes[comboName] = packageUri.clone(); } } else { - _$jscoverage['/loader/combo-loader.js'].lineData[373]++; + _$jscoverage['/loader/combo-loader.js'].lineData[374]++; comboPrefixes[packageName] = packageUri; } - _$jscoverage['/loader/combo-loader.js'].lineData[376]++; - typedCombos = comboMods[type] = visit345_376_1(comboMods[type] || {}); _$jscoverage['/loader/combo-loader.js'].lineData[377]++; - if (visit346_377_1(!(mods = typedCombos[comboName]))) { - _$jscoverage['/loader/combo-loader.js'].lineData[378]++; - mods = typedCombos[comboName] = []; + typedCombos = comboMods[type] = visit359_377_1(comboMods[type] || {}); + _$jscoverage['/loader/combo-loader.js'].lineData[378]++; + if (visit360_378_1(!(mods = typedCombos[comboName]))) { _$jscoverage['/loader/combo-loader.js'].lineData[379]++; - mods.charset = charset; + mods = typedCombos[comboName] = []; _$jscoverage['/loader/combo-loader.js'].lineData[380]++; + mods.charset = charset; + _$jscoverage['/loader/combo-loader.js'].lineData[381]++; mods.tags = [tag]; } else { - _$jscoverage['/loader/combo-loader.js'].lineData[382]++; - if (visit347_382_1(!(visit348_382_2(visit349_382_3(mods.tags.length === 1) && visit350_382_4(mods.tags[0] === tag))))) { - _$jscoverage['/loader/combo-loader.js'].lineData[383]++; + _$jscoverage['/loader/combo-loader.js'].lineData[383]++; + if (visit361_383_1(!(visit362_383_2(visit363_383_3(mods.tags.length === 1) && visit364_383_4(mods.tags[0] === tag))))) { + _$jscoverage['/loader/combo-loader.js'].lineData[384]++; mods.tags.push(tag); } } - _$jscoverage['/loader/combo-loader.js'].lineData[386]++; + _$jscoverage['/loader/combo-loader.js'].lineData[387]++; mods.push(mod); } - _$jscoverage['/loader/combo-loader.js'].lineData[389]++; + _$jscoverage['/loader/combo-loader.js'].lineData[390]++; return comboMods; }, getComboUrls: function(modNames) { _$jscoverage['/loader/combo-loader.js'].functionData[28]++; - _$jscoverage['/loader/combo-loader.js'].lineData[396]++; + _$jscoverage['/loader/combo-loader.js'].lineData[397]++; var runtime = this.runtime, Config = runtime.Config, comboPrefix = Config.comboPrefix, comboSep = Config.comboSep, maxFileNum = Config.comboMaxFileNum, maxUrlLength = Config.comboMaxUrlLength; - _$jscoverage['/loader/combo-loader.js'].lineData[403]++; + _$jscoverage['/loader/combo-loader.js'].lineData[404]++; var comboPrefixes = {}; - _$jscoverage['/loader/combo-loader.js'].lineData[405]++; + _$jscoverage['/loader/combo-loader.js'].lineData[406]++; var comboMods = this.getComboMods(modNames, comboPrefixes); - _$jscoverage['/loader/combo-loader.js'].lineData[407]++; + _$jscoverage['/loader/combo-loader.js'].lineData[408]++; var comboRes = {}; - _$jscoverage['/loader/combo-loader.js'].lineData[410]++; + _$jscoverage['/loader/combo-loader.js'].lineData[411]++; for (var type in comboMods) { - _$jscoverage['/loader/combo-loader.js'].lineData[411]++; - comboRes[type] = {}; _$jscoverage['/loader/combo-loader.js'].lineData[412]++; + comboRes[type] = {}; + _$jscoverage['/loader/combo-loader.js'].lineData[413]++; for (var comboName in comboMods[type]) { - _$jscoverage['/loader/combo-loader.js'].lineData[413]++; - var currentComboUrls = []; _$jscoverage['/loader/combo-loader.js'].lineData[414]++; - var currentComboMods = []; + var currentComboUrls = []; _$jscoverage['/loader/combo-loader.js'].lineData[415]++; - var mods = comboMods[type][comboName]; + var currentComboMods = []; _$jscoverage['/loader/combo-loader.js'].lineData[416]++; - var tags = mods.tags; + var mods = comboMods[type][comboName]; _$jscoverage['/loader/combo-loader.js'].lineData[417]++; - var tag = visit351_417_1(tags.length > 1) ? getHash(tags.join('')) : tags[0]; - _$jscoverage['/loader/combo-loader.js'].lineData[419]++; + var tags = mods.tags; + _$jscoverage['/loader/combo-loader.js'].lineData[418]++; + var tag = visit365_418_1(tags.length > 1) ? getHash(tags.join('')) : tags[0]; + _$jscoverage['/loader/combo-loader.js'].lineData[420]++; var suffix = (tag ? '?t=' + encodeURIComponent(tag) + '.' + type : ''), suffixLength = suffix.length, basePrefix = comboPrefixes[comboName].toString(), baseLen = basePrefix.length, prefix = basePrefix + comboPrefix, res = comboRes[type][comboName] = []; - _$jscoverage['/loader/combo-loader.js'].lineData[426]++; - var l = prefix.length; _$jscoverage['/loader/combo-loader.js'].lineData[427]++; - res.charset = mods.charset; + var l = prefix.length; _$jscoverage['/loader/combo-loader.js'].lineData[428]++; + res.charset = mods.charset; + _$jscoverage['/loader/combo-loader.js'].lineData[429]++; res.mods = []; - _$jscoverage['/loader/combo-loader.js'].lineData[431]++; + _$jscoverage['/loader/combo-loader.js'].lineData[432]++; var pushComboUrl = function() { _$jscoverage['/loader/combo-loader.js'].functionData[29]++; - _$jscoverage['/loader/combo-loader.js'].lineData[433]++; + _$jscoverage['/loader/combo-loader.js'].lineData[434]++; res.push({ combine: 1, fullpath: prefix + currentComboUrls.join(comboSep) + suffix, mods: currentComboMods}); }; - _$jscoverage['/loader/combo-loader.js'].lineData[440]++; - for (var i = 0; visit352_440_1(i < mods.length); i++) { - _$jscoverage['/loader/combo-loader.js'].lineData[441]++; - var currentMod = mods[i]; + _$jscoverage['/loader/combo-loader.js'].lineData[441]++; + for (var i = 0; visit366_441_1(i < mods.length); i++) { _$jscoverage['/loader/combo-loader.js'].lineData[442]++; - res.mods.push(currentMod); + var currentMod = mods[i]; _$jscoverage['/loader/combo-loader.js'].lineData[443]++; - var fullpath = currentMod.getFullPath(); + res.mods.push(currentMod); _$jscoverage['/loader/combo-loader.js'].lineData[444]++; - if (visit353_444_1(!currentMod.canBeCombined)) { - _$jscoverage['/loader/combo-loader.js'].lineData[445]++; + var fullpath = currentMod.getFullPath(); + _$jscoverage['/loader/combo-loader.js'].lineData[445]++; + if (visit367_445_1(!currentMod.canBeCombined)) { + _$jscoverage['/loader/combo-loader.js'].lineData[446]++; res.push({ combine: 0, fullpath: fullpath, mods: [currentMod]}); - _$jscoverage['/loader/combo-loader.js'].lineData[450]++; + _$jscoverage['/loader/combo-loader.js'].lineData[451]++; continue; } - _$jscoverage['/loader/combo-loader.js'].lineData[453]++; - var path = fullpath.slice(baseLen).replace(/\?.*$/, ''); _$jscoverage['/loader/combo-loader.js'].lineData[454]++; - currentComboUrls.push(path); + var path = fullpath.slice(baseLen).replace(/\?.*$/, ''); _$jscoverage['/loader/combo-loader.js'].lineData[455]++; + currentComboUrls.push(path); + _$jscoverage['/loader/combo-loader.js'].lineData[456]++; currentComboMods.push(currentMod); - _$jscoverage['/loader/combo-loader.js'].lineData[457]++; - if (visit354_457_1(visit355_457_2(currentComboUrls.length > maxFileNum) || (visit356_458_1(l + currentComboUrls.join(comboSep).length + suffixLength > maxUrlLength)))) { - _$jscoverage['/loader/combo-loader.js'].lineData[459]++; - currentComboUrls.pop(); + _$jscoverage['/loader/combo-loader.js'].lineData[458]++; + if (visit368_458_1(visit369_458_2(currentComboUrls.length > maxFileNum) || (visit370_459_1(l + currentComboUrls.join(comboSep).length + suffixLength > maxUrlLength)))) { _$jscoverage['/loader/combo-loader.js'].lineData[460]++; - currentComboMods.pop(); + currentComboUrls.pop(); _$jscoverage['/loader/combo-loader.js'].lineData[461]++; - pushComboUrl(); + currentComboMods.pop(); _$jscoverage['/loader/combo-loader.js'].lineData[462]++; - currentComboUrls = []; + pushComboUrl(); _$jscoverage['/loader/combo-loader.js'].lineData[463]++; - currentComboMods = []; + currentComboUrls = []; _$jscoverage['/loader/combo-loader.js'].lineData[464]++; + currentComboMods = []; + _$jscoverage['/loader/combo-loader.js'].lineData[465]++; i--; } } - _$jscoverage['/loader/combo-loader.js'].lineData[467]++; - if (visit357_467_1(currentComboUrls.length)) { - _$jscoverage['/loader/combo-loader.js'].lineData[468]++; + _$jscoverage['/loader/combo-loader.js'].lineData[468]++; + if (visit371_468_1(currentComboUrls.length)) { + _$jscoverage['/loader/combo-loader.js'].lineData[469]++; pushComboUrl(); } } } - _$jscoverage['/loader/combo-loader.js'].lineData[472]++; + _$jscoverage['/loader/combo-loader.js'].lineData[473]++; return comboRes; }}); - _$jscoverage['/loader/combo-loader.js'].lineData[476]++; + _$jscoverage['/loader/combo-loader.js'].lineData[477]++; Loader.ComboLoader = ComboLoader; })(KISSY); diff --git a/src/seed/coverage/src/loader/configs.js b/src/seed/coverage/src/loader/configs.js index d98f710e33..357d13520c 100644 --- a/src/seed/coverage/src/loader/configs.js +++ b/src/seed/coverage/src/loader/configs.js @@ -323,59 +323,59 @@ if (! _$jscoverage['/loader/configs.js'].branchData) { _$jscoverage['/loader/configs.js'].branchData['91'][1] = new BranchData(); } _$jscoverage['/loader/configs.js'].branchData['91'][1].init(94, 28, '!S.startsWith(base, \'file:\')'); -function visit371_91_1(result) { +function visit385_91_1(result) { _$jscoverage['/loader/configs.js'].branchData['91'][1].ranCondition(result); return result; }_$jscoverage['/loader/configs.js'].branchData['86'][1].init(162, 17, 'simulatedLocation'); -function visit370_86_1(result) { +function visit384_86_1(result) { _$jscoverage['/loader/configs.js'].branchData['86'][1].ranCondition(result); return result; }_$jscoverage['/loader/configs.js'].branchData['83'][1].init(75, 36, 'base.charAt(base.length - 1) !== \'/\''); -function visit369_83_1(result) { +function visit383_83_1(result) { _$jscoverage['/loader/configs.js'].branchData['83'][1].ranCondition(result); return result; }_$jscoverage['/loader/configs.js'].branchData['71'][1].init(93, 5, '!base'); -function visit368_71_1(result) { +function visit382_71_1(result) { _$jscoverage['/loader/configs.js'].branchData['71'][1].ranCondition(result); return result; }_$jscoverage['/loader/configs.js'].branchData['60'][1].init(137, 33, 'mod.status === Loader.Status.INIT'); -function visit367_60_1(result) { +function visit381_60_1(result) { _$jscoverage['/loader/configs.js'].branchData['60'][1].ranCondition(result); return result; }_$jscoverage['/loader/configs.js'].branchData['56'][1].init(38, 7, 'modules'); -function visit366_56_1(result) { +function visit380_56_1(result) { _$jscoverage['/loader/configs.js'].branchData['56'][1].ranCondition(result); return result; }_$jscoverage['/loader/configs.js'].branchData['46'][1].init(766, 16, 'config === false'); -function visit365_46_1(result) { +function visit379_46_1(result) { _$jscoverage['/loader/configs.js'].branchData['46'][1].ranCondition(result); return result; }_$jscoverage['/loader/configs.js'].branchData['39'][1].init(367, 8, 'ps[name]'); -function visit364_39_1(result) { +function visit378_39_1(result) { _$jscoverage['/loader/configs.js'].branchData['39'][1].ranCondition(result); return result; }_$jscoverage['/loader/configs.js'].branchData['32'][1].init(138, 20, 'cfg.base || cfg.path'); -function visit363_32_1(result) { +function visit377_32_1(result) { _$jscoverage['/loader/configs.js'].branchData['32'][1].ranCondition(result); return result; }_$jscoverage['/loader/configs.js'].branchData['30'][1].init(50, 15, 'cfg.name || key'); -function visit362_30_1(result) { +function visit376_30_1(result) { _$jscoverage['/loader/configs.js'].branchData['30'][1].ranCondition(result); return result; }_$jscoverage['/loader/configs.js'].branchData['27'][1].init(123, 6, 'config'); -function visit361_27_1(result) { +function visit375_27_1(result) { _$jscoverage['/loader/configs.js'].branchData['27'][1].ranCondition(result); return result; }_$jscoverage['/loader/configs.js'].branchData['26'][1].init(78, 21, 'Config.packages || {}'); -function visit360_26_1(result) { +function visit374_26_1(result) { _$jscoverage['/loader/configs.js'].branchData['26'][1].ranCondition(result); return result; }_$jscoverage['/loader/configs.js'].branchData['15'][2].init(227, 42, 'location && (locationHref = location.href)'); -function visit359_15_2(result) { +function visit373_15_2(result) { _$jscoverage['/loader/configs.js'].branchData['15'][2].ranCondition(result); return result; }_$jscoverage['/loader/configs.js'].branchData['15'][1].init(211, 58, '!S.UA.nodejs && location && (locationHref = location.href)'); -function visit358_15_1(result) { +function visit372_15_1(result) { _$jscoverage['/loader/configs.js'].branchData['15'][1].ranCondition(result); return result; }_$jscoverage['/loader/configs.js'].lineData[6]++; @@ -384,7 +384,7 @@ function visit358_15_1(result) { _$jscoverage['/loader/configs.js'].lineData[7]++; var Loader = S.Loader, Utils = Loader.Utils, host = S.Env.host, location = host.location, simulatedLocation, locationHref, configFns = S.Config.fns; _$jscoverage['/loader/configs.js'].lineData[15]++; - if (visit358_15_1(!S.UA.nodejs && visit359_15_2(location && (locationHref = location.href)))) { + if (visit372_15_1(!S.UA.nodejs && visit373_15_2(location && (locationHref = location.href)))) { _$jscoverage['/loader/configs.js'].lineData[16]++; simulatedLocation = new S.Uri(locationHref); } @@ -398,16 +398,16 @@ function visit358_15_1(result) { configFns.packages = function(config) { _$jscoverage['/loader/configs.js'].functionData[2]++; _$jscoverage['/loader/configs.js'].lineData[24]++; - var name, Config = this.Config, ps = Config.packages = visit360_26_1(Config.packages || {}); + var name, Config = this.Config, ps = Config.packages = visit374_26_1(Config.packages || {}); _$jscoverage['/loader/configs.js'].lineData[27]++; - if (visit361_27_1(config)) { + if (visit375_27_1(config)) { _$jscoverage['/loader/configs.js'].lineData[28]++; S.each(config, function(cfg, key) { _$jscoverage['/loader/configs.js'].functionData[3]++; _$jscoverage['/loader/configs.js'].lineData[30]++; - name = visit362_30_1(cfg.name || key); + name = visit376_30_1(cfg.name || key); _$jscoverage['/loader/configs.js'].lineData[32]++; - var baseUri = normalizeBase(visit363_32_1(cfg.base || cfg.path)); + var baseUri = normalizeBase(visit377_32_1(cfg.base || cfg.path)); _$jscoverage['/loader/configs.js'].lineData[34]++; cfg.name = name; _$jscoverage['/loader/configs.js'].lineData[35]++; @@ -419,7 +419,7 @@ function visit358_15_1(result) { _$jscoverage['/loader/configs.js'].lineData[38]++; delete cfg.path; _$jscoverage['/loader/configs.js'].lineData[39]++; - if (visit364_39_1(ps[name])) { + if (visit378_39_1(ps[name])) { _$jscoverage['/loader/configs.js'].lineData[40]++; ps[name].reset(cfg); } else { @@ -431,7 +431,7 @@ function visit358_15_1(result) { return undefined; } else { _$jscoverage['/loader/configs.js'].lineData[46]++; - if (visit365_46_1(config === false)) { + if (visit379_46_1(config === false)) { _$jscoverage['/loader/configs.js'].lineData[47]++; Config.packages = {}; _$jscoverage['/loader/configs.js'].lineData[48]++; @@ -448,14 +448,14 @@ function visit358_15_1(result) { _$jscoverage['/loader/configs.js'].lineData[55]++; var self = this; _$jscoverage['/loader/configs.js'].lineData[56]++; - if (visit366_56_1(modules)) { + if (visit380_56_1(modules)) { _$jscoverage['/loader/configs.js'].lineData[57]++; S.each(modules, function(modCfg, modName) { _$jscoverage['/loader/configs.js'].functionData[5]++; _$jscoverage['/loader/configs.js'].lineData[58]++; var mod = Utils.createModuleInfo(self, modName, modCfg); _$jscoverage['/loader/configs.js'].lineData[60]++; - if (visit367_60_1(mod.status === Loader.Status.INIT)) { + if (visit381_60_1(mod.status === Loader.Status.INIT)) { _$jscoverage['/loader/configs.js'].lineData[61]++; S.mix(mod, modCfg); } @@ -468,7 +468,7 @@ function visit358_15_1(result) { _$jscoverage['/loader/configs.js'].lineData[68]++; var self = this, Config = self.Config, baseUri; _$jscoverage['/loader/configs.js'].lineData[71]++; - if (visit368_71_1(!base)) { + if (visit382_71_1(!base)) { _$jscoverage['/loader/configs.js'].lineData[72]++; return Config.base; } @@ -489,17 +489,17 @@ function visit358_15_1(result) { _$jscoverage['/loader/configs.js'].lineData[82]++; base = base.replace(/\\/g, '/'); _$jscoverage['/loader/configs.js'].lineData[83]++; - if (visit369_83_1(base.charAt(base.length - 1) !== '/')) { + if (visit383_83_1(base.charAt(base.length - 1) !== '/')) { _$jscoverage['/loader/configs.js'].lineData[84]++; base += '/'; } _$jscoverage['/loader/configs.js'].lineData[86]++; - if (visit370_86_1(simulatedLocation)) { + if (visit384_86_1(simulatedLocation)) { _$jscoverage['/loader/configs.js'].lineData[87]++; baseUri = simulatedLocation.resolve(base); } else { _$jscoverage['/loader/configs.js'].lineData[91]++; - if (visit371_91_1(!S.startsWith(base, 'file:'))) { + if (visit385_91_1(!S.startsWith(base, 'file:'))) { _$jscoverage['/loader/configs.js'].lineData[92]++; base = 'file:' + base; } diff --git a/src/seed/coverage/src/loader/css-onload.js b/src/seed/coverage/src/loader/css-onload.js index a22cdac0ba..bf9777c3c8 100644 --- a/src/seed/coverage/src/loader/css-onload.js +++ b/src/seed/coverage/src/loader/css-onload.js @@ -303,39 +303,39 @@ if (! _$jscoverage['/loader/css-onload.js'].branchData) { _$jscoverage['/loader/css-onload.js'].branchData['67'][1] = new BranchData(); } _$jscoverage['/loader/css-onload.js'].branchData['67'][1].init(355, 25, 'S.isEmptyObject(monitors)'); -function visit380_67_1(result) { +function visit394_67_1(result) { _$jscoverage['/loader/css-onload.js'].branchData['67'][1].ranCondition(result); return result; }_$jscoverage['/loader/css-onload.js'].branchData['60'][1].init(21, 20, 'callbackObj.callback'); -function visit379_60_1(result) { +function visit393_60_1(result) { _$jscoverage['/loader/css-onload.js'].branchData['60'][1].ranCondition(result); return result; }_$jscoverage['/loader/css-onload.js'].branchData['59'][1].init(103, 22, 'isCssLoaded(node, url)'); -function visit378_59_1(result) { +function visit392_59_1(result) { _$jscoverage['/loader/css-onload.js'].branchData['59'][1].ranCondition(result); return result; }_$jscoverage['/loader/css-onload.js'].branchData['45'][1].init(90, 38, 'exName === \'NS_ERROR_DOM_SECURITY_ERR\''); -function visit377_45_1(result) { +function visit391_45_1(result) { _$jscoverage['/loader/css-onload.js'].branchData['45'][1].ranCondition(result); return result; }_$jscoverage['/loader/css-onload.js'].branchData['35'][1].init(73, 8, 'cssRules'); -function visit376_35_1(result) { +function visit390_35_1(result) { _$jscoverage['/loader/css-onload.js'].branchData['35'][1].ranCondition(result); return result; }_$jscoverage['/loader/css-onload.js'].branchData['32'][1].init(277, 10, 'node.sheet'); -function visit375_32_1(result) { +function visit389_32_1(result) { _$jscoverage['/loader/css-onload.js'].branchData['32'][1].ranCondition(result); return result; }_$jscoverage['/loader/css-onload.js'].branchData['28'][1].init(88, 10, 'node.sheet'); -function visit374_28_1(result) { +function visit388_28_1(result) { _$jscoverage['/loader/css-onload.js'].branchData['28'][1].ranCondition(result); return result; }_$jscoverage['/loader/css-onload.js'].branchData['26'][1].init(37, 9, 'UA.webkit'); -function visit373_26_1(result) { +function visit387_26_1(result) { _$jscoverage['/loader/css-onload.js'].branchData['26'][1].ranCondition(result); return result; }_$jscoverage['/loader/css-onload.js'].branchData['18'][1].init(13, 6, '!timer'); -function visit372_18_1(result) { +function visit386_18_1(result) { _$jscoverage['/loader/css-onload.js'].branchData['18'][1].ranCondition(result); return result; }_$jscoverage['/loader/css-onload.js'].lineData[6]++; @@ -349,7 +349,7 @@ function visit372_18_1(result) { function startCssTimer() { _$jscoverage['/loader/css-onload.js'].functionData[1]++; _$jscoverage['/loader/css-onload.js'].lineData[18]++; - if (visit372_18_1(!timer)) { + if (visit386_18_1(!timer)) { _$jscoverage['/loader/css-onload.js'].lineData[19]++; logger.debug('start css poll timer'); _$jscoverage['/loader/css-onload.js'].lineData[20]++; @@ -362,9 +362,9 @@ function visit372_18_1(result) { _$jscoverage['/loader/css-onload.js'].lineData[25]++; var loaded = 0; _$jscoverage['/loader/css-onload.js'].lineData[26]++; - if (visit373_26_1(UA.webkit)) { + if (visit387_26_1(UA.webkit)) { _$jscoverage['/loader/css-onload.js'].lineData[28]++; - if (visit374_28_1(node.sheet)) { + if (visit388_28_1(node.sheet)) { _$jscoverage['/loader/css-onload.js'].lineData[29]++; logger.debug('webkit css poll loaded: ' + url); _$jscoverage['/loader/css-onload.js'].lineData[30]++; @@ -372,13 +372,13 @@ function visit372_18_1(result) { } } else { _$jscoverage['/loader/css-onload.js'].lineData[32]++; - if (visit375_32_1(node.sheet)) { + if (visit389_32_1(node.sheet)) { _$jscoverage['/loader/css-onload.js'].lineData[33]++; try { _$jscoverage['/loader/css-onload.js'].lineData[34]++; var cssRules = node.sheet.cssRules; _$jscoverage['/loader/css-onload.js'].lineData[35]++; - if (visit376_35_1(cssRules)) { + if (visit390_35_1(cssRules)) { _$jscoverage['/loader/css-onload.js'].lineData[36]++; logger.debug('same domain css poll loaded: ' + url); _$jscoverage['/loader/css-onload.js'].lineData[37]++; @@ -390,7 +390,7 @@ function visit372_18_1(result) { _$jscoverage['/loader/css-onload.js'].lineData[41]++; logger.debug('css poll exception: ' + exName + ' ' + ex.code + ' ' + url); _$jscoverage['/loader/css-onload.js'].lineData[43]++; - if (visit377_45_1(exName === 'NS_ERROR_DOM_SECURITY_ERR')) { + if (visit391_45_1(exName === 'NS_ERROR_DOM_SECURITY_ERR')) { _$jscoverage['/loader/css-onload.js'].lineData[46]++; logger.debug('css poll exception: ' + exName + 'loaded : ' + url); _$jscoverage['/loader/css-onload.js'].lineData[47]++; @@ -410,9 +410,9 @@ function visit372_18_1(result) { _$jscoverage['/loader/css-onload.js'].lineData[57]++; var callbackObj = monitors[url], node = callbackObj.node; _$jscoverage['/loader/css-onload.js'].lineData[59]++; - if (visit378_59_1(isCssLoaded(node, url))) { + if (visit392_59_1(isCssLoaded(node, url))) { _$jscoverage['/loader/css-onload.js'].lineData[60]++; - if (visit379_60_1(callbackObj.callback)) { + if (visit393_60_1(callbackObj.callback)) { _$jscoverage['/loader/css-onload.js'].lineData[61]++; callbackObj.callback.call(node); } @@ -421,7 +421,7 @@ function visit372_18_1(result) { } } _$jscoverage['/loader/css-onload.js'].lineData[67]++; - if (visit380_67_1(S.isEmptyObject(monitors))) { + if (visit394_67_1(S.isEmptyObject(monitors))) { _$jscoverage['/loader/css-onload.js'].lineData[68]++; logger.debug('clear css poll timer'); _$jscoverage['/loader/css-onload.js'].lineData[69]++; diff --git a/src/seed/coverage/src/loader/data-structure.js b/src/seed/coverage/src/loader/data-structure.js index f6cfb85ca8..da475dc2e2 100644 --- a/src/seed/coverage/src/loader/data-structure.js +++ b/src/seed/coverage/src/loader/data-structure.js @@ -263,89 +263,112 @@ if (! _$jscoverage['/loader/data-structure.js']) { _$jscoverage['/loader/data-structure.js'].lineData[158] = 0; _$jscoverage['/loader/data-structure.js'].lineData[159] = 0; _$jscoverage['/loader/data-structure.js'].lineData[162] = 0; - _$jscoverage['/loader/data-structure.js'].lineData[174] = 0; - _$jscoverage['/loader/data-structure.js'].lineData[175] = 0; - _$jscoverage['/loader/data-structure.js'].lineData[184] = 0; - _$jscoverage['/loader/data-structure.js'].lineData[189] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[163] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[164] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[165] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[167] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[170] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[171] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[172] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[176] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[177] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[178] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[179] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[181] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[182] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[186] = 0; _$jscoverage['/loader/data-structure.js'].lineData[198] = 0; - _$jscoverage['/loader/data-structure.js'].lineData[202] = 0; - _$jscoverage['/loader/data-structure.js'].lineData[206] = 0; - _$jscoverage['/loader/data-structure.js'].lineData[207] = 0; - _$jscoverage['/loader/data-structure.js'].lineData[209] = 0; - _$jscoverage['/loader/data-structure.js'].lineData[210] = 0; - _$jscoverage['/loader/data-structure.js'].lineData[211] = 0; - _$jscoverage['/loader/data-structure.js'].lineData[212] = 0; - _$jscoverage['/loader/data-structure.js'].lineData[214] = 0; - _$jscoverage['/loader/data-structure.js'].lineData[216] = 0; - _$jscoverage['/loader/data-structure.js'].lineData[217] = 0; - _$jscoverage['/loader/data-structure.js'].lineData[221] = 0; - _$jscoverage['/loader/data-structure.js'].lineData[229] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[199] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[208] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[213] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[222] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[223] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[224] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[226] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[227] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[228] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[230] = 0; _$jscoverage['/loader/data-structure.js'].lineData[231] = 0; _$jscoverage['/loader/data-structure.js'].lineData[232] = 0; _$jscoverage['/loader/data-structure.js'].lineData[233] = 0; - _$jscoverage['/loader/data-structure.js'].lineData[235] = 0; - _$jscoverage['/loader/data-structure.js'].lineData[237] = 0; _$jscoverage['/loader/data-structure.js'].lineData[239] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[243] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[244] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[246] = 0; _$jscoverage['/loader/data-structure.js'].lineData[247] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[248] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[249] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[251] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[253] = 0; _$jscoverage['/loader/data-structure.js'].lineData[254] = 0; - _$jscoverage['/loader/data-structure.js'].lineData[256] = 0; - _$jscoverage['/loader/data-structure.js'].lineData[257] = 0; - _$jscoverage['/loader/data-structure.js'].lineData[259] = 0; - _$jscoverage['/loader/data-structure.js'].lineData[260] = 0; - _$jscoverage['/loader/data-structure.js'].lineData[261] = 0; - _$jscoverage['/loader/data-structure.js'].lineData[263] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[258] = 0; _$jscoverage['/loader/data-structure.js'].lineData[266] = 0; _$jscoverage['/loader/data-structure.js'].lineData[268] = 0; _$jscoverage['/loader/data-structure.js'].lineData[269] = 0; _$jscoverage['/loader/data-structure.js'].lineData[270] = 0; - _$jscoverage['/loader/data-structure.js'].lineData[271] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[272] = 0; _$jscoverage['/loader/data-structure.js'].lineData[274] = 0; _$jscoverage['/loader/data-structure.js'].lineData[276] = 0; _$jscoverage['/loader/data-structure.js'].lineData[284] = 0; - _$jscoverage['/loader/data-structure.js'].lineData[286] = 0; - _$jscoverage['/loader/data-structure.js'].lineData[287] = 0; - _$jscoverage['/loader/data-structure.js'].lineData[288] = 0; - _$jscoverage['/loader/data-structure.js'].lineData[290] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[291] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[293] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[294] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[296] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[297] = 0; _$jscoverage['/loader/data-structure.js'].lineData[298] = 0; - _$jscoverage['/loader/data-structure.js'].lineData[299] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[300] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[303] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[305] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[306] = 0; _$jscoverage['/loader/data-structure.js'].lineData[307] = 0; - _$jscoverage['/loader/data-structure.js'].lineData[315] = 0; - _$jscoverage['/loader/data-structure.js'].lineData[316] = 0; - _$jscoverage['/loader/data-structure.js'].lineData[326] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[308] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[311] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[313] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[321] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[323] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[324] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[325] = 0; _$jscoverage['/loader/data-structure.js'].lineData[327] = 0; _$jscoverage['/loader/data-structure.js'].lineData[335] = 0; _$jscoverage['/loader/data-structure.js'].lineData[336] = 0; _$jscoverage['/loader/data-structure.js'].lineData[344] = 0; - _$jscoverage['/loader/data-structure.js'].lineData[347] = 0; - _$jscoverage['/loader/data-structure.js'].lineData[348] = 0; - _$jscoverage['/loader/data-structure.js'].lineData[349] = 0; - _$jscoverage['/loader/data-structure.js'].lineData[350] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[352] = 0; _$jscoverage['/loader/data-structure.js'].lineData[353] = 0; - _$jscoverage['/loader/data-structure.js'].lineData[361] = 0; _$jscoverage['/loader/data-structure.js'].lineData[363] = 0; _$jscoverage['/loader/data-structure.js'].lineData[364] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[372] = 0; _$jscoverage['/loader/data-structure.js'].lineData[373] = 0; - _$jscoverage['/loader/data-structure.js'].lineData[378] = 0; - _$jscoverage['/loader/data-structure.js'].lineData[379] = 0; - _$jscoverage['/loader/data-structure.js'].lineData[380] = 0; - _$jscoverage['/loader/data-structure.js'].lineData[383] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[381] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[384] = 0; _$jscoverage['/loader/data-structure.js'].lineData[385] = 0; _$jscoverage['/loader/data-structure.js'].lineData[386] = 0; _$jscoverage['/loader/data-structure.js'].lineData[387] = 0; - _$jscoverage['/loader/data-structure.js'].lineData[392] = 0; - _$jscoverage['/loader/data-structure.js'].lineData[394] = 0; - _$jscoverage['/loader/data-structure.js'].lineData[395] = 0; - _$jscoverage['/loader/data-structure.js'].lineData[399] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[390] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[398] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[400] = 0; _$jscoverage['/loader/data-structure.js'].lineData[401] = 0; - _$jscoverage['/loader/data-structure.js'].lineData[402] = 0; - _$jscoverage['/loader/data-structure.js'].lineData[405] = 0; - _$jscoverage['/loader/data-structure.js'].lineData[408] = 0; - _$jscoverage['/loader/data-structure.js'].lineData[413] = 0; - _$jscoverage['/loader/data-structure.js'].lineData[414] = 0; - _$jscoverage['/loader/data-structure.js'].lineData[418] = 0; - _$jscoverage['/loader/data-structure.js'].lineData[419] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[410] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[415] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[416] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[417] = 0; _$jscoverage['/loader/data-structure.js'].lineData[420] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[422] = 0; _$jscoverage['/loader/data-structure.js'].lineData[423] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[424] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[429] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[431] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[432] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[436] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[438] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[439] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[442] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[445] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[450] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[451] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[455] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[456] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[457] = 0; + _$jscoverage['/loader/data-structure.js'].lineData[460] = 0; } if (! _$jscoverage['/loader/data-structure.js'].functionData) { _$jscoverage['/loader/data-structure.js'].functionData = []; @@ -386,6 +409,9 @@ if (! _$jscoverage['/loader/data-structure.js'].functionData) { _$jscoverage['/loader/data-structure.js'].functionData[34] = 0; _$jscoverage['/loader/data-structure.js'].functionData[35] = 0; _$jscoverage['/loader/data-structure.js'].functionData[36] = 0; + _$jscoverage['/loader/data-structure.js'].functionData[37] = 0; + _$jscoverage['/loader/data-structure.js'].functionData[38] = 0; + _$jscoverage['/loader/data-structure.js'].functionData[39] = 0; } if (! _$jscoverage['/loader/data-structure.js'].branchData) { _$jscoverage['/loader/data-structure.js'].branchData = {}; @@ -393,160 +419,190 @@ if (! _$jscoverage['/loader/data-structure.js'].branchData) { _$jscoverage['/loader/data-structure.js'].branchData['63'][1] = new BranchData(); _$jscoverage['/loader/data-structure.js'].branchData['74'] = []; _$jscoverage['/loader/data-structure.js'].branchData['74'][1] = new BranchData(); - _$jscoverage['/loader/data-structure.js'].branchData['209'] = []; - _$jscoverage['/loader/data-structure.js'].branchData['209'][1] = new BranchData(); - _$jscoverage['/loader/data-structure.js'].branchData['214'] = []; - _$jscoverage['/loader/data-structure.js'].branchData['214'][1] = new BranchData(); - _$jscoverage['/loader/data-structure.js'].branchData['231'] = []; - _$jscoverage['/loader/data-structure.js'].branchData['231'][1] = new BranchData(); - _$jscoverage['/loader/data-structure.js'].branchData['232'] = []; - _$jscoverage['/loader/data-structure.js'].branchData['232'][1] = new BranchData(); - _$jscoverage['/loader/data-structure.js'].branchData['254'] = []; - _$jscoverage['/loader/data-structure.js'].branchData['254'][1] = new BranchData(); - _$jscoverage['/loader/data-structure.js'].branchData['256'] = []; - _$jscoverage['/loader/data-structure.js'].branchData['256'][1] = new BranchData(); - _$jscoverage['/loader/data-structure.js'].branchData['263'] = []; - _$jscoverage['/loader/data-structure.js'].branchData['263'][1] = new BranchData(); - _$jscoverage['/loader/data-structure.js'].branchData['286'] = []; - _$jscoverage['/loader/data-structure.js'].branchData['286'][1] = new BranchData(); - _$jscoverage['/loader/data-structure.js'].branchData['299'] = []; - _$jscoverage['/loader/data-structure.js'].branchData['299'][1] = new BranchData(); - _$jscoverage['/loader/data-structure.js'].branchData['316'] = []; - _$jscoverage['/loader/data-structure.js'].branchData['316'][1] = new BranchData(); - _$jscoverage['/loader/data-structure.js'].branchData['327'] = []; - _$jscoverage['/loader/data-structure.js'].branchData['327'][1] = new BranchData(); + _$jscoverage['/loader/data-structure.js'].branchData['164'] = []; + _$jscoverage['/loader/data-structure.js'].branchData['164'][1] = new BranchData(); + _$jscoverage['/loader/data-structure.js'].branchData['171'] = []; + _$jscoverage['/loader/data-structure.js'].branchData['171'][1] = new BranchData(); + _$jscoverage['/loader/data-structure.js'].branchData['176'] = []; + _$jscoverage['/loader/data-structure.js'].branchData['176'][1] = new BranchData(); + _$jscoverage['/loader/data-structure.js'].branchData['223'] = []; + _$jscoverage['/loader/data-structure.js'].branchData['223'][1] = new BranchData(); + _$jscoverage['/loader/data-structure.js'].branchData['227'] = []; + _$jscoverage['/loader/data-structure.js'].branchData['227'][1] = new BranchData(); + _$jscoverage['/loader/data-structure.js'].branchData['246'] = []; + _$jscoverage['/loader/data-structure.js'].branchData['246'][1] = new BranchData(); + _$jscoverage['/loader/data-structure.js'].branchData['251'] = []; + _$jscoverage['/loader/data-structure.js'].branchData['251'][1] = new BranchData(); + _$jscoverage['/loader/data-structure.js'].branchData['268'] = []; + _$jscoverage['/loader/data-structure.js'].branchData['268'][1] = new BranchData(); + _$jscoverage['/loader/data-structure.js'].branchData['269'] = []; + _$jscoverage['/loader/data-structure.js'].branchData['269'][1] = new BranchData(); + _$jscoverage['/loader/data-structure.js'].branchData['291'] = []; + _$jscoverage['/loader/data-structure.js'].branchData['291'][1] = new BranchData(); + _$jscoverage['/loader/data-structure.js'].branchData['293'] = []; + _$jscoverage['/loader/data-structure.js'].branchData['293'][1] = new BranchData(); + _$jscoverage['/loader/data-structure.js'].branchData['300'] = []; + _$jscoverage['/loader/data-structure.js'].branchData['300'][1] = new BranchData(); + _$jscoverage['/loader/data-structure.js'].branchData['323'] = []; + _$jscoverage['/loader/data-structure.js'].branchData['323'][1] = new BranchData(); _$jscoverage['/loader/data-structure.js'].branchData['336'] = []; _$jscoverage['/loader/data-structure.js'].branchData['336'][1] = new BranchData(); - _$jscoverage['/loader/data-structure.js'].branchData['347'] = []; - _$jscoverage['/loader/data-structure.js'].branchData['347'][1] = new BranchData(); - _$jscoverage['/loader/data-structure.js'].branchData['347'][2] = new BranchData(); - _$jscoverage['/loader/data-structure.js'].branchData['348'] = []; - _$jscoverage['/loader/data-structure.js'].branchData['348'][1] = new BranchData(); - _$jscoverage['/loader/data-structure.js'].branchData['349'] = []; - _$jscoverage['/loader/data-structure.js'].branchData['349'][1] = new BranchData(); - _$jscoverage['/loader/data-structure.js'].branchData['378'] = []; - _$jscoverage['/loader/data-structure.js'].branchData['378'][1] = new BranchData(); - _$jscoverage['/loader/data-structure.js'].branchData['378'][2] = new BranchData(); - _$jscoverage['/loader/data-structure.js'].branchData['379'] = []; - _$jscoverage['/loader/data-structure.js'].branchData['379'][1] = new BranchData(); - _$jscoverage['/loader/data-structure.js'].branchData['380'] = []; - _$jscoverage['/loader/data-structure.js'].branchData['380'][1] = new BranchData(); - _$jscoverage['/loader/data-structure.js'].branchData['382'] = []; - _$jscoverage['/loader/data-structure.js'].branchData['382'][1] = new BranchData(); - _$jscoverage['/loader/data-structure.js'].branchData['401'] = []; - _$jscoverage['/loader/data-structure.js'].branchData['401'][1] = new BranchData(); + _$jscoverage['/loader/data-structure.js'].branchData['353'] = []; + _$jscoverage['/loader/data-structure.js'].branchData['353'][1] = new BranchData(); + _$jscoverage['/loader/data-structure.js'].branchData['364'] = []; + _$jscoverage['/loader/data-structure.js'].branchData['364'][1] = new BranchData(); + _$jscoverage['/loader/data-structure.js'].branchData['373'] = []; + _$jscoverage['/loader/data-structure.js'].branchData['373'][1] = new BranchData(); + _$jscoverage['/loader/data-structure.js'].branchData['384'] = []; + _$jscoverage['/loader/data-structure.js'].branchData['384'][1] = new BranchData(); + _$jscoverage['/loader/data-structure.js'].branchData['384'][2] = new BranchData(); + _$jscoverage['/loader/data-structure.js'].branchData['385'] = []; + _$jscoverage['/loader/data-structure.js'].branchData['385'][1] = new BranchData(); + _$jscoverage['/loader/data-structure.js'].branchData['386'] = []; + _$jscoverage['/loader/data-structure.js'].branchData['386'][1] = new BranchData(); + _$jscoverage['/loader/data-structure.js'].branchData['415'] = []; + _$jscoverage['/loader/data-structure.js'].branchData['415'][1] = new BranchData(); + _$jscoverage['/loader/data-structure.js'].branchData['415'][2] = new BranchData(); + _$jscoverage['/loader/data-structure.js'].branchData['416'] = []; + _$jscoverage['/loader/data-structure.js'].branchData['416'][1] = new BranchData(); + _$jscoverage['/loader/data-structure.js'].branchData['417'] = []; + _$jscoverage['/loader/data-structure.js'].branchData['417'][1] = new BranchData(); _$jscoverage['/loader/data-structure.js'].branchData['419'] = []; _$jscoverage['/loader/data-structure.js'].branchData['419'][1] = new BranchData(); - _$jscoverage['/loader/data-structure.js'].branchData['419'][2] = new BranchData(); - _$jscoverage['/loader/data-structure.js'].branchData['423'] = []; - _$jscoverage['/loader/data-structure.js'].branchData['423'][1] = new BranchData(); + _$jscoverage['/loader/data-structure.js'].branchData['438'] = []; + _$jscoverage['/loader/data-structure.js'].branchData['438'][1] = new BranchData(); + _$jscoverage['/loader/data-structure.js'].branchData['456'] = []; + _$jscoverage['/loader/data-structure.js'].branchData['456'][1] = new BranchData(); + _$jscoverage['/loader/data-structure.js'].branchData['456'][2] = new BranchData(); + _$jscoverage['/loader/data-structure.js'].branchData['460'] = []; + _$jscoverage['/loader/data-structure.js'].branchData['460'][1] = new BranchData(); } -_$jscoverage['/loader/data-structure.js'].branchData['423'][1].init(308, 32, 'packages[pName] || systemPackage'); -function visit407_423_1(result) { - _$jscoverage['/loader/data-structure.js'].branchData['423'][1].ranCondition(result); +_$jscoverage['/loader/data-structure.js'].branchData['460'][1].init(318, 32, 'packages[pName] || systemPackage'); +function visit426_460_1(result) { + _$jscoverage['/loader/data-structure.js'].branchData['460'][1].ranCondition(result); return result; -}_$jscoverage['/loader/data-structure.js'].branchData['419'][2].init(56, 23, 'p.length > pName.length'); -function visit406_419_2(result) { - _$jscoverage['/loader/data-structure.js'].branchData['419'][2].ranCondition(result); +}_$jscoverage['/loader/data-structure.js'].branchData['456'][2].init(57, 23, 'p.length > pName.length'); +function visit425_456_2(result) { + _$jscoverage['/loader/data-structure.js'].branchData['456'][2].ranCondition(result); return result; -}_$jscoverage['/loader/data-structure.js'].branchData['419'][1].init(17, 62, 'S.startsWith(modNameSlash, p + \'/\') && p.length > pName.length'); -function visit405_419_1(result) { +}_$jscoverage['/loader/data-structure.js'].branchData['456'][1].init(18, 62, 'S.startsWith(modNameSlash, p + \'/\') && p.length > pName.length'); +function visit424_456_1(result) { + _$jscoverage['/loader/data-structure.js'].branchData['456'][1].ranCondition(result); + return result; +}_$jscoverage['/loader/data-structure.js'].branchData['438'][1].init(192, 24, 'm.getPackage().isDebug()'); +function visit423_438_1(result) { + _$jscoverage['/loader/data-structure.js'].branchData['438'][1].ranCondition(result); + return result; +}_$jscoverage['/loader/data-structure.js'].branchData['419'][1].init(114, 35, 'normalizedRequiresStatus === status'); +function visit422_419_1(result) { _$jscoverage['/loader/data-structure.js'].branchData['419'][1].ranCondition(result); return result; -}_$jscoverage['/loader/data-structure.js'].branchData['401'][1].init(185, 24, 'm.getPackage().isDebug()'); -function visit404_401_1(result) { - _$jscoverage['/loader/data-structure.js'].branchData['401'][1].ranCondition(result); +}_$jscoverage['/loader/data-structure.js'].branchData['417'][1].init(346, 151, '(normalizedRequires = self.normalizedRequires) && (normalizedRequiresStatus === status)'); +function visit421_417_1(result) { + _$jscoverage['/loader/data-structure.js'].branchData['417'][1].ranCondition(result); + return result; +}_$jscoverage['/loader/data-structure.js'].branchData['416'][1].init(25, 14, 'requires || []'); +function visit420_416_1(result) { + _$jscoverage['/loader/data-structure.js'].branchData['416'][1].ranCondition(result); return result; -}_$jscoverage['/loader/data-structure.js'].branchData['382'][1].init(112, 35, 'normalizedRequiresStatus === status'); -function visit403_382_1(result) { - _$jscoverage['/loader/data-structure.js'].branchData['382'][1].ranCondition(result); +}_$jscoverage['/loader/data-structure.js'].branchData['415'][2].init(255, 21, 'requires.length === 0'); +function visit419_415_2(result) { + _$jscoverage['/loader/data-structure.js'].branchData['415'][2].ranCondition(result); return result; -}_$jscoverage['/loader/data-structure.js'].branchData['380'][1].init(338, 149, '(normalizedRequires = self.normalizedRequires) && (normalizedRequiresStatus === status)'); -function visit402_380_1(result) { - _$jscoverage['/loader/data-structure.js'].branchData['380'][1].ranCondition(result); +}_$jscoverage['/loader/data-structure.js'].branchData['415'][1].init(242, 34, '!requires || requires.length === 0'); +function visit418_415_1(result) { + _$jscoverage['/loader/data-structure.js'].branchData['415'][1].ranCondition(result); return result; -}_$jscoverage['/loader/data-structure.js'].branchData['379'][1].init(24, 14, 'requires || []'); -function visit401_379_1(result) { - _$jscoverage['/loader/data-structure.js'].branchData['379'][1].ranCondition(result); +}_$jscoverage['/loader/data-structure.js'].branchData['386'][1].init(255, 18, '!requiresWithAlias'); +function visit417_386_1(result) { + _$jscoverage['/loader/data-structure.js'].branchData['386'][1].ranCondition(result); return result; -}_$jscoverage['/loader/data-structure.js'].branchData['378'][2].init(249, 21, 'requires.length === 0'); -function visit400_378_2(result) { - _$jscoverage['/loader/data-structure.js'].branchData['378'][2].ranCondition(result); +}_$jscoverage['/loader/data-structure.js'].branchData['385'][1].init(25, 14, 'requires || []'); +function visit416_385_1(result) { + _$jscoverage['/loader/data-structure.js'].branchData['385'][1].ranCondition(result); return result; -}_$jscoverage['/loader/data-structure.js'].branchData['378'][1].init(236, 34, '!requires || requires.length === 0'); -function visit399_378_1(result) { - _$jscoverage['/loader/data-structure.js'].branchData['378'][1].ranCondition(result); +}_$jscoverage['/loader/data-structure.js'].branchData['384'][2].init(165, 21, 'requires.length === 0'); +function visit415_384_2(result) { + _$jscoverage['/loader/data-structure.js'].branchData['384'][2].ranCondition(result); return result; -}_$jscoverage['/loader/data-structure.js'].branchData['349'][1].init(249, 18, '!requiresWithAlias'); -function visit398_349_1(result) { - _$jscoverage['/loader/data-structure.js'].branchData['349'][1].ranCondition(result); +}_$jscoverage['/loader/data-structure.js'].branchData['384'][1].init(152, 34, '!requires || requires.length === 0'); +function visit414_384_1(result) { + _$jscoverage['/loader/data-structure.js'].branchData['384'][1].ranCondition(result); return result; -}_$jscoverage['/loader/data-structure.js'].branchData['348'][1].init(24, 14, 'requires || []'); -function visit397_348_1(result) { - _$jscoverage['/loader/data-structure.js'].branchData['348'][1].ranCondition(result); +}_$jscoverage['/loader/data-structure.js'].branchData['373'][1].init(51, 46, 'self.charset || self.getPackage().getCharset()'); +function visit413_373_1(result) { + _$jscoverage['/loader/data-structure.js'].branchData['373'][1].ranCondition(result); return result; -}_$jscoverage['/loader/data-structure.js'].branchData['347'][2].init(161, 21, 'requires.length === 0'); -function visit396_347_2(result) { - _$jscoverage['/loader/data-structure.js'].branchData['347'][2].ranCondition(result); +}_$jscoverage['/loader/data-structure.js'].branchData['364'][1].init(51, 38, 'self.tag || self.getPackage().getTag()'); +function visit412_364_1(result) { + _$jscoverage['/loader/data-structure.js'].branchData['364'][1].ranCondition(result); return result; -}_$jscoverage['/loader/data-structure.js'].branchData['347'][1].init(148, 34, '!requires || requires.length === 0'); -function visit395_347_1(result) { - _$jscoverage['/loader/data-structure.js'].branchData['347'][1].ranCondition(result); +}_$jscoverage['/loader/data-structure.js'].branchData['353'][1].init(51, 93, 'self.packageInfo || (self.packageInfo = getPackage(self.runtime, self.name))'); +function visit411_353_1(result) { + _$jscoverage['/loader/data-structure.js'].branchData['353'][1].ranCondition(result); return result; -}_$jscoverage['/loader/data-structure.js'].branchData['336'][1].init(49, 46, 'self.charset || self.getPackage().getCharset()'); -function visit394_336_1(result) { +}_$jscoverage['/loader/data-structure.js'].branchData['336'][1].init(51, 55, 'self.path || (self.path = defaultComponentJsName(self))'); +function visit410_336_1(result) { _$jscoverage['/loader/data-structure.js'].branchData['336'][1].ranCondition(result); return result; -}_$jscoverage['/loader/data-structure.js'].branchData['327'][1].init(49, 38, 'self.tag || self.getPackage().getTag()'); -function visit393_327_1(result) { - _$jscoverage['/loader/data-structure.js'].branchData['327'][1].ranCondition(result); +}_$jscoverage['/loader/data-structure.js'].branchData['323'][1].init(78, 14, '!self.fullpath'); +function visit409_323_1(result) { + _$jscoverage['/loader/data-structure.js'].branchData['323'][1].ranCondition(result); + return result; +}_$jscoverage['/loader/data-structure.js'].branchData['300'][1].init(217, 173, 'packageInfo.isIgnorePackageNameInUri() && (packageName = packageInfo.name)'); +function visit408_300_1(result) { + _$jscoverage['/loader/data-structure.js'].branchData['300'][1].ranCondition(result); + return result; +}_$jscoverage['/loader/data-structure.js'].branchData['293'][1].init(68, 13, 'self.fullpath'); +function visit407_293_1(result) { + _$jscoverage['/loader/data-structure.js'].branchData['293'][1].ranCondition(result); return result; -}_$jscoverage['/loader/data-structure.js'].branchData['316'][1].init(49, 92, 'self.packageInfo || (self.packageInfo = getPackage(self.runtime, self.name))'); -function visit392_316_1(result) { - _$jscoverage['/loader/data-structure.js'].branchData['316'][1].ranCondition(result); +}_$jscoverage['/loader/data-structure.js'].branchData['291'][1].init(214, 17, '!self.fullPathUri'); +function visit406_291_1(result) { + _$jscoverage['/loader/data-structure.js'].branchData['291'][1].ranCondition(result); return result; -}_$jscoverage['/loader/data-structure.js'].branchData['299'][1].init(49, 55, 'self.path || (self.path = defaultComponentJsName(self))'); -function visit391_299_1(result) { - _$jscoverage['/loader/data-structure.js'].branchData['299'][1].ranCondition(result); +}_$jscoverage['/loader/data-structure.js'].branchData['269'][1].init(22, 48, 'Path.extname(self.name).toLowerCase() === \'.css\''); +function visit405_269_1(result) { + _$jscoverage['/loader/data-structure.js'].branchData['269'][1].ranCondition(result); return result; -}_$jscoverage['/loader/data-structure.js'].branchData['286'][1].init(75, 14, '!self.fullpath'); -function visit390_286_1(result) { - _$jscoverage['/loader/data-structure.js'].branchData['286'][1].ranCondition(result); +}_$jscoverage['/loader/data-structure.js'].branchData['268'][1].init(80, 2, '!v'); +function visit404_268_1(result) { + _$jscoverage['/loader/data-structure.js'].branchData['268'][1].ranCondition(result); return result; -}_$jscoverage['/loader/data-structure.js'].branchData['263'][1].init(212, 171, 'packageInfo.isIgnorePackageNameInUri() && (packageName = packageInfo.name)'); -function visit389_263_1(result) { - _$jscoverage['/loader/data-structure.js'].branchData['263'][1].ranCondition(result); +}_$jscoverage['/loader/data-structure.js'].branchData['251'][1].init(28, 12, 'e.stack || e'); +function visit403_251_1(result) { + _$jscoverage['/loader/data-structure.js'].branchData['251'][1].ranCondition(result); return result; -}_$jscoverage['/loader/data-structure.js'].branchData['256'][1].init(66, 13, 'self.fullpath'); -function visit388_256_1(result) { - _$jscoverage['/loader/data-structure.js'].branchData['256'][1].ranCondition(result); +}_$jscoverage['/loader/data-structure.js'].branchData['246'][1].init(124, 7, 'i < len'); +function visit402_246_1(result) { + _$jscoverage['/loader/data-structure.js'].branchData['246'][1].ranCondition(result); return result; -}_$jscoverage['/loader/data-structure.js'].branchData['254'][1].init(206, 17, '!self.fullPathUri'); -function visit387_254_1(result) { - _$jscoverage['/loader/data-structure.js'].branchData['254'][1].ranCondition(result); +}_$jscoverage['/loader/data-structure.js'].branchData['227'][1].init(74, 15, 'i < mods.length'); +function visit401_227_1(result) { + _$jscoverage['/loader/data-structure.js'].branchData['227'][1].ranCondition(result); return result; -}_$jscoverage['/loader/data-structure.js'].branchData['232'][1].init(21, 48, 'Path.extname(self.name).toLowerCase() === \'.css\''); -function visit386_232_1(result) { - _$jscoverage['/loader/data-structure.js'].branchData['232'][1].ranCondition(result); +}_$jscoverage['/loader/data-structure.js'].branchData['223'][1].init(48, 30, 'typeof moduleName === \'string\''); +function visit400_223_1(result) { + _$jscoverage['/loader/data-structure.js'].branchData['223'][1].ranCondition(result); return result; -}_$jscoverage['/loader/data-structure.js'].branchData['231'][1].init(77, 2, '!v'); -function visit385_231_1(result) { - _$jscoverage['/loader/data-structure.js'].branchData['231'][1].ranCondition(result); +}_$jscoverage['/loader/data-structure.js'].branchData['176'][1].init(131, 16, 'fn && fn.success'); +function visit399_176_1(result) { + _$jscoverage['/loader/data-structure.js'].branchData['176'][1].ranCondition(result); return result; -}_$jscoverage['/loader/data-structure.js'].branchData['214'][1].init(27, 12, 'e.stack || e'); -function visit384_214_1(result) { - _$jscoverage['/loader/data-structure.js'].branchData['214'][1].ranCondition(result); +}_$jscoverage['/loader/data-structure.js'].branchData['171'][1].init(14, 24, 'typeof fn === \'function\''); +function visit398_171_1(result) { + _$jscoverage['/loader/data-structure.js'].branchData['171'][1].ranCondition(result); return result; -}_$jscoverage['/loader/data-structure.js'].branchData['209'][1].init(120, 7, 'i < len'); -function visit383_209_1(result) { - _$jscoverage['/loader/data-structure.js'].branchData['209'][1].ranCondition(result); +}_$jscoverage['/loader/data-structure.js'].branchData['164'][1].init(49, 14, 'i < arr.length'); +function visit397_164_1(result) { + _$jscoverage['/loader/data-structure.js'].branchData['164'][1].ranCondition(result); return result; -}_$jscoverage['/loader/data-structure.js'].branchData['74'][1].init(46, 16, '!self.packageUri'); -function visit382_74_1(result) { +}_$jscoverage['/loader/data-structure.js'].branchData['74'][1].init(48, 16, '!self.packageUri'); +function visit396_74_1(result) { _$jscoverage['/loader/data-structure.js'].branchData['74'][1].ranCondition(result); return result; }_$jscoverage['/loader/data-structure.js'].branchData['63'][1].init(-1, 47, 'packageName && !self.isIgnorePackageNameInUri()'); -function visit381_63_1(result) { +function visit395_63_1(result) { _$jscoverage['/loader/data-structure.js'].branchData['63'][1].ranCondition(result); return result; }_$jscoverage['/loader/data-structure.js'].lineData[6]++; @@ -594,14 +650,14 @@ function visit381_63_1(result) { _$jscoverage['/loader/data-structure.js'].lineData[60]++; var self = this, packageName = self.name; _$jscoverage['/loader/data-structure.js'].lineData[62]++; - return self.getBase() + (visit381_63_1(packageName && !self.isIgnorePackageNameInUri()) ? (packageName + '/') : ''); + return self.getBase() + (visit395_63_1(packageName && !self.isIgnorePackageNameInUri()) ? (packageName + '/') : ''); }, getPackageUri: function() { _$jscoverage['/loader/data-structure.js'].functionData[8]++; _$jscoverage['/loader/data-structure.js'].lineData[73]++; var self = this; _$jscoverage['/loader/data-structure.js'].lineData[74]++; - if (visit382_74_1(!self.packageUri)) { + if (visit396_74_1(!self.packageUri)) { _$jscoverage['/loader/data-structure.js'].lineData[75]++; self.packageUri = new S.Uri(this.getPrefixUriForCombo()); } @@ -661,256 +717,315 @@ function visit381_63_1(result) { module.waitedCallbacks = []; } _$jscoverage['/loader/data-structure.js'].lineData[162]++; + function makeArray(arr) { + _$jscoverage['/loader/data-structure.js'].functionData[16]++; + _$jscoverage['/loader/data-structure.js'].lineData[163]++; + var ret = []; + _$jscoverage['/loader/data-structure.js'].lineData[164]++; + for (var i = 0; visit397_164_1(i < arr.length); i++) { + _$jscoverage['/loader/data-structure.js'].lineData[165]++; + ret[i] = arr[i]; + } + _$jscoverage['/loader/data-structure.js'].lineData[167]++; + return ret; + } + _$jscoverage['/loader/data-structure.js'].lineData[170]++; + function wrapUse(fn) { + _$jscoverage['/loader/data-structure.js'].functionData[17]++; + _$jscoverage['/loader/data-structure.js'].lineData[171]++; + if (visit398_171_1(typeof fn === 'function')) { + _$jscoverage['/loader/data-structure.js'].lineData[172]++; + fn = { + success: fn}; + } + _$jscoverage['/loader/data-structure.js'].lineData[176]++; + if (visit399_176_1(fn && fn.success)) { + _$jscoverage['/loader/data-structure.js'].lineData[177]++; + var original = fn.success; + _$jscoverage['/loader/data-structure.js'].lineData[178]++; + fn.success = function() { + _$jscoverage['/loader/data-structure.js'].functionData[18]++; + _$jscoverage['/loader/data-structure.js'].lineData[179]++; + original.apply(this, makeArray(arguments).slice(1)); +}; + _$jscoverage['/loader/data-structure.js'].lineData[181]++; + fn.sync = 1; + _$jscoverage['/loader/data-structure.js'].lineData[182]++; + return fn; + } + } + _$jscoverage['/loader/data-structure.js'].lineData[186]++; Module.prototype = { kissy: 1, constructor: Module, 'use': function(relativeName, fn) { - _$jscoverage['/loader/data-structure.js'].functionData[16]++; - _$jscoverage['/loader/data-structure.js'].lineData[174]++; + _$jscoverage['/loader/data-structure.js'].functionData[19]++; + _$jscoverage['/loader/data-structure.js'].lineData[198]++; relativeName = Utils.getModNamesAsArray(relativeName); - _$jscoverage['/loader/data-structure.js'].lineData[175]++; + _$jscoverage['/loader/data-structure.js'].lineData[199]++; return KISSY.use(Utils.normalDepModuleName(this.name, relativeName), fn); }, 'resolve': function(relativePath) { - _$jscoverage['/loader/data-structure.js'].functionData[17]++; - _$jscoverage['/loader/data-structure.js'].lineData[184]++; + _$jscoverage['/loader/data-structure.js'].functionData[20]++; + _$jscoverage['/loader/data-structure.js'].lineData[208]++; return this.getFullPathUri().resolve(relativePath); }, 'resolveByName': function(relativeName) { - _$jscoverage['/loader/data-structure.js'].functionData[18]++; - _$jscoverage['/loader/data-structure.js'].lineData[189]++; + _$jscoverage['/loader/data-structure.js'].functionData[21]++; + _$jscoverage['/loader/data-structure.js'].lineData[213]++; return Utils.normalDepModuleName(this.name, relativeName); }, require: function(moduleName) { - _$jscoverage['/loader/data-structure.js'].functionData[19]++; - _$jscoverage['/loader/data-structure.js'].lineData[198]++; - return S.require(moduleName, this.name); + _$jscoverage['/loader/data-structure.js'].functionData[22]++; + _$jscoverage['/loader/data-structure.js'].lineData[222]++; + var self = this; + _$jscoverage['/loader/data-structure.js'].lineData[223]++; + if (visit400_223_1(typeof moduleName === 'string')) { + _$jscoverage['/loader/data-structure.js'].lineData[224]++; + return S.require(moduleName, this.name); + } else { + _$jscoverage['/loader/data-structure.js'].lineData[226]++; + var mods = moduleName; + _$jscoverage['/loader/data-structure.js'].lineData[227]++; + for (var i = 0; visit401_227_1(i < mods.length); i++) { + _$jscoverage['/loader/data-structure.js'].lineData[228]++; + mods[i] = self.resolveByName(mods[i]); + } + _$jscoverage['/loader/data-structure.js'].lineData[230]++; + var args = makeArray(arguments); + _$jscoverage['/loader/data-structure.js'].lineData[231]++; + args[0] = mods; + _$jscoverage['/loader/data-structure.js'].lineData[232]++; + args[1] = wrapUse(args[1]); + _$jscoverage['/loader/data-structure.js'].lineData[233]++; + S.use.apply(S, args); + } }, wait: function(callback) { - _$jscoverage['/loader/data-structure.js'].functionData[20]++; - _$jscoverage['/loader/data-structure.js'].lineData[202]++; + _$jscoverage['/loader/data-structure.js'].functionData[23]++; + _$jscoverage['/loader/data-structure.js'].lineData[239]++; this.waitedCallbacks.push(callback); }, notifyAll: function() { - _$jscoverage['/loader/data-structure.js'].functionData[21]++; - _$jscoverage['/loader/data-structure.js'].lineData[206]++; + _$jscoverage['/loader/data-structure.js'].functionData[24]++; + _$jscoverage['/loader/data-structure.js'].lineData[243]++; var callback; - _$jscoverage['/loader/data-structure.js'].lineData[207]++; + _$jscoverage['/loader/data-structure.js'].lineData[244]++; var len = this.waitedCallbacks.length, i = 0; - _$jscoverage['/loader/data-structure.js'].lineData[209]++; - for (; visit383_209_1(i < len); i++) { - _$jscoverage['/loader/data-structure.js'].lineData[210]++; + _$jscoverage['/loader/data-structure.js'].lineData[246]++; + for (; visit402_246_1(i < len); i++) { + _$jscoverage['/loader/data-structure.js'].lineData[247]++; callback = this.waitedCallbacks[i]; - _$jscoverage['/loader/data-structure.js'].lineData[211]++; + _$jscoverage['/loader/data-structure.js'].lineData[248]++; try { - _$jscoverage['/loader/data-structure.js'].lineData[212]++; + _$jscoverage['/loader/data-structure.js'].lineData[249]++; callback(this); } catch (e) { - _$jscoverage['/loader/data-structure.js'].lineData[214]++; - S.log(visit384_214_1(e.stack || e), 'error'); - _$jscoverage['/loader/data-structure.js'].lineData[216]++; + _$jscoverage['/loader/data-structure.js'].lineData[251]++; + S.log(visit403_251_1(e.stack || e), 'error'); + _$jscoverage['/loader/data-structure.js'].lineData[253]++; setTimeout(function() { - _$jscoverage['/loader/data-structure.js'].functionData[22]++; - _$jscoverage['/loader/data-structure.js'].lineData[217]++; + _$jscoverage['/loader/data-structure.js'].functionData[25]++; + _$jscoverage['/loader/data-structure.js'].lineData[254]++; throw e; }, 0); } } - _$jscoverage['/loader/data-structure.js'].lineData[221]++; + _$jscoverage['/loader/data-structure.js'].lineData[258]++; this.waitedCallbacks = []; }, getType: function() { - _$jscoverage['/loader/data-structure.js'].functionData[23]++; - _$jscoverage['/loader/data-structure.js'].lineData[229]++; + _$jscoverage['/loader/data-structure.js'].functionData[26]++; + _$jscoverage['/loader/data-structure.js'].lineData[266]++; var self = this, v = self.type; - _$jscoverage['/loader/data-structure.js'].lineData[231]++; - if (visit385_231_1(!v)) { - _$jscoverage['/loader/data-structure.js'].lineData[232]++; - if (visit386_232_1(Path.extname(self.name).toLowerCase() === '.css')) { - _$jscoverage['/loader/data-structure.js'].lineData[233]++; + _$jscoverage['/loader/data-structure.js'].lineData[268]++; + if (visit404_268_1(!v)) { + _$jscoverage['/loader/data-structure.js'].lineData[269]++; + if (visit405_269_1(Path.extname(self.name).toLowerCase() === '.css')) { + _$jscoverage['/loader/data-structure.js'].lineData[270]++; v = 'css'; } else { - _$jscoverage['/loader/data-structure.js'].lineData[235]++; + _$jscoverage['/loader/data-structure.js'].lineData[272]++; v = 'js'; } - _$jscoverage['/loader/data-structure.js'].lineData[237]++; + _$jscoverage['/loader/data-structure.js'].lineData[274]++; self.type = v; } - _$jscoverage['/loader/data-structure.js'].lineData[239]++; + _$jscoverage['/loader/data-structure.js'].lineData[276]++; return v; }, getFullPathUri: function() { - _$jscoverage['/loader/data-structure.js'].functionData[24]++; - _$jscoverage['/loader/data-structure.js'].lineData[247]++; + _$jscoverage['/loader/data-structure.js'].functionData[27]++; + _$jscoverage['/loader/data-structure.js'].lineData[284]++; var self = this, t, fullPathUri, packageBaseUri, packageInfo, packageName, path; - _$jscoverage['/loader/data-structure.js'].lineData[254]++; - if (visit387_254_1(!self.fullPathUri)) { - _$jscoverage['/loader/data-structure.js'].lineData[256]++; - if (visit388_256_1(self.fullpath)) { - _$jscoverage['/loader/data-structure.js'].lineData[257]++; + _$jscoverage['/loader/data-structure.js'].lineData[291]++; + if (visit406_291_1(!self.fullPathUri)) { + _$jscoverage['/loader/data-structure.js'].lineData[293]++; + if (visit407_293_1(self.fullpath)) { + _$jscoverage['/loader/data-structure.js'].lineData[294]++; fullPathUri = new S.Uri(self.fullpath); } else { - _$jscoverage['/loader/data-structure.js'].lineData[259]++; + _$jscoverage['/loader/data-structure.js'].lineData[296]++; packageInfo = self.getPackage(); - _$jscoverage['/loader/data-structure.js'].lineData[260]++; + _$jscoverage['/loader/data-structure.js'].lineData[297]++; packageBaseUri = packageInfo.getBaseUri(); - _$jscoverage['/loader/data-structure.js'].lineData[261]++; + _$jscoverage['/loader/data-structure.js'].lineData[298]++; path = self.getPath(); - _$jscoverage['/loader/data-structure.js'].lineData[263]++; - if (visit389_263_1(packageInfo.isIgnorePackageNameInUri() && (packageName = packageInfo.name))) { - _$jscoverage['/loader/data-structure.js'].lineData[266]++; + _$jscoverage['/loader/data-structure.js'].lineData[300]++; + if (visit408_300_1(packageInfo.isIgnorePackageNameInUri() && (packageName = packageInfo.name))) { + _$jscoverage['/loader/data-structure.js'].lineData[303]++; path = Path.relative(packageName, path); } - _$jscoverage['/loader/data-structure.js'].lineData[268]++; + _$jscoverage['/loader/data-structure.js'].lineData[305]++; fullPathUri = packageBaseUri.resolve(path); - _$jscoverage['/loader/data-structure.js'].lineData[269]++; + _$jscoverage['/loader/data-structure.js'].lineData[306]++; if ((t = self.getTag())) { - _$jscoverage['/loader/data-structure.js'].lineData[270]++; + _$jscoverage['/loader/data-structure.js'].lineData[307]++; t += '.' + self.getType(); - _$jscoverage['/loader/data-structure.js'].lineData[271]++; + _$jscoverage['/loader/data-structure.js'].lineData[308]++; fullPathUri.query.set('t', t); } } - _$jscoverage['/loader/data-structure.js'].lineData[274]++; + _$jscoverage['/loader/data-structure.js'].lineData[311]++; self.fullPathUri = fullPathUri; } - _$jscoverage['/loader/data-structure.js'].lineData[276]++; + _$jscoverage['/loader/data-structure.js'].lineData[313]++; return self.fullPathUri; }, getFullPath: function() { - _$jscoverage['/loader/data-structure.js'].functionData[25]++; - _$jscoverage['/loader/data-structure.js'].lineData[284]++; + _$jscoverage['/loader/data-structure.js'].functionData[28]++; + _$jscoverage['/loader/data-structure.js'].lineData[321]++; var self = this, fullPathUri; - _$jscoverage['/loader/data-structure.js'].lineData[286]++; - if (visit390_286_1(!self.fullpath)) { - _$jscoverage['/loader/data-structure.js'].lineData[287]++; + _$jscoverage['/loader/data-structure.js'].lineData[323]++; + if (visit409_323_1(!self.fullpath)) { + _$jscoverage['/loader/data-structure.js'].lineData[324]++; fullPathUri = self.getFullPathUri(); - _$jscoverage['/loader/data-structure.js'].lineData[288]++; + _$jscoverage['/loader/data-structure.js'].lineData[325]++; self.fullpath = fullPathUri.toString(); } - _$jscoverage['/loader/data-structure.js'].lineData[290]++; + _$jscoverage['/loader/data-structure.js'].lineData[327]++; return self.fullpath; }, getPath: function() { - _$jscoverage['/loader/data-structure.js'].functionData[26]++; - _$jscoverage['/loader/data-structure.js'].lineData[298]++; + _$jscoverage['/loader/data-structure.js'].functionData[29]++; + _$jscoverage['/loader/data-structure.js'].lineData[335]++; var self = this; - _$jscoverage['/loader/data-structure.js'].lineData[299]++; - return visit391_299_1(self.path || (self.path = defaultComponentJsName(self))); + _$jscoverage['/loader/data-structure.js'].lineData[336]++; + return visit410_336_1(self.path || (self.path = defaultComponentJsName(self))); }, getName: function() { - _$jscoverage['/loader/data-structure.js'].functionData[27]++; - _$jscoverage['/loader/data-structure.js'].lineData[307]++; + _$jscoverage['/loader/data-structure.js'].functionData[30]++; + _$jscoverage['/loader/data-structure.js'].lineData[344]++; return this.name; }, getPackage: function() { - _$jscoverage['/loader/data-structure.js'].functionData[28]++; - _$jscoverage['/loader/data-structure.js'].lineData[315]++; + _$jscoverage['/loader/data-structure.js'].functionData[31]++; + _$jscoverage['/loader/data-structure.js'].lineData[352]++; var self = this; - _$jscoverage['/loader/data-structure.js'].lineData[316]++; - return visit392_316_1(self.packageInfo || (self.packageInfo = getPackage(self.runtime, self.name))); + _$jscoverage['/loader/data-structure.js'].lineData[353]++; + return visit411_353_1(self.packageInfo || (self.packageInfo = getPackage(self.runtime, self.name))); }, getTag: function() { - _$jscoverage['/loader/data-structure.js'].functionData[29]++; - _$jscoverage['/loader/data-structure.js'].lineData[326]++; + _$jscoverage['/loader/data-structure.js'].functionData[32]++; + _$jscoverage['/loader/data-structure.js'].lineData[363]++; var self = this; - _$jscoverage['/loader/data-structure.js'].lineData[327]++; - return visit393_327_1(self.tag || self.getPackage().getTag()); + _$jscoverage['/loader/data-structure.js'].lineData[364]++; + return visit412_364_1(self.tag || self.getPackage().getTag()); }, getCharset: function() { - _$jscoverage['/loader/data-structure.js'].functionData[30]++; - _$jscoverage['/loader/data-structure.js'].lineData[335]++; + _$jscoverage['/loader/data-structure.js'].functionData[33]++; + _$jscoverage['/loader/data-structure.js'].lineData[372]++; var self = this; - _$jscoverage['/loader/data-structure.js'].lineData[336]++; - return visit394_336_1(self.charset || self.getPackage().getCharset()); + _$jscoverage['/loader/data-structure.js'].lineData[373]++; + return visit413_373_1(self.charset || self.getPackage().getCharset()); }, getRequiresWithAlias: function() { - _$jscoverage['/loader/data-structure.js'].functionData[31]++; - _$jscoverage['/loader/data-structure.js'].lineData[344]++; + _$jscoverage['/loader/data-structure.js'].functionData[34]++; + _$jscoverage['/loader/data-structure.js'].lineData[381]++; var self = this, requiresWithAlias = self.requiresWithAlias, requires = self.requires; - _$jscoverage['/loader/data-structure.js'].lineData[347]++; - if (visit395_347_1(!requires || visit396_347_2(requires.length === 0))) { - _$jscoverage['/loader/data-structure.js'].lineData[348]++; - return visit397_348_1(requires || []); + _$jscoverage['/loader/data-structure.js'].lineData[384]++; + if (visit414_384_1(!requires || visit415_384_2(requires.length === 0))) { + _$jscoverage['/loader/data-structure.js'].lineData[385]++; + return visit416_385_1(requires || []); } else { - _$jscoverage['/loader/data-structure.js'].lineData[349]++; - if (visit398_349_1(!requiresWithAlias)) { - _$jscoverage['/loader/data-structure.js'].lineData[350]++; + _$jscoverage['/loader/data-structure.js'].lineData[386]++; + if (visit417_386_1(!requiresWithAlias)) { + _$jscoverage['/loader/data-structure.js'].lineData[387]++; self.requiresWithAlias = requiresWithAlias = Utils.normalizeModNamesWithAlias(self.runtime, requires, self.name); } } - _$jscoverage['/loader/data-structure.js'].lineData[353]++; + _$jscoverage['/loader/data-structure.js'].lineData[390]++; return requiresWithAlias; }, getRequiredMods: function() { - _$jscoverage['/loader/data-structure.js'].functionData[32]++; - _$jscoverage['/loader/data-structure.js'].lineData[361]++; + _$jscoverage['/loader/data-structure.js'].functionData[35]++; + _$jscoverage['/loader/data-structure.js'].lineData[398]++; var self = this, runtime = self.runtime; - _$jscoverage['/loader/data-structure.js'].lineData[363]++; + _$jscoverage['/loader/data-structure.js'].lineData[400]++; return S.map(self.getNormalizedRequires(), function(r) { - _$jscoverage['/loader/data-structure.js'].functionData[33]++; - _$jscoverage['/loader/data-structure.js'].lineData[364]++; + _$jscoverage['/loader/data-structure.js'].functionData[36]++; + _$jscoverage['/loader/data-structure.js'].lineData[401]++; return Utils.createModuleInfo(runtime, r); }); }, getNormalizedRequires: function() { - _$jscoverage['/loader/data-structure.js'].functionData[34]++; - _$jscoverage['/loader/data-structure.js'].lineData[373]++; + _$jscoverage['/loader/data-structure.js'].functionData[37]++; + _$jscoverage['/loader/data-structure.js'].lineData[410]++; var self = this, normalizedRequires, normalizedRequiresStatus = self.normalizedRequiresStatus, status = self.status, requires = self.requires; - _$jscoverage['/loader/data-structure.js'].lineData[378]++; - if (visit399_378_1(!requires || visit400_378_2(requires.length === 0))) { - _$jscoverage['/loader/data-structure.js'].lineData[379]++; - return visit401_379_1(requires || []); + _$jscoverage['/loader/data-structure.js'].lineData[415]++; + if (visit418_415_1(!requires || visit419_415_2(requires.length === 0))) { + _$jscoverage['/loader/data-structure.js'].lineData[416]++; + return visit420_416_1(requires || []); } else { - _$jscoverage['/loader/data-structure.js'].lineData[380]++; - if (visit402_380_1((normalizedRequires = self.normalizedRequires) && (visit403_382_1(normalizedRequiresStatus === status)))) { - _$jscoverage['/loader/data-structure.js'].lineData[383]++; + _$jscoverage['/loader/data-structure.js'].lineData[417]++; + if (visit421_417_1((normalizedRequires = self.normalizedRequires) && (visit422_419_1(normalizedRequiresStatus === status)))) { + _$jscoverage['/loader/data-structure.js'].lineData[420]++; return normalizedRequires; } else { - _$jscoverage['/loader/data-structure.js'].lineData[385]++; + _$jscoverage['/loader/data-structure.js'].lineData[422]++; self.normalizedRequiresStatus = status; - _$jscoverage['/loader/data-structure.js'].lineData[386]++; + _$jscoverage['/loader/data-structure.js'].lineData[423]++; self.normalizedRequires = Utils.normalizeModNames(self.runtime, requires, self.name); - _$jscoverage['/loader/data-structure.js'].lineData[387]++; + _$jscoverage['/loader/data-structure.js'].lineData[424]++; return self.normalizedRequires; } } }}; - _$jscoverage['/loader/data-structure.js'].lineData[392]++; + _$jscoverage['/loader/data-structure.js'].lineData[429]++; Loader.Module = Module; - _$jscoverage['/loader/data-structure.js'].lineData[394]++; + _$jscoverage['/loader/data-structure.js'].lineData[431]++; function defaultComponentJsName(m) { - _$jscoverage['/loader/data-structure.js'].functionData[35]++; - _$jscoverage['/loader/data-structure.js'].lineData[395]++; + _$jscoverage['/loader/data-structure.js'].functionData[38]++; + _$jscoverage['/loader/data-structure.js'].lineData[432]++; var name = m.name, extname = '.' + m.getType(), min = '-min'; - _$jscoverage['/loader/data-structure.js'].lineData[399]++; + _$jscoverage['/loader/data-structure.js'].lineData[436]++; name = Path.join(Path.dirname(name), Path.basename(name, extname)); - _$jscoverage['/loader/data-structure.js'].lineData[401]++; - if (visit404_401_1(m.getPackage().isDebug())) { - _$jscoverage['/loader/data-structure.js'].lineData[402]++; + _$jscoverage['/loader/data-structure.js'].lineData[438]++; + if (visit423_438_1(m.getPackage().isDebug())) { + _$jscoverage['/loader/data-structure.js'].lineData[439]++; min = ''; } - _$jscoverage['/loader/data-structure.js'].lineData[405]++; + _$jscoverage['/loader/data-structure.js'].lineData[442]++; return name + min + extname; } - _$jscoverage['/loader/data-structure.js'].lineData[408]++; + _$jscoverage['/loader/data-structure.js'].lineData[445]++; var systemPackage = new Package({ name: '', runtime: S}); - _$jscoverage['/loader/data-structure.js'].lineData[413]++; + _$jscoverage['/loader/data-structure.js'].lineData[450]++; function getPackage(self, modName) { - _$jscoverage['/loader/data-structure.js'].functionData[36]++; - _$jscoverage['/loader/data-structure.js'].lineData[414]++; + _$jscoverage['/loader/data-structure.js'].functionData[39]++; + _$jscoverage['/loader/data-structure.js'].lineData[451]++; var packages = self.config('packages'), modNameSlash = modName + '/', pName = '', p; - _$jscoverage['/loader/data-structure.js'].lineData[418]++; + _$jscoverage['/loader/data-structure.js'].lineData[455]++; for (p in packages) { - _$jscoverage['/loader/data-structure.js'].lineData[419]++; - if (visit405_419_1(S.startsWith(modNameSlash, p + '/') && visit406_419_2(p.length > pName.length))) { - _$jscoverage['/loader/data-structure.js'].lineData[420]++; + _$jscoverage['/loader/data-structure.js'].lineData[456]++; + if (visit424_456_1(S.startsWith(modNameSlash, p + '/') && visit425_456_2(p.length > pName.length))) { + _$jscoverage['/loader/data-structure.js'].lineData[457]++; pName = p; } } - _$jscoverage['/loader/data-structure.js'].lineData[423]++; - return visit407_423_1(packages[pName] || systemPackage); + _$jscoverage['/loader/data-structure.js'].lineData[460]++; + return visit426_460_1(packages[pName] || systemPackage); } })(KISSY); diff --git a/src/seed/coverage/src/loader/get-script-nodejs.js b/src/seed/coverage/src/loader/get-script-nodejs.js index cd493c06ce..8fcf82eaaa 100644 --- a/src/seed/coverage/src/loader/get-script-nodejs.js +++ b/src/seed/coverage/src/loader/get-script-nodejs.js @@ -273,23 +273,23 @@ if (! _$jscoverage['/loader/get-script-nodejs.js'].branchData) { _$jscoverage['/loader/get-script-nodejs.js'].branchData['43'][1] = new BranchData(); } _$jscoverage['/loader/get-script-nodejs.js'].branchData['43'][1].init(101, 5, 'error'); -function visit412_43_1(result) { +function visit431_43_1(result) { _$jscoverage['/loader/get-script-nodejs.js'].branchData['43'][1].ranCondition(result); return result; }_$jscoverage['/loader/get-script-nodejs.js'].branchData['37'][1].init(250, 7, 'success'); -function visit411_37_1(result) { +function visit430_37_1(result) { _$jscoverage['/loader/get-script-nodejs.js'].branchData['37'][1].ranCondition(result); return result; }_$jscoverage['/loader/get-script-nodejs.js'].branchData['23'][1].init(80, 7, 'success'); -function visit410_23_1(result) { +function visit429_23_1(result) { _$jscoverage['/loader/get-script-nodejs.js'].branchData['23'][1].ranCondition(result); return result; }_$jscoverage['/loader/get-script-nodejs.js'].branchData['21'][1].init(197, 55, 'S.startsWith(S.Path.extname(url).toLowerCase(), \'.css\')'); -function visit409_21_1(result) { +function visit428_21_1(result) { _$jscoverage['/loader/get-script-nodejs.js'].branchData['21'][1].ranCondition(result); return result; }_$jscoverage['/loader/get-script-nodejs.js'].branchData['15'][1].init(33, 24, 'S.isPlainObject(success)'); -function visit408_15_1(result) { +function visit427_15_1(result) { _$jscoverage['/loader/get-script-nodejs.js'].branchData['15'][1].ranCondition(result); return result; }_$jscoverage['/loader/get-script-nodejs.js'].lineData[7]++; @@ -303,7 +303,7 @@ function visit408_15_1(result) { _$jscoverage['/loader/get-script-nodejs.js'].lineData[13]++; var error; _$jscoverage['/loader/get-script-nodejs.js'].lineData[15]++; - if (visit408_15_1(S.isPlainObject(success))) { + if (visit427_15_1(S.isPlainObject(success))) { _$jscoverage['/loader/get-script-nodejs.js'].lineData[16]++; charset = success.charset; _$jscoverage['/loader/get-script-nodejs.js'].lineData[17]++; @@ -312,11 +312,11 @@ function visit408_15_1(result) { success = success.success; } _$jscoverage['/loader/get-script-nodejs.js'].lineData[21]++; - if (visit409_21_1(S.startsWith(S.Path.extname(url).toLowerCase(), '.css'))) { + if (visit428_21_1(S.startsWith(S.Path.extname(url).toLowerCase(), '.css'))) { _$jscoverage['/loader/get-script-nodejs.js'].lineData[22]++; S.log('node js can not load css: ' + url, 'warn'); _$jscoverage['/loader/get-script-nodejs.js'].lineData[23]++; - if (visit410_23_1(success)) { + if (visit429_23_1(success)) { _$jscoverage['/loader/get-script-nodejs.js'].lineData[24]++; success(); } @@ -334,7 +334,7 @@ function visit408_15_1(result) { _$jscoverage['/loader/get-script-nodejs.js'].lineData[36]++; factory(S, require); _$jscoverage['/loader/get-script-nodejs.js'].lineData[37]++; - if (visit411_37_1(success)) { + if (visit430_37_1(success)) { _$jscoverage['/loader/get-script-nodejs.js'].lineData[38]++; success(); } @@ -344,7 +344,7 @@ function visit408_15_1(result) { _$jscoverage['/loader/get-script-nodejs.js'].lineData[42]++; S.log(e.stack, 'error'); _$jscoverage['/loader/get-script-nodejs.js'].lineData[43]++; - if (visit412_43_1(error)) { + if (visit431_43_1(error)) { _$jscoverage['/loader/get-script-nodejs.js'].lineData[44]++; error(e); } diff --git a/src/seed/coverage/src/loader/get-script.js b/src/seed/coverage/src/loader/get-script.js index fe35cd78e6..6f50e681f4 100644 --- a/src/seed/coverage/src/loader/get-script.js +++ b/src/seed/coverage/src/loader/get-script.js @@ -352,91 +352,91 @@ if (! _$jscoverage['/loader/get-script.js'].branchData) { _$jscoverage['/loader/get-script.js'].branchData['161'][1] = new BranchData(); } _$jscoverage['/loader/get-script.js'].branchData['161'][1].init(3305, 3, 'css'); -function visit434_161_1(result) { +function visit453_161_1(result) { _$jscoverage['/loader/get-script.js'].branchData['161'][1].ranCondition(result); return result; }_$jscoverage['/loader/get-script.js'].branchData['158'][1].init(3230, 9, '!headNode'); -function visit433_158_1(result) { +function visit452_158_1(result) { _$jscoverage['/loader/get-script.js'].branchData['158'][1].ranCondition(result); return result; }_$jscoverage['/loader/get-script.js'].branchData['153'][1].init(3081, 7, 'timeout'); -function visit432_153_1(result) { +function visit451_153_1(result) { _$jscoverage['/loader/get-script.js'].branchData['153'][1].ranCondition(result); return result; }_$jscoverage['/loader/get-script.js'].branchData['145'][1].init(2903, 3, 'css'); -function visit431_145_1(result) { +function visit450_145_1(result) { _$jscoverage['/loader/get-script.js'].branchData['145'][1].ranCondition(result); return result; }_$jscoverage['/loader/get-script.js'].branchData['137'][1].init(2673, 9, 'useNative'); -function visit430_137_1(result) { +function visit449_137_1(result) { _$jscoverage['/loader/get-script.js'].branchData['137'][1].ranCondition(result); return result; }_$jscoverage['/loader/get-script.js'].branchData['130'][1].init(42, 25, 'readyState === \'complete\''); -function visit429_130_1(result) { +function visit448_130_1(result) { _$jscoverage['/loader/get-script.js'].branchData['130'][1].ranCondition(result); return result; }_$jscoverage['/loader/get-script.js'].branchData['129'][2].init(96, 23, 'readyState === \'loaded\''); -function visit428_129_2(result) { +function visit447_129_2(result) { _$jscoverage['/loader/get-script.js'].branchData['129'][2].ranCondition(result); return result; }_$jscoverage['/loader/get-script.js'].branchData['129'][1].init(30, 68, 'readyState === \'loaded\' || readyState === \'complete\''); -function visit427_129_1(result) { +function visit446_129_1(result) { _$jscoverage['/loader/get-script.js'].branchData['129'][1].ranCondition(result); return result; }_$jscoverage['/loader/get-script.js'].branchData['128'][1].init(63, 99, '!readyState || readyState === \'loaded\' || readyState === \'complete\''); -function visit426_128_1(result) { +function visit445_128_1(result) { _$jscoverage['/loader/get-script.js'].branchData['128'][1].ranCondition(result); return result; }_$jscoverage['/loader/get-script.js'].branchData['122'][2].init(2251, 25, 'forceCssPoll && useNative'); -function visit425_122_2(result) { +function visit444_122_2(result) { _$jscoverage['/loader/get-script.js'].branchData['122'][2].ranCondition(result); return result; }_$jscoverage['/loader/get-script.js'].branchData['122'][1].init(2244, 32, 'css && forceCssPoll && useNative'); -function visit424_122_1(result) { +function visit443_122_1(result) { _$jscoverage['/loader/get-script.js'].branchData['122'][1].ranCondition(result); return result; }_$jscoverage['/loader/get-script.js'].branchData['120'][3].init(2213, 15, 'UA.webkit < 536'); -function visit423_120_3(result) { +function visit442_120_3(result) { _$jscoverage['/loader/get-script.js'].branchData['120'][3].ranCondition(result); return result; }_$jscoverage['/loader/get-script.js'].branchData['120'][2].init(2200, 28, 'UA.webkit && UA.webkit < 536'); -function visit422_120_2(result) { +function visit441_120_2(result) { _$jscoverage['/loader/get-script.js'].branchData['120'][2].ranCondition(result); return result; }_$jscoverage['/loader/get-script.js'].branchData['120'][1].init(2174, 55, 'S.Config.forceCssPoll || (UA.webkit && UA.webkit < 536)'); -function visit421_120_1(result) { +function visit440_120_1(result) { _$jscoverage['/loader/get-script.js'].branchData['120'][1].ranCondition(result); return result; }_$jscoverage['/loader/get-script.js'].branchData['92'][1].init(1269, 3, 'css'); -function visit420_92_1(result) { +function visit439_92_1(result) { _$jscoverage['/loader/get-script.js'].branchData['92'][1].ranCondition(result); return result; }_$jscoverage['/loader/get-script.js'].branchData['88'][1].init(1199, 7, 'charset'); -function visit419_88_1(result) { +function visit438_88_1(result) { _$jscoverage['/loader/get-script.js'].branchData['88'][1].ranCondition(result); return result; }_$jscoverage['/loader/get-script.js'].branchData['82'][1].init(1066, 5, 'attrs'); -function visit418_82_1(result) { +function visit437_82_1(result) { _$jscoverage['/loader/get-script.js'].branchData['82'][1].ranCondition(result); return result; }_$jscoverage['/loader/get-script.js'].branchData['76'][1].init(21, 5, 'timer'); -function visit417_76_1(result) { +function visit436_76_1(result) { _$jscoverage['/loader/get-script.js'].branchData['76'][1].ranCondition(result); return result; }_$jscoverage['/loader/get-script.js'].branchData['70'][1].init(744, 20, 'callbacks.length > 1'); -function visit416_70_1(result) { +function visit435_70_1(result) { _$jscoverage['/loader/get-script.js'].branchData['70'][1].ranCondition(result); return result; }_$jscoverage['/loader/get-script.js'].branchData['66'][1].init(661, 25, 'jsCssCallbacks[url] || []'); -function visit415_66_1(result) { +function visit434_66_1(result) { _$jscoverage['/loader/get-script.js'].branchData['66'][1].ranCondition(result); return result; }_$jscoverage['/loader/get-script.js'].branchData['58'][1].init(399, 23, 'S.isPlainObject(config)'); -function visit414_58_1(result) { +function visit433_58_1(result) { _$jscoverage['/loader/get-script.js'].branchData['58'][1].ranCondition(result); return result; }_$jscoverage['/loader/get-script.js'].branchData['54'][1].init(298, 53, 'S.startsWith(Path.extname(url).toLowerCase(), \'.css\')'); -function visit413_54_1(result) { +function visit432_54_1(result) { _$jscoverage['/loader/get-script.js'].branchData['54'][1].ranCondition(result); return result; }_$jscoverage['/loader/get-script.js'].lineData[6]++; @@ -450,12 +450,12 @@ function visit413_54_1(result) { _$jscoverage['/loader/get-script.js'].lineData[46]++; var config = success, css = 0, error, timeout, attrs, callbacks, timer; _$jscoverage['/loader/get-script.js'].lineData[54]++; - if (visit413_54_1(S.startsWith(Path.extname(url).toLowerCase(), '.css'))) { + if (visit432_54_1(S.startsWith(Path.extname(url).toLowerCase(), '.css'))) { _$jscoverage['/loader/get-script.js'].lineData[55]++; css = 1; } _$jscoverage['/loader/get-script.js'].lineData[58]++; - if (visit414_58_1(S.isPlainObject(config))) { + if (visit433_58_1(S.isPlainObject(config))) { _$jscoverage['/loader/get-script.js'].lineData[59]++; success = config.success; _$jscoverage['/loader/get-script.js'].lineData[60]++; @@ -468,11 +468,11 @@ function visit413_54_1(result) { attrs = config.attrs; } _$jscoverage['/loader/get-script.js'].lineData[66]++; - callbacks = jsCssCallbacks[url] = visit415_66_1(jsCssCallbacks[url] || []); + callbacks = jsCssCallbacks[url] = visit434_66_1(jsCssCallbacks[url] || []); _$jscoverage['/loader/get-script.js'].lineData[68]++; callbacks.push([success, error]); _$jscoverage['/loader/get-script.js'].lineData[70]++; - if (visit416_70_1(callbacks.length > 1)) { + if (visit435_70_1(callbacks.length > 1)) { _$jscoverage['/loader/get-script.js'].lineData[71]++; return callbacks.node; } @@ -480,7 +480,7 @@ function visit413_54_1(result) { var node = doc.createElement(css ? 'link' : 'script'), clearTimer = function() { _$jscoverage['/loader/get-script.js'].functionData[2]++; _$jscoverage['/loader/get-script.js'].lineData[76]++; - if (visit417_76_1(timer)) { + if (visit436_76_1(timer)) { _$jscoverage['/loader/get-script.js'].lineData[77]++; timer.cancel(); _$jscoverage['/loader/get-script.js'].lineData[78]++; @@ -488,7 +488,7 @@ function visit413_54_1(result) { } }; _$jscoverage['/loader/get-script.js'].lineData[82]++; - if (visit418_82_1(attrs)) { + if (visit437_82_1(attrs)) { _$jscoverage['/loader/get-script.js'].lineData[83]++; S.each(attrs, function(v, n) { _$jscoverage['/loader/get-script.js'].functionData[3]++; @@ -497,12 +497,12 @@ function visit413_54_1(result) { }); } _$jscoverage['/loader/get-script.js'].lineData[88]++; - if (visit419_88_1(charset)) { + if (visit438_88_1(charset)) { _$jscoverage['/loader/get-script.js'].lineData[89]++; node.charset = charset; } _$jscoverage['/loader/get-script.js'].lineData[92]++; - if (visit420_92_1(css)) { + if (visit439_92_1(css)) { _$jscoverage['/loader/get-script.js'].lineData[93]++; node.href = url; _$jscoverage['/loader/get-script.js'].lineData[94]++; @@ -537,9 +537,9 @@ function visit413_54_1(result) { _$jscoverage['/loader/get-script.js'].lineData[114]++; var useNative = 'onload' in node; _$jscoverage['/loader/get-script.js'].lineData[120]++; - var forceCssPoll = visit421_120_1(S.Config.forceCssPoll || (visit422_120_2(UA.webkit && visit423_120_3(UA.webkit < 536)))); + var forceCssPoll = visit440_120_1(S.Config.forceCssPoll || (visit441_120_2(UA.webkit && visit442_120_3(UA.webkit < 536)))); _$jscoverage['/loader/get-script.js'].lineData[122]++; - if (visit424_122_1(css && visit425_122_2(forceCssPoll && useNative))) { + if (visit443_122_1(css && visit444_122_2(forceCssPoll && useNative))) { _$jscoverage['/loader/get-script.js'].lineData[123]++; useNative = false; } @@ -549,7 +549,7 @@ function visit413_54_1(result) { _$jscoverage['/loader/get-script.js'].lineData[127]++; var readyState = node.readyState; _$jscoverage['/loader/get-script.js'].lineData[128]++; - if (visit426_128_1(!readyState || visit427_129_1(visit428_129_2(readyState === 'loaded') || visit429_130_1(readyState === 'complete')))) { + if (visit445_128_1(!readyState || visit446_129_1(visit447_129_2(readyState === 'loaded') || visit448_130_1(readyState === 'complete')))) { _$jscoverage['/loader/get-script.js'].lineData[131]++; node.onreadystatechange = node.onload = null; _$jscoverage['/loader/get-script.js'].lineData[132]++; @@ -557,7 +557,7 @@ function visit413_54_1(result) { } } _$jscoverage['/loader/get-script.js'].lineData[137]++; - if (visit430_137_1(useNative)) { + if (visit449_137_1(useNative)) { _$jscoverage['/loader/get-script.js'].lineData[138]++; node.onload = onload; _$jscoverage['/loader/get-script.js'].lineData[139]++; @@ -570,7 +570,7 @@ function visit413_54_1(result) { }; } else { _$jscoverage['/loader/get-script.js'].lineData[145]++; - if (visit431_145_1(css)) { + if (visit450_145_1(css)) { _$jscoverage['/loader/get-script.js'].lineData[146]++; Utils.pollCss(node, function() { _$jscoverage['/loader/get-script.js'].functionData[8]++; @@ -583,7 +583,7 @@ function visit413_54_1(result) { } } _$jscoverage['/loader/get-script.js'].lineData[153]++; - if (visit432_153_1(timeout)) { + if (visit451_153_1(timeout)) { _$jscoverage['/loader/get-script.js'].lineData[154]++; timer = S.later(function() { _$jscoverage['/loader/get-script.js'].functionData[9]++; @@ -592,12 +592,12 @@ function visit413_54_1(result) { }, timeout * MILLISECONDS_OF_SECOND); } _$jscoverage['/loader/get-script.js'].lineData[158]++; - if (visit433_158_1(!headNode)) { + if (visit452_158_1(!headNode)) { _$jscoverage['/loader/get-script.js'].lineData[159]++; headNode = Utils.docHead(); } _$jscoverage['/loader/get-script.js'].lineData[161]++; - if (visit434_161_1(css)) { + if (visit453_161_1(css)) { _$jscoverage['/loader/get-script.js'].lineData[164]++; headNode.appendChild(node); } else { diff --git a/src/seed/coverage/src/loader/init.js b/src/seed/coverage/src/loader/init.js index 344220d7a4..3b2da11b8c 100644 --- a/src/seed/coverage/src/loader/init.js +++ b/src/seed/coverage/src/loader/init.js @@ -275,10 +275,10 @@ if (! _$jscoverage['/loader/init.js']) { _$jscoverage['/loader/init.js'].lineData[102] = 0; _$jscoverage['/loader/init.js'].lineData[103] = 0; _$jscoverage['/loader/init.js'].lineData[106] = 0; - _$jscoverage['/loader/init.js'].lineData[114] = 0; - _$jscoverage['/loader/init.js'].lineData[117] = 0; - _$jscoverage['/loader/init.js'].lineData[123] = 0; - _$jscoverage['/loader/init.js'].lineData[125] = 0; + _$jscoverage['/loader/init.js'].lineData[113] = 0; + _$jscoverage['/loader/init.js'].lineData[116] = 0; + _$jscoverage['/loader/init.js'].lineData[122] = 0; + _$jscoverage['/loader/init.js'].lineData[124] = 0; } if (! _$jscoverage['/loader/init.js'].functionData) { _$jscoverage['/loader/init.js'].functionData = []; @@ -316,76 +316,76 @@ if (! _$jscoverage['/loader/init.js'].branchData) { _$jscoverage['/loader/init.js'].branchData['73'][1] = new BranchData(); _$jscoverage['/loader/init.js'].branchData['96'] = []; _$jscoverage['/loader/init.js'].branchData['96'][1] = new BranchData(); - _$jscoverage['/loader/init.js'].branchData['114'] = []; - _$jscoverage['/loader/init.js'].branchData['114'][1] = new BranchData(); - _$jscoverage['/loader/init.js'].branchData['123'] = []; - _$jscoverage['/loader/init.js'].branchData['123'][1] = new BranchData(); + _$jscoverage['/loader/init.js'].branchData['113'] = []; + _$jscoverage['/loader/init.js'].branchData['113'][1] = new BranchData(); + _$jscoverage['/loader/init.js'].branchData['122'] = []; + _$jscoverage['/loader/init.js'].branchData['122'][1] = new BranchData(); } -_$jscoverage['/loader/init.js'].branchData['123'][1].init(3531, 31, 'doc && doc.getElementsByTagName'); -function visit449_123_1(result) { - _$jscoverage['/loader/init.js'].branchData['123'][1].ranCondition(result); +_$jscoverage['/loader/init.js'].branchData['122'][1].init(3509, 31, 'doc && doc.getElementsByTagName'); +function visit468_122_1(result) { + _$jscoverage['/loader/init.js'].branchData['122'][1].ranCondition(result); return result; -}_$jscoverage['/loader/init.js'].branchData['114'][1].init(3244, 11, 'S.UA.nodejs'); -function visit448_114_1(result) { - _$jscoverage['/loader/init.js'].branchData['114'][1].ranCondition(result); +}_$jscoverage['/loader/init.js'].branchData['113'][1].init(3222, 11, 'S.UA.nodejs'); +function visit467_113_1(result) { + _$jscoverage['/loader/init.js'].branchData['113'][1].ranCondition(result); return result; }_$jscoverage['/loader/init.js'].branchData['96'][1].init(209, 6, 'i >= 0'); -function visit447_96_1(result) { +function visit466_96_1(result) { _$jscoverage['/loader/init.js'].branchData['96'][1].ranCondition(result); return result; -}_$jscoverage['/loader/init.js'].branchData['73'][1].init(1677, 21, 'baseInfo.base || base'); -function visit446_73_1(result) { +}_$jscoverage['/loader/init.js'].branchData['73'][1].init(1679, 21, 'baseInfo.base || base'); +function visit465_73_1(result) { _$jscoverage['/loader/init.js'].branchData['73'][1].ranCondition(result); return result; -}_$jscoverage['/loader/init.js'].branchData['66'][1].init(68, 17, 'queryIndex !== -1'); -function visit445_66_1(result) { +}_$jscoverage['/loader/init.js'].branchData['66'][1].init(70, 17, 'queryIndex !== -1'); +function visit464_66_1(result) { _$jscoverage['/loader/init.js'].branchData['66'][1].ranCondition(result); return result; }_$jscoverage['/loader/init.js'].branchData['64'][1].init(1304, 20, '!(\'tag\' in baseInfo)'); -function visit444_64_1(result) { +function visit463_64_1(result) { _$jscoverage['/loader/init.js'].branchData['64'][1].ranCondition(result); return result; }_$jscoverage['/loader/init.js'].branchData['56'][1].init(21, 23, 'part.match(baseTestReg)'); -function visit443_56_1(result) { +function visit462_56_1(result) { _$jscoverage['/loader/init.js'].branchData['56'][1].ranCondition(result); return result; }_$jscoverage['/loader/init.js'].branchData['51'][1].init(179, 36, 'base.charAt(base.length - 1) !== \'/\''); -function visit442_51_1(result) { +function visit461_51_1(result) { _$jscoverage['/loader/init.js'].branchData['51'][1].ranCondition(result); return result; }_$jscoverage['/loader/init.js'].branchData['45'][1].init(611, 12, 'index === -1'); -function visit441_45_1(result) { +function visit460_45_1(result) { _$jscoverage['/loader/init.js'].branchData['45'][1].ranCondition(result); return result; }_$jscoverage['/loader/init.js'].branchData['38'][1].init(455, 36, 'baseInfo.comboSep || defaultComboSep'); -function visit440_38_1(result) { +function visit459_38_1(result) { _$jscoverage['/loader/init.js'].branchData['38'][1].ranCondition(result); return result; }_$jscoverage['/loader/init.js'].branchData['37'][1].init(388, 42, 'baseInfo.comboPrefix || defaultComboPrefix'); -function visit439_37_1(result) { +function visit458_37_1(result) { _$jscoverage['/loader/init.js'].branchData['37'][1].ranCondition(result); return result; }_$jscoverage['/loader/init.js'].branchData['31'][1].init(250, 8, 'baseInfo'); -function visit438_31_1(result) { +function visit457_31_1(result) { _$jscoverage['/loader/init.js'].branchData['31'][1].ranCondition(result); return result; }_$jscoverage['/loader/init.js'].branchData['25'][1].init(118, 23, '!src.match(baseTestReg)'); -function visit437_25_1(result) { +function visit456_25_1(result) { _$jscoverage['/loader/init.js'].branchData['25'][1].ranCondition(result); return result; }_$jscoverage['/loader/init.js'].branchData['24'][1].init(88, 16, 'script.src || \'\''); -function visit436_24_1(result) { +function visit455_24_1(result) { _$jscoverage['/loader/init.js'].branchData['24'][1].ranCondition(result); return result; }_$jscoverage['/loader/init.js'].branchData['6'][1].init(15, 33, 'S.Env.host && S.Env.host.document'); -function visit435_6_1(result) { +function visit454_6_1(result) { _$jscoverage['/loader/init.js'].branchData['6'][1].ranCondition(result); return result; }_$jscoverage['/loader/init.js'].lineData[5]++; (function(S) { _$jscoverage['/loader/init.js'].functionData[0]++; _$jscoverage['/loader/init.js'].lineData[6]++; - var doc = visit435_6_1(S.Env.host && S.Env.host.document); + var doc = visit454_6_1(S.Env.host && S.Env.host.document); _$jscoverage['/loader/init.js'].lineData[8]++; var Utils = S.Loader.Utils; _$jscoverage['/loader/init.js'].lineData[9]++; @@ -406,16 +406,16 @@ function visit435_6_1(result) { function getBaseInfoFromOneScript(script) { _$jscoverage['/loader/init.js'].functionData[2]++; _$jscoverage['/loader/init.js'].lineData[24]++; - var src = visit436_24_1(script.src || ''); + var src = visit455_24_1(script.src || ''); _$jscoverage['/loader/init.js'].lineData[25]++; - if (visit437_25_1(!src.match(baseTestReg))) { + if (visit456_25_1(!src.match(baseTestReg))) { _$jscoverage['/loader/init.js'].lineData[26]++; return 0; } _$jscoverage['/loader/init.js'].lineData[29]++; var baseInfo = script.getAttribute('data-config'); _$jscoverage['/loader/init.js'].lineData[31]++; - if (visit438_31_1(baseInfo)) { + if (visit457_31_1(baseInfo)) { _$jscoverage['/loader/init.js'].lineData[32]++; baseInfo = returnJson(baseInfo); } else { @@ -423,20 +423,20 @@ function visit435_6_1(result) { baseInfo = {}; } _$jscoverage['/loader/init.js'].lineData[37]++; - var comboPrefix = visit439_37_1(baseInfo.comboPrefix || defaultComboPrefix); + var comboPrefix = visit458_37_1(baseInfo.comboPrefix || defaultComboPrefix); _$jscoverage['/loader/init.js'].lineData[38]++; - var comboSep = visit440_38_1(baseInfo.comboSep || defaultComboSep); + var comboSep = visit459_38_1(baseInfo.comboSep || defaultComboSep); _$jscoverage['/loader/init.js'].lineData[40]++; var parts, base, index = src.indexOf(comboPrefix); _$jscoverage['/loader/init.js'].lineData[45]++; - if (visit441_45_1(index === -1)) { + if (visit460_45_1(index === -1)) { _$jscoverage['/loader/init.js'].lineData[46]++; base = src.replace(baseReg, '$1'); } else { _$jscoverage['/loader/init.js'].lineData[48]++; base = src.substring(0, index); _$jscoverage['/loader/init.js'].lineData[51]++; - if (visit442_51_1(base.charAt(base.length - 1) !== '/')) { + if (visit461_51_1(base.charAt(base.length - 1) !== '/')) { _$jscoverage['/loader/init.js'].lineData[52]++; base += '/'; } @@ -446,7 +446,7 @@ function visit435_6_1(result) { S.each(parts, function(part) { _$jscoverage['/loader/init.js'].functionData[3]++; _$jscoverage['/loader/init.js'].lineData[56]++; - if (visit443_56_1(part.match(baseTestReg))) { + if (visit462_56_1(part.match(baseTestReg))) { _$jscoverage['/loader/init.js'].lineData[57]++; base += part.replace(baseReg, '$1'); _$jscoverage['/loader/init.js'].lineData[58]++; @@ -457,11 +457,11 @@ function visit435_6_1(result) { }); } _$jscoverage['/loader/init.js'].lineData[64]++; - if (visit444_64_1(!('tag' in baseInfo))) { + if (visit463_64_1(!('tag' in baseInfo))) { _$jscoverage['/loader/init.js'].lineData[65]++; - var queryIndex = src.lastIndexOf('?'); + var queryIndex = src.lastIndexOf('?t='); _$jscoverage['/loader/init.js'].lineData[66]++; - if (visit445_66_1(queryIndex !== -1)) { + if (visit464_66_1(queryIndex !== -1)) { _$jscoverage['/loader/init.js'].lineData[67]++; var query = src.substring(queryIndex + 1); _$jscoverage['/loader/init.js'].lineData[69]++; @@ -469,7 +469,7 @@ function visit435_6_1(result) { } } _$jscoverage['/loader/init.js'].lineData[73]++; - baseInfo.base = visit446_73_1(baseInfo.base || base); + baseInfo.base = visit465_73_1(baseInfo.base || base); _$jscoverage['/loader/init.js'].lineData[75]++; return baseInfo; } @@ -479,7 +479,7 @@ function visit435_6_1(result) { _$jscoverage['/loader/init.js'].lineData[92]++; var scripts = doc.getElementsByTagName('script'), i, info; _$jscoverage['/loader/init.js'].lineData[96]++; - for (i = scripts.length - 1; visit447_96_1(i >= 0); i--) { + for (i = scripts.length - 1; visit466_96_1(i >= 0); i--) { _$jscoverage['/loader/init.js'].lineData[97]++; if ((info = getBaseInfoFromOneScript(scripts[i]))) { _$jscoverage['/loader/init.js'].lineData[98]++; @@ -496,18 +496,17 @@ function visit435_6_1(result) { comboPrefix: defaultComboPrefix, comboSep: defaultComboSep, charset: 'utf-8', - lang: 'zh-cn', - tag: TIMESTAMP}); - _$jscoverage['/loader/init.js'].lineData[114]++; - if (visit448_114_1(S.UA.nodejs)) { - _$jscoverage['/loader/init.js'].lineData[117]++; + lang: 'zh-cn'}); + _$jscoverage['/loader/init.js'].lineData[113]++; + if (visit467_113_1(S.UA.nodejs)) { + _$jscoverage['/loader/init.js'].lineData[116]++; S.config({ charset: 'utf-8', base: __dirname.replace(/\\/g, '/').replace(/\/$/, '') + '/'}); } else { - _$jscoverage['/loader/init.js'].lineData[123]++; - if (visit449_123_1(doc && doc.getElementsByTagName)) { - _$jscoverage['/loader/init.js'].lineData[125]++; + _$jscoverage['/loader/init.js'].lineData[122]++; + if (visit468_122_1(doc && doc.getElementsByTagName)) { + _$jscoverage['/loader/init.js'].lineData[124]++; S.config(S.mix({ comboMaxUrlLength: 2000, comboMaxFileNum: 40}, getBaseInfo())); diff --git a/src/seed/coverage/src/loader/loader.js b/src/seed/coverage/src/loader/loader.js index 9630ba12ac..f883c9590d 100644 --- a/src/seed/coverage/src/loader/loader.js +++ b/src/seed/coverage/src/loader/loader.js @@ -245,7 +245,7 @@ if (! _$jscoverage['/loader/loader.js']) { _$jscoverage['/loader/loader.js'].lineData[47] = 0; _$jscoverage['/loader/loader.js'].lineData[49] = 0; _$jscoverage['/loader/loader.js'].lineData[70] = 0; - _$jscoverage['/loader/loader.js'].lineData[86] = 0; + _$jscoverage['/loader/loader.js'].lineData[87] = 0; _$jscoverage['/loader/loader.js'].lineData[94] = 0; _$jscoverage['/loader/loader.js'].lineData[96] = 0; _$jscoverage['/loader/loader.js'].lineData[98] = 0; @@ -327,43 +327,43 @@ if (! _$jscoverage['/loader/loader.js'].branchData) { _$jscoverage['/loader/loader.js'].branchData['169'][1] = new BranchData(); } _$jscoverage['/loader/loader.js'].branchData['169'][1].init(17, 10, 'moduleName'); -function visit459_169_1(result) { +function visit478_169_1(result) { _$jscoverage['/loader/loader.js'].branchData['169'][1].ranCondition(result); return result; -}_$jscoverage['/loader/loader.js'].branchData['151'][1].init(2462, 4, 'sync'); -function visit458_151_1(result) { +}_$jscoverage['/loader/loader.js'].branchData['151'][1].init(2439, 4, 'sync'); +function visit477_151_1(result) { _$jscoverage['/loader/loader.js'].branchData['151'][1].ranCondition(result); return result; }_$jscoverage['/loader/loader.js'].branchData['131'][1].init(29, 4, 'sync'); -function visit457_131_1(result) { +function visit476_131_1(result) { _$jscoverage['/loader/loader.js'].branchData['131'][1].ranCondition(result); return result; }_$jscoverage['/loader/loader.js'].branchData['130'][1].init(25, 5, 'error'); -function visit456_130_1(result) { +function visit475_130_1(result) { _$jscoverage['/loader/loader.js'].branchData['130'][1].ranCondition(result); return result; }_$jscoverage['/loader/loader.js'].branchData['129'][1].init(744, 16, 'errorList.length'); -function visit455_129_1(result) { +function visit474_129_1(result) { _$jscoverage['/loader/loader.js'].branchData['129'][1].ranCondition(result); return result; }_$jscoverage['/loader/loader.js'].branchData['122'][1].init(29, 4, 'sync'); -function visit454_122_1(result) { +function visit473_122_1(result) { _$jscoverage['/loader/loader.js'].branchData['122'][1].ranCondition(result); return result; }_$jscoverage['/loader/loader.js'].branchData['121'][1].init(97, 7, 'success'); -function visit453_121_1(result) { +function visit472_121_1(result) { _$jscoverage['/loader/loader.js'].branchData['121'][1].ranCondition(result); return result; }_$jscoverage['/loader/loader.js'].branchData['119'][1].init(327, 3, 'ret'); -function visit452_119_1(result) { +function visit471_119_1(result) { _$jscoverage['/loader/loader.js'].branchData['119'][1].ranCondition(result); return result; -}_$jscoverage['/loader/loader.js'].branchData['94'][1].init(247, 24, 'S.isPlainObject(success)'); -function visit451_94_1(result) { +}_$jscoverage['/loader/loader.js'].branchData['94'][1].init(224, 24, 'S.isPlainObject(success)'); +function visit470_94_1(result) { _$jscoverage['/loader/loader.js'].branchData['94'][1].ranCondition(result); return result; }_$jscoverage['/loader/loader.js'].branchData['28'][1].init(76, 36, 'fn && S.isEmptyObject(self.waitMods)'); -function visit450_28_1(result) { +function visit469_28_1(result) { _$jscoverage['/loader/loader.js'].branchData['28'][1].ranCondition(result); return result; }_$jscoverage['/loader/loader.js'].lineData[6]++; @@ -389,7 +389,7 @@ function visit450_28_1(result) { _$jscoverage['/loader/loader.js'].lineData[26]++; var self = this, fn = self.fn; _$jscoverage['/loader/loader.js'].lineData[28]++; - if (visit450_28_1(fn && S.isEmptyObject(self.waitMods))) { + if (visit469_28_1(fn && S.isEmptyObject(self.waitMods))) { _$jscoverage['/loader/loader.js'].lineData[29]++; self.fn = null; _$jscoverage['/loader/loader.js'].lineData[30]++; @@ -420,12 +420,12 @@ function visit450_28_1(result) { _$jscoverage['/loader/loader.js'].lineData[70]++; ComboLoader.add(name, factory, cfg, S, arguments.length); }, - use: function(modNames, success) { + use: function(modNames, success, error) { _$jscoverage['/loader/loader.js'].functionData[7]++; - _$jscoverage['/loader/loader.js'].lineData[86]++; - var normalizedModNames, loader, error, sync, tryCount = 0, finalSuccess, waitingModules = new WaitingModules(loadReady); + _$jscoverage['/loader/loader.js'].lineData[87]++; + var normalizedModNames, loader, sync, tryCount = 0, finalSuccess, waitingModules = new WaitingModules(loadReady); _$jscoverage['/loader/loader.js'].lineData[94]++; - if (visit451_94_1(S.isPlainObject(success))) { + if (visit470_94_1(S.isPlainObject(success))) { _$jscoverage['/loader/loader.js'].lineData[96]++; sync = success.sync; _$jscoverage['/loader/loader.js'].lineData[98]++; @@ -457,13 +457,13 @@ function visit450_28_1(result) { _$jscoverage['/loader/loader.js'].lineData[118]++; logger.debug(tryCount + ' check duration ' + (S.now() - start)); _$jscoverage['/loader/loader.js'].lineData[119]++; - if (visit452_119_1(ret)) { + if (visit471_119_1(ret)) { _$jscoverage['/loader/loader.js'].lineData[120]++; Utils.attachModsRecursively(normalizedModNames, S); _$jscoverage['/loader/loader.js'].lineData[121]++; - if (visit453_121_1(success)) { + if (visit472_121_1(success)) { _$jscoverage['/loader/loader.js'].lineData[122]++; - if (visit454_122_1(sync)) { + if (visit473_122_1(sync)) { _$jscoverage['/loader/loader.js'].lineData[123]++; finalSuccess(); } else { @@ -473,11 +473,11 @@ function visit450_28_1(result) { } } else { _$jscoverage['/loader/loader.js'].lineData[129]++; - if (visit455_129_1(errorList.length)) { + if (visit474_129_1(errorList.length)) { _$jscoverage['/loader/loader.js'].lineData[130]++; - if (visit456_130_1(error)) { + if (visit475_130_1(error)) { _$jscoverage['/loader/loader.js'].lineData[131]++; - if (visit457_131_1(sync)) { + if (visit476_131_1(sync)) { _$jscoverage['/loader/loader.js'].lineData[132]++; error.apply(S, errorList); } else { @@ -502,7 +502,7 @@ function visit450_28_1(result) { _$jscoverage['/loader/loader.js'].lineData[146]++; loader = new ComboLoader(S, waitingModules); _$jscoverage['/loader/loader.js'].lineData[151]++; - if (visit458_151_1(sync)) { + if (visit477_151_1(sync)) { _$jscoverage['/loader/loader.js'].lineData[152]++; waitingModules.notifyAll(); } else { @@ -519,7 +519,7 @@ function visit450_28_1(result) { require: function(moduleName, refName) { _$jscoverage['/loader/loader.js'].functionData[12]++; _$jscoverage['/loader/loader.js'].lineData[169]++; - if (visit459_169_1(moduleName)) { + if (visit478_169_1(moduleName)) { _$jscoverage['/loader/loader.js'].lineData[170]++; var moduleNames = Utils.unalias(S, Utils.normalizeModNamesWithAlias(S, [moduleName], refName)); _$jscoverage['/loader/loader.js'].lineData[171]++; diff --git a/src/seed/coverage/src/loader/utils.js b/src/seed/coverage/src/loader/utils.js index 03d0dfc768..e9426c30ed 100644 --- a/src/seed/coverage/src/loader/utils.js +++ b/src/seed/coverage/src/loader/utils.js @@ -493,6 +493,7 @@ if (! _$jscoverage['/loader/utils.js'].branchData) { _$jscoverage['/loader/utils.js'].branchData['289'][1] = new BranchData(); _$jscoverage['/loader/utils.js'].branchData['293'] = []; _$jscoverage['/loader/utils.js'].branchData['293'][1] = new BranchData(); + _$jscoverage['/loader/utils.js'].branchData['293'][2] = new BranchData(); _$jscoverage['/loader/utils.js'].branchData['302'] = []; _$jscoverage['/loader/utils.js'].branchData['302'][1] = new BranchData(); _$jscoverage['/loader/utils.js'].branchData['320'] = []; @@ -524,203 +525,207 @@ if (! _$jscoverage['/loader/utils.js'].branchData) { _$jscoverage['/loader/utils.js'].branchData['472'][1] = new BranchData(); } _$jscoverage['/loader/utils.js'].branchData['472'][1].init(56, 46, '!(m = str.match(/^\\s*["\']([^\'"\\s]+)["\']\\s*$/))'); -function visit509_472_1(result) { +function visit529_472_1(result) { _$jscoverage['/loader/utils.js'].branchData['472'][1].ranCondition(result); return result; }_$jscoverage['/loader/utils.js'].branchData['445'][1].init(85, 8, '--i > -1'); -function visit508_445_1(result) { +function visit528_445_1(result) { _$jscoverage['/loader/utils.js'].branchData['445'][1].ranCondition(result); return result; }_$jscoverage['/loader/utils.js'].branchData['416'][2].init(170, 28, 'module.factory !== undefined'); -function visit507_416_2(result) { +function visit527_416_2(result) { _$jscoverage['/loader/utils.js'].branchData['416'][2].ranCondition(result); return result; }_$jscoverage['/loader/utils.js'].branchData['416'][1].init(160, 38, 'module && module.factory !== undefined'); -function visit506_416_1(result) { +function visit526_416_1(result) { _$jscoverage['/loader/utils.js'].branchData['416'][1].ranCondition(result); return result; }_$jscoverage['/loader/utils.js'].branchData['397'][1].init(536, 10, 'refModName'); -function visit505_397_1(result) { +function visit525_397_1(result) { _$jscoverage['/loader/utils.js'].branchData['397'][1].ranCondition(result); return result; }_$jscoverage['/loader/utils.js'].branchData['391'][1].init(143, 11, 'modNames[i]'); -function visit504_391_1(result) { +function visit524_391_1(result) { _$jscoverage['/loader/utils.js'].branchData['391'][1].ranCondition(result); return result; }_$jscoverage['/loader/utils.js'].branchData['388'][1].init(84, 5, 'i < l'); -function visit503_388_1(result) { +function visit523_388_1(result) { _$jscoverage['/loader/utils.js'].branchData['388'][1].ranCondition(result); return result; }_$jscoverage['/loader/utils.js'].branchData['386'][1].init(51, 8, 'modNames'); -function visit502_386_1(result) { +function visit522_386_1(result) { _$jscoverage['/loader/utils.js'].branchData['386'][1].ranCondition(result); return result; }_$jscoverage['/loader/utils.js'].branchData['366'][1].init(34, 9, '!alias[j]'); -function visit501_366_1(result) { +function visit521_366_1(result) { _$jscoverage['/loader/utils.js'].branchData['366'][1].ranCondition(result); return result; }_$jscoverage['/loader/utils.js'].branchData['365'][1].init(259, 6, 'j >= 0'); -function visit500_365_1(result) { +function visit520_365_1(result) { _$jscoverage['/loader/utils.js'].branchData['365'][1].ranCondition(result); return result; }_$jscoverage['/loader/utils.js'].branchData['362'][1].init(105, 25, 'typeof alias === \'string\''); -function visit499_362_1(result) { +function visit519_362_1(result) { _$jscoverage['/loader/utils.js'].branchData['362'][1].ranCondition(result); return result; }_$jscoverage['/loader/utils.js'].branchData['359'][1].init(27, 35, '(m = mods[ret[i]]) && (\'alias\' in m)'); -function visit498_359_1(result) { +function visit518_359_1(result) { _$jscoverage['/loader/utils.js'].branchData['359'][1].ranCondition(result); return result; }_$jscoverage['/loader/utils.js'].branchData['358'][1].init(68, 6, 'i >= 0'); -function visit497_358_1(result) { +function visit517_358_1(result) { _$jscoverage['/loader/utils.js'].branchData['358'][1].ranCondition(result); return result; }_$jscoverage['/loader/utils.js'].branchData['320'][1].init(18, 28, 'typeof modNames === \'string\''); -function visit496_320_1(result) { +function visit516_320_1(result) { _$jscoverage['/loader/utils.js'].branchData['320'][1].ranCondition(result); return result; -}_$jscoverage['/loader/utils.js'].branchData['302'][1].init(698, 21, 'exports !== undefined'); -function visit495_302_1(result) { +}_$jscoverage['/loader/utils.js'].branchData['302'][1].init(689, 21, 'exports !== undefined'); +function visit515_302_1(result) { _$jscoverage['/loader/utils.js'].branchData['302'][1].ranCondition(result); return result; -}_$jscoverage['/loader/utils.js'].branchData['293'][1].init(153, 41, 'module.requires && module.requires.length'); -function visit494_293_1(result) { +}_$jscoverage['/loader/utils.js'].branchData['293'][2].init(167, 18, 'factory.length > 1'); +function visit514_293_2(result) { + _$jscoverage['/loader/utils.js'].branchData['293'][2].ranCondition(result); + return result; +}_$jscoverage['/loader/utils.js'].branchData['293'][1].init(153, 32, 'module.cjs && factory.length > 1'); +function visit513_293_1(result) { _$jscoverage['/loader/utils.js'].branchData['293'][1].ranCondition(result); return result; }_$jscoverage['/loader/utils.js'].branchData['289'][1].init(89, 29, 'typeof factory === \'function\''); -function visit493_289_1(result) { +function visit512_289_1(result) { _$jscoverage['/loader/utils.js'].branchData['289'][1].ranCondition(result); return result; }_$jscoverage['/loader/utils.js'].branchData['271'][1].init(316, 5, 'm.cjs'); -function visit492_271_1(result) { +function visit511_271_1(result) { _$jscoverage['/loader/utils.js'].branchData['271'][1].ranCondition(result); return result; }_$jscoverage['/loader/utils.js'].branchData['267'][1].init(201, 19, 'status >= ATTACHING'); -function visit491_267_1(result) { +function visit510_267_1(result) { _$jscoverage['/loader/utils.js'].branchData['267'][1].ranCondition(result); return result; }_$jscoverage['/loader/utils.js'].branchData['245'][1].init(1088, 108, 'Utils.checkModsLoadRecursively(m.getNormalizedRequires(), runtime, stack, errorList, cache)'); -function visit490_245_1(result) { +function visit509_245_1(result) { _$jscoverage['/loader/utils.js'].branchData['245'][1].ranCondition(result); return result; }_$jscoverage['/loader/utils.js'].branchData['237'][1].init(22, 25, 'S.inArray(modName, stack)'); -function visit489_237_1(result) { +function visit508_237_1(result) { _$jscoverage['/loader/utils.js'].branchData['237'][1].ranCondition(result); return result; }_$jscoverage['/loader/utils.js'].branchData['236'][1].init(771, 9, '\'@DEBUG@\''); -function visit488_236_1(result) { +function visit507_236_1(result) { _$jscoverage['/loader/utils.js'].branchData['236'][1].ranCondition(result); return result; }_$jscoverage['/loader/utils.js'].branchData['232'][1].init(646, 17, 'status !== LOADED'); -function visit487_232_1(result) { +function visit506_232_1(result) { _$jscoverage['/loader/utils.js'].branchData['232'][1].ranCondition(result); return result; }_$jscoverage['/loader/utils.js'].branchData['228'][1].init(515, 25, 'status >= READY_TO_ATTACH'); -function visit486_228_1(result) { +function visit505_228_1(result) { _$jscoverage['/loader/utils.js'].branchData['228'][1].ranCondition(result); return result; }_$jscoverage['/loader/utils.js'].branchData['223'][1].init(355, 16, 'status === ERROR'); -function visit485_223_1(result) { +function visit504_223_1(result) { _$jscoverage['/loader/utils.js'].branchData['223'][1].ranCondition(result); return result; }_$jscoverage['/loader/utils.js'].branchData['218'][1].init(213, 2, '!m'); -function visit484_218_1(result) { +function visit503_218_1(result) { _$jscoverage['/loader/utils.js'].branchData['218'][1].ranCondition(result); return result; }_$jscoverage['/loader/utils.js'].branchData['215'][1].init(121, 16, 'modName in cache'); -function visit483_215_1(result) { +function visit502_215_1(result) { _$jscoverage['/loader/utils.js'].branchData['215'][1].ranCondition(result); return result; }_$jscoverage['/loader/utils.js'].branchData['205'][1].init(22, 81, 's && Utils.checkModLoadRecursively(modNames[i], runtime, stack, errorList, cache)'); -function visit482_205_1(result) { +function visit501_205_1(result) { _$jscoverage['/loader/utils.js'].branchData['205'][1].ranCondition(result); return result; }_$jscoverage['/loader/utils.js'].branchData['204'][1].init(340, 5, 'i < l'); -function visit481_204_1(result) { +function visit500_204_1(result) { _$jscoverage['/loader/utils.js'].branchData['204'][1].ranCondition(result); return result; }_$jscoverage['/loader/utils.js'].branchData['199'][1].init(176, 11, 'cache || {}'); -function visit480_199_1(result) { +function visit499_199_1(result) { _$jscoverage['/loader/utils.js'].branchData['199'][1].ranCondition(result); return result; }_$jscoverage['/loader/utils.js'].branchData['197'][1].init(77, 11, 'stack || []'); -function visit479_197_1(result) { +function visit498_197_1(result) { _$jscoverage['/loader/utils.js'].branchData['197'][1].ranCondition(result); return result; }_$jscoverage['/loader/utils.js'].branchData['190'][1].init(84, 5, 'i < l'); -function visit478_190_1(result) { +function visit497_190_1(result) { _$jscoverage['/loader/utils.js'].branchData['190'][1].ranCondition(result); return result; }_$jscoverage['/loader/utils.js'].branchData['169'][1].init(367, 5, 'allOk'); -function visit477_169_1(result) { +function visit496_169_1(result) { _$jscoverage['/loader/utils.js'].branchData['169'][1].ranCondition(result); return result; }_$jscoverage['/loader/utils.js'].branchData['167'][3].init(159, 21, 'm.status >= ATTACHING'); -function visit476_167_3(result) { +function visit495_167_3(result) { _$jscoverage['/loader/utils.js'].branchData['167'][3].ranCondition(result); return result; }_$jscoverage['/loader/utils.js'].branchData['167'][2].init(154, 26, 'm && m.status >= ATTACHING'); -function visit475_167_2(result) { +function visit494_167_2(result) { _$jscoverage['/loader/utils.js'].branchData['167'][2].ranCondition(result); return result; }_$jscoverage['/loader/utils.js'].branchData['167'][1].init(149, 31, 'a && m && m.status >= ATTACHING'); -function visit474_167_1(result) { +function visit493_167_1(result) { _$jscoverage['/loader/utils.js'].branchData['167'][1].ranCondition(result); return result; }_$jscoverage['/loader/utils.js'].branchData['162'][2].init(81, 26, 'module.getType() !== \'css\''); -function visit473_162_2(result) { +function visit492_162_2(result) { _$jscoverage['/loader/utils.js'].branchData['162'][2].ranCondition(result); return result; }_$jscoverage['/loader/utils.js'].branchData['162'][1].init(70, 37, '!module || module.getType() !== \'css\''); -function visit472_162_1(result) { +function visit491_162_1(result) { _$jscoverage['/loader/utils.js'].branchData['162'][1].ranCondition(result); return result; }_$jscoverage['/loader/utils.js'].branchData['134'][1].init(169, 6, 'module'); -function visit471_134_1(result) { +function visit490_134_1(result) { _$jscoverage['/loader/utils.js'].branchData['134'][1].ranCondition(result); return result; }_$jscoverage['/loader/utils.js'].branchData['104'][1].init(477, 5, 'i < l'); -function visit470_104_1(result) { +function visit489_104_1(result) { _$jscoverage['/loader/utils.js'].branchData['104'][1].ranCondition(result); return result; }_$jscoverage['/loader/utils.js'].branchData['96'][1].init(22, 55, 'startsWith(depName, \'../\') || startsWith(depName, \'./\')'); -function visit469_96_1(result) { +function visit488_96_1(result) { _$jscoverage['/loader/utils.js'].branchData['96'][1].ranCondition(result); return result; }_$jscoverage['/loader/utils.js'].branchData['95'][1].init(126, 27, 'typeof depName === \'string\''); -function visit468_95_1(result) { +function visit487_95_1(result) { _$jscoverage['/loader/utils.js'].branchData['95'][1].ranCondition(result); return result; }_$jscoverage['/loader/utils.js'].branchData['91'][1].init(47, 8, '!depName'); -function visit467_91_1(result) { +function visit486_91_1(result) { _$jscoverage['/loader/utils.js'].branchData['91'][1].ranCondition(result); return result; }_$jscoverage['/loader/utils.js'].branchData['79'][1].init(21, 58, 'doc.getElementsByTagName(\'head\')[0] || doc.documentElement'); -function visit466_79_1(result) { +function visit485_79_1(result) { _$jscoverage['/loader/utils.js'].branchData['79'][1].ranCondition(result); return result; }_$jscoverage['/loader/utils.js'].branchData['63'][1].init(26, 12, 'Plugin.alias'); -function visit465_63_1(result) { +function visit484_63_1(result) { _$jscoverage['/loader/utils.js'].branchData['63'][1].ranCondition(result); return result; }_$jscoverage['/loader/utils.js'].branchData['57'][1].init(54, 12, 'index !== -1'); -function visit464_57_1(result) { +function visit483_57_1(result) { _$jscoverage['/loader/utils.js'].branchData['57'][1].ranCondition(result); return result; }_$jscoverage['/loader/utils.js'].branchData['49'][1].init(134, 23, 'S.endsWith(name, \'.js\')'); -function visit463_49_1(result) { +function visit482_49_1(result) { _$jscoverage['/loader/utils.js'].branchData['49'][1].ranCondition(result); return result; }_$jscoverage['/loader/utils.js'].branchData['46'][1].init(40, 36, 'name.charAt(name.length - 1) === \'/\''); -function visit462_46_1(result) { +function visit481_46_1(result) { _$jscoverage['/loader/utils.js'].branchData['46'][1].ranCondition(result); return result; }_$jscoverage['/loader/utils.js'].branchData['37'][1].init(103, 5, 'i < l'); -function visit461_37_1(result) { +function visit480_37_1(result) { _$jscoverage['/loader/utils.js'].branchData['37'][1].ranCondition(result); return result; }_$jscoverage['/loader/utils.js'].branchData['31'][1].init(14, 21, 'typeof s === \'string\''); -function visit460_31_1(result) { +function visit479_31_1(result) { _$jscoverage['/loader/utils.js'].branchData['31'][1].ranCondition(result); return result; }_$jscoverage['/loader/utils.js'].lineData[6]++; @@ -732,14 +737,14 @@ function visit460_31_1(result) { function addIndexAndRemoveJsExt(s) { _$jscoverage['/loader/utils.js'].functionData[1]++; _$jscoverage['/loader/utils.js'].lineData[31]++; - if (visit460_31_1(typeof s === 'string')) { + if (visit479_31_1(typeof s === 'string')) { _$jscoverage['/loader/utils.js'].lineData[32]++; return addIndexAndRemoveJsExtFromName(s); } else { _$jscoverage['/loader/utils.js'].lineData[34]++; var ret = [], i = 0, l = s.length; _$jscoverage['/loader/utils.js'].lineData[37]++; - for (; visit461_37_1(i < l); i++) { + for (; visit480_37_1(i < l); i++) { _$jscoverage['/loader/utils.js'].lineData[38]++; ret[i] = addIndexAndRemoveJsExtFromName(s[i]); } @@ -751,12 +756,12 @@ function visit460_31_1(result) { function addIndexAndRemoveJsExtFromName(name) { _$jscoverage['/loader/utils.js'].functionData[2]++; _$jscoverage['/loader/utils.js'].lineData[46]++; - if (visit462_46_1(name.charAt(name.length - 1) === '/')) { + if (visit481_46_1(name.charAt(name.length - 1) === '/')) { _$jscoverage['/loader/utils.js'].lineData[47]++; name += 'index'; } _$jscoverage['/loader/utils.js'].lineData[49]++; - if (visit463_49_1(S.endsWith(name, '.js'))) { + if (visit482_49_1(S.endsWith(name, '.js'))) { _$jscoverage['/loader/utils.js'].lineData[50]++; name = name.slice(0, -3); } @@ -769,7 +774,7 @@ function visit460_31_1(result) { _$jscoverage['/loader/utils.js'].lineData[56]++; var index = name.indexOf('!'); _$jscoverage['/loader/utils.js'].lineData[57]++; - if (visit464_57_1(index !== -1)) { + if (visit483_57_1(index !== -1)) { _$jscoverage['/loader/utils.js'].lineData[58]++; var pluginName = name.substring(0, index); _$jscoverage['/loader/utils.js'].lineData[59]++; @@ -780,7 +785,7 @@ function visit460_31_1(result) { success: function(S, Plugin) { _$jscoverage['/loader/utils.js'].functionData[4]++; _$jscoverage['/loader/utils.js'].lineData[63]++; - if (visit465_63_1(Plugin.alias)) { + if (visit484_63_1(Plugin.alias)) { _$jscoverage['/loader/utils.js'].lineData[65]++; name = Plugin.alias(runtime, name, pluginName); } @@ -794,21 +799,21 @@ function visit460_31_1(result) { docHead: function() { _$jscoverage['/loader/utils.js'].functionData[5]++; _$jscoverage['/loader/utils.js'].lineData[79]++; - return visit466_79_1(doc.getElementsByTagName('head')[0] || doc.documentElement); + return visit485_79_1(doc.getElementsByTagName('head')[0] || doc.documentElement); }, normalDepModuleName: function(moduleName, depName) { _$jscoverage['/loader/utils.js'].functionData[6]++; _$jscoverage['/loader/utils.js'].lineData[89]++; var i = 0, l; _$jscoverage['/loader/utils.js'].lineData[91]++; - if (visit467_91_1(!depName)) { + if (visit486_91_1(!depName)) { _$jscoverage['/loader/utils.js'].lineData[92]++; return depName; } _$jscoverage['/loader/utils.js'].lineData[95]++; - if (visit468_95_1(typeof depName === 'string')) { + if (visit487_95_1(typeof depName === 'string')) { _$jscoverage['/loader/utils.js'].lineData[96]++; - if (visit469_96_1(startsWith(depName, '../') || startsWith(depName, './'))) { + if (visit488_96_1(startsWith(depName, '../') || startsWith(depName, './'))) { _$jscoverage['/loader/utils.js'].lineData[98]++; return Path.resolve(Path.dirname(moduleName), depName); } @@ -816,7 +821,7 @@ function visit460_31_1(result) { return Path.normalize(depName); } _$jscoverage['/loader/utils.js'].lineData[104]++; - for (l = depName.length; visit470_104_1(i < l); i++) { + for (l = depName.length; visit489_104_1(i < l); i++) { _$jscoverage['/loader/utils.js'].lineData[105]++; depName[i] = Utils.normalDepModuleName(moduleName, depName[i]); } @@ -839,7 +844,7 @@ function visit460_31_1(result) { _$jscoverage['/loader/utils.js'].lineData[131]++; var mods = runtime.Env.mods, module = mods[modName]; _$jscoverage['/loader/utils.js'].lineData[134]++; - if (visit471_134_1(module)) { + if (visit490_134_1(module)) { _$jscoverage['/loader/utils.js'].lineData[135]++; return module; } @@ -860,7 +865,7 @@ function visit460_31_1(result) { _$jscoverage['/loader/utils.js'].lineData[161]++; module = runtimeMods[modName]; _$jscoverage['/loader/utils.js'].lineData[162]++; - if (visit472_162_1(!module || visit473_162_2(module.getType() !== 'css'))) { + if (visit491_162_1(!module || visit492_162_2(module.getType() !== 'css'))) { _$jscoverage['/loader/utils.js'].lineData[163]++; unalias = Utils.unalias(runtime, modName); _$jscoverage['/loader/utils.js'].lineData[164]++; @@ -869,10 +874,10 @@ function visit460_31_1(result) { _$jscoverage['/loader/utils.js'].lineData[165]++; m = runtimeMods[n]; _$jscoverage['/loader/utils.js'].lineData[167]++; - return visit474_167_1(a && visit475_167_2(m && visit476_167_3(m.status >= ATTACHING))); + return visit493_167_1(a && visit494_167_2(m && visit495_167_3(m.status >= ATTACHING))); }, true); _$jscoverage['/loader/utils.js'].lineData[169]++; - if (visit477_169_1(allOk)) { + if (visit496_169_1(allOk)) { _$jscoverage['/loader/utils.js'].lineData[170]++; mods.push(runtimeMods[unalias[0]].exports); } else { @@ -892,7 +897,7 @@ function visit460_31_1(result) { _$jscoverage['/loader/utils.js'].lineData[188]++; var i, l = modNames.length; _$jscoverage['/loader/utils.js'].lineData[190]++; - for (i = 0; visit478_190_1(i < l); i++) { + for (i = 0; visit497_190_1(i < l); i++) { _$jscoverage['/loader/utils.js'].lineData[191]++; Utils.attachModRecursively(modNames[i], runtime); } @@ -900,15 +905,15 @@ function visit460_31_1(result) { checkModsLoadRecursively: function(modNames, runtime, stack, errorList, cache) { _$jscoverage['/loader/utils.js'].functionData[14]++; _$jscoverage['/loader/utils.js'].lineData[197]++; - stack = visit479_197_1(stack || []); + stack = visit498_197_1(stack || []); _$jscoverage['/loader/utils.js'].lineData[199]++; - cache = visit480_199_1(cache || {}); + cache = visit499_199_1(cache || {}); _$jscoverage['/loader/utils.js'].lineData[200]++; var i, s = 1, l = modNames.length, stackDepth = stack.length; _$jscoverage['/loader/utils.js'].lineData[204]++; - for (i = 0; visit481_204_1(i < l); i++) { + for (i = 0; visit500_204_1(i < l); i++) { _$jscoverage['/loader/utils.js'].lineData[205]++; - s = visit482_205_1(s && Utils.checkModLoadRecursively(modNames[i], runtime, stack, errorList, cache)); + s = visit501_205_1(s && Utils.checkModLoadRecursively(modNames[i], runtime, stack, errorList, cache)); _$jscoverage['/loader/utils.js'].lineData[206]++; stack.length = stackDepth; } @@ -920,12 +925,12 @@ function visit460_31_1(result) { _$jscoverage['/loader/utils.js'].lineData[212]++; var mods = runtime.Env.mods, status, m = mods[modName]; _$jscoverage['/loader/utils.js'].lineData[215]++; - if (visit483_215_1(modName in cache)) { + if (visit502_215_1(modName in cache)) { _$jscoverage['/loader/utils.js'].lineData[216]++; return cache[modName]; } _$jscoverage['/loader/utils.js'].lineData[218]++; - if (visit484_218_1(!m)) { + if (visit503_218_1(!m)) { _$jscoverage['/loader/utils.js'].lineData[219]++; cache[modName] = FALSE; _$jscoverage['/loader/utils.js'].lineData[220]++; @@ -934,7 +939,7 @@ function visit460_31_1(result) { _$jscoverage['/loader/utils.js'].lineData[222]++; status = m.status; _$jscoverage['/loader/utils.js'].lineData[223]++; - if (visit485_223_1(status === ERROR)) { + if (visit504_223_1(status === ERROR)) { _$jscoverage['/loader/utils.js'].lineData[224]++; errorList.push(m); _$jscoverage['/loader/utils.js'].lineData[225]++; @@ -943,23 +948,23 @@ function visit460_31_1(result) { return FALSE; } _$jscoverage['/loader/utils.js'].lineData[228]++; - if (visit486_228_1(status >= READY_TO_ATTACH)) { + if (visit505_228_1(status >= READY_TO_ATTACH)) { _$jscoverage['/loader/utils.js'].lineData[229]++; cache[modName] = TRUE; _$jscoverage['/loader/utils.js'].lineData[230]++; return TRUE; } _$jscoverage['/loader/utils.js'].lineData[232]++; - if (visit487_232_1(status !== LOADED)) { + if (visit506_232_1(status !== LOADED)) { _$jscoverage['/loader/utils.js'].lineData[233]++; cache[modName] = FALSE; _$jscoverage['/loader/utils.js'].lineData[234]++; return FALSE; } _$jscoverage['/loader/utils.js'].lineData[236]++; - if (visit488_236_1('@DEBUG@')) { + if (visit507_236_1('@DEBUG@')) { _$jscoverage['/loader/utils.js'].lineData[237]++; - if (visit489_237_1(S.inArray(modName, stack))) { + if (visit508_237_1(S.inArray(modName, stack))) { _$jscoverage['/loader/utils.js'].lineData[238]++; S.log('find cyclic dependency between mods: ' + stack, 'warn'); _$jscoverage['/loader/utils.js'].lineData[239]++; @@ -971,7 +976,7 @@ function visit460_31_1(result) { stack.push(modName); } _$jscoverage['/loader/utils.js'].lineData[245]++; - if (visit490_245_1(Utils.checkModsLoadRecursively(m.getNormalizedRequires(), runtime, stack, errorList, cache))) { + if (visit509_245_1(Utils.checkModsLoadRecursively(m.getNormalizedRequires(), runtime, stack, errorList, cache))) { _$jscoverage['/loader/utils.js'].lineData[247]++; m.status = READY_TO_ATTACH; _$jscoverage['/loader/utils.js'].lineData[248]++; @@ -991,14 +996,14 @@ function visit460_31_1(result) { _$jscoverage['/loader/utils.js'].lineData[265]++; status = m.status; _$jscoverage['/loader/utils.js'].lineData[267]++; - if (visit491_267_1(status >= ATTACHING)) { + if (visit510_267_1(status >= ATTACHING)) { _$jscoverage['/loader/utils.js'].lineData[268]++; return; } _$jscoverage['/loader/utils.js'].lineData[270]++; m.status = ATTACHING; _$jscoverage['/loader/utils.js'].lineData[271]++; - if (visit492_271_1(m.cjs)) { + if (visit511_271_1(m.cjs)) { _$jscoverage['/loader/utils.js'].lineData[273]++; Utils.attachMod(runtime, m); } else { @@ -1013,18 +1018,18 @@ function visit460_31_1(result) { _$jscoverage['/loader/utils.js'].lineData[286]++; var factory = module.factory, exports; _$jscoverage['/loader/utils.js'].lineData[289]++; - if (visit493_289_1(typeof factory === 'function')) { + if (visit512_289_1(typeof factory === 'function')) { _$jscoverage['/loader/utils.js'].lineData[292]++; var require; _$jscoverage['/loader/utils.js'].lineData[293]++; - if (visit494_293_1(module.requires && module.requires.length)) { + if (visit513_293_1(module.cjs && visit514_293_2(factory.length > 1))) { _$jscoverage['/loader/utils.js'].lineData[294]++; require = S.bind(module.require, module); } _$jscoverage['/loader/utils.js'].lineData[299]++; exports = factory.apply(module, (module.cjs ? [runtime, require, module.exports, module] : Utils.getModules(runtime, module.getRequiresWithAlias()))); _$jscoverage['/loader/utils.js'].lineData[302]++; - if (visit495_302_1(exports !== undefined)) { + if (visit515_302_1(exports !== undefined)) { _$jscoverage['/loader/utils.js'].lineData[304]++; module.exports = exports; } @@ -1038,7 +1043,7 @@ function visit460_31_1(result) { getModNamesAsArray: function(modNames) { _$jscoverage['/loader/utils.js'].functionData[18]++; _$jscoverage['/loader/utils.js'].lineData[320]++; - if (visit496_320_1(typeof modNames === 'string')) { + if (visit516_320_1(typeof modNames === 'string')) { _$jscoverage['/loader/utils.js'].lineData[321]++; modNames = modNames.replace(/\s+/g, '').split(','); } @@ -1059,22 +1064,22 @@ function visit460_31_1(result) { _$jscoverage['/loader/utils.js'].lineData[357]++; ok = 1; _$jscoverage['/loader/utils.js'].lineData[358]++; - for (i = ret.length - 1; visit497_358_1(i >= 0); i--) { + for (i = ret.length - 1; visit517_358_1(i >= 0); i--) { _$jscoverage['/loader/utils.js'].lineData[359]++; - if (visit498_359_1((m = mods[ret[i]]) && ('alias' in m))) { + if (visit518_359_1((m = mods[ret[i]]) && ('alias' in m))) { _$jscoverage['/loader/utils.js'].lineData[360]++; ok = 0; _$jscoverage['/loader/utils.js'].lineData[361]++; alias = m.alias; _$jscoverage['/loader/utils.js'].lineData[362]++; - if (visit499_362_1(typeof alias === 'string')) { + if (visit519_362_1(typeof alias === 'string')) { _$jscoverage['/loader/utils.js'].lineData[363]++; alias = [alias]; } _$jscoverage['/loader/utils.js'].lineData[365]++; - for (j = alias.length - 1; visit500_365_1(j >= 0); j--) { + for (j = alias.length - 1; visit520_365_1(j >= 0); j--) { _$jscoverage['/loader/utils.js'].lineData[366]++; - if (visit501_366_1(!alias[j])) { + if (visit521_366_1(!alias[j])) { _$jscoverage['/loader/utils.js'].lineData[367]++; alias.splice(j, 1); } @@ -1092,18 +1097,18 @@ function visit460_31_1(result) { _$jscoverage['/loader/utils.js'].lineData[385]++; var ret = [], i, l; _$jscoverage['/loader/utils.js'].lineData[386]++; - if (visit502_386_1(modNames)) { + if (visit522_386_1(modNames)) { _$jscoverage['/loader/utils.js'].lineData[388]++; - for (i = 0 , l = modNames.length; visit503_388_1(i < l); i++) { + for (i = 0 , l = modNames.length; visit523_388_1(i < l); i++) { _$jscoverage['/loader/utils.js'].lineData[391]++; - if (visit504_391_1(modNames[i])) { + if (visit524_391_1(modNames[i])) { _$jscoverage['/loader/utils.js'].lineData[392]++; ret.push(pluginAlias(runtime, addIndexAndRemoveJsExt(modNames[i]))); } } } _$jscoverage['/loader/utils.js'].lineData[397]++; - if (visit505_397_1(refModName)) { + if (visit525_397_1(refModName)) { _$jscoverage['/loader/utils.js'].lineData[398]++; ret = Utils.normalDepModuleName(refModName, ret); } @@ -1117,7 +1122,7 @@ function visit460_31_1(result) { _$jscoverage['/loader/utils.js'].lineData[413]++; var mods = runtime.Env.mods, module = mods[name]; _$jscoverage['/loader/utils.js'].lineData[416]++; - if (visit506_416_1(module && visit507_416_2(module.factory !== undefined))) { + if (visit526_416_1(module && visit527_416_2(module.factory !== undefined))) { _$jscoverage['/loader/utils.js'].lineData[417]++; S.log(name + ' is defined more than once', 'warn'); _$jscoverage['/loader/utils.js'].lineData[418]++; @@ -1140,7 +1145,7 @@ function visit460_31_1(result) { _$jscoverage['/loader/utils.js'].lineData[443]++; var hash = 5381, i; _$jscoverage['/loader/utils.js'].lineData[445]++; - for (i = str.length; visit508_445_1(--i > -1); ) { + for (i = str.length; visit528_445_1(--i > -1); ) { _$jscoverage['/loader/utils.js'].lineData[446]++; hash = ((hash << 5) + hash) + str.charCodeAt(i); } @@ -1168,7 +1173,7 @@ function visit460_31_1(result) { _$jscoverage['/loader/utils.js'].lineData[470]++; var m; _$jscoverage['/loader/utils.js'].lineData[472]++; - if (visit509_472_1(!(m = str.match(/^\s*["']([^'"\s]+)["']\s*$/)))) { + if (visit529_472_1(!(m = str.match(/^\s*["']([^'"\s]+)["']\s*$/)))) { _$jscoverage['/loader/utils.js'].lineData[473]++; S.error('can not find required mod in require call: ' + str); } diff --git a/src/seed/coverage/src/meta/base.js b/src/seed/coverage/src/meta/base.js index 1319f1d33b..2fa6bbf72d 100644 --- a/src/seed/coverage/src/meta/base.js +++ b/src/seed/coverage/src/meta/base.js @@ -246,7 +246,7 @@ if (! _$jscoverage['/meta/base.js'].branchData) { _$jscoverage['/meta/base.js'].branchData['21'][1] = new BranchData(); } _$jscoverage['/meta/base.js'].branchData['21'][1].init(345, 31, 'typeof location !== \'undefined\''); -function visit510_21_1(result) { +function visit530_21_1(result) { _$jscoverage['/meta/base.js'].branchData['21'][1].ranCondition(result); return result; }_$jscoverage['/meta/base.js'].lineData[6]++; @@ -262,7 +262,7 @@ function visit510_21_1(result) { 'rich-base': { alias: 'base'}}}); _$jscoverage['/meta/base.js'].lineData[21]++; - if (visit510_21_1(typeof location !== 'undefined')) { + if (visit530_21_1(typeof location !== 'undefined')) { _$jscoverage['/meta/base.js'].lineData[22]++; var https = S.startsWith(location.href, 'https'); _$jscoverage['/meta/base.js'].lineData[23]++; @@ -272,6 +272,8 @@ function visit510_21_1(result) { packages: { gallery: { base: prefix}, + kg: { + base: '//g.alicdn.com/'}, mobile: { base: prefix}}}); } diff --git a/src/seed/coverage/src/meta/modules.js b/src/seed/coverage/src/meta/modules.js index 1290805c37..97bf4119da 100644 --- a/src/seed/coverage/src/meta/modules.js +++ b/src/seed/coverage/src/meta/modules.js @@ -262,8 +262,8 @@ if (! _$jscoverage['/meta/modules.js']) { _$jscoverage['/meta/modules.js'].lineData[131] = 0; _$jscoverage['/meta/modules.js'].lineData[135] = 0; _$jscoverage['/meta/modules.js'].lineData[139] = 0; - _$jscoverage['/meta/modules.js'].lineData[142] = 0; - _$jscoverage['/meta/modules.js'].lineData[158] = 0; + _$jscoverage['/meta/modules.js'].lineData[143] = 0; + _$jscoverage['/meta/modules.js'].lineData[146] = 0; _$jscoverage['/meta/modules.js'].lineData[162] = 0; _$jscoverage['/meta/modules.js'].lineData[166] = 0; _$jscoverage['/meta/modules.js'].lineData[170] = 0; @@ -279,8 +279,8 @@ if (! _$jscoverage['/meta/modules.js']) { _$jscoverage['/meta/modules.js'].lineData[210] = 0; _$jscoverage['/meta/modules.js'].lineData[214] = 0; _$jscoverage['/meta/modules.js'].lineData[218] = 0; - _$jscoverage['/meta/modules.js'].lineData[221] = 0; - _$jscoverage['/meta/modules.js'].lineData[226] = 0; + _$jscoverage['/meta/modules.js'].lineData[222] = 0; + _$jscoverage['/meta/modules.js'].lineData[225] = 0; _$jscoverage['/meta/modules.js'].lineData[230] = 0; _$jscoverage['/meta/modules.js'].lineData[234] = 0; _$jscoverage['/meta/modules.js'].lineData[238] = 0; @@ -327,7 +327,7 @@ _$jscoverage['/meta/modules.js'].lineData[3]++; _$jscoverage['/meta/modules.js'].lineData[21]++; config({ 'anim/transition': { - requires: ['dom', 'event/dom', 'anim/base']}}); + requires: ['dom', 'anim/base']}}); _$jscoverage['/meta/modules.js'].lineData[25]++; config({ 'attribute': { @@ -387,11 +387,11 @@ _$jscoverage['/meta/modules.js'].lineData[3]++; _$jscoverage['/meta/modules.js'].lineData[81]++; config({ 'date/picker': { - requires: ['node', 'date/gregorian', 'i18n!date/picker', 'component/control', 'date/format']}}); + requires: ['node', 'date/gregorian', 'i18n!date/picker', 'component/control', 'date/format', 'date/picker-xtpl']}}); _$jscoverage['/meta/modules.js'].lineData[85]++; config({ 'date/popup-picker': { - requires: ['date/picker/picker-xtpl', 'date/picker', 'component/extension/shim', 'component/extension/align']}}); + requires: ['date/picker-xtpl', 'date/picker', 'component/extension/shim', 'component/extension/align']}}); _$jscoverage['/meta/modules.js'].lineData[89]++; config({ 'dd': { @@ -416,156 +416,156 @@ _$jscoverage['/meta/modules.js'].lineData[3]++; 'alias': ['dom/basic', !Features.isQuerySelectorSupported() ? 'dom/selector' : '']}}); _$jscoverage['/meta/modules.js'].lineData[119]++; config({ + 'dom/base': { + requires: ['ua']}}); + _$jscoverage['/meta/modules.js'].lineData[123]++; + config({ 'dom/class-list': { requires: ['dom/base']}}); - _$jscoverage['/meta/modules.js'].lineData[123]++; + _$jscoverage['/meta/modules.js'].lineData[127]++; config({ 'dom/ie': { requires: ['dom/base']}}); - _$jscoverage['/meta/modules.js'].lineData[127]++; + _$jscoverage['/meta/modules.js'].lineData[131]++; config({ 'dom/selector': { requires: ['dom/basic']}}); - _$jscoverage['/meta/modules.js'].lineData[131]++; + _$jscoverage['/meta/modules.js'].lineData[135]++; config({ 'editor': { - requires: ['node', 'html-parser', 'component/control']}}); - _$jscoverage['/meta/modules.js'].lineData[135]++; + requires: ['node', 'html-parser', 'component/control', 'ua']}}); + _$jscoverage['/meta/modules.js'].lineData[139]++; config({ 'event': { requires: ['event/dom', 'event/custom']}}); - _$jscoverage['/meta/modules.js'].lineData[139]++; + _$jscoverage['/meta/modules.js'].lineData[143]++; config({ 'event/custom': { requires: ['event/base']}}); - _$jscoverage['/meta/modules.js'].lineData[142]++; + _$jscoverage['/meta/modules.js'].lineData[146]++; config({ 'event/dom': { 'alias': ['event/dom/base', Features.isTouchGestureSupported() ? 'event/dom/touch' : '', Features.isDeviceMotionSupported() ? 'event/dom/shake' : '', Features.isHashChangeSupported() ? '' : 'event/dom/hashchange', Features.isIELessThan(9) ? 'event/dom/ie' : '', UA.ie ? '' : 'event/dom/focusin']}}); - _$jscoverage['/meta/modules.js'].lineData[158]++; + _$jscoverage['/meta/modules.js'].lineData[162]++; config({ 'event/dom/base': { requires: ['event/base', 'dom']}}); - _$jscoverage['/meta/modules.js'].lineData[162]++; + _$jscoverage['/meta/modules.js'].lineData[166]++; config({ 'event/dom/focusin': { requires: ['event/dom/base']}}); - _$jscoverage['/meta/modules.js'].lineData[166]++; + _$jscoverage['/meta/modules.js'].lineData[170]++; config({ 'event/dom/hashchange': { requires: ['event/dom/base', 'dom']}}); - _$jscoverage['/meta/modules.js'].lineData[170]++; + _$jscoverage['/meta/modules.js'].lineData[174]++; config({ 'event/dom/ie': { requires: ['event/dom/base', 'dom']}}); - _$jscoverage['/meta/modules.js'].lineData[174]++; + _$jscoverage['/meta/modules.js'].lineData[178]++; config({ 'event/dom/shake': { requires: ['event/dom/base']}}); - _$jscoverage['/meta/modules.js'].lineData[178]++; + _$jscoverage['/meta/modules.js'].lineData[182]++; config({ 'event/dom/touch': { requires: ['event/dom/base', 'dom']}}); - _$jscoverage['/meta/modules.js'].lineData[182]++; + _$jscoverage['/meta/modules.js'].lineData[186]++; config({ 'filter-menu': { requires: ['menu', 'component/extension/content-xtpl', 'component/extension/content-render']}}); - _$jscoverage['/meta/modules.js'].lineData[186]++; + _$jscoverage['/meta/modules.js'].lineData[190]++; config({ 'io': { requires: ['dom', 'event/custom', 'promise', 'event/dom']}}); - _$jscoverage['/meta/modules.js'].lineData[190]++; + _$jscoverage['/meta/modules.js'].lineData[194]++; config({ 'kison': { requires: ['base']}}); - _$jscoverage['/meta/modules.js'].lineData[194]++; + _$jscoverage['/meta/modules.js'].lineData[198]++; config({ 'menu': { requires: ['node', 'component/container', 'component/extension/delegate-children', 'component/control', 'component/extension/content-render', 'component/extension/content-xtpl', 'component/extension/align', 'component/extension/shim']}}); - _$jscoverage['/meta/modules.js'].lineData[198]++; + _$jscoverage['/meta/modules.js'].lineData[202]++; config({ 'menubutton': { requires: ['node', 'button', 'component/extension/content-xtpl', 'component/extension/content-render', 'menu']}}); - _$jscoverage['/meta/modules.js'].lineData[202]++; + _$jscoverage['/meta/modules.js'].lineData[206]++; config({ 'mvc': { requires: ['io', 'json', 'attribute', 'node']}}); - _$jscoverage['/meta/modules.js'].lineData[206]++; + _$jscoverage['/meta/modules.js'].lineData[210]++; config({ 'node': { requires: ['dom', 'event/dom', 'anim']}}); - _$jscoverage['/meta/modules.js'].lineData[210]++; + _$jscoverage['/meta/modules.js'].lineData[214]++; config({ 'overlay': { requires: ['component/container', 'component/extension/shim', 'component/extension/align', 'node', 'component/extension/content-xtpl', 'component/extension/content-render']}}); - _$jscoverage['/meta/modules.js'].lineData[214]++; + _$jscoverage['/meta/modules.js'].lineData[218]++; config({ 'resizable': { requires: ['node', 'base', 'dd']}}); - _$jscoverage['/meta/modules.js'].lineData[218]++; + _$jscoverage['/meta/modules.js'].lineData[222]++; config({ 'resizable/plugin/proxy': { requires: ['node', 'base']}}); - _$jscoverage['/meta/modules.js'].lineData[221]++; + _$jscoverage['/meta/modules.js'].lineData[225]++; config({ 'scroll-view': { alias: Features.isTouchGestureSupported() ? 'scroll-view/drag' : 'scroll-view/base'}}); - _$jscoverage['/meta/modules.js'].lineData[226]++; + _$jscoverage['/meta/modules.js'].lineData[230]++; config({ 'scroll-view/base': { requires: ['node', 'anim', 'component/container', 'component/extension/content-render']}}); - _$jscoverage['/meta/modules.js'].lineData[230]++; + _$jscoverage['/meta/modules.js'].lineData[234]++; config({ 'scroll-view/drag': { requires: ['scroll-view/base', 'node', 'anim']}}); - _$jscoverage['/meta/modules.js'].lineData[234]++; + _$jscoverage['/meta/modules.js'].lineData[238]++; config({ 'scroll-view/plugin/pull-to-refresh': { requires: ['base']}}); - _$jscoverage['/meta/modules.js'].lineData[238]++; + _$jscoverage['/meta/modules.js'].lineData[242]++; config({ 'scroll-view/plugin/scrollbar': { requires: ['base', 'node', 'component/control']}}); - _$jscoverage['/meta/modules.js'].lineData[242]++; + _$jscoverage['/meta/modules.js'].lineData[246]++; config({ 'separator': { requires: ['component/control']}}); - _$jscoverage['/meta/modules.js'].lineData[246]++; + _$jscoverage['/meta/modules.js'].lineData[250]++; config({ 'split-button': { requires: ['component/container', 'button', 'menubutton']}}); - _$jscoverage['/meta/modules.js'].lineData[250]++; + _$jscoverage['/meta/modules.js'].lineData[254]++; config({ 'stylesheet': { requires: ['dom']}}); - _$jscoverage['/meta/modules.js'].lineData[254]++; + _$jscoverage['/meta/modules.js'].lineData[258]++; config({ 'swf': { requires: ['dom', 'json', 'attribute']}}); - _$jscoverage['/meta/modules.js'].lineData[258]++; + _$jscoverage['/meta/modules.js'].lineData[262]++; config({ 'tabs': { requires: ['component/container', 'toolbar', 'button']}}); - _$jscoverage['/meta/modules.js'].lineData[262]++; + _$jscoverage['/meta/modules.js'].lineData[266]++; config({ 'toolbar': { requires: ['component/container', 'component/extension/delegate-children', 'node']}}); - _$jscoverage['/meta/modules.js'].lineData[266]++; + _$jscoverage['/meta/modules.js'].lineData[270]++; config({ 'tree': { requires: ['node', 'component/container', 'component/extension/content-xtpl', 'component/extension/content-render', 'component/extension/delegate-children']}}); - _$jscoverage['/meta/modules.js'].lineData[270]++; + _$jscoverage['/meta/modules.js'].lineData[274]++; config({ 'xtemplate': { requires: ['xtemplate/runtime', 'xtemplate/compiler']}}); - _$jscoverage['/meta/modules.js'].lineData[274]++; + _$jscoverage['/meta/modules.js'].lineData[278]++; config({ 'xtemplate/compiler': { requires: ['xtemplate/runtime']}}); - _$jscoverage['/meta/modules.js'].lineData[278]++; - config({ - 'xtemplate/nodejs': { - requires: ['xtemplate']}}); _$jscoverage['/meta/modules.js'].lineData[282]++; config({ 'xtemplate/runtime': { diff --git a/src/seed/coverage/src/path.js b/src/seed/coverage/src/path.js index 13f91e1bbf..91302e274d 100644 --- a/src/seed/coverage/src/path.js +++ b/src/seed/coverage/src/path.js @@ -375,131 +375,131 @@ if (! _$jscoverage['/path.js'].branchData) { _$jscoverage['/path.js'].branchData['212'][2] = new BranchData(); } _$jscoverage['/path.js'].branchData['212'][2].init(21, 29, 'path.match(splitPathRe) || []'); -function visit542_212_2(result) { +function visit562_212_2(result) { _$jscoverage['/path.js'].branchData['212'][2].ranCondition(result); return result; }_$jscoverage['/path.js'].branchData['212'][1].init(21, 39, '(path.match(splitPathRe) || [])[4] || \'\''); -function visit541_212_1(result) { +function visit561_212_1(result) { _$jscoverage['/path.js'].branchData['212'][1].ranCondition(result); return result; }_$jscoverage['/path.js'].branchData['198'][1].init(259, 3, 'dir'); -function visit540_198_1(result) { +function visit560_198_1(result) { _$jscoverage['/path.js'].branchData['198'][1].ranCondition(result); return result; }_$jscoverage['/path.js'].branchData['193'][1].init(153, 13, '!root && !dir'); -function visit539_193_1(result) { +function visit559_193_1(result) { _$jscoverage['/path.js'].branchData['193'][1].ranCondition(result); return result; }_$jscoverage['/path.js'].branchData['191'][1].init(105, 15, 'result[2] || \'\''); -function visit538_191_1(result) { +function visit558_191_1(result) { _$jscoverage['/path.js'].branchData['191'][1].ranCondition(result); return result; }_$jscoverage['/path.js'].branchData['190'][1].init(66, 15, 'result[1] || \'\''); -function visit537_190_1(result) { +function visit557_190_1(result) { _$jscoverage['/path.js'].branchData['190'][1].ranCondition(result); return result; }_$jscoverage['/path.js'].branchData['189'][1].init(26, 29, 'path.match(splitPathRe) || []'); -function visit536_189_1(result) { +function visit556_189_1(result) { _$jscoverage['/path.js'].branchData['189'][1].ranCondition(result); return result; }_$jscoverage['/path.js'].branchData['177'][3].init(158, 39, 'basename.slice(-1 * ext.length) === ext'); -function visit535_177_3(result) { +function visit555_177_3(result) { _$jscoverage['/path.js'].branchData['177'][3].ranCondition(result); return result; }_$jscoverage['/path.js'].branchData['177'][2].init(146, 51, 'basename && basename.slice(-1 * ext.length) === ext'); -function visit534_177_2(result) { +function visit554_177_2(result) { _$jscoverage['/path.js'].branchData['177'][2].ranCondition(result); return result; }_$jscoverage['/path.js'].branchData['177'][1].init(139, 58, 'ext && basename && basename.slice(-1 * ext.length) === ext'); -function visit533_177_1(result) { +function visit553_177_1(result) { _$jscoverage['/path.js'].branchData['177'][1].ranCondition(result); return result; }_$jscoverage['/path.js'].branchData['176'][1].init(106, 15, 'result[3] || \'\''); -function visit532_176_1(result) { +function visit552_176_1(result) { _$jscoverage['/path.js'].branchData['176'][1].ranCondition(result); return result; }_$jscoverage['/path.js'].branchData['174'][1].init(26, 29, 'path.match(splitPathRe) || []'); -function visit531_174_1(result) { +function visit551_174_1(result) { _$jscoverage['/path.js'].branchData['174'][1].ranCondition(result); return result; }_$jscoverage['/path.js'].branchData['155'][1].init(716, 28, 'sameIndex < fromParts.length'); -function visit530_155_1(result) { +function visit550_155_1(result) { _$jscoverage['/path.js'].branchData['155'][1].ranCondition(result); return result; }_$jscoverage['/path.js'].branchData['148'][1].init(21, 43, 'fromParts[sameIndex] !== toParts[sameIndex]'); -function visit529_148_1(result) { +function visit549_148_1(result) { _$jscoverage['/path.js'].branchData['148'][1].ranCondition(result); return result; }_$jscoverage['/path.js'].branchData['147'][1].init(492, 24, 'sameIndex < commonLength'); -function visit528_147_1(result) { +function visit548_147_1(result) { _$jscoverage['/path.js'].branchData['147'][1].ranCondition(result); return result; }_$jscoverage['/path.js'].branchData['118'][2].init(30, 21, 'typeof p === \'string\''); -function visit527_118_2(result) { +function visit547_118_2(result) { _$jscoverage['/path.js'].branchData['118'][2].ranCondition(result); return result; }_$jscoverage['/path.js'].branchData['118'][1].init(24, 28, 'p && (typeof p === \'string\')'); -function visit526_118_1(result) { +function visit546_118_1(result) { _$jscoverage['/path.js'].branchData['118'][1].ranCondition(result); return result; }_$jscoverage['/path.js'].branchData['103'][1].init(348, 21, 'path && trailingSlash'); -function visit525_103_1(result) { +function visit545_103_1(result) { _$jscoverage['/path.js'].branchData['103'][1].ranCondition(result); return result; }_$jscoverage['/path.js'].branchData['99'][1].init(267, 18, '!path && !absolute'); -function visit524_99_1(result) { +function visit544_99_1(result) { _$jscoverage['/path.js'].branchData['99'][1].ranCondition(result); return result; }_$jscoverage['/path.js'].branchData['93'][1].init(70, 22, 'path.slice(-1) === \'/\''); -function visit523_93_1(result) { +function visit543_93_1(result) { _$jscoverage['/path.js'].branchData['93'][1].ranCondition(result); return result; }_$jscoverage['/path.js'].branchData['92'][1].init(28, 22, 'path.charAt(0) === \'/\''); -function visit522_92_1(result) { +function visit542_92_1(result) { _$jscoverage['/path.js'].branchData['92'][1].ranCondition(result); return result; }_$jscoverage['/path.js'].branchData['78'][1].init(686, 46, '((absolute ? \'/\' : \'\') + resolvedPathStr) || \'.\''); -function visit521_78_1(result) { +function visit541_78_1(result) { _$jscoverage['/path.js'].branchData['78'][1].ranCondition(result); return result; }_$jscoverage['/path.js'].branchData['71'][1].init(223, 22, 'path.charAt(0) === \'/\''); -function visit520_71_1(result) { +function visit540_71_1(result) { _$jscoverage['/path.js'].branchData['71'][1].ranCondition(result); return result; }_$jscoverage['/path.js'].branchData['67'][2].init(53, 24, 'typeof path !== \'string\''); -function visit519_67_2(result) { +function visit539_67_2(result) { _$jscoverage['/path.js'].branchData['67'][2].ranCondition(result); return result; }_$jscoverage['/path.js'].branchData['67'][1].init(53, 33, 'typeof path !== \'string\' || !path'); -function visit518_67_1(result) { +function visit538_67_1(result) { _$jscoverage['/path.js'].branchData['67'][1].ranCondition(result); return result; }_$jscoverage['/path.js'].branchData['65'][2].init(215, 6, 'i >= 0'); -function visit517_65_2(result) { +function visit537_65_2(result) { _$jscoverage['/path.js'].branchData['65'][2].ranCondition(result); return result; }_$jscoverage['/path.js'].branchData['65'][1].init(215, 19, 'i >= 0 && !absolute'); -function visit516_65_1(result) { +function visit536_65_1(result) { _$jscoverage['/path.js'].branchData['65'][1].ranCondition(result); return result; }_$jscoverage['/path.js'].branchData['36'][1].init(591, 14, 'allowAboveRoot'); -function visit515_36_1(result) { +function visit535_36_1(result) { _$jscoverage['/path.js'].branchData['36'][1].ranCondition(result); return result; }_$jscoverage['/path.js'].branchData['27'][1].init(92, 2, 'up'); -function visit514_27_1(result) { +function visit534_27_1(result) { _$jscoverage['/path.js'].branchData['27'][1].ranCondition(result); return result; }_$jscoverage['/path.js'].branchData['25'][1].init(21, 13, 'last === \'..\''); -function visit513_25_1(result) { +function visit533_25_1(result) { _$jscoverage['/path.js'].branchData['25'][1].ranCondition(result); return result; }_$jscoverage['/path.js'].branchData['24'][1].init(46, 12, 'last !== \'.\''); -function visit512_24_1(result) { +function visit532_24_1(result) { _$jscoverage['/path.js'].branchData['24'][1].ranCondition(result); return result; }_$jscoverage['/path.js'].branchData['22'][1].init(213, 6, 'i >= 0'); -function visit511_22_1(result) { +function visit531_22_1(result) { _$jscoverage['/path.js'].branchData['22'][1].ranCondition(result); return result; }_$jscoverage['/path.js'].lineData[7]++; @@ -513,18 +513,18 @@ function visit511_22_1(result) { _$jscoverage['/path.js'].lineData[15]++; var up = 0, i = parts.length - 1, newParts = [], last; _$jscoverage['/path.js'].lineData[22]++; - for (; visit511_22_1(i >= 0); i--) { + for (; visit531_22_1(i >= 0); i--) { _$jscoverage['/path.js'].lineData[23]++; last = parts[i]; _$jscoverage['/path.js'].lineData[24]++; - if (visit512_24_1(last !== '.')) { + if (visit532_24_1(last !== '.')) { _$jscoverage['/path.js'].lineData[25]++; - if (visit513_25_1(last === '..')) { + if (visit533_25_1(last === '..')) { _$jscoverage['/path.js'].lineData[26]++; up++; } else { _$jscoverage['/path.js'].lineData[27]++; - if (visit514_27_1(up)) { + if (visit534_27_1(up)) { _$jscoverage['/path.js'].lineData[28]++; up--; } else { @@ -535,7 +535,7 @@ function visit511_22_1(result) { } } _$jscoverage['/path.js'].lineData[36]++; - if (visit515_36_1(allowAboveRoot)) { + if (visit535_36_1(allowAboveRoot)) { _$jscoverage['/path.js'].lineData[37]++; for (; up--; up) { _$jscoverage['/path.js'].lineData[38]++; @@ -554,18 +554,18 @@ function visit511_22_1(result) { _$jscoverage['/path.js'].lineData[58]++; var resolvedPath = '', resolvedPathStr, i, args = (arguments), path, absolute = 0; _$jscoverage['/path.js'].lineData[65]++; - for (i = args.length - 1; visit516_65_1(visit517_65_2(i >= 0) && !absolute); i--) { + for (i = args.length - 1; visit536_65_1(visit537_65_2(i >= 0) && !absolute); i--) { _$jscoverage['/path.js'].lineData[66]++; path = args[i]; _$jscoverage['/path.js'].lineData[67]++; - if (visit518_67_1(visit519_67_2(typeof path !== 'string') || !path)) { + if (visit538_67_1(visit539_67_2(typeof path !== 'string') || !path)) { _$jscoverage['/path.js'].lineData[68]++; continue; } _$jscoverage['/path.js'].lineData[70]++; resolvedPath = path + '/' + resolvedPath; _$jscoverage['/path.js'].lineData[71]++; - absolute = visit520_71_1(path.charAt(0) === '/'); + absolute = visit540_71_1(path.charAt(0) === '/'); } _$jscoverage['/path.js'].lineData[74]++; resolvedPathStr = normalizeArray(S.filter(resolvedPath.split('/'), function(p) { @@ -574,12 +574,12 @@ function visit511_22_1(result) { return !!p; }), !absolute).join('/'); _$jscoverage['/path.js'].lineData[78]++; - return visit521_78_1(((absolute ? '/' : '') + resolvedPathStr) || '.'); + return visit541_78_1(((absolute ? '/' : '') + resolvedPathStr) || '.'); }, normalize: function(path) { _$jscoverage['/path.js'].functionData[4]++; _$jscoverage['/path.js'].lineData[92]++; - var absolute = visit522_92_1(path.charAt(0) === '/'), trailingSlash = visit523_93_1(path.slice(-1) === '/'); + var absolute = visit542_92_1(path.charAt(0) === '/'), trailingSlash = visit543_93_1(path.slice(-1) === '/'); _$jscoverage['/path.js'].lineData[95]++; path = normalizeArray(S.filter(path.split('/'), function(p) { _$jscoverage['/path.js'].functionData[5]++; @@ -587,12 +587,12 @@ function visit511_22_1(result) { return !!p; }), !absolute).join('/'); _$jscoverage['/path.js'].lineData[99]++; - if (visit524_99_1(!path && !absolute)) { + if (visit544_99_1(!path && !absolute)) { _$jscoverage['/path.js'].lineData[100]++; path = '.'; } _$jscoverage['/path.js'].lineData[103]++; - if (visit525_103_1(path && trailingSlash)) { + if (visit545_103_1(path && trailingSlash)) { _$jscoverage['/path.js'].lineData[104]++; path += '/'; } @@ -607,7 +607,7 @@ function visit511_22_1(result) { return Path.normalize(S.filter(args, function(p) { _$jscoverage['/path.js'].functionData[7]++; _$jscoverage['/path.js'].lineData[118]++; - return visit526_118_1(p && (visit527_118_2(typeof p === 'string'))); + return visit546_118_1(p && (visit547_118_2(typeof p === 'string'))); }).join('/')); }, relative: function(from, to) { @@ -627,9 +627,9 @@ function visit511_22_1(result) { return !!p; }), commonLength = Math.min(fromParts.length, toParts.length); _$jscoverage['/path.js'].lineData[147]++; - for (sameIndex = 0; visit528_147_1(sameIndex < commonLength); sameIndex++) { + for (sameIndex = 0; visit548_147_1(sameIndex < commonLength); sameIndex++) { _$jscoverage['/path.js'].lineData[148]++; - if (visit529_148_1(fromParts[sameIndex] !== toParts[sameIndex])) { + if (visit549_148_1(fromParts[sameIndex] !== toParts[sameIndex])) { _$jscoverage['/path.js'].lineData[149]++; break; } @@ -637,7 +637,7 @@ function visit511_22_1(result) { _$jscoverage['/path.js'].lineData[153]++; sameIndex2 = sameIndex; _$jscoverage['/path.js'].lineData[155]++; - while (visit530_155_1(sameIndex < fromParts.length)) { + while (visit550_155_1(sameIndex < fromParts.length)) { _$jscoverage['/path.js'].lineData[156]++; path.push('..'); _$jscoverage['/path.js'].lineData[157]++; @@ -653,11 +653,11 @@ function visit511_22_1(result) { basename: function(path, ext) { _$jscoverage['/path.js'].functionData[11]++; _$jscoverage['/path.js'].lineData[174]++; - var result = visit531_174_1(path.match(splitPathRe) || []), basename; + var result = visit551_174_1(path.match(splitPathRe) || []), basename; _$jscoverage['/path.js'].lineData[176]++; - basename = visit532_176_1(result[3] || ''); + basename = visit552_176_1(result[3] || ''); _$jscoverage['/path.js'].lineData[177]++; - if (visit533_177_1(ext && visit534_177_2(basename && visit535_177_3(basename.slice(-1 * ext.length) === ext)))) { + if (visit553_177_1(ext && visit554_177_2(basename && visit555_177_3(basename.slice(-1 * ext.length) === ext)))) { _$jscoverage['/path.js'].lineData[178]++; basename = basename.slice(0, -1 * ext.length); } @@ -667,14 +667,14 @@ function visit511_22_1(result) { dirname: function(path) { _$jscoverage['/path.js'].functionData[12]++; _$jscoverage['/path.js'].lineData[189]++; - var result = visit536_189_1(path.match(splitPathRe) || []), root = visit537_190_1(result[1] || ''), dir = visit538_191_1(result[2] || ''); + var result = visit556_189_1(path.match(splitPathRe) || []), root = visit557_190_1(result[1] || ''), dir = visit558_191_1(result[2] || ''); _$jscoverage['/path.js'].lineData[193]++; - if (visit539_193_1(!root && !dir)) { + if (visit559_193_1(!root && !dir)) { _$jscoverage['/path.js'].lineData[195]++; return '.'; } _$jscoverage['/path.js'].lineData[198]++; - if (visit540_198_1(dir)) { + if (visit560_198_1(dir)) { _$jscoverage['/path.js'].lineData[200]++; dir = dir.substring(0, dir.length - 1); } @@ -684,6 +684,6 @@ function visit511_22_1(result) { extname: function(path) { _$jscoverage['/path.js'].functionData[13]++; _$jscoverage['/path.js'].lineData[212]++; - return visit541_212_1((visit542_212_2(path.match(splitPathRe) || []))[4] || ''); + return visit561_212_1((visit562_212_2(path.match(splitPathRe) || []))[4] || ''); }}; })(KISSY); diff --git a/src/seed/coverage/src/ua.js b/src/seed/coverage/src/ua.js index c1a390dd52..93d283983e 100644 --- a/src/seed/coverage/src/ua.js +++ b/src/seed/coverage/src/ua.js @@ -442,190 +442,190 @@ if (! _$jscoverage['/ua.js'].branchData) { _$jscoverage['/ua.js'].branchData['388'][1] = new BranchData(); } _$jscoverage['/ua.js'].branchData['388'][1].init(238, 17, 'S.trim(className)'); -function visit587_388_1(result) { +function visit607_388_1(result) { _$jscoverage['/ua.js'].branchData['388'][1].ranCondition(result); return result; }_$jscoverage['/ua.js'].branchData['383'][1].init(46, 1, 'v'); -function visit586_383_1(result) { +function visit606_383_1(result) { _$jscoverage['/ua.js'].branchData['383'][1].ranCondition(result); return result; }_$jscoverage['/ua.js'].branchData['380'][1].init(12088, 15, 'documentElement'); -function visit585_380_1(result) { +function visit605_380_1(result) { _$jscoverage['/ua.js'].branchData['380'][1].ranCondition(result); return result; }_$jscoverage['/ua.js'].branchData['378'][1].init(307, 26, 'doc && doc.documentElement'); -function visit584_378_1(result) { +function visit604_378_1(result) { _$jscoverage['/ua.js'].branchData['378'][1].ranCondition(result); return result; }_$jscoverage['/ua.js'].branchData['356'][1].init(50, 61, '(versions = process.versions) && (nodeVersion = versions.node)'); -function visit583_356_1(result) { +function visit603_356_1(result) { _$jscoverage['/ua.js'].branchData['356'][1].ranCondition(result); return result; }_$jscoverage['/ua.js'].branchData['353'][1].init(11364, 27, 'typeof process === \'object\''); -function visit582_353_1(result) { +function visit602_353_1(result) { _$jscoverage['/ua.js'].branchData['353'][1].ranCondition(result); return result; }_$jscoverage['/ua.js'].branchData['345'][2].init(10247, 25, 'UA.ie && doc.documentMode'); -function visit581_345_2(result) { +function visit601_345_2(result) { _$jscoverage['/ua.js'].branchData['345'][2].ranCondition(result); return result; }_$jscoverage['/ua.js'].branchData['345'][1].init(10247, 34, 'UA.ie && doc.documentMode || UA.ie'); -function visit580_345_1(result) { +function visit600_345_1(result) { _$jscoverage['/ua.js'].branchData['345'][1].ranCondition(result); return result; }_$jscoverage['/ua.js'].branchData['343'][1].init(10184, 15, 'UA.core || core'); -function visit579_343_1(result) { +function visit599_343_1(result) { _$jscoverage['/ua.js'].branchData['343'][1].ranCondition(result); return result; }_$jscoverage['/ua.js'].branchData['337'][1].init(279, 18, '(/rhino/i).test(ua)'); -function visit578_337_1(result) { +function visit598_337_1(result) { _$jscoverage['/ua.js'].branchData['337'][1].ranCondition(result); return result; }_$jscoverage['/ua.js'].branchData['335'][1].init(202, 18, '(/linux/i).test(ua)'); -function visit577_335_1(result) { +function visit597_335_1(result) { _$jscoverage['/ua.js'].branchData['335'][1].ranCondition(result); return result; }_$jscoverage['/ua.js'].branchData['333'][1].init(105, 34, '(/macintosh|mac_powerpc/i).test(ua)'); -function visit576_333_1(result) { +function visit596_333_1(result) { _$jscoverage['/ua.js'].branchData['333'][1].ranCondition(result); return result; }_$jscoverage['/ua.js'].branchData['331'][1].init(18, 26, '(/windows|win32/i).test(ua)'); -function visit575_331_1(result) { +function visit595_331_1(result) { _$jscoverage['/ua.js'].branchData['331'][1].ranCondition(result); return result; }_$jscoverage['/ua.js'].branchData['330'][1].init(9787, 3, '!os'); -function visit574_330_1(result) { +function visit594_330_1(result) { _$jscoverage['/ua.js'].branchData['330'][1].ranCondition(result); return result; }_$jscoverage['/ua.js'].branchData['321'][1].init(484, 42, '(m = ua.match(/Firefox\\/([\\d.]*)/)) && m[1]'); -function visit573_321_1(result) { +function visit593_321_1(result) { _$jscoverage['/ua.js'].branchData['321'][1].ranCondition(result); return result; }_$jscoverage['/ua.js'].branchData['316'][1].init(97, 24, '/Mobile|Tablet/.test(ua)'); -function visit572_316_1(result) { +function visit592_316_1(result) { _$jscoverage['/ua.js'].branchData['316'][1].ranCondition(result); return result; }_$jscoverage['/ua.js'].branchData['314'][1].init(125, 36, '(m = ua.match(/rv:([\\d.]*)/)) && m[1]'); -function visit571_314_1(result) { +function visit591_314_1(result) { _$jscoverage['/ua.js'].branchData['314'][1].ranCondition(result); return result; }_$jscoverage['/ua.js'].branchData['296'][1].init(787, 37, '(m = ua.match(/Opera Mobi[^;]*/)) && m'); -function visit570_296_1(result) { +function visit590_296_1(result) { _$jscoverage['/ua.js'].branchData['296'][1].ranCondition(result); return result; }_$jscoverage['/ua.js'].branchData['290'][1].init(338, 37, '(m = ua.match(/Opera Mini[^;]*/)) && m'); -function visit569_290_1(result) { +function visit589_290_1(result) { _$jscoverage['/ua.js'].branchData['290'][1].ranCondition(result); return result; }_$jscoverage['/ua.js'].branchData['285'][1].init(131, 52, '(m = ua.match(/Opera\\/.* Version\\/([\\d.]*)/)) && m[1]'); -function visit568_285_1(result) { +function visit588_285_1(result) { _$jscoverage['/ua.js'].branchData['285'][1].ranCondition(result); return result; }_$jscoverage['/ua.js'].branchData['282'][1].init(115, 40, '(m = ua.match(/Opera\\/([\\d.]*)/)) && m[1]'); -function visit567_282_1(result) { +function visit587_282_1(result) { _$jscoverage['/ua.js'].branchData['282'][1].ranCondition(result); return result; }_$jscoverage['/ua.js'].branchData['278'][1].init(129, 41, '(m = ua.match(/Presto\\/([\\d.]*)/)) && m[1]'); -function visit566_278_1(result) { +function visit586_278_1(result) { _$jscoverage['/ua.js'].branchData['278'][1].ranCondition(result); return result; }_$jscoverage['/ua.js'].branchData['270'][1].init(1741, 44, '(m = ua.match(/PhantomJS\\/([^\\s]*)/)) && m[1]'); -function visit565_270_1(result) { +function visit585_270_1(result) { _$jscoverage['/ua.js'].branchData['270'][1].ranCondition(result); return result; }_$jscoverage['/ua.js'].branchData['261'][1].init(199, 9, 'm && m[1]'); -function visit564_261_1(result) { +function visit584_261_1(result) { _$jscoverage['/ua.js'].branchData['261'][1].ranCondition(result); return result; }_$jscoverage['/ua.js'].branchData['257'][1].init(25, 17, '/Mobile/.test(ua)'); -function visit563_257_1(result) { +function visit583_257_1(result) { _$jscoverage['/ua.js'].branchData['257'][1].ranCondition(result); return result; }_$jscoverage['/ua.js'].branchData['256'][1].init(1137, 20, '/ Android/i.test(ua)'); -function visit562_256_1(result) { +function visit582_256_1(result) { _$jscoverage['/ua.js'].branchData['256'][1].ranCondition(result); return result; }_$jscoverage['/ua.js'].branchData['253'][1].init(359, 9, 'm && m[0]'); -function visit561_253_1(result) { +function visit581_253_1(result) { _$jscoverage['/ua.js'].branchData['253'][1].ranCondition(result); return result; }_$jscoverage['/ua.js'].branchData['248'][1].init(146, 9, 'm && m[1]'); -function visit560_248_1(result) { +function visit580_248_1(result) { _$jscoverage['/ua.js'].branchData['248'][1].ranCondition(result); return result; }_$jscoverage['/ua.js'].branchData['244'][1].init(603, 52, '/ Mobile\\//.test(ua) && ua.match(/iPad|iPod|iPhone/)'); -function visit559_244_1(result) { +function visit579_244_1(result) { _$jscoverage['/ua.js'].branchData['244'][1].ranCondition(result); return result; }_$jscoverage['/ua.js'].branchData['239'][1].init(428, 42, '(m = ua.match(/\\/([\\d.]*) Safari/)) && m[1]'); -function visit558_239_1(result) { +function visit578_239_1(result) { _$jscoverage['/ua.js'].branchData['239'][1].ranCondition(result); return result; }_$jscoverage['/ua.js'].branchData['235'][1].init(252, 41, '(m = ua.match(/Chrome\\/([\\d.]*)/)) && m[1]'); -function visit557_235_1(result) { +function visit577_235_1(result) { _$jscoverage['/ua.js'].branchData['235'][1].ranCondition(result); return result; }_$jscoverage['/ua.js'].branchData['231'][1].init(78, 40, '(m = ua.match(/OPR\\/(\\d+\\.\\d+)/)) && m[1]'); -function visit556_231_1(result) { +function visit576_231_1(result) { _$jscoverage['/ua.js'].branchData['231'][1].ranCondition(result); return result; }_$jscoverage['/ua.js'].branchData['228'][1].init(40, 46, '(m = ua.match(/AppleWebKit\\/([\\d.]*)/)) && m[1]'); -function visit555_228_1(result) { +function visit575_228_1(result) { _$jscoverage['/ua.js'].branchData['228'][1].ranCondition(result); return result; }_$jscoverage['/ua.js'].branchData['222'][1].init(745, 40, '!UA.ie && (ieVersion = getIEVersion(ua))'); -function visit554_222_1(result) { +function visit574_222_1(result) { _$jscoverage['/ua.js'].branchData['222'][1].ranCondition(result); return result; }_$jscoverage['/ua.js'].branchData['214'][1].init(100, 12, 's.length > 0'); -function visit553_214_1(result) { +function visit573_214_1(result) { _$jscoverage['/ua.js'].branchData['214'][1].ranCondition(result); return result; }_$jscoverage['/ua.js'].branchData['212'][1].init(404, 8, 'v <= end'); -function visit552_212_1(result) { +function visit572_212_1(result) { _$jscoverage['/ua.js'].branchData['212'][1].ranCondition(result); return result; }_$jscoverage['/ua.js'].branchData['202'][1].init(4366, 12, 's.length > 0'); -function visit551_202_1(result) { +function visit571_202_1(result) { _$jscoverage['/ua.js'].branchData['202'][1].ranCondition(result); return result; }_$jscoverage['/ua.js'].branchData['195'][1].init(3982, 31, 'div && div.getElementsByTagName'); -function visit550_195_1(result) { +function visit570_195_1(result) { _$jscoverage['/ua.js'].branchData['195'][1].ranCondition(result); return result; }_$jscoverage['/ua.js'].branchData['53'][1].init(343, 31, 'doc && doc.createElement(\'div\')'); -function visit549_53_1(result) { +function visit569_53_1(result) { _$jscoverage['/ua.js'].branchData['53'][1].ranCondition(result); return result; }_$jscoverage['/ua.js'].branchData['36'][1].init(82, 12, 'm[1] || m[2]'); -function visit548_36_1(result) { +function visit568_36_1(result) { _$jscoverage['/ua.js'].branchData['36'][1].ranCondition(result); return result; }_$jscoverage['/ua.js'].branchData['35'][1].init(32, 97, '(m = ua.match(/MSIE ([^;]*)|Trident.*; rv(?:\\s|:)?([0-9.]+)/)) && (v = (m[1] || m[2]))'); -function visit547_35_1(result) { +function visit567_35_1(result) { _$jscoverage['/ua.js'].branchData['35'][1].ranCondition(result); return result; }_$jscoverage['/ua.js'].branchData['26'][1].init(157, 42, '(m = ua.match(/Trident\\/([\\d.]*)/)) && m[1]'); -function visit546_26_1(result) { +function visit566_26_1(result) { _$jscoverage['/ua.js'].branchData['26'][1].ranCondition(result); return result; }_$jscoverage['/ua.js'].branchData['17'][1].init(21, 9, 'c++ === 0'); -function visit545_17_1(result) { +function visit565_17_1(result) { _$jscoverage['/ua.js'].branchData['17'][1].ranCondition(result); return result; }_$jscoverage['/ua.js'].branchData['11'][2].init(97, 32, 'navigator && navigator.userAgent'); -function visit544_11_2(result) { +function visit564_11_2(result) { _$jscoverage['/ua.js'].branchData['11'][2].ranCondition(result); return result; }_$jscoverage['/ua.js'].branchData['11'][1].init(97, 38, 'navigator && navigator.userAgent || \'\''); -function visit543_11_1(result) { +function visit563_11_1(result) { _$jscoverage['/ua.js'].branchData['11'][1].ranCondition(result); return result; }_$jscoverage['/ua.js'].lineData[5]++; (function(S, undefined) { _$jscoverage['/ua.js'].functionData[0]++; _$jscoverage['/ua.js'].lineData[8]++; - var win = S.Env.host, doc = win.document, navigator = win.navigator, ua = visit543_11_1(visit544_11_2(navigator && navigator.userAgent) || ''); + var win = S.Env.host, doc = win.document, navigator = win.navigator, ua = visit563_11_1(visit564_11_2(navigator && navigator.userAgent) || ''); _$jscoverage['/ua.js'].lineData[13]++; function numberify(s) { _$jscoverage['/ua.js'].functionData[1]++; @@ -635,7 +635,7 @@ function visit543_11_1(result) { return parseFloat(s.replace(/\./g, function() { _$jscoverage['/ua.js'].functionData[2]++; _$jscoverage['/ua.js'].lineData[17]++; - return (visit545_17_1(c++ === 0)) ? '.' : ''; + return (visit565_17_1(c++ === 0)) ? '.' : ''; })); } _$jscoverage['/ua.js'].lineData[21]++; @@ -646,7 +646,7 @@ function visit543_11_1(result) { _$jscoverage['/ua.js'].lineData[23]++; UA[core = 'trident'] = 0.1; _$jscoverage['/ua.js'].lineData[26]++; - if (visit546_26_1((m = ua.match(/Trident\/([\d.]*)/)) && m[1])) { + if (visit566_26_1((m = ua.match(/Trident\/([\d.]*)/)) && m[1])) { _$jscoverage['/ua.js'].lineData[27]++; UA[core] = numberify(m[1]); } @@ -659,7 +659,7 @@ function visit543_11_1(result) { _$jscoverage['/ua.js'].lineData[34]++; var m, v; _$jscoverage['/ua.js'].lineData[35]++; - if (visit547_35_1((m = ua.match(/MSIE ([^;]*)|Trident.*; rv(?:\s|:)?([0-9.]+)/)) && (v = (visit548_36_1(m[1] || m[2]))))) { + if (visit567_35_1((m = ua.match(/MSIE ([^;]*)|Trident.*; rv(?:\s|:)?([0-9.]+)/)) && (v = (visit568_36_1(m[1] || m[2]))))) { _$jscoverage['/ua.js'].lineData[37]++; return numberify(v); } @@ -670,7 +670,7 @@ function visit543_11_1(result) { function getDescriptorFromUserAgent(ua) { _$jscoverage['/ua.js'].functionData[5]++; _$jscoverage['/ua.js'].lineData[43]++; - var EMPTY = '', os, core = EMPTY, shell = EMPTY, m, IE_DETECT_RANGE = [6, 9], ieVersion, v, end, VERSION_PLACEHOLDER = '{{version}}', IE_DETECT_TPL = '', div = visit549_53_1(doc && doc.createElement('div')), s = []; + var EMPTY = '', os, core = EMPTY, shell = EMPTY, m, IE_DETECT_RANGE = [6, 9], ieVersion, v, end, VERSION_PLACEHOLDER = '{{version}}', IE_DETECT_TPL = '', div = visit569_53_1(doc && doc.createElement('div')), s = []; _$jscoverage['/ua.js'].lineData[60]++; var UA = { webkit: undefined, @@ -695,22 +695,22 @@ function visit543_11_1(result) { android: undefined, nodejs: undefined}; _$jscoverage['/ua.js'].lineData[195]++; - if (visit550_195_1(div && div.getElementsByTagName)) { + if (visit570_195_1(div && div.getElementsByTagName)) { _$jscoverage['/ua.js'].lineData[198]++; div.innerHTML = IE_DETECT_TPL.replace(VERSION_PLACEHOLDER, ''); _$jscoverage['/ua.js'].lineData[199]++; s = div.getElementsByTagName('s'); } _$jscoverage['/ua.js'].lineData[202]++; - if (visit551_202_1(s.length > 0)) { + if (visit571_202_1(s.length > 0)) { _$jscoverage['/ua.js'].lineData[204]++; setTridentVersion(ua, UA); _$jscoverage['/ua.js'].lineData[212]++; - for (v = IE_DETECT_RANGE[0] , end = IE_DETECT_RANGE[1]; visit552_212_1(v <= end); v++) { + for (v = IE_DETECT_RANGE[0] , end = IE_DETECT_RANGE[1]; visit572_212_1(v <= end); v++) { _$jscoverage['/ua.js'].lineData[213]++; div.innerHTML = IE_DETECT_TPL.replace(VERSION_PLACEHOLDER, v); _$jscoverage['/ua.js'].lineData[214]++; - if (visit553_214_1(s.length > 0)) { + if (visit573_214_1(s.length > 0)) { _$jscoverage['/ua.js'].lineData[215]++; UA[shell = 'ie'] = v; _$jscoverage['/ua.js'].lineData[216]++; @@ -718,40 +718,40 @@ function visit543_11_1(result) { } } _$jscoverage['/ua.js'].lineData[222]++; - if (visit554_222_1(!UA.ie && (ieVersion = getIEVersion(ua)))) { + if (visit574_222_1(!UA.ie && (ieVersion = getIEVersion(ua)))) { _$jscoverage['/ua.js'].lineData[223]++; UA[shell = 'ie'] = ieVersion; } } else { _$jscoverage['/ua.js'].lineData[228]++; - if (visit555_228_1((m = ua.match(/AppleWebKit\/([\d.]*)/)) && m[1])) { + if (visit575_228_1((m = ua.match(/AppleWebKit\/([\d.]*)/)) && m[1])) { _$jscoverage['/ua.js'].lineData[229]++; UA[core = 'webkit'] = numberify(m[1]); _$jscoverage['/ua.js'].lineData[231]++; - if (visit556_231_1((m = ua.match(/OPR\/(\d+\.\d+)/)) && m[1])) { + if (visit576_231_1((m = ua.match(/OPR\/(\d+\.\d+)/)) && m[1])) { _$jscoverage['/ua.js'].lineData[232]++; UA[shell = 'opera'] = numberify(m[1]); } else { _$jscoverage['/ua.js'].lineData[235]++; - if (visit557_235_1((m = ua.match(/Chrome\/([\d.]*)/)) && m[1])) { + if (visit577_235_1((m = ua.match(/Chrome\/([\d.]*)/)) && m[1])) { _$jscoverage['/ua.js'].lineData[236]++; UA[shell = 'chrome'] = numberify(m[1]); } else { _$jscoverage['/ua.js'].lineData[239]++; - if (visit558_239_1((m = ua.match(/\/([\d.]*) Safari/)) && m[1])) { + if (visit578_239_1((m = ua.match(/\/([\d.]*) Safari/)) && m[1])) { _$jscoverage['/ua.js'].lineData[240]++; UA[shell = 'safari'] = numberify(m[1]); } } } _$jscoverage['/ua.js'].lineData[244]++; - if (visit559_244_1(/ Mobile\//.test(ua) && ua.match(/iPad|iPod|iPhone/))) { + if (visit579_244_1(/ Mobile\//.test(ua) && ua.match(/iPad|iPod|iPhone/))) { _$jscoverage['/ua.js'].lineData[245]++; UA.mobile = 'apple'; _$jscoverage['/ua.js'].lineData[247]++; m = ua.match(/OS ([^\s]*)/); _$jscoverage['/ua.js'].lineData[248]++; - if (visit560_248_1(m && m[1])) { + if (visit580_248_1(m && m[1])) { _$jscoverage['/ua.js'].lineData[249]++; UA.ios = numberify(m[1].replace('_', '.')); } @@ -760,22 +760,22 @@ function visit543_11_1(result) { _$jscoverage['/ua.js'].lineData[252]++; m = ua.match(/iPad|iPod|iPhone/); _$jscoverage['/ua.js'].lineData[253]++; - if (visit561_253_1(m && m[0])) { + if (visit581_253_1(m && m[0])) { _$jscoverage['/ua.js'].lineData[254]++; UA[m[0].toLowerCase()] = UA.ios; } } else { _$jscoverage['/ua.js'].lineData[256]++; - if (visit562_256_1(/ Android/i.test(ua))) { + if (visit582_256_1(/ Android/i.test(ua))) { _$jscoverage['/ua.js'].lineData[257]++; - if (visit563_257_1(/Mobile/.test(ua))) { + if (visit583_257_1(/Mobile/.test(ua))) { _$jscoverage['/ua.js'].lineData[258]++; os = UA.mobile = 'android'; } _$jscoverage['/ua.js'].lineData[260]++; m = ua.match(/Android ([^\s]*);/); _$jscoverage['/ua.js'].lineData[261]++; - if (visit564_261_1(m && m[1])) { + if (visit584_261_1(m && m[1])) { _$jscoverage['/ua.js'].lineData[262]++; UA.android = numberify(m[1]); } @@ -788,31 +788,31 @@ function visit543_11_1(result) { } } _$jscoverage['/ua.js'].lineData[270]++; - if (visit565_270_1((m = ua.match(/PhantomJS\/([^\s]*)/)) && m[1])) { + if (visit585_270_1((m = ua.match(/PhantomJS\/([^\s]*)/)) && m[1])) { _$jscoverage['/ua.js'].lineData[271]++; UA.phantomjs = numberify(m[1]); } } else { _$jscoverage['/ua.js'].lineData[278]++; - if (visit566_278_1((m = ua.match(/Presto\/([\d.]*)/)) && m[1])) { + if (visit586_278_1((m = ua.match(/Presto\/([\d.]*)/)) && m[1])) { _$jscoverage['/ua.js'].lineData[279]++; UA[core = 'presto'] = numberify(m[1]); _$jscoverage['/ua.js'].lineData[282]++; - if (visit567_282_1((m = ua.match(/Opera\/([\d.]*)/)) && m[1])) { + if (visit587_282_1((m = ua.match(/Opera\/([\d.]*)/)) && m[1])) { _$jscoverage['/ua.js'].lineData[283]++; UA[shell = 'opera'] = numberify(m[1]); _$jscoverage['/ua.js'].lineData[285]++; - if (visit568_285_1((m = ua.match(/Opera\/.* Version\/([\d.]*)/)) && m[1])) { + if (visit588_285_1((m = ua.match(/Opera\/.* Version\/([\d.]*)/)) && m[1])) { _$jscoverage['/ua.js'].lineData[286]++; UA[shell] = numberify(m[1]); } _$jscoverage['/ua.js'].lineData[290]++; - if (visit569_290_1((m = ua.match(/Opera Mini[^;]*/)) && m)) { + if (visit589_290_1((m = ua.match(/Opera Mini[^;]*/)) && m)) { _$jscoverage['/ua.js'].lineData[291]++; UA.mobile = m[0].toLowerCase(); } else { _$jscoverage['/ua.js'].lineData[296]++; - if (visit570_296_1((m = ua.match(/Opera Mobi[^;]*/)) && m)) { + if (visit590_296_1((m = ua.match(/Opera Mobi[^;]*/)) && m)) { _$jscoverage['/ua.js'].lineData[297]++; UA.mobile = m[0]; } @@ -831,17 +831,17 @@ function visit543_11_1(result) { _$jscoverage['/ua.js'].lineData[313]++; UA[core = 'gecko'] = 0.1; _$jscoverage['/ua.js'].lineData[314]++; - if (visit571_314_1((m = ua.match(/rv:([\d.]*)/)) && m[1])) { + if (visit591_314_1((m = ua.match(/rv:([\d.]*)/)) && m[1])) { _$jscoverage['/ua.js'].lineData[315]++; UA[core] = numberify(m[1]); _$jscoverage['/ua.js'].lineData[316]++; - if (visit572_316_1(/Mobile|Tablet/.test(ua))) { + if (visit592_316_1(/Mobile|Tablet/.test(ua))) { _$jscoverage['/ua.js'].lineData[317]++; UA.mobile = 'firefox'; } } _$jscoverage['/ua.js'].lineData[321]++; - if (visit573_321_1((m = ua.match(/Firefox\/([\d.]*)/)) && m[1])) { + if (visit593_321_1((m = ua.match(/Firefox\/([\d.]*)/)) && m[1])) { _$jscoverage['/ua.js'].lineData[322]++; UA[shell = 'firefox'] = numberify(m[1]); } @@ -851,24 +851,24 @@ function visit543_11_1(result) { } } _$jscoverage['/ua.js'].lineData[330]++; - if (visit574_330_1(!os)) { + if (visit594_330_1(!os)) { _$jscoverage['/ua.js'].lineData[331]++; - if (visit575_331_1((/windows|win32/i).test(ua))) { + if (visit595_331_1((/windows|win32/i).test(ua))) { _$jscoverage['/ua.js'].lineData[332]++; os = 'windows'; } else { _$jscoverage['/ua.js'].lineData[333]++; - if (visit576_333_1((/macintosh|mac_powerpc/i).test(ua))) { + if (visit596_333_1((/macintosh|mac_powerpc/i).test(ua))) { _$jscoverage['/ua.js'].lineData[334]++; os = 'macintosh'; } else { _$jscoverage['/ua.js'].lineData[335]++; - if (visit577_335_1((/linux/i).test(ua))) { + if (visit597_335_1((/linux/i).test(ua))) { _$jscoverage['/ua.js'].lineData[336]++; os = 'linux'; } else { _$jscoverage['/ua.js'].lineData[337]++; - if (visit578_337_1((/rhino/i).test(ua))) { + if (visit598_337_1((/rhino/i).test(ua))) { _$jscoverage['/ua.js'].lineData[338]++; os = 'rhino'; } @@ -879,22 +879,22 @@ function visit543_11_1(result) { _$jscoverage['/ua.js'].lineData[342]++; UA.os = os; _$jscoverage['/ua.js'].lineData[343]++; - UA.core = visit579_343_1(UA.core || core); + UA.core = visit599_343_1(UA.core || core); _$jscoverage['/ua.js'].lineData[344]++; UA.shell = shell; _$jscoverage['/ua.js'].lineData[345]++; - UA.ieMode = visit580_345_1(visit581_345_2(UA.ie && doc.documentMode) || UA.ie); + UA.ieMode = visit600_345_1(visit601_345_2(UA.ie && doc.documentMode) || UA.ie); _$jscoverage['/ua.js'].lineData[347]++; return UA; } _$jscoverage['/ua.js'].lineData[350]++; var UA = KISSY.UA = getDescriptorFromUserAgent(ua); _$jscoverage['/ua.js'].lineData[353]++; - if (visit582_353_1(typeof process === 'object')) { + if (visit602_353_1(typeof process === 'object')) { _$jscoverage['/ua.js'].lineData[354]++; var versions, nodeVersion; _$jscoverage['/ua.js'].lineData[356]++; - if (visit583_356_1((versions = process.versions) && (nodeVersion = versions.node))) { + if (visit603_356_1((versions = process.versions) && (nodeVersion = versions.node))) { _$jscoverage['/ua.js'].lineData[357]++; UA.os = process.platform; _$jscoverage['/ua.js'].lineData[358]++; @@ -904,16 +904,16 @@ function visit543_11_1(result) { _$jscoverage['/ua.js'].lineData[363]++; UA.getDescriptorFromUserAgent = getDescriptorFromUserAgent; _$jscoverage['/ua.js'].lineData[365]++; - var browsers = ['webkit', 'trident', 'gecko', 'presto', 'chrome', 'safari', 'firefox', 'ie', 'opera'], documentElement = visit584_378_1(doc && doc.documentElement), className = ''; + var browsers = ['webkit', 'trident', 'gecko', 'presto', 'chrome', 'safari', 'firefox', 'ie', 'opera'], documentElement = visit604_378_1(doc && doc.documentElement), className = ''; _$jscoverage['/ua.js'].lineData[380]++; - if (visit585_380_1(documentElement)) { + if (visit605_380_1(documentElement)) { _$jscoverage['/ua.js'].lineData[381]++; S.each(browsers, function(key) { _$jscoverage['/ua.js'].functionData[6]++; _$jscoverage['/ua.js'].lineData[382]++; var v = UA[key]; _$jscoverage['/ua.js'].lineData[383]++; - if (visit586_383_1(v)) { + if (visit606_383_1(v)) { _$jscoverage['/ua.js'].lineData[384]++; className += ' ks-' + key + (parseInt(v) + ''); _$jscoverage['/ua.js'].lineData[385]++; @@ -921,7 +921,7 @@ function visit543_11_1(result) { } }); _$jscoverage['/ua.js'].lineData[388]++; - if (visit587_388_1(S.trim(className))) { + if (visit607_388_1(S.trim(className))) { _$jscoverage['/ua.js'].lineData[389]++; documentElement.className = S.trim(documentElement.className + className); } diff --git a/src/seed/coverage/src/uri.js b/src/seed/coverage/src/uri.js index ca0474487c..ae7be8fb5b 100644 --- a/src/seed/coverage/src/uri.js +++ b/src/seed/coverage/src/uri.js @@ -538,147 +538,147 @@ if (! _$jscoverage['/uri.js'].branchData) { _$jscoverage['/uri.js'].branchData['659'][1] = new BranchData(); } _$jscoverage['/uri.js'].branchData['659'][1].init(42, 30, 'url.match(URI_SPLIT_REG) || []'); -function visit623_659_1(result) { +function visit643_659_1(result) { _$jscoverage['/uri.js'].branchData['659'][1].ranCondition(result); return result; }_$jscoverage['/uri.js'].branchData['658'][1].init(15, 9, 'url || \'\''); -function visit622_658_1(result) { +function visit642_658_1(result) { _$jscoverage['/uri.js'].branchData['658'][1].ranCondition(result); return result; }_$jscoverage['/uri.js'].branchData['634'][1].init(21, 36, 'hostname && !S.startsWith(path, \'/\')'); -function visit621_634_1(result) { +function visit641_634_1(result) { _$jscoverage['/uri.js'].branchData['634'][1].ranCondition(result); return result; }_$jscoverage['/uri.js'].branchData['589'][1].init(66, 102, 'equalsIgnoreCase(self.scheme, other.scheme) && equalsIgnoreCase(self.port, other.port)'); -function visit620_589_1(result) { +function visit640_589_1(result) { _$jscoverage['/uri.js'].branchData['589'][1].ranCondition(result); return result; }_$jscoverage['/uri.js'].branchData['588'][1].init(97, 169, 'equalsIgnoreCase(self.hostname, other.hostname) && equalsIgnoreCase(self.scheme, other.scheme) && equalsIgnoreCase(self.port, other.port)'); -function visit619_588_1(result) { +function visit639_588_1(result) { _$jscoverage['/uri.js'].branchData['588'][1].ranCondition(result); return result; }_$jscoverage['/uri.js'].branchData['573'][1].init(46, 27, 'S.startsWith(fragment, \'#\')'); -function visit618_573_1(result) { +function visit638_573_1(result) { _$jscoverage['/uri.js'].branchData['573'][1].ranCondition(result); return result; }_$jscoverage['/uri.js'].branchData['541'][1].init(21, 24, 'S.startsWith(query, \'?\')'); -function visit617_541_1(result) { +function visit637_541_1(result) { _$jscoverage['/uri.js'].branchData['541'][1].ranCondition(result); return result; }_$jscoverage['/uri.js'].branchData['540'][1].init(17, 25, 'typeof query === \'string\''); -function visit616_540_1(result) { +function visit636_540_1(result) { _$jscoverage['/uri.js'].branchData['540'][1].ranCondition(result); return result; }_$jscoverage['/uri.js'].branchData['435'][1].init(1637, 26, 'override || relativeUri[o]'); -function visit615_435_1(result) { +function visit635_435_1(result) { _$jscoverage['/uri.js'].branchData['435'][1].ranCondition(result); return result; }_$jscoverage['/uri.js'].branchData['431'][1].init(25, 40, 'override || relativeUri.query.toString()'); -function visit614_431_1(result) { +function visit634_431_1(result) { _$jscoverage['/uri.js'].branchData['431'][1].ranCondition(result); return result; }_$jscoverage['/uri.js'].branchData['430'][1].init(1398, 13, 'o === \'query\''); -function visit613_430_1(result) { +function visit633_430_1(result) { _$jscoverage['/uri.js'].branchData['430'][1].ranCondition(result); return result; }_$jscoverage['/uri.js'].branchData['421'][1].init(195, 21, 'lastSlashIndex !== -1'); -function visit612_421_1(result) { +function visit632_421_1(result) { _$jscoverage['/uri.js'].branchData['421'][1].ranCondition(result); return result; }_$jscoverage['/uri.js'].branchData['418'][1].init(242, 11, 'target.path'); -function visit611_418_1(result) { +function visit631_418_1(result) { _$jscoverage['/uri.js'].branchData['418'][1].ranCondition(result); return result; }_$jscoverage['/uri.js'].branchData['415'][1].init(37, 31, 'target.hostname && !target.path'); -function visit610_415_1(result) { +function visit630_415_1(result) { _$jscoverage['/uri.js'].branchData['415'][1].ranCondition(result); return result; }_$jscoverage['/uri.js'].branchData['414'][1].init(154, 24, '!S.startsWith(path, \'/\')'); -function visit609_414_1(result) { +function visit629_414_1(result) { _$jscoverage['/uri.js'].branchData['414'][1].ranCondition(result); return result; }_$jscoverage['/uri.js'].branchData['411'][1].init(82, 4, 'path'); -function visit608_411_1(result) { +function visit628_411_1(result) { _$jscoverage['/uri.js'].branchData['411'][1].ranCondition(result); return result; }_$jscoverage['/uri.js'].branchData['407'][1].init(107, 8, 'override'); -function visit607_407_1(result) { +function visit627_407_1(result) { _$jscoverage['/uri.js'].branchData['407'][1].ranCondition(result); return result; }_$jscoverage['/uri.js'].branchData['405'][1].init(21, 12, 'o === \'path\''); -function visit606_405_1(result) { +function visit626_405_1(result) { _$jscoverage['/uri.js'].branchData['405'][1].ranCondition(result); return result; }_$jscoverage['/uri.js'].branchData['394'][1].init(18, 31, 'typeof relativeUri === \'string\''); -function visit605_394_1(result) { +function visit625_394_1(result) { _$jscoverage['/uri.js'].branchData['394'][1].ranCondition(result); return result; }_$jscoverage['/uri.js'].branchData['340'][1].init(42, 15, 'key === \'query\''); -function visit604_340_1(result) { +function visit624_340_1(result) { _$jscoverage['/uri.js'].branchData['340'][1].ranCondition(result); return result; }_$jscoverage['/uri.js'].branchData['339'][1].init(17, 7, 'v || \'\''); -function visit603_339_1(result) { +function visit623_339_1(result) { _$jscoverage['/uri.js'].branchData['339'][1].ranCondition(result); return result; }_$jscoverage['/uri.js'].branchData['292'][1].init(14, 22, 'uriStr instanceof Uri'); -function visit602_292_1(result) { +function visit622_292_1(result) { _$jscoverage['/uri.js'].branchData['292'][1].ranCondition(result); return result; }_$jscoverage['/uri.js'].branchData['268'][1].init(16, 41, 'str1.toLowerCase() === str2.toLowerCase()'); -function visit601_268_1(result) { +function visit621_268_1(result) { _$jscoverage['/uri.js'].branchData['268'][1].ranCondition(result); return result; }_$jscoverage['/uri.js'].branchData['264'][1].init(16, 16, 'str.length === 1'); -function visit600_264_1(result) { +function visit620_264_1(result) { _$jscoverage['/uri.js'].branchData['264'][1].ranCondition(result); return result; }_$jscoverage['/uri.js'].branchData['241'][1].init(21, 20, 'key instanceof Query'); -function visit599_241_1(result) { +function visit619_241_1(result) { _$jscoverage['/uri.js'].branchData['241'][1].ranCondition(result); return result; }_$jscoverage['/uri.js'].branchData['234'][1].init(146, 26, 'currentValue === undefined'); -function visit598_234_1(result) { +function visit618_234_1(result) { _$jscoverage['/uri.js'].branchData['234'][1].ranCondition(result); return result; }_$jscoverage['/uri.js'].branchData['230'][1].init(103, 23, 'typeof key === \'string\''); -function visit597_230_1(result) { +function visit617_230_1(result) { _$jscoverage['/uri.js'].branchData['230'][1].ranCondition(result); return result; }_$jscoverage['/uri.js'].branchData['211'][1].init(76, 3, 'key'); -function visit596_211_1(result) { +function visit616_211_1(result) { _$jscoverage['/uri.js'].branchData['211'][1].ranCondition(result); return result; }_$jscoverage['/uri.js'].branchData['193'][1].init(21, 20, 'key instanceof Query'); -function visit595_193_1(result) { +function visit615_193_1(result) { _$jscoverage['/uri.js'].branchData['193'][1].ranCondition(result); return result; }_$jscoverage['/uri.js'].branchData['190'][1].init(127, 23, 'typeof key === \'string\''); -function visit594_190_1(result) { +function visit614_190_1(result) { _$jscoverage['/uri.js'].branchData['190'][1].ranCondition(result); return result; }_$jscoverage['/uri.js'].branchData['163'][1].init(127, 3, 'key'); -function visit593_163_1(result) { +function visit613_163_1(result) { _$jscoverage['/uri.js'].branchData['163'][1].ranCondition(result); return result; }_$jscoverage['/uri.js'].branchData['148'][1].init(127, 3, 'key'); -function visit592_148_1(result) { +function visit612_148_1(result) { _$jscoverage['/uri.js'].branchData['148'][1].ranCondition(result); return result; }_$jscoverage['/uri.js'].branchData['130'][1].init(22, 23, 'S.isArray(_queryMap[k])'); -function visit591_130_1(result) { +function visit611_130_1(result) { _$jscoverage['/uri.js'].branchData['130'][1].ranCondition(result); return result; }_$jscoverage['/uri.js'].branchData['112'][1].init(56, 11, 'query || \'\''); -function visit590_112_1(result) { +function visit610_112_1(result) { _$jscoverage['/uri.js'].branchData['112'][1].ranCondition(result); return result; }_$jscoverage['/uri.js'].branchData['90'][1].init(23, 11, 'query || \'\''); -function visit589_90_1(result) { +function visit609_90_1(result) { _$jscoverage['/uri.js'].branchData['90'][1].ranCondition(result); return result; }_$jscoverage['/uri.js'].branchData['79'][1].init(13, 15, '!self._queryMap'); -function visit588_79_1(result) { +function visit608_79_1(result) { _$jscoverage['/uri.js'].branchData['79'][1].ranCondition(result); return result; }_$jscoverage['/uri.js'].lineData[6]++; @@ -699,7 +699,7 @@ function visit588_79_1(result) { function parseQuery(self) { _$jscoverage['/uri.js'].functionData[1]++; _$jscoverage['/uri.js'].lineData[79]++; - if (visit588_79_1(!self._queryMap)) { + if (visit608_79_1(!self._queryMap)) { _$jscoverage['/uri.js'].lineData[80]++; self._queryMap = S.unparam(self._query); } @@ -708,7 +708,7 @@ function visit588_79_1(result) { function Query(query) { _$jscoverage['/uri.js'].functionData[2]++; _$jscoverage['/uri.js'].lineData[90]++; - this._query = visit589_90_1(query || ''); + this._query = visit609_90_1(query || ''); } _$jscoverage['/uri.js'].lineData[93]++; Query.prototype = { @@ -723,7 +723,7 @@ function visit588_79_1(result) { _$jscoverage['/uri.js'].lineData[111]++; var self = this; _$jscoverage['/uri.js'].lineData[112]++; - self._query = visit590_112_1(query || ''); + self._query = visit610_112_1(query || ''); _$jscoverage['/uri.js'].lineData[113]++; self._queryMap = null; _$jscoverage['/uri.js'].lineData[114]++; @@ -740,7 +740,7 @@ function visit588_79_1(result) { _$jscoverage['/uri.js'].lineData[128]++; for (k in _queryMap) { _$jscoverage['/uri.js'].lineData[130]++; - if (visit591_130_1(S.isArray(_queryMap[k]))) { + if (visit611_130_1(S.isArray(_queryMap[k]))) { _$jscoverage['/uri.js'].lineData[131]++; count += _queryMap[k].length; } else { @@ -760,7 +760,7 @@ function visit588_79_1(result) { _$jscoverage['/uri.js'].lineData[147]++; _queryMap = self._queryMap; _$jscoverage['/uri.js'].lineData[148]++; - if (visit592_148_1(key)) { + if (visit612_148_1(key)) { _$jscoverage['/uri.js'].lineData[149]++; return key in _queryMap; } else { @@ -777,7 +777,7 @@ function visit588_79_1(result) { _$jscoverage['/uri.js'].lineData[162]++; _queryMap = self._queryMap; _$jscoverage['/uri.js'].lineData[163]++; - if (visit593_163_1(key)) { + if (visit613_163_1(key)) { _$jscoverage['/uri.js'].lineData[164]++; return _queryMap[key]; } else { @@ -803,12 +803,12 @@ function visit588_79_1(result) { _$jscoverage['/uri.js'].lineData[189]++; _queryMap = self._queryMap; _$jscoverage['/uri.js'].lineData[190]++; - if (visit594_190_1(typeof key === 'string')) { + if (visit614_190_1(typeof key === 'string')) { _$jscoverage['/uri.js'].lineData[191]++; self._queryMap[key] = value; } else { _$jscoverage['/uri.js'].lineData[193]++; - if (visit595_193_1(key instanceof Query)) { + if (visit615_193_1(key instanceof Query)) { _$jscoverage['/uri.js'].lineData[194]++; key = key.get(); } @@ -829,7 +829,7 @@ function visit588_79_1(result) { _$jscoverage['/uri.js'].lineData[210]++; parseQuery(self); _$jscoverage['/uri.js'].lineData[211]++; - if (visit596_211_1(key)) { + if (visit616_211_1(key)) { _$jscoverage['/uri.js'].lineData[212]++; delete self._queryMap[key]; } else { @@ -844,7 +844,7 @@ function visit588_79_1(result) { _$jscoverage['/uri.js'].lineData[227]++; var self = this, _queryMap, currentValue; _$jscoverage['/uri.js'].lineData[230]++; - if (visit597_230_1(typeof key === 'string')) { + if (visit617_230_1(typeof key === 'string')) { _$jscoverage['/uri.js'].lineData[231]++; parseQuery(self); _$jscoverage['/uri.js'].lineData[232]++; @@ -852,7 +852,7 @@ function visit588_79_1(result) { _$jscoverage['/uri.js'].lineData[233]++; currentValue = _queryMap[key]; _$jscoverage['/uri.js'].lineData[234]++; - if (visit598_234_1(currentValue === undefined)) { + if (visit618_234_1(currentValue === undefined)) { _$jscoverage['/uri.js'].lineData[235]++; currentValue = value; } else { @@ -863,7 +863,7 @@ function visit588_79_1(result) { _queryMap[key] = currentValue; } else { _$jscoverage['/uri.js'].lineData[241]++; - if (visit599_241_1(key instanceof Query)) { + if (visit619_241_1(key instanceof Query)) { _$jscoverage['/uri.js'].lineData[242]++; key = key.get(); } @@ -889,13 +889,13 @@ function visit588_79_1(result) { function padding2(str) { _$jscoverage['/uri.js'].functionData[14]++; _$jscoverage['/uri.js'].lineData[264]++; - return visit600_264_1(str.length === 1) ? '0' + str : str; + return visit620_264_1(str.length === 1) ? '0' + str : str; } _$jscoverage['/uri.js'].lineData[267]++; function equalsIgnoreCase(str1, str2) { _$jscoverage['/uri.js'].functionData[15]++; _$jscoverage['/uri.js'].lineData[268]++; - return visit601_268_1(str1.toLowerCase() === str2.toLowerCase()); + return visit621_268_1(str1.toLowerCase() === str2.toLowerCase()); } _$jscoverage['/uri.js'].lineData[274]++; function encodeSpecialChars(str, specialCharsReg) { @@ -911,7 +911,7 @@ function visit588_79_1(result) { function Uri(uriStr) { _$jscoverage['/uri.js'].functionData[18]++; _$jscoverage['/uri.js'].lineData[292]++; - if (visit602_292_1(uriStr instanceof Uri)) { + if (visit622_292_1(uriStr instanceof Uri)) { _$jscoverage['/uri.js'].lineData[293]++; return uriStr.clone(); } @@ -932,9 +932,9 @@ function visit588_79_1(result) { S.each(components, function(v, key) { _$jscoverage['/uri.js'].functionData[19]++; _$jscoverage['/uri.js'].lineData[339]++; - v = visit603_339_1(v || ''); + v = visit623_339_1(v || ''); _$jscoverage['/uri.js'].lineData[340]++; - if (visit604_340_1(key === 'query')) { + if (visit624_340_1(key === 'query')) { _$jscoverage['/uri.js'].lineData[342]++; self.query = new Query(v); } else { @@ -974,7 +974,7 @@ function visit588_79_1(result) { resolve: function(relativeUri) { _$jscoverage['/uri.js'].functionData[22]++; _$jscoverage['/uri.js'].lineData[394]++; - if (visit605_394_1(typeof relativeUri === 'string')) { + if (visit625_394_1(typeof relativeUri === 'string')) { _$jscoverage['/uri.js'].lineData[395]++; relativeUri = new Uri(relativeUri); } @@ -984,31 +984,31 @@ function visit588_79_1(result) { S.each(order, function(o) { _$jscoverage['/uri.js'].functionData[23]++; _$jscoverage['/uri.js'].lineData[405]++; - if (visit606_405_1(o === 'path')) { + if (visit626_405_1(o === 'path')) { _$jscoverage['/uri.js'].lineData[407]++; - if (visit607_407_1(override)) { + if (visit627_407_1(override)) { _$jscoverage['/uri.js'].lineData[408]++; target[o] = relativeUri[o]; } else { _$jscoverage['/uri.js'].lineData[410]++; var path = relativeUri.path; _$jscoverage['/uri.js'].lineData[411]++; - if (visit608_411_1(path)) { + if (visit628_411_1(path)) { _$jscoverage['/uri.js'].lineData[413]++; override = 1; _$jscoverage['/uri.js'].lineData[414]++; - if (visit609_414_1(!S.startsWith(path, '/'))) { + if (visit629_414_1(!S.startsWith(path, '/'))) { _$jscoverage['/uri.js'].lineData[415]++; - if (visit610_415_1(target.hostname && !target.path)) { + if (visit630_415_1(target.hostname && !target.path)) { _$jscoverage['/uri.js'].lineData[417]++; path = '/' + path; } else { _$jscoverage['/uri.js'].lineData[418]++; - if (visit611_418_1(target.path)) { + if (visit631_418_1(target.path)) { _$jscoverage['/uri.js'].lineData[420]++; lastSlashIndex = target.path.lastIndexOf('/'); _$jscoverage['/uri.js'].lineData[421]++; - if (visit612_421_1(lastSlashIndex !== -1)) { + if (visit632_421_1(lastSlashIndex !== -1)) { _$jscoverage['/uri.js'].lineData[422]++; path = target.path.slice(0, lastSlashIndex + 1) + path; } @@ -1021,9 +1021,9 @@ function visit588_79_1(result) { } } else { _$jscoverage['/uri.js'].lineData[430]++; - if (visit613_430_1(o === 'query')) { + if (visit633_430_1(o === 'query')) { _$jscoverage['/uri.js'].lineData[431]++; - if (visit614_431_1(override || relativeUri.query.toString())) { + if (visit634_431_1(override || relativeUri.query.toString())) { _$jscoverage['/uri.js'].lineData[432]++; target.query = relativeUri.query.clone(); _$jscoverage['/uri.js'].lineData[433]++; @@ -1031,7 +1031,7 @@ function visit588_79_1(result) { } } else { _$jscoverage['/uri.js'].lineData[435]++; - if (visit615_435_1(override || relativeUri[o])) { + if (visit635_435_1(override || relativeUri[o])) { _$jscoverage['/uri.js'].lineData[436]++; target[o] = relativeUri[o]; _$jscoverage['/uri.js'].lineData[437]++; @@ -1106,9 +1106,9 @@ function visit588_79_1(result) { 'setQuery': function(query) { _$jscoverage['/uri.js'].functionData[34]++; _$jscoverage['/uri.js'].lineData[540]++; - if (visit616_540_1(typeof query === 'string')) { + if (visit636_540_1(typeof query === 'string')) { _$jscoverage['/uri.js'].lineData[541]++; - if (visit617_541_1(S.startsWith(query, '?'))) { + if (visit637_541_1(S.startsWith(query, '?'))) { _$jscoverage['/uri.js'].lineData[542]++; query = query.slice(1); } @@ -1135,7 +1135,7 @@ function visit588_79_1(result) { _$jscoverage['/uri.js'].lineData[572]++; var self = this; _$jscoverage['/uri.js'].lineData[573]++; - if (visit618_573_1(S.startsWith(fragment, '#'))) { + if (visit638_573_1(S.startsWith(fragment, '#'))) { _$jscoverage['/uri.js'].lineData[574]++; fragment = fragment.slice(1); } @@ -1149,7 +1149,7 @@ function visit588_79_1(result) { _$jscoverage['/uri.js'].lineData[586]++; var self = this; _$jscoverage['/uri.js'].lineData[588]++; - return visit619_588_1(equalsIgnoreCase(self.hostname, other.hostname) && visit620_589_1(equalsIgnoreCase(self.scheme, other.scheme) && equalsIgnoreCase(self.port, other.port))); + return visit639_588_1(equalsIgnoreCase(self.hostname, other.hostname) && visit640_589_1(equalsIgnoreCase(self.scheme, other.scheme) && equalsIgnoreCase(self.port, other.port))); }, toString: function(serializeArray) { _$jscoverage['/uri.js'].functionData[39]++; @@ -1186,7 +1186,7 @@ function visit588_79_1(result) { _$jscoverage['/uri.js'].lineData[633]++; if ((path = self.path)) { _$jscoverage['/uri.js'].lineData[634]++; - if (visit621_634_1(hostname && !S.startsWith(path, '/'))) { + if (visit641_634_1(hostname && !S.startsWith(path, '/'))) { _$jscoverage['/uri.js'].lineData[635]++; path = '/' + path; } @@ -1218,9 +1218,9 @@ function visit588_79_1(result) { Uri.getComponents = function(url) { _$jscoverage['/uri.js'].functionData[40]++; _$jscoverage['/uri.js'].lineData[658]++; - url = visit622_658_1(url || ''); + url = visit642_658_1(url || ''); _$jscoverage['/uri.js'].lineData[659]++; - var m = visit623_659_1(url.match(URI_SPLIT_REG) || []), ret = {}; + var m = visit643_659_1(url.match(URI_SPLIT_REG) || []), ret = {}; _$jscoverage['/uri.js'].lineData[661]++; S.each(REG_INFO, function(index, key) { _$jscoverage['/uri.js'].functionData[41]++; diff --git a/src/seed/coverage/src/web.js b/src/seed/coverage/src/web.js index 8e7458a4c7..be4660f882 100644 --- a/src/seed/coverage/src/web.js +++ b/src/seed/coverage/src/web.js @@ -237,89 +237,89 @@ if (! _$jscoverage['/web.js']) { _$jscoverage['/web.js'].lineData[35] = 0; _$jscoverage['/web.js'].lineData[37] = 0; _$jscoverage['/web.js'].lineData[40] = 0; - _$jscoverage['/web.js'].lineData[46] = 0; - _$jscoverage['/web.js'].lineData[56] = 0; - _$jscoverage['/web.js'].lineData[57] = 0; + _$jscoverage['/web.js'].lineData[48] = 0; + _$jscoverage['/web.js'].lineData[58] = 0; _$jscoverage['/web.js'].lineData[59] = 0; - _$jscoverage['/web.js'].lineData[60] = 0; + _$jscoverage['/web.js'].lineData[61] = 0; _$jscoverage['/web.js'].lineData[62] = 0; - _$jscoverage['/web.js'].lineData[63] = 0; - _$jscoverage['/web.js'].lineData[66] = 0; - _$jscoverage['/web.js'].lineData[67] = 0; + _$jscoverage['/web.js'].lineData[64] = 0; + _$jscoverage['/web.js'].lineData[65] = 0; _$jscoverage['/web.js'].lineData[68] = 0; - _$jscoverage['/web.js'].lineData[71] = 0; - _$jscoverage['/web.js'].lineData[72] = 0; + _$jscoverage['/web.js'].lineData[69] = 0; + _$jscoverage['/web.js'].lineData[70] = 0; _$jscoverage['/web.js'].lineData[73] = 0; + _$jscoverage['/web.js'].lineData[74] = 0; _$jscoverage['/web.js'].lineData[75] = 0; - _$jscoverage['/web.js'].lineData[76] = 0; + _$jscoverage['/web.js'].lineData[77] = 0; _$jscoverage['/web.js'].lineData[78] = 0; - _$jscoverage['/web.js'].lineData[86] = 0; - _$jscoverage['/web.js'].lineData[89] = 0; - _$jscoverage['/web.js'].lineData[91] = 0; + _$jscoverage['/web.js'].lineData[80] = 0; + _$jscoverage['/web.js'].lineData[88] = 0; + _$jscoverage['/web.js'].lineData[92] = 0; _$jscoverage['/web.js'].lineData[93] = 0; - _$jscoverage['/web.js'].lineData[94] = 0; - _$jscoverage['/web.js'].lineData[107] = 0; - _$jscoverage['/web.js'].lineData[108] = 0; + _$jscoverage['/web.js'].lineData[95] = 0; + _$jscoverage['/web.js'].lineData[96] = 0; _$jscoverage['/web.js'].lineData[109] = 0; + _$jscoverage['/web.js'].lineData[110] = 0; _$jscoverage['/web.js'].lineData[111] = 0; - _$jscoverage['/web.js'].lineData[112] = 0; _$jscoverage['/web.js'].lineData[113] = 0; - _$jscoverage['/web.js'].lineData[117] = 0; + _$jscoverage['/web.js'].lineData[114] = 0; + _$jscoverage['/web.js'].lineData[115] = 0; _$jscoverage['/web.js'].lineData[119] = 0; - _$jscoverage['/web.js'].lineData[129] = 0; - _$jscoverage['/web.js'].lineData[130] = 0; + _$jscoverage['/web.js'].lineData[121] = 0; _$jscoverage['/web.js'].lineData[131] = 0; _$jscoverage['/web.js'].lineData[132] = 0; _$jscoverage['/web.js'].lineData[133] = 0; _$jscoverage['/web.js'].lineData[134] = 0; + _$jscoverage['/web.js'].lineData[135] = 0; _$jscoverage['/web.js'].lineData[136] = 0; - _$jscoverage['/web.js'].lineData[137] = 0; _$jscoverage['/web.js'].lineData[138] = 0; _$jscoverage['/web.js'].lineData[139] = 0; - _$jscoverage['/web.js'].lineData[145] = 0; - _$jscoverage['/web.js'].lineData[146] = 0; + _$jscoverage['/web.js'].lineData[140] = 0; + _$jscoverage['/web.js'].lineData[141] = 0; _$jscoverage['/web.js'].lineData[147] = 0; - _$jscoverage['/web.js'].lineData[150] = 0; - _$jscoverage['/web.js'].lineData[151] = 0; + _$jscoverage['/web.js'].lineData[148] = 0; + _$jscoverage['/web.js'].lineData[149] = 0; + _$jscoverage['/web.js'].lineData[152] = 0; _$jscoverage['/web.js'].lineData[153] = 0; - _$jscoverage['/web.js'].lineData[154] = 0; _$jscoverage['/web.js'].lineData[155] = 0; _$jscoverage['/web.js'].lineData[156] = 0; + _$jscoverage['/web.js'].lineData[157] = 0; _$jscoverage['/web.js'].lineData[158] = 0; _$jscoverage['/web.js'].lineData[160] = 0; - _$jscoverage['/web.js'].lineData[161] = 0; - _$jscoverage['/web.js'].lineData[168] = 0; - _$jscoverage['/web.js'].lineData[171] = 0; - _$jscoverage['/web.js'].lineData[172] = 0; + _$jscoverage['/web.js'].lineData[162] = 0; + _$jscoverage['/web.js'].lineData[163] = 0; + _$jscoverage['/web.js'].lineData[170] = 0; _$jscoverage['/web.js'].lineData[173] = 0; - _$jscoverage['/web.js'].lineData[177] = 0; - _$jscoverage['/web.js'].lineData[180] = 0; - _$jscoverage['/web.js'].lineData[181] = 0; + _$jscoverage['/web.js'].lineData[174] = 0; + _$jscoverage['/web.js'].lineData[175] = 0; + _$jscoverage['/web.js'].lineData[179] = 0; _$jscoverage['/web.js'].lineData[182] = 0; _$jscoverage['/web.js'].lineData[183] = 0; - _$jscoverage['/web.js'].lineData[186] = 0; - _$jscoverage['/web.js'].lineData[190] = 0; - _$jscoverage['/web.js'].lineData[191] = 0; + _$jscoverage['/web.js'].lineData[184] = 0; + _$jscoverage['/web.js'].lineData[185] = 0; + _$jscoverage['/web.js'].lineData[188] = 0; _$jscoverage['/web.js'].lineData[192] = 0; _$jscoverage['/web.js'].lineData[193] = 0; - _$jscoverage['/web.js'].lineData[199] = 0; - _$jscoverage['/web.js'].lineData[203] = 0; - _$jscoverage['/web.js'].lineData[206] = 0; - _$jscoverage['/web.js'].lineData[207] = 0; + _$jscoverage['/web.js'].lineData[194] = 0; + _$jscoverage['/web.js'].lineData[195] = 0; + _$jscoverage['/web.js'].lineData[201] = 0; + _$jscoverage['/web.js'].lineData[205] = 0; + _$jscoverage['/web.js'].lineData[208] = 0; _$jscoverage['/web.js'].lineData[209] = 0; - _$jscoverage['/web.js'].lineData[213] = 0; - _$jscoverage['/web.js'].lineData[214] = 0; + _$jscoverage['/web.js'].lineData[211] = 0; _$jscoverage['/web.js'].lineData[215] = 0; + _$jscoverage['/web.js'].lineData[216] = 0; _$jscoverage['/web.js'].lineData[217] = 0; - _$jscoverage['/web.js'].lineData[218] = 0; + _$jscoverage['/web.js'].lineData[219] = 0; _$jscoverage['/web.js'].lineData[220] = 0; - _$jscoverage['/web.js'].lineData[223] = 0; - _$jscoverage['/web.js'].lineData[229] = 0; - _$jscoverage['/web.js'].lineData[230] = 0; - _$jscoverage['/web.js'].lineData[237] = 0; + _$jscoverage['/web.js'].lineData[222] = 0; + _$jscoverage['/web.js'].lineData[225] = 0; + _$jscoverage['/web.js'].lineData[231] = 0; + _$jscoverage['/web.js'].lineData[232] = 0; _$jscoverage['/web.js'].lineData[239] = 0; - _$jscoverage['/web.js'].lineData[240] = 0; _$jscoverage['/web.js'].lineData[241] = 0; + _$jscoverage['/web.js'].lineData[242] = 0; + _$jscoverage['/web.js'].lineData[243] = 0; } if (! _$jscoverage['/web.js'].functionData) { _$jscoverage['/web.js'].functionData = []; @@ -349,175 +349,175 @@ if (! _$jscoverage['/web.js'].branchData) { _$jscoverage['/web.js'].branchData['12'][1] = new BranchData(); _$jscoverage['/web.js'].branchData['24'] = []; _$jscoverage['/web.js'].branchData['24'][1] = new BranchData(); - _$jscoverage['/web.js'].branchData['46'] = []; - _$jscoverage['/web.js'].branchData['46'][1] = new BranchData(); - _$jscoverage['/web.js'].branchData['46'][2] = new BranchData(); - _$jscoverage['/web.js'].branchData['46'][3] = new BranchData(); - _$jscoverage['/web.js'].branchData['56'] = []; - _$jscoverage['/web.js'].branchData['56'][1] = new BranchData(); - _$jscoverage['/web.js'].branchData['62'] = []; - _$jscoverage['/web.js'].branchData['62'][1] = new BranchData(); - _$jscoverage['/web.js'].branchData['75'] = []; - _$jscoverage['/web.js'].branchData['75'][1] = new BranchData(); - _$jscoverage['/web.js'].branchData['75'][2] = new BranchData(); - _$jscoverage['/web.js'].branchData['86'] = []; - _$jscoverage['/web.js'].branchData['86'][1] = new BranchData(); - _$jscoverage['/web.js'].branchData['89'] = []; - _$jscoverage['/web.js'].branchData['89'][1] = new BranchData(); - _$jscoverage['/web.js'].branchData['107'] = []; - _$jscoverage['/web.js'].branchData['107'][1] = new BranchData(); - _$jscoverage['/web.js'].branchData['111'] = []; - _$jscoverage['/web.js'].branchData['111'][1] = new BranchData(); - _$jscoverage['/web.js'].branchData['132'] = []; - _$jscoverage['/web.js'].branchData['132'][1] = new BranchData(); - _$jscoverage['/web.js'].branchData['137'] = []; - _$jscoverage['/web.js'].branchData['137'][1] = new BranchData(); - _$jscoverage['/web.js'].branchData['146'] = []; - _$jscoverage['/web.js'].branchData['146'][1] = new BranchData(); - _$jscoverage['/web.js'].branchData['150'] = []; - _$jscoverage['/web.js'].branchData['150'][1] = new BranchData(); - _$jscoverage['/web.js'].branchData['154'] = []; - _$jscoverage['/web.js'].branchData['154'][1] = new BranchData(); - _$jscoverage['/web.js'].branchData['158'] = []; - _$jscoverage['/web.js'].branchData['158'][1] = new BranchData(); - _$jscoverage['/web.js'].branchData['171'] = []; - _$jscoverage['/web.js'].branchData['171'][1] = new BranchData(); - _$jscoverage['/web.js'].branchData['171'][2] = new BranchData(); - _$jscoverage['/web.js'].branchData['180'] = []; - _$jscoverage['/web.js'].branchData['180'][1] = new BranchData(); - _$jscoverage['/web.js'].branchData['191'] = []; - _$jscoverage['/web.js'].branchData['191'][1] = new BranchData(); - _$jscoverage['/web.js'].branchData['204'] = []; - _$jscoverage['/web.js'].branchData['204'][1] = new BranchData(); - _$jscoverage['/web.js'].branchData['207'] = []; - _$jscoverage['/web.js'].branchData['207'][1] = new BranchData(); - _$jscoverage['/web.js'].branchData['213'] = []; - _$jscoverage['/web.js'].branchData['213'][1] = new BranchData(); - _$jscoverage['/web.js'].branchData['229'] = []; - _$jscoverage['/web.js'].branchData['229'][1] = new BranchData(); - _$jscoverage['/web.js'].branchData['229'][2] = new BranchData(); - _$jscoverage['/web.js'].branchData['229'][3] = new BranchData(); - _$jscoverage['/web.js'].branchData['239'] = []; - _$jscoverage['/web.js'].branchData['239'][1] = new BranchData(); + _$jscoverage['/web.js'].branchData['48'] = []; + _$jscoverage['/web.js'].branchData['48'][1] = new BranchData(); + _$jscoverage['/web.js'].branchData['48'][2] = new BranchData(); + _$jscoverage['/web.js'].branchData['48'][3] = new BranchData(); + _$jscoverage['/web.js'].branchData['58'] = []; + _$jscoverage['/web.js'].branchData['58'][1] = new BranchData(); + _$jscoverage['/web.js'].branchData['64'] = []; + _$jscoverage['/web.js'].branchData['64'][1] = new BranchData(); + _$jscoverage['/web.js'].branchData['77'] = []; + _$jscoverage['/web.js'].branchData['77'][1] = new BranchData(); + _$jscoverage['/web.js'].branchData['77'][2] = new BranchData(); + _$jscoverage['/web.js'].branchData['88'] = []; + _$jscoverage['/web.js'].branchData['88'][1] = new BranchData(); + _$jscoverage['/web.js'].branchData['92'] = []; + _$jscoverage['/web.js'].branchData['92'][1] = new BranchData(); + _$jscoverage['/web.js'].branchData['109'] = []; + _$jscoverage['/web.js'].branchData['109'][1] = new BranchData(); + _$jscoverage['/web.js'].branchData['113'] = []; + _$jscoverage['/web.js'].branchData['113'][1] = new BranchData(); + _$jscoverage['/web.js'].branchData['134'] = []; + _$jscoverage['/web.js'].branchData['134'][1] = new BranchData(); + _$jscoverage['/web.js'].branchData['139'] = []; + _$jscoverage['/web.js'].branchData['139'][1] = new BranchData(); + _$jscoverage['/web.js'].branchData['148'] = []; + _$jscoverage['/web.js'].branchData['148'][1] = new BranchData(); + _$jscoverage['/web.js'].branchData['152'] = []; + _$jscoverage['/web.js'].branchData['152'][1] = new BranchData(); + _$jscoverage['/web.js'].branchData['156'] = []; + _$jscoverage['/web.js'].branchData['156'][1] = new BranchData(); + _$jscoverage['/web.js'].branchData['160'] = []; + _$jscoverage['/web.js'].branchData['160'][1] = new BranchData(); + _$jscoverage['/web.js'].branchData['173'] = []; + _$jscoverage['/web.js'].branchData['173'][1] = new BranchData(); + _$jscoverage['/web.js'].branchData['173'][2] = new BranchData(); + _$jscoverage['/web.js'].branchData['182'] = []; + _$jscoverage['/web.js'].branchData['182'][1] = new BranchData(); + _$jscoverage['/web.js'].branchData['193'] = []; + _$jscoverage['/web.js'].branchData['193'][1] = new BranchData(); + _$jscoverage['/web.js'].branchData['206'] = []; + _$jscoverage['/web.js'].branchData['206'][1] = new BranchData(); + _$jscoverage['/web.js'].branchData['209'] = []; + _$jscoverage['/web.js'].branchData['209'][1] = new BranchData(); + _$jscoverage['/web.js'].branchData['215'] = []; + _$jscoverage['/web.js'].branchData['215'][1] = new BranchData(); + _$jscoverage['/web.js'].branchData['231'] = []; + _$jscoverage['/web.js'].branchData['231'][1] = new BranchData(); + _$jscoverage['/web.js'].branchData['231'][2] = new BranchData(); + _$jscoverage['/web.js'].branchData['231'][3] = new BranchData(); + _$jscoverage['/web.js'].branchData['241'] = []; + _$jscoverage['/web.js'].branchData['241'][1] = new BranchData(); } -_$jscoverage['/web.js'].branchData['239'][1].init(7598, 5, 'UA.ie'); -function visit653_239_1(result) { - _$jscoverage['/web.js'].branchData['239'][1].ranCondition(result); +_$jscoverage['/web.js'].branchData['241'][1].init(7665, 5, 'UA.ie'); +function visit673_241_1(result) { + _$jscoverage['/web.js'].branchData['241'][1].ranCondition(result); return result; -}_$jscoverage['/web.js'].branchData['229'][3].init(7317, 24, 'location.search || EMPTY'); -function visit652_229_3(result) { - _$jscoverage['/web.js'].branchData['229'][3].ranCondition(result); +}_$jscoverage['/web.js'].branchData['231'][3].init(7384, 24, 'location.search || EMPTY'); +function visit672_231_3(result) { + _$jscoverage['/web.js'].branchData['231'][3].ranCondition(result); return result; -}_$jscoverage['/web.js'].branchData['229'][2].init(7317, 52, '(location.search || EMPTY).indexOf(\'ks-debug\') !== -1'); -function visit651_229_2(result) { - _$jscoverage['/web.js'].branchData['229'][2].ranCondition(result); +}_$jscoverage['/web.js'].branchData['231'][2].init(7384, 52, '(location.search || EMPTY).indexOf(\'ks-debug\') !== -1'); +function visit671_231_2(result) { + _$jscoverage['/web.js'].branchData['231'][2].ranCondition(result); return result; -}_$jscoverage['/web.js'].branchData['229'][1].init(7304, 65, 'location && (location.search || EMPTY).indexOf(\'ks-debug\') !== -1'); -function visit650_229_1(result) { - _$jscoverage['/web.js'].branchData['229'][1].ranCondition(result); +}_$jscoverage['/web.js'].branchData['231'][1].init(7371, 65, 'location && (location.search || EMPTY).indexOf(\'ks-debug\') !== -1'); +function visit670_231_1(result) { + _$jscoverage['/web.js'].branchData['231'][1].ranCondition(result); return result; -}_$jscoverage['/web.js'].branchData['213'][1].init(907, 20, 'doScroll && notframe'); -function visit649_213_1(result) { - _$jscoverage['/web.js'].branchData['213'][1].ranCondition(result); +}_$jscoverage['/web.js'].branchData['215'][1].init(907, 20, 'doScroll && notframe'); +function visit669_215_1(result) { + _$jscoverage['/web.js'].branchData['215'][1].ranCondition(result); return result; -}_$jscoverage['/web.js'].branchData['207'][1].init(29, 25, 'win.frameElement === null'); -function visit648_207_1(result) { - _$jscoverage['/web.js'].branchData['207'][1].ranCondition(result); +}_$jscoverage['/web.js'].branchData['209'][1].init(29, 25, 'win.frameElement === null'); +function visit668_209_1(result) { + _$jscoverage['/web.js'].branchData['209'][1].ranCondition(result); return result; -}_$jscoverage['/web.js'].branchData['204'][1].init(40, 27, 'docElem && docElem.doScroll'); -function visit647_204_1(result) { - _$jscoverage['/web.js'].branchData['204'][1].ranCondition(result); +}_$jscoverage['/web.js'].branchData['206'][1].init(40, 27, 'docElem && docElem.doScroll'); +function visit667_206_1(result) { + _$jscoverage['/web.js'].branchData['206'][1].ranCondition(result); return result; -}_$jscoverage['/web.js'].branchData['191'][1].init(21, 27, 'doc.readyState === COMPLETE'); -function visit646_191_1(result) { - _$jscoverage['/web.js'].branchData['191'][1].ranCondition(result); +}_$jscoverage['/web.js'].branchData['193'][1].init(21, 27, 'doc.readyState === COMPLETE'); +function visit666_193_1(result) { + _$jscoverage['/web.js'].branchData['193'][1].ranCondition(result); return result; -}_$jscoverage['/web.js'].branchData['180'][1].init(361, 18, 'standardEventModel'); -function visit645_180_1(result) { - _$jscoverage['/web.js'].branchData['180'][1].ranCondition(result); +}_$jscoverage['/web.js'].branchData['182'][1].init(361, 18, 'standardEventModel'); +function visit665_182_1(result) { + _$jscoverage['/web.js'].branchData['182'][1].ranCondition(result); return result; -}_$jscoverage['/web.js'].branchData['171'][2].init(125, 27, 'doc.readyState === COMPLETE'); -function visit644_171_2(result) { - _$jscoverage['/web.js'].branchData['171'][2].ranCondition(result); +}_$jscoverage['/web.js'].branchData['173'][2].init(125, 27, 'doc.readyState === COMPLETE'); +function visit664_173_2(result) { + _$jscoverage['/web.js'].branchData['173'][2].ranCondition(result); return result; -}_$jscoverage['/web.js'].branchData['171'][1].init(117, 35, '!doc || doc.readyState === COMPLETE'); -function visit643_171_1(result) { - _$jscoverage['/web.js'].branchData['171'][1].ranCondition(result); +}_$jscoverage['/web.js'].branchData['173'][1].init(117, 35, '!doc || doc.readyState === COMPLETE'); +function visit663_173_1(result) { + _$jscoverage['/web.js'].branchData['173'][1].ranCondition(result); return result; -}_$jscoverage['/web.js'].branchData['158'][1].init(23, 12, 'e.stack || e'); -function visit642_158_1(result) { - _$jscoverage['/web.js'].branchData['158'][1].ranCondition(result); +}_$jscoverage['/web.js'].branchData['160'][1].init(23, 12, 'e.stack || e'); +function visit662_160_1(result) { + _$jscoverage['/web.js'].branchData['160'][1].ranCondition(result); return result; -}_$jscoverage['/web.js'].branchData['154'][1].init(223, 20, 'i < callbacks.length'); -function visit641_154_1(result) { - _$jscoverage['/web.js'].branchData['154'][1].ranCondition(result); +}_$jscoverage['/web.js'].branchData['156'][1].init(223, 20, 'i < callbacks.length'); +function visit661_156_1(result) { + _$jscoverage['/web.js'].branchData['156'][1].ranCondition(result); return result; -}_$jscoverage['/web.js'].branchData['150'][1].init(85, 17, 'doc && !UA.nodejs'); -function visit640_150_1(result) { - _$jscoverage['/web.js'].branchData['150'][1].ranCondition(result); +}_$jscoverage['/web.js'].branchData['152'][1].init(85, 17, 'doc && !UA.nodejs'); +function visit660_152_1(result) { + _$jscoverage['/web.js'].branchData['152'][1].ranCondition(result); return result; -}_$jscoverage['/web.js'].branchData['146'][1].init(13, 8, 'domReady'); -function visit639_146_1(result) { - _$jscoverage['/web.js'].branchData['146'][1].ranCondition(result); +}_$jscoverage['/web.js'].branchData['148'][1].init(13, 8, 'domReady'); +function visit659_148_1(result) { + _$jscoverage['/web.js'].branchData['148'][1].ranCondition(result); return result; -}_$jscoverage['/web.js'].branchData['137'][1].init(205, 4, 'node'); -function visit638_137_1(result) { - _$jscoverage['/web.js'].branchData['137'][1].ranCondition(result); +}_$jscoverage['/web.js'].branchData['139'][1].init(205, 4, 'node'); +function visit658_139_1(result) { + _$jscoverage['/web.js'].branchData['139'][1].ranCondition(result); return result; -}_$jscoverage['/web.js'].branchData['132'][1].init(21, 27, '++retryCount > POLL_RETIRES'); -function visit637_132_1(result) { - _$jscoverage['/web.js'].branchData['132'][1].ranCondition(result); +}_$jscoverage['/web.js'].branchData['134'][1].init(21, 27, '++retryCount > POLL_RETIRES'); +function visit657_134_1(result) { + _$jscoverage['/web.js'].branchData['134'][1].ranCondition(result); return result; -}_$jscoverage['/web.js'].branchData['111'][1].init(27, 12, 'e.stack || e'); -function visit636_111_1(result) { - _$jscoverage['/web.js'].branchData['111'][1].ranCondition(result); +}_$jscoverage['/web.js'].branchData['113'][1].init(27, 12, 'e.stack || e'); +function visit656_113_1(result) { + _$jscoverage['/web.js'].branchData['113'][1].ranCondition(result); return result; -}_$jscoverage['/web.js'].branchData['107'][1].init(17, 8, 'domReady'); -function visit635_107_1(result) { - _$jscoverage['/web.js'].branchData['107'][1].ranCondition(result); +}_$jscoverage['/web.js'].branchData['109'][1].init(17, 8, 'domReady'); +function visit655_109_1(result) { + _$jscoverage['/web.js'].branchData['109'][1].ranCondition(result); return result; -}_$jscoverage['/web.js'].branchData['89'][1].init(232, 13, 'win.exeScript'); -function visit634_89_1(result) { - _$jscoverage['/web.js'].branchData['89'][1].ranCondition(result); +}_$jscoverage['/web.js'].branchData['92'][1].init(269, 14, 'win.execScript'); +function visit654_92_1(result) { + _$jscoverage['/web.js'].branchData['92'][1].ranCondition(result); return result; -}_$jscoverage['/web.js'].branchData['86'][1].init(17, 36, 'data && RE_NOT_WHITESPACE.test(data)'); -function visit633_86_1(result) { - _$jscoverage['/web.js'].branchData['86'][1].ranCondition(result); +}_$jscoverage['/web.js'].branchData['88'][1].init(17, 36, 'data && RE_NOT_WHITESPACE.test(data)'); +function visit653_88_1(result) { + _$jscoverage['/web.js'].branchData['88'][1].ranCondition(result); return result; -}_$jscoverage['/web.js'].branchData['75'][2].init(711, 70, '!xml.documentElement || xml.getElementsByTagName(\'parsererror\').length'); -function visit632_75_2(result) { - _$jscoverage['/web.js'].branchData['75'][2].ranCondition(result); +}_$jscoverage['/web.js'].branchData['77'][2].init(711, 70, '!xml.documentElement || xml.getElementsByTagName(\'parsererror\').length'); +function visit652_77_2(result) { + _$jscoverage['/web.js'].branchData['77'][2].ranCondition(result); return result; -}_$jscoverage['/web.js'].branchData['75'][1].init(703, 78, '!xml || !xml.documentElement || xml.getElementsByTagName(\'parsererror\').length'); -function visit631_75_1(result) { - _$jscoverage['/web.js'].branchData['75'][1].ranCondition(result); +}_$jscoverage['/web.js'].branchData['77'][1].init(703, 78, '!xml || !xml.documentElement || xml.getElementsByTagName(\'parsererror\').length'); +function visit651_77_1(result) { + _$jscoverage['/web.js'].branchData['77'][1].ranCondition(result); return result; -}_$jscoverage['/web.js'].branchData['62'][1].init(49, 13, 'win.DOMParser'); -function visit630_62_1(result) { - _$jscoverage['/web.js'].branchData['62'][1].ranCondition(result); +}_$jscoverage['/web.js'].branchData['64'][1].init(49, 13, 'win.DOMParser'); +function visit650_64_1(result) { + _$jscoverage['/web.js'].branchData['64'][1].ranCondition(result); return result; -}_$jscoverage['/web.js'].branchData['56'][1].init(46, 20, 'data.documentElement'); -function visit629_56_1(result) { - _$jscoverage['/web.js'].branchData['56'][1].ranCondition(result); +}_$jscoverage['/web.js'].branchData['58'][1].init(46, 20, 'data.documentElement'); +function visit649_58_1(result) { + _$jscoverage['/web.js'].branchData['58'][1].ranCondition(result); return result; -}_$jscoverage['/web.js'].branchData['46'][3].init(35, 18, 'obj === obj.window'); -function visit628_46_3(result) { - _$jscoverage['/web.js'].branchData['46'][3].ranCondition(result); +}_$jscoverage['/web.js'].branchData['48'][3].init(106, 17, 'obj == obj.window'); +function visit648_48_3(result) { + _$jscoverage['/web.js'].branchData['48'][3].ranCondition(result); return result; -}_$jscoverage['/web.js'].branchData['46'][2].init(20, 11, 'obj != null'); -function visit627_46_2(result) { - _$jscoverage['/web.js'].branchData['46'][2].ranCondition(result); +}_$jscoverage['/web.js'].branchData['48'][2].init(91, 11, 'obj != null'); +function visit647_48_2(result) { + _$jscoverage['/web.js'].branchData['48'][2].ranCondition(result); return result; -}_$jscoverage['/web.js'].branchData['46'][1].init(20, 33, 'obj != null && obj === obj.window'); -function visit626_46_1(result) { - _$jscoverage['/web.js'].branchData['46'][1].ranCondition(result); +}_$jscoverage['/web.js'].branchData['48'][1].init(91, 32, 'obj != null && obj == obj.window'); +function visit646_48_1(result) { + _$jscoverage['/web.js'].branchData['48'][1].ranCondition(result); return result; }_$jscoverage['/web.js'].branchData['24'][1].init(464, 27, 'doc && doc.addEventListener'); -function visit625_24_1(result) { +function visit645_24_1(result) { _$jscoverage['/web.js'].branchData['24'][1].ranCondition(result); return result; }_$jscoverage['/web.js'].branchData['12'][1].init(87, 26, 'doc && doc.documentElement'); -function visit624_12_1(result) { +function visit644_12_1(result) { _$jscoverage['/web.js'].branchData['12'][1].ranCondition(result); return result; }_$jscoverage['/web.js'].lineData[6]++; @@ -526,7 +526,7 @@ function visit624_12_1(result) { _$jscoverage['/web.js'].lineData[7]++; var logger = S.getLogger('s/web'); _$jscoverage['/web.js'].lineData[8]++; - var win = S.Env.host, UA = S.UA, doc = win.document, docElem = visit624_12_1(doc && doc.documentElement), location = win.location, EMPTY = '', domReady = 0, callbacks = [], POLL_RETIRES = 500, POLL_INTERVAL = 40, RE_ID_STR = /^#?([\w-]+)$/, RE_NOT_WHITESPACE = /\S/, standardEventModel = !!(visit625_24_1(doc && doc.addEventListener)), DOM_READY_EVENT = 'DOMContentLoaded', READY_STATE_CHANGE_EVENT = 'readystatechange', LOAD_EVENT = 'load', COMPLETE = 'complete', addEventListener = standardEventModel ? function(el, type, fn) { + var win = S.Env.host, UA = S.UA, doc = win.document, docElem = visit644_12_1(doc && doc.documentElement), location = win.location, EMPTY = '', domReady = 0, callbacks = [], POLL_RETIRES = 500, POLL_INTERVAL = 40, RE_ID_STR = /^#?([\w-]+)$/, RE_NOT_WHITESPACE = /\S/, standardEventModel = !!(visit645_24_1(doc && doc.addEventListener)), DOM_READY_EVENT = 'DOMContentLoaded', READY_STATE_CHANGE_EVENT = 'readystatechange', LOAD_EVENT = 'load', COMPLETE = 'complete', addEventListener = standardEventModel ? function(el, type, fn) { _$jscoverage['/web.js'].functionData[1]++; _$jscoverage['/web.js'].lineData[30]++; el.addEventListener(type, fn, false); @@ -547,61 +547,61 @@ function visit624_12_1(result) { S.mix(S, { isWindow: function(obj) { _$jscoverage['/web.js'].functionData[5]++; - _$jscoverage['/web.js'].lineData[46]++; - return visit626_46_1(visit627_46_2(obj != null) && visit628_46_3(obj === obj.window)); + _$jscoverage['/web.js'].lineData[48]++; + return visit646_48_1(visit647_48_2(obj != null) && visit648_48_3(obj == obj.window)); }, parseXML: function(data) { _$jscoverage['/web.js'].functionData[6]++; - _$jscoverage['/web.js'].lineData[56]++; - if (visit629_56_1(data.documentElement)) { - _$jscoverage['/web.js'].lineData[57]++; + _$jscoverage['/web.js'].lineData[58]++; + if (visit649_58_1(data.documentElement)) { + _$jscoverage['/web.js'].lineData[59]++; return data; } - _$jscoverage['/web.js'].lineData[59]++; + _$jscoverage['/web.js'].lineData[61]++; var xml; - _$jscoverage['/web.js'].lineData[60]++; + _$jscoverage['/web.js'].lineData[62]++; try { - _$jscoverage['/web.js'].lineData[62]++; - if (visit630_62_1(win.DOMParser)) { - _$jscoverage['/web.js'].lineData[63]++; + _$jscoverage['/web.js'].lineData[64]++; + if (visit650_64_1(win.DOMParser)) { + _$jscoverage['/web.js'].lineData[65]++; xml = new DOMParser().parseFromString(data, 'text/xml'); } else { - _$jscoverage['/web.js'].lineData[66]++; + _$jscoverage['/web.js'].lineData[68]++; xml = new ActiveXObject('Microsoft.XMLDOM'); - _$jscoverage['/web.js'].lineData[67]++; + _$jscoverage['/web.js'].lineData[69]++; xml.async = false; - _$jscoverage['/web.js'].lineData[68]++; + _$jscoverage['/web.js'].lineData[70]++; xml.loadXML(data); } } catch (e) { - _$jscoverage['/web.js'].lineData[71]++; + _$jscoverage['/web.js'].lineData[73]++; logger.error('parseXML error :'); - _$jscoverage['/web.js'].lineData[72]++; + _$jscoverage['/web.js'].lineData[74]++; logger.error(e); - _$jscoverage['/web.js'].lineData[73]++; + _$jscoverage['/web.js'].lineData[75]++; xml = undefined; } - _$jscoverage['/web.js'].lineData[75]++; - if (visit631_75_1(!xml || visit632_75_2(!xml.documentElement || xml.getElementsByTagName('parsererror').length))) { - _$jscoverage['/web.js'].lineData[76]++; + _$jscoverage['/web.js'].lineData[77]++; + if (visit651_77_1(!xml || visit652_77_2(!xml.documentElement || xml.getElementsByTagName('parsererror').length))) { + _$jscoverage['/web.js'].lineData[78]++; S.error('Invalid XML: ' + data); } - _$jscoverage['/web.js'].lineData[78]++; + _$jscoverage['/web.js'].lineData[80]++; return xml; }, globalEval: function(data) { _$jscoverage['/web.js'].functionData[7]++; - _$jscoverage['/web.js'].lineData[86]++; - if (visit633_86_1(data && RE_NOT_WHITESPACE.test(data))) { - _$jscoverage['/web.js'].lineData[89]++; - if (visit634_89_1(win.exeScript)) { - _$jscoverage['/web.js'].lineData[91]++; + _$jscoverage['/web.js'].lineData[88]++; + if (visit653_88_1(data && RE_NOT_WHITESPACE.test(data))) { + _$jscoverage['/web.js'].lineData[92]++; + if (visit654_92_1(win.execScript)) { + _$jscoverage['/web.js'].lineData[93]++; win.execScript(data); } else { - _$jscoverage['/web.js'].lineData[93]++; + _$jscoverage['/web.js'].lineData[95]++; (function(data) { _$jscoverage['/web.js'].functionData[8]++; - _$jscoverage['/web.js'].lineData[94]++; + _$jscoverage['/web.js'].lineData[96]++; win.eval.call(win, data); })(data); } @@ -609,170 +609,170 @@ function visit624_12_1(result) { }, ready: function(fn) { _$jscoverage['/web.js'].functionData[9]++; - _$jscoverage['/web.js'].lineData[107]++; - if (visit635_107_1(domReady)) { - _$jscoverage['/web.js'].lineData[108]++; + _$jscoverage['/web.js'].lineData[109]++; + if (visit655_109_1(domReady)) { + _$jscoverage['/web.js'].lineData[110]++; try { - _$jscoverage['/web.js'].lineData[109]++; + _$jscoverage['/web.js'].lineData[111]++; fn(S); } catch (e) { - _$jscoverage['/web.js'].lineData[111]++; - S.log(visit636_111_1(e.stack || e), 'error'); - _$jscoverage['/web.js'].lineData[112]++; + _$jscoverage['/web.js'].lineData[113]++; + S.log(visit656_113_1(e.stack || e), 'error'); + _$jscoverage['/web.js'].lineData[114]++; setTimeout(function() { _$jscoverage['/web.js'].functionData[10]++; - _$jscoverage['/web.js'].lineData[113]++; + _$jscoverage['/web.js'].lineData[115]++; throw e; }, 0); } } else { - _$jscoverage['/web.js'].lineData[117]++; + _$jscoverage['/web.js'].lineData[119]++; callbacks.push(fn); } - _$jscoverage['/web.js'].lineData[119]++; + _$jscoverage['/web.js'].lineData[121]++; return this; }, available: function(id, fn) { _$jscoverage['/web.js'].functionData[11]++; - _$jscoverage['/web.js'].lineData[129]++; + _$jscoverage['/web.js'].lineData[131]++; id = (id + EMPTY).match(RE_ID_STR)[1]; - _$jscoverage['/web.js'].lineData[130]++; + _$jscoverage['/web.js'].lineData[132]++; var retryCount = 1; - _$jscoverage['/web.js'].lineData[131]++; + _$jscoverage['/web.js'].lineData[133]++; var timer = S.later(function() { _$jscoverage['/web.js'].functionData[12]++; - _$jscoverage['/web.js'].lineData[132]++; - if (visit637_132_1(++retryCount > POLL_RETIRES)) { - _$jscoverage['/web.js'].lineData[133]++; + _$jscoverage['/web.js'].lineData[134]++; + if (visit657_134_1(++retryCount > POLL_RETIRES)) { + _$jscoverage['/web.js'].lineData[135]++; timer.cancel(); - _$jscoverage['/web.js'].lineData[134]++; + _$jscoverage['/web.js'].lineData[136]++; return; } - _$jscoverage['/web.js'].lineData[136]++; + _$jscoverage['/web.js'].lineData[138]++; var node = doc.getElementById(id); - _$jscoverage['/web.js'].lineData[137]++; - if (visit638_137_1(node)) { - _$jscoverage['/web.js'].lineData[138]++; + _$jscoverage['/web.js'].lineData[139]++; + if (visit658_139_1(node)) { + _$jscoverage['/web.js'].lineData[140]++; fn(node); - _$jscoverage['/web.js'].lineData[139]++; + _$jscoverage['/web.js'].lineData[141]++; timer.cancel(); } }, POLL_INTERVAL, true); }}); - _$jscoverage['/web.js'].lineData[145]++; + _$jscoverage['/web.js'].lineData[147]++; function fireReady() { _$jscoverage['/web.js'].functionData[13]++; - _$jscoverage['/web.js'].lineData[146]++; - if (visit639_146_1(domReady)) { - _$jscoverage['/web.js'].lineData[147]++; + _$jscoverage['/web.js'].lineData[148]++; + if (visit659_148_1(domReady)) { + _$jscoverage['/web.js'].lineData[149]++; return; } - _$jscoverage['/web.js'].lineData[150]++; - if (visit640_150_1(doc && !UA.nodejs)) { - _$jscoverage['/web.js'].lineData[151]++; + _$jscoverage['/web.js'].lineData[152]++; + if (visit660_152_1(doc && !UA.nodejs)) { + _$jscoverage['/web.js'].lineData[153]++; removeEventListener(win, LOAD_EVENT, fireReady); } - _$jscoverage['/web.js'].lineData[153]++; + _$jscoverage['/web.js'].lineData[155]++; domReady = 1; - _$jscoverage['/web.js'].lineData[154]++; - for (var i = 0; visit641_154_1(i < callbacks.length); i++) { - _$jscoverage['/web.js'].lineData[155]++; + _$jscoverage['/web.js'].lineData[156]++; + for (var i = 0; visit661_156_1(i < callbacks.length); i++) { + _$jscoverage['/web.js'].lineData[157]++; try { - _$jscoverage['/web.js'].lineData[156]++; + _$jscoverage['/web.js'].lineData[158]++; callbacks[i](S); } catch (e) { - _$jscoverage['/web.js'].lineData[158]++; - S.log(visit642_158_1(e.stack || e), 'error'); _$jscoverage['/web.js'].lineData[160]++; + S.log(visit662_160_1(e.stack || e), 'error'); + _$jscoverage['/web.js'].lineData[162]++; setTimeout(function() { _$jscoverage['/web.js'].functionData[14]++; - _$jscoverage['/web.js'].lineData[161]++; + _$jscoverage['/web.js'].lineData[163]++; throw e; }, 0); } } } - _$jscoverage['/web.js'].lineData[168]++; + _$jscoverage['/web.js'].lineData[170]++; function bindReady() { _$jscoverage['/web.js'].functionData[15]++; - _$jscoverage['/web.js'].lineData[171]++; - if (visit643_171_1(!doc || visit644_171_2(doc.readyState === COMPLETE))) { - _$jscoverage['/web.js'].lineData[172]++; + _$jscoverage['/web.js'].lineData[173]++; + if (visit663_173_1(!doc || visit664_173_2(doc.readyState === COMPLETE))) { + _$jscoverage['/web.js'].lineData[174]++; fireReady(); - _$jscoverage['/web.js'].lineData[173]++; + _$jscoverage['/web.js'].lineData[175]++; return; } - _$jscoverage['/web.js'].lineData[177]++; + _$jscoverage['/web.js'].lineData[179]++; addEventListener(win, LOAD_EVENT, fireReady); - _$jscoverage['/web.js'].lineData[180]++; - if (visit645_180_1(standardEventModel)) { - _$jscoverage['/web.js'].lineData[181]++; + _$jscoverage['/web.js'].lineData[182]++; + if (visit665_182_1(standardEventModel)) { + _$jscoverage['/web.js'].lineData[183]++; var domReady = function() { _$jscoverage['/web.js'].functionData[16]++; - _$jscoverage['/web.js'].lineData[182]++; + _$jscoverage['/web.js'].lineData[184]++; removeEventListener(doc, DOM_READY_EVENT, domReady); - _$jscoverage['/web.js'].lineData[183]++; + _$jscoverage['/web.js'].lineData[185]++; fireReady(); }; - _$jscoverage['/web.js'].lineData[186]++; + _$jscoverage['/web.js'].lineData[188]++; addEventListener(doc, DOM_READY_EVENT, domReady); } else { - _$jscoverage['/web.js'].lineData[190]++; + _$jscoverage['/web.js'].lineData[192]++; var stateChange = function() { _$jscoverage['/web.js'].functionData[17]++; - _$jscoverage['/web.js'].lineData[191]++; - if (visit646_191_1(doc.readyState === COMPLETE)) { - _$jscoverage['/web.js'].lineData[192]++; + _$jscoverage['/web.js'].lineData[193]++; + if (visit666_193_1(doc.readyState === COMPLETE)) { + _$jscoverage['/web.js'].lineData[194]++; removeEventListener(doc, READY_STATE_CHANGE_EVENT, stateChange); - _$jscoverage['/web.js'].lineData[193]++; + _$jscoverage['/web.js'].lineData[195]++; fireReady(); } }; - _$jscoverage['/web.js'].lineData[199]++; + _$jscoverage['/web.js'].lineData[201]++; addEventListener(doc, READY_STATE_CHANGE_EVENT, stateChange); - _$jscoverage['/web.js'].lineData[203]++; - var notframe, doScroll = visit647_204_1(docElem && docElem.doScroll); - _$jscoverage['/web.js'].lineData[206]++; + _$jscoverage['/web.js'].lineData[205]++; + var notframe, doScroll = visit667_206_1(docElem && docElem.doScroll); + _$jscoverage['/web.js'].lineData[208]++; try { - _$jscoverage['/web.js'].lineData[207]++; - notframe = (visit648_207_1(win.frameElement === null)); + _$jscoverage['/web.js'].lineData[209]++; + notframe = (visit668_209_1(win.frameElement === null)); } catch (e) { - _$jscoverage['/web.js'].lineData[209]++; + _$jscoverage['/web.js'].lineData[211]++; notframe = false; } - _$jscoverage['/web.js'].lineData[213]++; - if (visit649_213_1(doScroll && notframe)) { - _$jscoverage['/web.js'].lineData[214]++; + _$jscoverage['/web.js'].lineData[215]++; + if (visit669_215_1(doScroll && notframe)) { + _$jscoverage['/web.js'].lineData[216]++; var readyScroll = function() { _$jscoverage['/web.js'].functionData[18]++; - _$jscoverage['/web.js'].lineData[215]++; + _$jscoverage['/web.js'].lineData[217]++; try { - _$jscoverage['/web.js'].lineData[217]++; + _$jscoverage['/web.js'].lineData[219]++; doScroll('left'); - _$jscoverage['/web.js'].lineData[218]++; + _$jscoverage['/web.js'].lineData[220]++; fireReady(); } catch (ex) { - _$jscoverage['/web.js'].lineData[220]++; + _$jscoverage['/web.js'].lineData[222]++; setTimeout(readyScroll, POLL_INTERVAL); } }; - _$jscoverage['/web.js'].lineData[223]++; + _$jscoverage['/web.js'].lineData[225]++; readyScroll(); } } } - _$jscoverage['/web.js'].lineData[229]++; - if (visit650_229_1(location && visit651_229_2((visit652_229_3(location.search || EMPTY)).indexOf('ks-debug') !== -1))) { - _$jscoverage['/web.js'].lineData[230]++; + _$jscoverage['/web.js'].lineData[231]++; + if (visit670_231_1(location && visit671_231_2((visit672_231_3(location.search || EMPTY)).indexOf('ks-debug') !== -1))) { + _$jscoverage['/web.js'].lineData[232]++; S.Config.debug = true; } - _$jscoverage['/web.js'].lineData[237]++; - bindReady(); _$jscoverage['/web.js'].lineData[239]++; - if (visit653_239_1(UA.ie)) { - _$jscoverage['/web.js'].lineData[240]++; + bindReady(); + _$jscoverage['/web.js'].lineData[241]++; + if (visit673_241_1(UA.ie)) { + _$jscoverage['/web.js'].lineData[242]++; try { - _$jscoverage['/web.js'].lineData[241]++; + _$jscoverage['/web.js'].lineData[243]++; doc.execCommand('BackgroundImageCache', false, true); } catch (e) { } diff --git a/src/seed/src/features.js b/src/seed/src/features.js index c8cea5a6a6..5f85f49cf5 100644 --- a/src/seed/src/features.js +++ b/src/seed/src/features.js @@ -24,6 +24,7 @@ transformProperty, transitionPrefix, transformPrefix, + isTransform3dSupported, documentElement = doc.documentElement, documentElementStyle, isClassListSupportedState = true, @@ -59,6 +60,59 @@ var navigator = (win.navigator || {}); isMsPointerSupported = 'msPointerEnabled' in navigator; isPointerSupported = 'pointerEnabled' in navigator; + + if (transformProperty) { + // https://gist.github.com/lorenzopolidori/3794226 + // ie9 does not support 3d transform + // http://msdn.microsoft.com/en-us/ie/ff468705 + try { + var el = doc.createElement('p'); + documentElement.insertBefore(el, documentElement.firstChild); + el.style[transformProperty] = 'translate3d(1px,1px,1px)'; + var computedStyle = win.getComputedStyle(el); + var has3d = computedStyle.getPropertyValue(transformProperty) || computedStyle[transformProperty]; + documentElement.removeChild(el); + isTransform3dSupported = (has3d !== undefined && has3d.length > 0 && has3d !== 'none'); + }catch (e){ + // https://github.com/kissyteam/kissy/issues/563 + isTransform3dSupported = true; + } + } + } + + var vendorInfos = {}; + // return prefixed css prefix name + function getVendorInfo(name) { + if (vendorInfos[name]) { + return vendorInfos[name]; + } + // if already prefixed or need not to prefix + if (!documentElementStyle || name in documentElementStyle) { + vendorInfos[name] = { + name: name, + prefix: '' + }; + } else { + var upperFirstName = name.charAt(0).toUpperCase() + name.slice(1), + vendorName, + i = VENDORS.length; + + while (i--) { + vendorName = VENDORS[i] + upperFirstName; + if (vendorName in documentElementStyle) { + vendorInfos[name] = { + name: vendorName, + prefix: VENDORS[i] + }; + } + } + + vendorInfos[name] = vendorInfos[name] || { + name: name, + prefix: false + }; + } + return vendorInfos[name]; } /** @@ -134,6 +188,14 @@ return transformPrefix !== undefined; }, + /** + * whether support css transform 3d + * @returns {boolean} + */ + 'isTransform3dSupported': function () { + return isTransform3dSupported; + }, + /** * whether support class list api * @returns {boolean} @@ -191,6 +253,14 @@ */ 'getTransformProperty': function () { return transformProperty; + }, + + getVendorCssPropPrefix: function (name) { + return getVendorInfo(name).prefix; + }, + + getVendorCssPropName: function (name) { + return getVendorInfo(name).name; } }; })(KISSY); \ No newline at end of file diff --git a/src/seed/src/kissy.js b/src/seed/src/kissy.js index 790a57b9a9..df683dc69b 100644 --- a/src/seed/src/kissy.js +++ b/src/seed/src/kissy.js @@ -242,7 +242,7 @@ var KISSY = (function (undefined) { } } /*global console*/ - if (console !== undefined && console.log && matched) { + if (typeof console !== 'undefined' && console.log && matched) { console[cat && console[cat] ? cat : 'log'](msg); return msg; } diff --git a/src/seed/src/lang/set-immediate.js b/src/seed/src/lang/set-immediate.js index 264f494e08..1b11781b88 100644 --- a/src/seed/src/lang/set-immediate.js +++ b/src/seed/src/lang/set-immediate.js @@ -14,14 +14,18 @@ function flush() { var i = 0, item; while ((item = queue[i++])) { - try { + if ('@DEBUG@') { item(); - } catch (e) { - S.log(e.stack || e, 'error'); - /*jshint loopfunc:true*/ - setTimeout(function () { - throw e; - }, 0); + } else { + try { + item(); + } catch (e) { + S.log(e.stack || e, 'error'); + /*jshint loopfunc:true*/ + setTimeout(function () { + throw e; + }, 0); + } } } if (i > 1) { @@ -46,7 +50,6 @@ var requestFlush; if (typeof setImmediate === 'function') { requestFlush = function () { - setImmediate(flush); }; } else if (typeof process !== 'undefined' && typeof process.nextTick === 'function') { diff --git a/src/seed/src/lang/type.js b/src/seed/src/lang/type.js index d77ce2a25e..2d8fc3d3fc 100644 --- a/src/seed/src/lang/type.js +++ b/src/seed/src/lang/type.js @@ -67,7 +67,10 @@ // Must be an Object. // Because of IE, we also have to check the presence of the constructor property. // Make sure that Dom nodes and window objects don't pass through, as well - if (!obj || S.type(obj) !== 'object' || obj.nodeType || obj.window === obj) { + if (!obj || S.type(obj) !== 'object' || obj.nodeType || + /*jshint eqeqeq:false*/ + // must == for ie8 + obj.window == obj) { return FALSE; } diff --git a/src/seed/src/loader/combo-loader.js b/src/seed/src/loader/combo-loader.js index af0cf3d55d..ab62d1a3fc 100644 --- a/src/seed/src/loader/combo-loader.js +++ b/src/seed/src/loader/combo-loader.js @@ -89,7 +89,8 @@ function checkKISSYRequire(config, factory) { // use require primitive statement - if (!config && typeof factory === 'function') { + // function(S,require){require('node')} + if (!config && typeof factory === 'function' && factory.length > 1) { var requires = Utils.getRequiresFromFn(factory); if (requires.length) { config = config || {}; diff --git a/src/seed/src/loader/data-structure.js b/src/seed/src/loader/data-structure.js index 176aebb1d0..93ccc2093d 100644 --- a/src/seed/src/loader/data-structure.js +++ b/src/seed/src/loader/data-structure.js @@ -60,9 +60,9 @@ var self = this, packageName = self.name; return self.getBase() + ( - packageName && !self.isIgnorePackageNameInUri() ? - (packageName + '/') : - '' + packageName && !self.isIgnorePackageNameInUri() ? + (packageName + '/') : + '' ); }, @@ -159,6 +159,30 @@ module.waitedCallbacks = []; } + function makeArray(arr) { + var ret = []; + for (var i = 0; i < arr.length; i++) { + ret[i] = arr[i]; + } + return ret; + } + + function wrapUse(fn) { + if (typeof fn === 'function') { + fn = { + success: fn + }; + } + if (fn && fn.success) { + var original = fn.success; + fn.success = function () { + original.apply(this, makeArray(arguments).slice(1)); + }; + fn.sync = 1; + return fn; + } + } + Module.prototype = { kissy: 1, @@ -195,7 +219,20 @@ * @returns {*} required module exports */ require: function (moduleName) { - return S.require(moduleName, this.name); + var self = this; + if (typeof moduleName === 'string') { + return S.require(moduleName, this.name); + } else { + var mods = moduleName; + for (var i = 0; i < mods.length; i++) { + mods[i] = self.resolveByName(mods[i]); + } + var args = makeArray(arguments); + args[0] = mods; + args[1] = wrapUse(args[1]); + S.use.apply(S, args); + } + }, wait: function (callback) { diff --git a/src/seed/src/loader/init.js b/src/seed/src/loader/init.js index 24c6fa2589..5ca919f024 100644 --- a/src/seed/src/loader/init.js +++ b/src/seed/src/loader/init.js @@ -62,7 +62,7 @@ } if (!('tag' in baseInfo)) { - var queryIndex = src.lastIndexOf('?'); + var queryIndex = src.lastIndexOf('?t='); if (queryIndex !== -1) { var query = src.substring(queryIndex + 1); // kissy 's tag will be determined by build time and user specified tag @@ -107,8 +107,7 @@ comboPrefix: defaultComboPrefix, comboSep: defaultComboSep, charset: 'utf-8', - lang: 'zh-cn', - tag: TIMESTAMP + lang: 'zh-cn' }); if (S.UA.nodejs) { diff --git a/src/seed/src/loader/loader.js b/src/seed/src/loader/loader.js index e1b90c9711..0b8902ef3d 100644 --- a/src/seed/src/loader/loader.js +++ b/src/seed/src/loader/loader.js @@ -4,7 +4,7 @@ * @author yiminghe@gmail.com */ (function (S, undefined) { - var logger = S.getLogger('s/loader'); + var logger = S.getLogger('s/loader'); var Loader = S.Loader, Env = S.Env, @@ -74,6 +74,7 @@ * @param {String|String[]} modNames moduleNames. 1-n modules to bind(use comma to separate) * @param {Function} success callback function executed * when KISSY has the required functionality. + * @param {Function} error callback * @param {KISSY} success.S KISSY instance * @param success.x... modules exports * @member KISSY @@ -82,10 +83,9 @@ * // loads and attached overlay,dd and its dependencies * KISSY.use('overlay,dd', function(S, Overlay){}); */ - use: function (modNames, success) { + use: function (modNames, success, error) { var normalizedModNames, loader, - error, sync, tryCount = 0, finalSuccess, diff --git a/src/seed/src/loader/utils.js b/src/seed/src/loader/utils.js index 2c884f4fc4..f54d7e6b11 100644 --- a/src/seed/src/loader/utils.js +++ b/src/seed/src/loader/utils.js @@ -290,7 +290,7 @@ // compatible and efficiency // KISSY.add(function(S,undefined){}) var require; - if (module.requires && module.requires.length) { + if (module.cjs && factory.length > 1) { require = S.bind(module.require, module); } // 需要解开 index,相对路径 diff --git a/src/seed/src/meta/base.js b/src/seed/src/meta/base.js index e2c29ed453..1cf944577c 100644 --- a/src/seed/src/meta/base.js +++ b/src/seed/src/meta/base.js @@ -26,6 +26,9 @@ gallery: { base: prefix }, + kg: { + base: '//g.alicdn.com/' + }, mobile: { base: prefix } diff --git a/src/seed/src/meta/modules.js b/src/seed/src/meta/modules.js index 725bfa70bf..98303e8178 100644 --- a/src/seed/src/meta/modules.js +++ b/src/seed/src/meta/modules.js @@ -19,7 +19,7 @@ config({ }); /*Generated By KISSY Module Compiler*/ config({ -'anim/transition': {requires: ['dom','event/dom','anim/base']} +'anim/transition': {requires: ['dom','anim/base']} }); /*Generated By KISSY Module Compiler*/ config({ @@ -79,11 +79,11 @@ config({ }); /*Generated By KISSY Module Compiler*/ config({ -'date/picker': {requires: ['node','date/gregorian','i18n!date/picker','component/control','date/format']} +'date/picker': {requires: ['node','date/gregorian','i18n!date/picker','component/control','date/format','date/picker-xtpl']} }); /*Generated By KISSY Module Compiler*/ config({ -'date/popup-picker': {requires: ['date/picker/picker-xtpl','date/picker','component/extension/shim','component/extension/align']} +'date/popup-picker': {requires: ['date/picker-xtpl','date/picker','component/extension/shim','component/extension/align']} }); /*Generated By KISSY Module Compiler*/ config({ @@ -117,11 +117,15 @@ config({ } });/*Generated By KISSY Module Compiler*/ config({ +'dom/base': {requires: ['ua']} +}); +/*Generated By KISSY Module Compiler*/ +config({ 'dom/class-list': {requires: ['dom/base']} }); /*Generated By KISSY Module Compiler*/ config({ -'dom/ie': {requires: ['dom/base','dom/ie/style']} +'dom/ie': {requires: ['dom/base']} }); /*Generated By KISSY Module Compiler*/ config({ @@ -129,7 +133,7 @@ config({ }); /*Generated By KISSY Module Compiler*/ config({ -'editor': {requires: ['node','html-parser','component/control']} +'editor': {requires: ['node','html-parser','component/control','ua']} }); /*Generated By KISSY Module Compiler*/ config({ @@ -276,10 +280,6 @@ config({ }); /*Generated By KISSY Module Compiler*/ config({ -'xtemplate/nodejs': {requires: ['xtemplate']} -}); -/*Generated By KISSY Module Compiler*/ -config({ 'xtemplate/runtime': {requires: ['path']} }); diff --git a/src/seed/src/web.js b/src/seed/src/web.js index c735145034..ff52713513 100644 --- a/src/seed/src/web.js +++ b/src/seed/src/web.js @@ -43,7 +43,9 @@ * @member KISSY */ isWindow: function (obj) { - return obj != null && obj === obj.window; + // must use == for ie8 + /*jshint eqeqeq:false*/ + return obj != null && obj == obj.window; }, /** @@ -86,8 +88,8 @@ if (data && RE_NOT_WHITESPACE.test(data)) { // http://weblogs.java.net/blog/driscoll/archive/2009/09/08/eval-javascript-global-context // http://msdn.microsoft.com/en-us/library/ie/ms536420(v=vs.85).aspx always return null - if (win.exeScript) { - /*jshint evil:true*/ + /*jshint evil:true*/ + if (win.execScript) { win.execScript(data); } else { (function (data) { diff --git a/src/seed/tests/specs/combo/combo-spec.js b/src/seed/tests/specs/combo/combo-spec.js index 81baf4cfbc..c4237b0dad 100644 --- a/src/seed/tests/specs/combo/combo-spec.js +++ b/src/seed/tests/specs/combo/combo-spec.js @@ -138,7 +138,7 @@ describe("S ComboLoader", function () { S.Loader.Utils.createModulesInfo(S, r); var c = l.getComboUrls(r); expect(c.js[''][0].fullpath).toBe(S.Config.base + - "??a.js,b.js,d.js,f.js,g.js,e.js,c.js,h.js,m.js?t=" + S.Config.tag + '.js'); + "??a.js,b.js,d.js,f.js,g.js,e.js,c.js,h.js,m.js"); }); @@ -173,9 +173,9 @@ describe("S ComboLoader", function () { var c = l.getComboUrls(r); var js = c.js['']; expect(js.length).toBe(3); - expect(js[0].fullpath).toBe(S.Config.base + "??a.js,b.js?t=" + S.Config.tag + '.js'); - expect(js[1].fullpath).toBe(S.Config.base + "??d.js,e.js?t=" + S.Config.tag + '.js'); - expect(js[2].fullpath).toBe(S.Config.base + "??c.js?t=" + S.Config.tag + '.js'); + expect(js[0].fullpath).toBe(S.Config.base + "??a.js,b.js"); + expect(js[1].fullpath).toBe(S.Config.base + "??d.js,e.js"); + expect(js[2].fullpath).toBe(S.Config.base + "??c.js"); S.config('comboMaxFileNum', comboMaxFileNum); }); @@ -270,7 +270,7 @@ describe("S ComboLoader", function () { expect(urls['js']['tests'][0].fullpath) .toBe("http://" + host + "/kissy/src/seed/tests/specs/combo/" + - "tests/??a.js,b.js,c.js?t=" + S.Config.tag + '.js'); + "tests/??a.js,b.js,c.js"); S.DOM = null; diff --git a/src/seed/tests/specs/packages-groups/packages-groups-spec.js b/src/seed/tests/specs/packages-groups/packages-groups-spec.js index 142cd6d331..7eb01fe4b5 100644 --- a/src/seed/tests/specs/packages-groups/packages-groups-spec.js +++ b/src/seed/tests/specs/packages-groups/packages-groups-spec.js @@ -80,11 +80,11 @@ describe("modules and groups", function () { var js = c.js[comboName]; expect(js.length).toBe(1); expect(js[0].fullpath.substring(js[0].fullpath.indexOf('??'))) - .toBe("??pkg-a/a.js,pkg-b/b.js?t=" + S.Config.tag + ".js"); + .toBe("??pkg-a/a.js,pkg-b/b.js"); js = c.js['pkg-c']; expect(js.length).toBe(1); expect(js[0].fullpath.substring(js[0].fullpath.indexOf('??'))) - .toBe("??c.js?t=" + S.Config.tag + ".js"); + .toBe("??c.js"); }); it("combo packages which have no combo prefix", function () { @@ -117,11 +117,10 @@ describe("modules and groups", function () { var js = c.js[comboName]; expect(js.length).toBe(1); expect(js[0].fullpath.substring(js[0].fullpath.indexOf('??'))) - .toBe("??a.js?t=" + S.Config.tag + ".js"); + .toBe("??a.js"); js = c.js['test']; expect(js.length).toBe(1); - expect(js[0].fullpath).toBe("http://g.tbcdn.cn/test/??x.js?t=" + - S.Config.tag + ".js"); + expect(js[0].fullpath).toBe("http://g.tbcdn.cn/test/??x.js"); }); it("combo packages with different charset", function () { @@ -157,12 +156,12 @@ describe("modules and groups", function () { var js = c.js[comboName]; expect(js.length).toBe(1); expect(js[0].fullpath.substring(js[0].fullpath.indexOf('??'))) - .toBe("??a.js?t=" + S.Config.tag + ".js"); + .toBe("??a.js"); comboName = 'my_gbk_' + groupTag; js = c.js[comboName]; expect(js.length).toBe(1); expect(js[0].fullpath.substring(js[0].fullpath.indexOf('??'))) - .toBe("??b.js?t=" + S.Config.tag + ".js"); + .toBe("??b.js"); }); it('can perform global combo',function(){ @@ -209,8 +208,7 @@ describe("modules and groups", function () { .toBe("??src/seed/tests/specs/packages-groups/pkg-a/a.js," + "src/seed/tests/specs/packages-groups/pkg-b/b.js," + "build/dom/base.js," + - "src/seed/tests/specs/packages-groups/pkg-c/c.js?t=" + - S.Config.tag + ".js"); + "src/seed/tests/specs/packages-groups/pkg-c/c.js"); }); }); \ No newline at end of file diff --git a/src/seed/tests/specs/timeout/r2.jss b/src/seed/tests/specs/timeout/r2.jss index bac4aca6b5..5dd78a2a4d 100644 --- a/src/seed/tests/specs/timeout/r2.jss +++ b/src/seed/tests/specs/timeout/r2.jss @@ -1,6 +1,6 @@ module.exports=function(req,res){ setTimeout(function(){ res.set('Content-Type','text/javascript'); - res.send('KISSY.add(function(){})'); + res.send('KISSY.add(function(){});'); },5000); }; \ No newline at end of file diff --git a/src/seed/tests/specs/timeout/test.html b/src/seed/tests/specs/timeout/test.html new file mode 100644 index 0000000000..ddb85194f8 --- /dev/null +++ b/src/seed/tests/specs/timeout/test.html @@ -0,0 +1,33 @@ + + + + + + + + Seed Test Runner + + + + + + + + +

    KISSY ComboLoader Test Cases

    + + + + + \ No newline at end of file diff --git a/src/seed/tests/specs/timeout/timeout-spec.js b/src/seed/tests/specs/timeout/timeout-spec.js index 4fe831000d..c32745e51f 100644 --- a/src/seed/tests/specs/timeout/timeout-spec.js +++ b/src/seed/tests/specs/timeout/timeout-spec.js @@ -1,4 +1,4 @@ -describe("timeout", function () { +describe('timeout', function () { var S = KISSY; beforeEach(function () { @@ -11,32 +11,39 @@ describe("timeout", function () { S.config({ timeout: 0 }); + S.clearLoader(); }); it('works for use', function () { S.config({ modules: { 'timeout/use': { - fullpath: 'http://' + location.host + '/kissy/src/seed/tests/specs/timeout/use.jss' + fullpath: 'http://' + location.host + + '/kissy/src/seed/tests/specs/timeout/use.jss?' + S.now() } } }); + var ok = 0, error = 0; + S.use('timeout/use', { - success: function () { + success: function (S, d) { + expect(d).toBe(1); ok = 1; }, error: function () { - var args = S.makeArray(arguments); + //var args = S.makeArray(arguments); ok = 1; error = 1; } }); + waitsFor(function () { return ok; }); + runs(function () { - expect(error).toBe(1); + //expect(error).toBe(1); }); }); @@ -45,32 +52,37 @@ describe("timeout", function () { S.config({ packages: { timeout: { - base: '../specs' + base: 'http://' + location.host + + '/kissy/src/seed/tests/specs/' } }, modules: { 'timeout/r2': { - fullpath: 'http://' + location.host + '/kissy/src/seed/tests/specs/timeout/r2.jss' + fullpath: 'http://' + location.host + + '/kissy/src/seed/tests/specs/timeout/r2.jss?' + S.now() } } }); + var ok = 0, error = 0; + S.use('timeout/r', { success: function () { ok = 1; }, error: function () { - var args = S.makeArray(arguments); + // var args = S.makeArray(arguments); ok = 1; error = 1; } }); + waitsFor(function () { return ok; }); + runs(function () { expect(error).toBe(1); }); - }); }); \ No newline at end of file diff --git a/src/seed/tests/specs/timeout/use.jss b/src/seed/tests/specs/timeout/use.jss index f1f7a58bc4..535de01167 100644 --- a/src/seed/tests/specs/timeout/use.jss +++ b/src/seed/tests/specs/timeout/use.jss @@ -1,6 +1,6 @@ module.exports=function(req,res){ setTimeout(function(){ res.set('Content-Type','text/javascript'); - res.send('KISSY.add(function(){})'); + res.send('KISSY.add(function(){ return 1;})'); },5000); }; \ No newline at end of file diff --git a/src/swf/coverage/src/swf.js b/src/swf/coverage/src/swf.js index 21bca6b492..45b0af2529 100644 --- a/src/swf/coverage/src/swf.js +++ b/src/swf/coverage/src/swf.js @@ -235,91 +235,92 @@ if (! _$jscoverage['/swf.js']) { _$jscoverage['/swf.js'].lineData[9] = 0; _$jscoverage['/swf.js'].lineData[10] = 0; _$jscoverage['/swf.js'].lineData[12] = 0; - _$jscoverage['/swf.js'].lineData[54] = 0; + _$jscoverage['/swf.js'].lineData[51] = 0; + _$jscoverage['/swf.js'].lineData[57] = 0; + _$jscoverage['/swf.js'].lineData[59] = 0; _$jscoverage['/swf.js'].lineData[60] = 0; - _$jscoverage['/swf.js'].lineData[62] = 0; - _$jscoverage['/swf.js'].lineData[63] = 0; - _$jscoverage['/swf.js'].lineData[64] = 0; + _$jscoverage['/swf.js'].lineData[61] = 0; + _$jscoverage['/swf.js'].lineData[75] = 0; _$jscoverage['/swf.js'].lineData[78] = 0; - _$jscoverage['/swf.js'].lineData[81] = 0; - _$jscoverage['/swf.js'].lineData[82] = 0; - _$jscoverage['/swf.js'].lineData[83] = 0; - _$jscoverage['/swf.js'].lineData[87] = 0; + _$jscoverage['/swf.js'].lineData[79] = 0; + _$jscoverage['/swf.js'].lineData[80] = 0; + _$jscoverage['/swf.js'].lineData[84] = 0; + _$jscoverage['/swf.js'].lineData[85] = 0; _$jscoverage['/swf.js'].lineData[88] = 0; - _$jscoverage['/swf.js'].lineData[91] = 0; + _$jscoverage['/swf.js'].lineData[89] = 0; _$jscoverage['/swf.js'].lineData[92] = 0; - _$jscoverage['/swf.js'].lineData[95] = 0; + _$jscoverage['/swf.js'].lineData[94] = 0; _$jscoverage['/swf.js'].lineData[97] = 0; - _$jscoverage['/swf.js'].lineData[100] = 0; + _$jscoverage['/swf.js'].lineData[99] = 0; _$jscoverage['/swf.js'].lineData[102] = 0; - _$jscoverage['/swf.js'].lineData[105] = 0; - _$jscoverage['/swf.js'].lineData[107] = 0; + _$jscoverage['/swf.js'].lineData[104] = 0; + _$jscoverage['/swf.js'].lineData[112] = 0; + _$jscoverage['/swf.js'].lineData[113] = 0; _$jscoverage['/swf.js'].lineData[115] = 0; - _$jscoverage['/swf.js'].lineData[116] = 0; - _$jscoverage['/swf.js'].lineData[118] = 0; + _$jscoverage['/swf.js'].lineData[119] = 0; + _$jscoverage['/swf.js'].lineData[121] = 0; _$jscoverage['/swf.js'].lineData[122] = 0; _$jscoverage['/swf.js'].lineData[124] = 0; - _$jscoverage['/swf.js'].lineData[125] = 0; _$jscoverage['/swf.js'].lineData[127] = 0; + _$jscoverage['/swf.js'].lineData[128] = 0; _$jscoverage['/swf.js'].lineData[130] = 0; - _$jscoverage['/swf.js'].lineData[131] = 0; _$jscoverage['/swf.js'].lineData[133] = 0; + _$jscoverage['/swf.js'].lineData[135] = 0; _$jscoverage['/swf.js'].lineData[136] = 0; - _$jscoverage['/swf.js'].lineData[138] = 0; - _$jscoverage['/swf.js'].lineData[140] = 0; - _$jscoverage['/swf.js'].lineData[141] = 0; + _$jscoverage['/swf.js'].lineData[137] = 0; + _$jscoverage['/swf.js'].lineData[139] = 0; _$jscoverage['/swf.js'].lineData[142] = 0; - _$jscoverage['/swf.js'].lineData[144] = 0; + _$jscoverage['/swf.js'].lineData[147] = 0; + _$jscoverage['/swf.js'].lineData[149] = 0; _$jscoverage['/swf.js'].lineData[150] = 0; - _$jscoverage['/swf.js'].lineData[152] = 0; - _$jscoverage['/swf.js'].lineData[153] = 0; + _$jscoverage['/swf.js'].lineData[159] = 0; _$jscoverage['/swf.js'].lineData[162] = 0; + _$jscoverage['/swf.js'].lineData[163] = 0; + _$jscoverage['/swf.js'].lineData[164] = 0; _$jscoverage['/swf.js'].lineData[165] = 0; - _$jscoverage['/swf.js'].lineData[166] = 0; - _$jscoverage['/swf.js'].lineData[167] = 0; - _$jscoverage['/swf.js'].lineData[168] = 0; - _$jscoverage['/swf.js'].lineData[172] = 0; - _$jscoverage['/swf.js'].lineData[173] = 0; - _$jscoverage['/swf.js'].lineData[174] = 0; - _$jscoverage['/swf.js'].lineData[178] = 0; - _$jscoverage['/swf.js'].lineData[180] = 0; - _$jscoverage['/swf.js'].lineData[186] = 0; - _$jscoverage['/swf.js'].lineData[187] = 0; + _$jscoverage['/swf.js'].lineData[169] = 0; + _$jscoverage['/swf.js'].lineData[170] = 0; + _$jscoverage['/swf.js'].lineData[171] = 0; + _$jscoverage['/swf.js'].lineData[175] = 0; + _$jscoverage['/swf.js'].lineData[177] = 0; + _$jscoverage['/swf.js'].lineData[183] = 0; + _$jscoverage['/swf.js'].lineData[184] = 0; _$jscoverage['/swf.js'].lineData[188] = 0; + _$jscoverage['/swf.js'].lineData[189] = 0; + _$jscoverage['/swf.js'].lineData[191] = 0; _$jscoverage['/swf.js'].lineData[192] = 0; _$jscoverage['/swf.js'].lineData[193] = 0; - _$jscoverage['/swf.js'].lineData[195] = 0; _$jscoverage['/swf.js'].lineData[196] = 0; - _$jscoverage['/swf.js'].lineData[197] = 0; _$jscoverage['/swf.js'].lineData[200] = 0; - _$jscoverage['/swf.js'].lineData[204] = 0; - _$jscoverage['/swf.js'].lineData[277] = 0; - _$jscoverage['/swf.js'].lineData[278] = 0; - _$jscoverage['/swf.js'].lineData[280] = 0; - _$jscoverage['/swf.js'].lineData[283] = 0; - _$jscoverage['/swf.js'].lineData[295] = 0; - _$jscoverage['/swf.js'].lineData[296] = 0; - _$jscoverage['/swf.js'].lineData[298] = 0; + _$jscoverage['/swf.js'].lineData[273] = 0; + _$jscoverage['/swf.js'].lineData[274] = 0; + _$jscoverage['/swf.js'].lineData[276] = 0; + _$jscoverage['/swf.js'].lineData[279] = 0; + _$jscoverage['/swf.js'].lineData[291] = 0; + _$jscoverage['/swf.js'].lineData[292] = 0; + _$jscoverage['/swf.js'].lineData[294] = 0; + _$jscoverage['/swf.js'].lineData[374] = 0; + _$jscoverage['/swf.js'].lineData[375] = 0; + _$jscoverage['/swf.js'].lineData[377] = 0; _$jscoverage['/swf.js'].lineData[378] = 0; _$jscoverage['/swf.js'].lineData[379] = 0; + _$jscoverage['/swf.js'].lineData[380] = 0; _$jscoverage['/swf.js'].lineData[381] = 0; _$jscoverage['/swf.js'].lineData[382] = 0; - _$jscoverage['/swf.js'].lineData[383] = 0; _$jscoverage['/swf.js'].lineData[384] = 0; - _$jscoverage['/swf.js'].lineData[385] = 0; - _$jscoverage['/swf.js'].lineData[386] = 0; - _$jscoverage['/swf.js'].lineData[388] = 0; + _$jscoverage['/swf.js'].lineData[428] = 0; + _$jscoverage['/swf.js'].lineData[429] = 0; _$jscoverage['/swf.js'].lineData[430] = 0; _$jscoverage['/swf.js'].lineData[431] = 0; - _$jscoverage['/swf.js'].lineData[432] = 0; - _$jscoverage['/swf.js'].lineData[433] = 0; - _$jscoverage['/swf.js'].lineData[436] = 0; - _$jscoverage['/swf.js'].lineData[439] = 0; - _$jscoverage['/swf.js'].lineData[440] = 0; + _$jscoverage['/swf.js'].lineData[434] = 0; + _$jscoverage['/swf.js'].lineData[437] = 0; + _$jscoverage['/swf.js'].lineData[438] = 0; + _$jscoverage['/swf.js'].lineData[442] = 0; + _$jscoverage['/swf.js'].lineData[443] = 0; _$jscoverage['/swf.js'].lineData[444] = 0; _$jscoverage['/swf.js'].lineData[445] = 0; - _$jscoverage['/swf.js'].lineData[446] = 0; _$jscoverage['/swf.js'].lineData[447] = 0; + _$jscoverage['/swf.js'].lineData[448] = 0; _$jscoverage['/swf.js'].lineData[449] = 0; _$jscoverage['/swf.js'].lineData[450] = 0; _$jscoverage['/swf.js'].lineData[451] = 0; @@ -328,60 +329,58 @@ if (! _$jscoverage['/swf.js']) { _$jscoverage['/swf.js'].lineData[454] = 0; _$jscoverage['/swf.js'].lineData[455] = 0; _$jscoverage['/swf.js'].lineData[456] = 0; - _$jscoverage['/swf.js'].lineData[457] = 0; - _$jscoverage['/swf.js'].lineData[458] = 0; - _$jscoverage['/swf.js'].lineData[462] = 0; + _$jscoverage['/swf.js'].lineData[460] = 0; + _$jscoverage['/swf.js'].lineData[461] = 0; _$jscoverage['/swf.js'].lineData[463] = 0; - _$jscoverage['/swf.js'].lineData[465] = 0; + _$jscoverage['/swf.js'].lineData[467] = 0; + _$jscoverage['/swf.js'].lineData[468] = 0; + _$jscoverage['/swf.js'].lineData[469] = 0; _$jscoverage['/swf.js'].lineData[470] = 0; _$jscoverage['/swf.js'].lineData[471] = 0; _$jscoverage['/swf.js'].lineData[472] = 0; - _$jscoverage['/swf.js'].lineData[473] = 0; - _$jscoverage['/swf.js'].lineData[474] = 0; _$jscoverage['/swf.js'].lineData[475] = 0; - _$jscoverage['/swf.js'].lineData[478] = 0; + _$jscoverage['/swf.js'].lineData[476] = 0; _$jscoverage['/swf.js'].lineData[479] = 0; _$jscoverage['/swf.js'].lineData[482] = 0; + _$jscoverage['/swf.js'].lineData[483] = 0; _$jscoverage['/swf.js'].lineData[486] = 0; _$jscoverage['/swf.js'].lineData[487] = 0; - _$jscoverage['/swf.js'].lineData[490] = 0; - _$jscoverage['/swf.js'].lineData[491] = 0; + _$jscoverage['/swf.js'].lineData[492] = 0; + _$jscoverage['/swf.js'].lineData[493] = 0; _$jscoverage['/swf.js'].lineData[496] = 0; _$jscoverage['/swf.js'].lineData[497] = 0; - _$jscoverage['/swf.js'].lineData[500] = 0; + _$jscoverage['/swf.js'].lineData[498] = 0; _$jscoverage['/swf.js'].lineData[501] = 0; - _$jscoverage['/swf.js'].lineData[502] = 0; - _$jscoverage['/swf.js'].lineData[505] = 0; - _$jscoverage['/swf.js'].lineData[507] = 0; + _$jscoverage['/swf.js'].lineData[503] = 0; + _$jscoverage['/swf.js'].lineData[506] = 0; + _$jscoverage['/swf.js'].lineData[508] = 0; _$jscoverage['/swf.js'].lineData[510] = 0; - _$jscoverage['/swf.js'].lineData[512] = 0; _$jscoverage['/swf.js'].lineData[514] = 0; + _$jscoverage['/swf.js'].lineData[515] = 0; + _$jscoverage['/swf.js'].lineData[516] = 0; + _$jscoverage['/swf.js'].lineData[517] = 0; _$jscoverage['/swf.js'].lineData[518] = 0; _$jscoverage['/swf.js'].lineData[519] = 0; _$jscoverage['/swf.js'].lineData[520] = 0; - _$jscoverage['/swf.js'].lineData[521] = 0; _$jscoverage['/swf.js'].lineData[522] = 0; _$jscoverage['/swf.js'].lineData[523] = 0; _$jscoverage['/swf.js'].lineData[524] = 0; - _$jscoverage['/swf.js'].lineData[526] = 0; + _$jscoverage['/swf.js'].lineData[525] = 0; _$jscoverage['/swf.js'].lineData[527] = 0; - _$jscoverage['/swf.js'].lineData[528] = 0; - _$jscoverage['/swf.js'].lineData[529] = 0; - _$jscoverage['/swf.js'].lineData[531] = 0; + _$jscoverage['/swf.js'].lineData[534] = 0; + _$jscoverage['/swf.js'].lineData[535] = 0; + _$jscoverage['/swf.js'].lineData[537] = 0; _$jscoverage['/swf.js'].lineData[538] = 0; _$jscoverage['/swf.js'].lineData[539] = 0; + _$jscoverage['/swf.js'].lineData[541] = 0; _$jscoverage['/swf.js'].lineData[542] = 0; - _$jscoverage['/swf.js'].lineData[543] = 0; - _$jscoverage['/swf.js'].lineData[544] = 0; + _$jscoverage['/swf.js'].lineData[545] = 0; _$jscoverage['/swf.js'].lineData[546] = 0; - _$jscoverage['/swf.js'].lineData[547] = 0; + _$jscoverage['/swf.js'].lineData[549] = 0; _$jscoverage['/swf.js'].lineData[550] = 0; - _$jscoverage['/swf.js'].lineData[551] = 0; + _$jscoverage['/swf.js'].lineData[553] = 0; _$jscoverage['/swf.js'].lineData[554] = 0; - _$jscoverage['/swf.js'].lineData[555] = 0; - _$jscoverage['/swf.js'].lineData[558] = 0; - _$jscoverage['/swf.js'].lineData[559] = 0; - _$jscoverage['/swf.js'].lineData[562] = 0; + _$jscoverage['/swf.js'].lineData[557] = 0; } if (! _$jscoverage['/swf.js'].functionData) { _$jscoverage['/swf.js'].functionData = []; @@ -409,268 +408,268 @@ if (! _$jscoverage['/swf.js'].functionData) { } if (! _$jscoverage['/swf.js'].branchData) { _$jscoverage['/swf.js'].branchData = {}; + _$jscoverage['/swf.js'].branchData['75'] = []; + _$jscoverage['/swf.js'].branchData['75'][1] = new BranchData(); _$jscoverage['/swf.js'].branchData['78'] = []; _$jscoverage['/swf.js'].branchData['78'][1] = new BranchData(); - _$jscoverage['/swf.js'].branchData['81'] = []; - _$jscoverage['/swf.js'].branchData['81'][1] = new BranchData(); - _$jscoverage['/swf.js'].branchData['87'] = []; - _$jscoverage['/swf.js'].branchData['87'][1] = new BranchData(); - _$jscoverage['/swf.js'].branchData['91'] = []; - _$jscoverage['/swf.js'].branchData['91'][1] = new BranchData(); - _$jscoverage['/swf.js'].branchData['95'] = []; - _$jscoverage['/swf.js'].branchData['95'][1] = new BranchData(); - _$jscoverage['/swf.js'].branchData['96'] = []; - _$jscoverage['/swf.js'].branchData['96'][1] = new BranchData(); - _$jscoverage['/swf.js'].branchData['96'][2] = new BranchData(); - _$jscoverage['/swf.js'].branchData['100'] = []; - _$jscoverage['/swf.js'].branchData['100'][1] = new BranchData(); - _$jscoverage['/swf.js'].branchData['101'] = []; - _$jscoverage['/swf.js'].branchData['101'][1] = new BranchData(); - _$jscoverage['/swf.js'].branchData['101'][2] = new BranchData(); - _$jscoverage['/swf.js'].branchData['105'] = []; - _$jscoverage['/swf.js'].branchData['105'][1] = new BranchData(); - _$jscoverage['/swf.js'].branchData['115'] = []; - _$jscoverage['/swf.js'].branchData['115'][1] = new BranchData(); - _$jscoverage['/swf.js'].branchData['124'] = []; - _$jscoverage['/swf.js'].branchData['124'][1] = new BranchData(); - _$jscoverage['/swf.js'].branchData['130'] = []; - _$jscoverage['/swf.js'].branchData['130'][1] = new BranchData(); - _$jscoverage['/swf.js'].branchData['140'] = []; - _$jscoverage['/swf.js'].branchData['140'][1] = new BranchData(); - _$jscoverage['/swf.js'].branchData['141'] = []; - _$jscoverage['/swf.js'].branchData['141'][1] = new BranchData(); - _$jscoverage['/swf.js'].branchData['152'] = []; - _$jscoverage['/swf.js'].branchData['152'][1] = new BranchData(); - _$jscoverage['/swf.js'].branchData['165'] = []; - _$jscoverage['/swf.js'].branchData['165'][1] = new BranchData(); - _$jscoverage['/swf.js'].branchData['167'] = []; - _$jscoverage['/swf.js'].branchData['167'][1] = new BranchData(); - _$jscoverage['/swf.js'].branchData['173'] = []; - _$jscoverage['/swf.js'].branchData['173'][1] = new BranchData(); + _$jscoverage['/swf.js'].branchData['84'] = []; + _$jscoverage['/swf.js'].branchData['84'][1] = new BranchData(); + _$jscoverage['/swf.js'].branchData['88'] = []; + _$jscoverage['/swf.js'].branchData['88'][1] = new BranchData(); + _$jscoverage['/swf.js'].branchData['92'] = []; + _$jscoverage['/swf.js'].branchData['92'][1] = new BranchData(); + _$jscoverage['/swf.js'].branchData['93'] = []; + _$jscoverage['/swf.js'].branchData['93'][1] = new BranchData(); + _$jscoverage['/swf.js'].branchData['93'][2] = new BranchData(); + _$jscoverage['/swf.js'].branchData['97'] = []; + _$jscoverage['/swf.js'].branchData['97'][1] = new BranchData(); + _$jscoverage['/swf.js'].branchData['98'] = []; + _$jscoverage['/swf.js'].branchData['98'][1] = new BranchData(); + _$jscoverage['/swf.js'].branchData['98'][2] = new BranchData(); + _$jscoverage['/swf.js'].branchData['102'] = []; + _$jscoverage['/swf.js'].branchData['102'][1] = new BranchData(); + _$jscoverage['/swf.js'].branchData['112'] = []; + _$jscoverage['/swf.js'].branchData['112'][1] = new BranchData(); + _$jscoverage['/swf.js'].branchData['121'] = []; + _$jscoverage['/swf.js'].branchData['121'][1] = new BranchData(); + _$jscoverage['/swf.js'].branchData['127'] = []; + _$jscoverage['/swf.js'].branchData['127'][1] = new BranchData(); + _$jscoverage['/swf.js'].branchData['135'] = []; + _$jscoverage['/swf.js'].branchData['135'][1] = new BranchData(); + _$jscoverage['/swf.js'].branchData['136'] = []; + _$jscoverage['/swf.js'].branchData['136'][1] = new BranchData(); + _$jscoverage['/swf.js'].branchData['149'] = []; + _$jscoverage['/swf.js'].branchData['149'][1] = new BranchData(); + _$jscoverage['/swf.js'].branchData['162'] = []; + _$jscoverage['/swf.js'].branchData['162'][1] = new BranchData(); + _$jscoverage['/swf.js'].branchData['164'] = []; + _$jscoverage['/swf.js'].branchData['164'][1] = new BranchData(); + _$jscoverage['/swf.js'].branchData['170'] = []; + _$jscoverage['/swf.js'].branchData['170'][1] = new BranchData(); + _$jscoverage['/swf.js'].branchData['188'] = []; + _$jscoverage['/swf.js'].branchData['188'][1] = new BranchData(); _$jscoverage['/swf.js'].branchData['192'] = []; _$jscoverage['/swf.js'].branchData['192'][1] = new BranchData(); - _$jscoverage['/swf.js'].branchData['196'] = []; - _$jscoverage['/swf.js'].branchData['196'][1] = new BranchData(); - _$jscoverage['/swf.js'].branchData['277'] = []; - _$jscoverage['/swf.js'].branchData['277'][1] = new BranchData(); - _$jscoverage['/swf.js'].branchData['295'] = []; - _$jscoverage['/swf.js'].branchData['295'][1] = new BranchData(); - _$jscoverage['/swf.js'].branchData['380'] = []; - _$jscoverage['/swf.js'].branchData['380'][1] = new BranchData(); + _$jscoverage['/swf.js'].branchData['273'] = []; + _$jscoverage['/swf.js'].branchData['273'][1] = new BranchData(); + _$jscoverage['/swf.js'].branchData['291'] = []; + _$jscoverage['/swf.js'].branchData['291'][1] = new BranchData(); + _$jscoverage['/swf.js'].branchData['376'] = []; + _$jscoverage['/swf.js'].branchData['376'][1] = new BranchData(); + _$jscoverage['/swf.js'].branchData['377'] = []; + _$jscoverage['/swf.js'].branchData['377'][1] = new BranchData(); + _$jscoverage['/swf.js'].branchData['379'] = []; + _$jscoverage['/swf.js'].branchData['379'][1] = new BranchData(); _$jscoverage['/swf.js'].branchData['381'] = []; _$jscoverage['/swf.js'].branchData['381'][1] = new BranchData(); - _$jscoverage['/swf.js'].branchData['383'] = []; - _$jscoverage['/swf.js'].branchData['383'][1] = new BranchData(); - _$jscoverage['/swf.js'].branchData['385'] = []; - _$jscoverage['/swf.js'].branchData['385'][1] = new BranchData(); - _$jscoverage['/swf.js'].branchData['432'] = []; - _$jscoverage['/swf.js'].branchData['432'][1] = new BranchData(); + _$jscoverage['/swf.js'].branchData['430'] = []; + _$jscoverage['/swf.js'].branchData['430'][1] = new BranchData(); + _$jscoverage['/swf.js'].branchData['442'] = []; + _$jscoverage['/swf.js'].branchData['442'][1] = new BranchData(); _$jscoverage['/swf.js'].branchData['444'] = []; _$jscoverage['/swf.js'].branchData['444'][1] = new BranchData(); - _$jscoverage['/swf.js'].branchData['446'] = []; - _$jscoverage['/swf.js'].branchData['446'][1] = new BranchData(); + _$jscoverage['/swf.js'].branchData['448'] = []; + _$jscoverage['/swf.js'].branchData['448'][1] = new BranchData(); _$jscoverage['/swf.js'].branchData['450'] = []; _$jscoverage['/swf.js'].branchData['450'][1] = new BranchData(); - _$jscoverage['/swf.js'].branchData['452'] = []; - _$jscoverage['/swf.js'].branchData['452'][1] = new BranchData(); + _$jscoverage['/swf.js'].branchData['451'] = []; + _$jscoverage['/swf.js'].branchData['451'][1] = new BranchData(); + _$jscoverage['/swf.js'].branchData['451'][2] = new BranchData(); _$jscoverage['/swf.js'].branchData['453'] = []; _$jscoverage['/swf.js'].branchData['453'][1] = new BranchData(); - _$jscoverage['/swf.js'].branchData['453'][2] = new BranchData(); _$jscoverage['/swf.js'].branchData['455'] = []; _$jscoverage['/swf.js'].branchData['455'][1] = new BranchData(); - _$jscoverage['/swf.js'].branchData['457'] = []; - _$jscoverage['/swf.js'].branchData['457'][1] = new BranchData(); - _$jscoverage['/swf.js'].branchData['462'] = []; - _$jscoverage['/swf.js'].branchData['462'][1] = new BranchData(); - _$jscoverage['/swf.js'].branchData['474'] = []; - _$jscoverage['/swf.js'].branchData['474'][1] = new BranchData(); - _$jscoverage['/swf.js'].branchData['478'] = []; - _$jscoverage['/swf.js'].branchData['478'][1] = new BranchData(); - _$jscoverage['/swf.js'].branchData['500'] = []; - _$jscoverage['/swf.js'].branchData['500'][1] = new BranchData(); - _$jscoverage['/swf.js'].branchData['520'] = []; - _$jscoverage['/swf.js'].branchData['520'][1] = new BranchData(); - _$jscoverage['/swf.js'].branchData['543'] = []; - _$jscoverage['/swf.js'].branchData['543'][1] = new BranchData(); - _$jscoverage['/swf.js'].branchData['546'] = []; - _$jscoverage['/swf.js'].branchData['546'][1] = new BranchData(); + _$jscoverage['/swf.js'].branchData['460'] = []; + _$jscoverage['/swf.js'].branchData['460'][1] = new BranchData(); + _$jscoverage['/swf.js'].branchData['471'] = []; + _$jscoverage['/swf.js'].branchData['471'][1] = new BranchData(); + _$jscoverage['/swf.js'].branchData['475'] = []; + _$jscoverage['/swf.js'].branchData['475'][1] = new BranchData(); + _$jscoverage['/swf.js'].branchData['496'] = []; + _$jscoverage['/swf.js'].branchData['496'][1] = new BranchData(); + _$jscoverage['/swf.js'].branchData['516'] = []; + _$jscoverage['/swf.js'].branchData['516'][1] = new BranchData(); + _$jscoverage['/swf.js'].branchData['538'] = []; + _$jscoverage['/swf.js'].branchData['538'][1] = new BranchData(); + _$jscoverage['/swf.js'].branchData['541'] = []; + _$jscoverage['/swf.js'].branchData['541'][1] = new BranchData(); } -_$jscoverage['/swf.js'].branchData['546'][1].init(120, 4, 'data'); -function visit55_546_1(result) { - _$jscoverage['/swf.js'].branchData['546'][1].ranCondition(result); +_$jscoverage['/swf.js'].branchData['541'][1].init(120, 4, 'data'); +function visit54_541_1(result) { + _$jscoverage['/swf.js'].branchData['541'][1].ranCondition(result); return result; -}_$jscoverage['/swf.js'].branchData['543'][1].init(17, 24, 'typeof data !== \'string\''); -function visit54_543_1(result) { - _$jscoverage['/swf.js'].branchData['543'][1].ranCondition(result); +}_$jscoverage['/swf.js'].branchData['538'][1].init(17, 24, 'typeof data !== \'string\''); +function visit53_538_1(result) { + _$jscoverage['/swf.js'].branchData['538'][1].ranCondition(result); return result; -}_$jscoverage['/swf.js'].branchData['520'][1].init(42, 6, 'OLD_IE'); -function visit53_520_1(result) { - _$jscoverage['/swf.js'].branchData['520'][1].ranCondition(result); +}_$jscoverage['/swf.js'].branchData['516'][1].init(42, 6, 'OLD_IE'); +function visit52_516_1(result) { + _$jscoverage['/swf.js'].branchData['516'][1].ranCondition(result); return result; -}_$jscoverage['/swf.js'].branchData['500'][1].init(189, 2, 'ie'); -function visit52_500_1(result) { - _$jscoverage['/swf.js'].branchData['500'][1].ranCondition(result); +}_$jscoverage['/swf.js'].branchData['496'][1].init(189, 2, 'ie'); +function visit51_496_1(result) { + _$jscoverage['/swf.js'].branchData['496'][1].ranCondition(result); return result; -}_$jscoverage['/swf.js'].branchData['478'][1].init(163, 15, 'k === FLASHVARS'); -function visit51_478_1(result) { - _$jscoverage['/swf.js'].branchData['478'][1].ranCondition(result); +}_$jscoverage['/swf.js'].branchData['475'][1].init(163, 15, 'k === FLASHVARS'); +function visit50_475_1(result) { + _$jscoverage['/swf.js'].branchData['475'][1].ranCondition(result); return result; -}_$jscoverage['/swf.js'].branchData['474'][1].init(50, 11, 'k in PARAMS'); -function visit50_474_1(result) { - _$jscoverage['/swf.js'].branchData['474'][1].ranCondition(result); +}_$jscoverage['/swf.js'].branchData['471'][1].init(50, 11, 'k in PARAMS'); +function visit49_471_1(result) { + _$jscoverage['/swf.js'].branchData['471'][1].ranCondition(result); return result; -}_$jscoverage['/swf.js'].branchData['462'][1].init(873, 20, 'nodeName === \'embed\''); -function visit49_462_1(result) { - _$jscoverage['/swf.js'].branchData['462'][1].ranCondition(result); +}_$jscoverage['/swf.js'].branchData['460'][1].init(873, 20, 'nodeName === \'embed\''); +function visit48_460_1(result) { + _$jscoverage['/swf.js'].branchData['460'][1].ranCondition(result); return result; -}_$jscoverage['/swf.js'].branchData['457'][1].init(277, 36, 'Dom.nodeName(params[i]) === \'object\''); -function visit48_457_1(result) { - _$jscoverage['/swf.js'].branchData['457'][1].ranCondition(result); - return result; -}_$jscoverage['/swf.js'].branchData['455'][1].init(164, 31, 'Dom.nodeName(param) === \'embed\''); +}_$jscoverage['/swf.js'].branchData['455'][1].init(277, 36, 'Dom.nodeName(params[i]) === \'object\''); function visit47_455_1(result) { _$jscoverage['/swf.js'].branchData['455'][1].ranCondition(result); return result; -}_$jscoverage['/swf.js'].branchData['453'][2].init(26, 29, 'Dom.attr(param, \'name\') || \'\''); -function visit46_453_2(result) { - _$jscoverage['/swf.js'].branchData['453'][2].ranCondition(result); - return result; -}_$jscoverage['/swf.js'].branchData['453'][1].init(26, 56, '(Dom.attr(param, \'name\') || \'\').toLowerCase() === \'movie\''); -function visit45_453_1(result) { +}_$jscoverage['/swf.js'].branchData['453'][1].init(164, 31, 'Dom.nodeName(param) === \'embed\''); +function visit46_453_1(result) { _$jscoverage['/swf.js'].branchData['453'][1].ranCondition(result); return result; -}_$jscoverage['/swf.js'].branchData['452'][1].init(56, 20, 'param.nodeType === 1'); -function visit44_452_1(result) { - _$jscoverage['/swf.js'].branchData['452'][1].ranCondition(result); +}_$jscoverage['/swf.js'].branchData['451'][2].init(26, 29, 'Dom.attr(param, \'name\') || \'\''); +function visit45_451_2(result) { + _$jscoverage['/swf.js'].branchData['451'][2].ranCondition(result); return result; -}_$jscoverage['/swf.js'].branchData['450'][1].init(176, 17, 'i < params.length'); +}_$jscoverage['/swf.js'].branchData['451'][1].init(26, 56, '(Dom.attr(param, \'name\') || \'\').toLowerCase() === \'movie\''); +function visit44_451_1(result) { + _$jscoverage['/swf.js'].branchData['451'][1].ranCondition(result); + return result; +}_$jscoverage['/swf.js'].branchData['450'][1].init(56, 20, 'param.nodeType === 1'); function visit43_450_1(result) { _$jscoverage['/swf.js'].branchData['450'][1].ranCondition(result); return result; -}_$jscoverage['/swf.js'].branchData['446'][1].init(58, 3, 'url'); -function visit42_446_1(result) { - _$jscoverage['/swf.js'].branchData['446'][1].ranCondition(result); +}_$jscoverage['/swf.js'].branchData['448'][1].init(176, 17, 'i < params.length'); +function visit42_448_1(result) { + _$jscoverage['/swf.js'].branchData['448'][1].ranCondition(result); return result; -}_$jscoverage['/swf.js'].branchData['444'][1].init(134, 21, 'nodeName === \'object\''); +}_$jscoverage['/swf.js'].branchData['444'][1].init(58, 3, 'url'); function visit41_444_1(result) { _$jscoverage['/swf.js'].branchData['444'][1].ranCondition(result); return result; -}_$jscoverage['/swf.js'].branchData['432'][1].init(17, 28, 'typeof obj[i] === \'function\''); -function visit40_432_1(result) { - _$jscoverage['/swf.js'].branchData['432'][1].ranCondition(result); - return result; -}_$jscoverage['/swf.js'].branchData['385'][1].init(371, 20, 'nodeName === \'param\''); -function visit39_385_1(result) { - _$jscoverage['/swf.js'].branchData['385'][1].ranCondition(result); +}_$jscoverage['/swf.js'].branchData['442'][1].init(134, 21, 'nodeName === \'object\''); +function visit40_442_1(result) { + _$jscoverage['/swf.js'].branchData['442'][1].ranCondition(result); return result; -}_$jscoverage['/swf.js'].branchData['383'][1].init(269, 21, 'nodeName === \'object\''); -function visit38_383_1(result) { - _$jscoverage['/swf.js'].branchData['383'][1].ranCondition(result); +}_$jscoverage['/swf.js'].branchData['430'][1].init(17, 28, 'typeof obj[i] === \'function\''); +function visit39_430_1(result) { + _$jscoverage['/swf.js'].branchData['430'][1].ranCondition(result); return result; -}_$jscoverage['/swf.js'].branchData['381'][1].init(169, 20, 'nodeName === \'embed\''); -function visit37_381_1(result) { +}_$jscoverage['/swf.js'].branchData['381'][1].init(371, 20, 'nodeName === \'param\''); +function visit38_381_1(result) { _$jscoverage['/swf.js'].branchData['381'][1].ranCondition(result); return result; -}_$jscoverage['/swf.js'].branchData['380'][1].init(67, 38, 'srcElement && Dom.nodeName(srcElement)'); -function visit36_380_1(result) { - _$jscoverage['/swf.js'].branchData['380'][1].ranCondition(result); +}_$jscoverage['/swf.js'].branchData['379'][1].init(269, 21, 'nodeName === \'object\''); +function visit37_379_1(result) { + _$jscoverage['/swf.js'].branchData['379'][1].ranCondition(result); return result; -}_$jscoverage['/swf.js'].branchData['295'][1].init(25, 21, 'typeof v === \'string\''); -function visit35_295_1(result) { - _$jscoverage['/swf.js'].branchData['295'][1].ranCondition(result); +}_$jscoverage['/swf.js'].branchData['377'][1].init(169, 20, 'nodeName === \'embed\''); +function visit36_377_1(result) { + _$jscoverage['/swf.js'].branchData['377'][1].ranCondition(result); return result; -}_$jscoverage['/swf.js'].branchData['277'][1].init(25, 21, 'typeof v === \'string\''); -function visit34_277_1(result) { - _$jscoverage['/swf.js'].branchData['277'][1].ranCondition(result); +}_$jscoverage['/swf.js'].branchData['376'][1].init(67, 38, 'srcElement && Dom.nodeName(srcElement)'); +function visit35_376_1(result) { + _$jscoverage['/swf.js'].branchData['376'][1].ranCondition(result); return result; -}_$jscoverage['/swf.js'].branchData['196'][1].init(25, 26, 'swfObject.readyState === 4'); -function visit33_196_1(result) { - _$jscoverage['/swf.js'].branchData['196'][1].ranCondition(result); +}_$jscoverage['/swf.js'].branchData['291'][1].init(25, 21, 'typeof v === \'string\''); +function visit34_291_1(result) { + _$jscoverage['/swf.js'].branchData['291'][1].ranCondition(result); return result; -}_$jscoverage['/swf.js'].branchData['192'][1].init(273, 6, 'OLD_IE'); +}_$jscoverage['/swf.js'].branchData['273'][1].init(25, 21, 'typeof v === \'string\''); +function visit33_273_1(result) { + _$jscoverage['/swf.js'].branchData['273'][1].ranCondition(result); + return result; +}_$jscoverage['/swf.js'].branchData['192'][1].init(25, 26, 'swfObject.readyState === 4'); function visit32_192_1(result) { _$jscoverage['/swf.js'].branchData['192'][1].ranCondition(result); return result; -}_$jscoverage['/swf.js'].branchData['173'][1].init(154, 17, 'args.length !== 0'); -function visit31_173_1(result) { - _$jscoverage['/swf.js'].branchData['173'][1].ranCondition(result); +}_$jscoverage['/swf.js'].branchData['188'][1].init(246, 6, 'OLD_IE'); +function visit31_188_1(result) { + _$jscoverage['/swf.js'].branchData['188'][1].ranCondition(result); return result; -}_$jscoverage['/swf.js'].branchData['167'][1].init(21, 9, 'swf[func]'); -function visit30_167_1(result) { - _$jscoverage['/swf.js'].branchData['167'][1].ranCondition(result); +}_$jscoverage['/swf.js'].branchData['170'][1].init(154, 17, 'args.length !== 0'); +function visit30_170_1(result) { + _$jscoverage['/swf.js'].branchData['170'][1].ranCondition(result); return result; -}_$jscoverage['/swf.js'].branchData['165'][1].init(103, 10, 'args || []'); -function visit29_165_1(result) { - _$jscoverage['/swf.js'].branchData['165'][1].ranCondition(result); +}_$jscoverage['/swf.js'].branchData['164'][1].init(21, 9, 'swf[func]'); +function visit29_164_1(result) { + _$jscoverage['/swf.js'].branchData['164'][1].ranCondition(result); return result; -}_$jscoverage['/swf.js'].branchData['152'][1].init(3182, 19, '!self.get(\'status\')'); -function visit28_152_1(result) { - _$jscoverage['/swf.js'].branchData['152'][1].ranCondition(result); +}_$jscoverage['/swf.js'].branchData['162'][1].init(103, 10, 'args || []'); +function visit28_162_1(result) { + _$jscoverage['/swf.js'].branchData['162'][1].ranCondition(result); return result; -}_$jscoverage['/swf.js'].branchData['141'][1].init(21, 6, 'OLD_IE'); -function visit27_141_1(result) { - _$jscoverage['/swf.js'].branchData['141'][1].ranCondition(result); +}_$jscoverage['/swf.js'].branchData['149'][1].init(3190, 19, '!self.get(\'status\')'); +function visit27_149_1(result) { + _$jscoverage['/swf.js'].branchData['149'][1].ranCondition(result); return result; -}_$jscoverage['/swf.js'].branchData['140'][1].init(2813, 19, 'htmlMode === \'full\''); -function visit26_140_1(result) { - _$jscoverage['/swf.js'].branchData['140'][1].ranCondition(result); +}_$jscoverage['/swf.js'].branchData['136'][1].init(21, 6, 'OLD_IE'); +function visit26_136_1(result) { + _$jscoverage['/swf.js'].branchData['136'][1].ranCondition(result); return result; -}_$jscoverage['/swf.js'].branchData['130'][1].init(2517, 26, '\'outerHTML\' in placeHolder'); -function visit25_130_1(result) { - _$jscoverage['/swf.js'].branchData['130'][1].ranCondition(result); +}_$jscoverage['/swf.js'].branchData['135'][1].init(2756, 19, 'htmlMode === \'full\''); +function visit25_135_1(result) { + _$jscoverage['/swf.js'].branchData['135'][1].ranCondition(result); return result; -}_$jscoverage['/swf.js'].branchData['124'][1].init(2335, 8, 'elBefore'); -function visit24_124_1(result) { - _$jscoverage['/swf.js'].branchData['124'][1].ranCondition(result); +}_$jscoverage['/swf.js'].branchData['127'][1].init(2501, 26, '\'outerHTML\' in placeHolder'); +function visit24_127_1(result) { + _$jscoverage['/swf.js'].branchData['127'][1].ranCondition(result); return result; -}_$jscoverage['/swf.js'].branchData['115'][1].init(2031, 19, 'htmlMode === \'full\''); -function visit23_115_1(result) { - _$jscoverage['/swf.js'].branchData['115'][1].ranCondition(result); +}_$jscoverage['/swf.js'].branchData['121'][1].init(2319, 8, 'elBefore'); +function visit23_121_1(result) { + _$jscoverage['/swf.js'].branchData['121'][1].ranCondition(result); return result; -}_$jscoverage['/swf.js'].branchData['105'][1].init(552, 22, 'params.flashVars || {}'); -function visit22_105_1(result) { - _$jscoverage['/swf.js'].branchData['105'][1].ranCondition(result); +}_$jscoverage['/swf.js'].branchData['112'][1].init(2016, 19, 'htmlMode === \'full\''); +function visit22_112_1(result) { + _$jscoverage['/swf.js'].branchData['112'][1].ranCondition(result); return result; -}_$jscoverage['/swf.js'].branchData['101'][2].init(76, 32, 'parseInt(attrs.height, 10) < 137'); -function visit21_101_2(result) { - _$jscoverage['/swf.js'].branchData['101'][2].ranCondition(result); +}_$jscoverage['/swf.js'].branchData['102'][1].init(552, 22, 'params.flashVars || {}'); +function visit21_102_1(result) { + _$jscoverage['/swf.js'].branchData['102'][1].ranCondition(result); return result; -}_$jscoverage['/swf.js'].branchData['101'][1].init(48, 60, '!/%$/.test(attrs.height) && parseInt(attrs.height, 10) < 137'); -function visit20_101_1(result) { - _$jscoverage['/swf.js'].branchData['101'][1].ranCondition(result); +}_$jscoverage['/swf.js'].branchData['98'][2].init(76, 32, 'parseInt(attrs.height, 10) < 137'); +function visit20_98_2(result) { + _$jscoverage['/swf.js'].branchData['98'][2].ranCondition(result); return result; -}_$jscoverage['/swf.js'].branchData['100'][1].init(318, 110, '!(\'height\' in attrs) || (!/%$/.test(attrs.height) && parseInt(attrs.height, 10) < 137)'); -function visit19_100_1(result) { - _$jscoverage['/swf.js'].branchData['100'][1].ranCondition(result); +}_$jscoverage['/swf.js'].branchData['98'][1].init(48, 60, '!/%$/.test(attrs.height) && parseInt(attrs.height, 10) < 137'); +function visit19_98_1(result) { + _$jscoverage['/swf.js'].branchData['98'][1].ranCondition(result); return result; -}_$jscoverage['/swf.js'].branchData['96'][2].init(74, 31, 'parseInt(attrs.width, 10) < 310'); -function visit18_96_2(result) { - _$jscoverage['/swf.js'].branchData['96'][2].ranCondition(result); +}_$jscoverage['/swf.js'].branchData['97'][1].init(318, 110, '!(\'height\' in attrs) || (!/%$/.test(attrs.height) && parseInt(attrs.height, 10) < 137)'); +function visit18_97_1(result) { + _$jscoverage['/swf.js'].branchData['97'][1].ranCondition(result); return result; -}_$jscoverage['/swf.js'].branchData['96'][1].init(47, 58, '!/%$/.test(attrs.width) && parseInt(attrs.width, 10) < 310'); -function visit17_96_1(result) { - _$jscoverage['/swf.js'].branchData['96'][1].ranCondition(result); +}_$jscoverage['/swf.js'].branchData['93'][2].init(74, 31, 'parseInt(attrs.width, 10) < 310'); +function visit17_93_2(result) { + _$jscoverage['/swf.js'].branchData['93'][2].ranCondition(result); return result; -}_$jscoverage['/swf.js'].branchData['95'][1].init(115, 107, '!(\'width\' in attrs) || (!/%$/.test(attrs.width) && parseInt(attrs.width, 10) < 310)'); -function visit16_95_1(result) { - _$jscoverage['/swf.js'].branchData['95'][1].ranCondition(result); +}_$jscoverage['/swf.js'].branchData['93'][1].init(47, 58, '!/%$/.test(attrs.width) && parseInt(attrs.width, 10) < 310'); +function visit16_93_1(result) { + _$jscoverage['/swf.js'].branchData['93'][1].ranCondition(result); return result; -}_$jscoverage['/swf.js'].branchData['91'][1].init(130, 14, 'expressInstall'); -function visit15_91_1(result) { - _$jscoverage['/swf.js'].branchData['91'][1].ranCondition(result); +}_$jscoverage['/swf.js'].branchData['92'][1].init(115, 107, '!(\'width\' in attrs) || (!/%$/.test(attrs.width) && parseInt(attrs.width, 10) < 310)'); +function visit15_92_1(result) { + _$jscoverage['/swf.js'].branchData['92'][1].ranCondition(result); return result; -}_$jscoverage['/swf.js'].branchData['87'][1].init(898, 27, 'version && !fpvGTE(version)'); -function visit14_87_1(result) { - _$jscoverage['/swf.js'].branchData['87'][1].ranCondition(result); +}_$jscoverage['/swf.js'].branchData['88'][1].init(130, 14, 'expressInstall'); +function visit14_88_1(result) { + _$jscoverage['/swf.js'].branchData['88'][1].ranCondition(result); return result; -}_$jscoverage['/swf.js'].branchData['81'][1].init(733, 6, '!fpv()'); -function visit13_81_1(result) { - _$jscoverage['/swf.js'].branchData['81'][1].ranCondition(result); +}_$jscoverage['/swf.js'].branchData['84'][1].init(883, 27, 'version && !fpvGTE(version)'); +function visit13_84_1(result) { + _$jscoverage['/swf.js'].branchData['84'][1].ranCondition(result); return result; -}_$jscoverage['/swf.js'].branchData['78'][1].init(654, 29, 'attrs.id || S.guid(\'ks-swf-\')'); +}_$jscoverage['/swf.js'].branchData['78'][1].init(718, 6, '!fpv()'); function visit12_78_1(result) { _$jscoverage['/swf.js'].branchData['78'][1].ranCondition(result); return result; +}_$jscoverage['/swf.js'].branchData['75'][1].init(639, 29, 'attrs.id || S.guid(\'ks-swf-\')'); +function visit11_75_1(result) { + _$jscoverage['/swf.js'].branchData['75'][1].ranCondition(result); + return result; }_$jscoverage['/swf.js'].lineData[6]++; KISSY.add(function(S, require) { _$jscoverage['/swf.js'].functionData[0]++; @@ -683,7 +682,7 @@ KISSY.add(function(S, require) { _$jscoverage['/swf.js'].lineData[10]++; var FlashUA = require('swf/ua'); _$jscoverage['/swf.js'].lineData[12]++; - var OLD_IE = !!S.Env.host.ActiveXObject, TYPE = 'application/x-shockwave-flash', CID = 'clsid:d27cdb6e-ae6d-11cf-96b8-444553540000', FLASHVARS = 'flashvars', EMPTY = '', SPACE = ' ', EQUAL = '=', DOUBLE_QUOTE = '"', LT = '<', GT = '>', doc = S.Env.host.document, fpv = FlashUA.fpv, fpvGEQ = FlashUA.fpvGEQ, fpvGTE = FlashUA.fpvGTE, OBJECT_TAG = 'object', encode = encodeURIComponent, PARAMS = { + var OLD_IE = !!S.Env.host.ActiveXObject, TYPE = 'application/x-shockwave-flash', CID = 'clsid:d27cdb6e-ae6d-11cf-96b8-444553540000', FLASHVARS = 'flashvars', EMPTY = '', LT = '<', GT = '>', doc = S.Env.host.document, fpv = FlashUA.fpv, fpvGEQ = FlashUA.fpvGEQ, fpvGTE = FlashUA.fpvGTE, OBJECT_TAG = 'object', encode = encodeURIComponent, PARAMS = { wmode: EMPTY, allowscriptaccess: EMPTY, allownetworking: EMPTY, @@ -700,156 +699,155 @@ KISSY.add(function(S, require) { base: EMPTY, swliveconnect: EMPTY, seamlesstabbing: EMPTY}; - _$jscoverage['/swf.js'].lineData[54]++; + _$jscoverage['/swf.js'].lineData[51]++; var SWF; - _$jscoverage['/swf.js'].lineData[60]++; + _$jscoverage['/swf.js'].lineData[57]++; SWF = Attribute.extend({ - constructor: function() { + constructor: function(config) { _$jscoverage['/swf.js'].functionData[1]++; - _$jscoverage['/swf.js'].lineData[62]++; + _$jscoverage['/swf.js'].lineData[59]++; var self = this; - _$jscoverage['/swf.js'].lineData[63]++; - self.callSuper.apply(self, arguments); - _$jscoverage['/swf.js'].lineData[64]++; + _$jscoverage['/swf.js'].lineData[60]++; + self.callSuper(config); + _$jscoverage['/swf.js'].lineData[61]++; var expressInstall = self.get('expressInstall'), swf, html, id, htmlMode = self.get('htmlMode'), flashVars, params = self.get('params'), attrs = self.get('attrs'), doc = self.get('document'), placeHolder = Dom.create('', undefined, doc), elBefore = self.get('elBefore'), installedSrc = self.get('src'), version = self.get('version'); + _$jscoverage['/swf.js'].lineData[75]++; + id = attrs.id = visit11_75_1(attrs.id || S.guid('ks-swf-')); _$jscoverage['/swf.js'].lineData[78]++; - id = attrs.id = visit12_78_1(attrs.id || S.guid('ks-swf-')); - _$jscoverage['/swf.js'].lineData[81]++; - if (visit13_81_1(!fpv())) { - _$jscoverage['/swf.js'].lineData[82]++; + if (visit12_78_1(!fpv())) { + _$jscoverage['/swf.js'].lineData[79]++; self.set('status', SWF.Status.NOT_INSTALLED); - _$jscoverage['/swf.js'].lineData[83]++; + _$jscoverage['/swf.js'].lineData[80]++; return; } - _$jscoverage['/swf.js'].lineData[87]++; - if (visit14_87_1(version && !fpvGTE(version))) { - _$jscoverage['/swf.js'].lineData[88]++; + _$jscoverage['/swf.js'].lineData[84]++; + if (visit13_84_1(version && !fpvGTE(version))) { + _$jscoverage['/swf.js'].lineData[85]++; self.set('status', SWF.Status.TOO_LOW); - _$jscoverage['/swf.js'].lineData[91]++; - if (visit15_91_1(expressInstall)) { - _$jscoverage['/swf.js'].lineData[92]++; + _$jscoverage['/swf.js'].lineData[88]++; + if (visit14_88_1(expressInstall)) { + _$jscoverage['/swf.js'].lineData[89]++; installedSrc = expressInstall; - _$jscoverage['/swf.js'].lineData[95]++; - if (visit16_95_1(!('width' in attrs) || (visit17_96_1(!/%$/.test(attrs.width) && visit18_96_2(parseInt(attrs.width, 10) < 310))))) { - _$jscoverage['/swf.js'].lineData[97]++; + _$jscoverage['/swf.js'].lineData[92]++; + if (visit15_92_1(!('width' in attrs) || (visit16_93_1(!/%$/.test(attrs.width) && visit17_93_2(parseInt(attrs.width, 10) < 310))))) { + _$jscoverage['/swf.js'].lineData[94]++; attrs.width = '310'; } - _$jscoverage['/swf.js'].lineData[100]++; - if (visit19_100_1(!('height' in attrs) || (visit20_101_1(!/%$/.test(attrs.height) && visit21_101_2(parseInt(attrs.height, 10) < 137))))) { - _$jscoverage['/swf.js'].lineData[102]++; + _$jscoverage['/swf.js'].lineData[97]++; + if (visit18_97_1(!('height' in attrs) || (visit19_98_1(!/%$/.test(attrs.height) && visit20_98_2(parseInt(attrs.height, 10) < 137))))) { + _$jscoverage['/swf.js'].lineData[99]++; attrs.height = '137'; } - _$jscoverage['/swf.js'].lineData[105]++; - flashVars = params.flashVars = visit22_105_1(params.flashVars || {}); - _$jscoverage['/swf.js'].lineData[107]++; + _$jscoverage['/swf.js'].lineData[102]++; + flashVars = params.flashVars = visit21_102_1(params.flashVars || {}); + _$jscoverage['/swf.js'].lineData[104]++; S.mix(flashVars, { MMredirectURL: location.href, MMplayerType: OLD_IE ? 'ActiveX' : 'PlugIn', MMdoctitle: doc.title.slice(0, 47) + ' - Flash Player Installation'}); } } - _$jscoverage['/swf.js'].lineData[115]++; - if (visit23_115_1(htmlMode === 'full')) { - _$jscoverage['/swf.js'].lineData[116]++; + _$jscoverage['/swf.js'].lineData[112]++; + if (visit22_112_1(htmlMode === 'full')) { + _$jscoverage['/swf.js'].lineData[113]++; html = _stringSWFFull(installedSrc, attrs, params); } else { - _$jscoverage['/swf.js'].lineData[118]++; + _$jscoverage['/swf.js'].lineData[115]++; html = _stringSWFDefault(installedSrc, attrs, params); } - _$jscoverage['/swf.js'].lineData[122]++; + _$jscoverage['/swf.js'].lineData[119]++; self.set('html', html); - _$jscoverage['/swf.js'].lineData[124]++; - if (visit24_124_1(elBefore)) { - _$jscoverage['/swf.js'].lineData[125]++; + _$jscoverage['/swf.js'].lineData[121]++; + if (visit23_121_1(elBefore)) { + _$jscoverage['/swf.js'].lineData[122]++; Dom.insertBefore(placeHolder, elBefore); } else { - _$jscoverage['/swf.js'].lineData[127]++; + _$jscoverage['/swf.js'].lineData[124]++; Dom.append(placeHolder, self.get('render')); } - _$jscoverage['/swf.js'].lineData[130]++; - if (visit25_130_1('outerHTML' in placeHolder)) { - _$jscoverage['/swf.js'].lineData[131]++; + _$jscoverage['/swf.js'].lineData[127]++; + if (visit24_127_1('outerHTML' in placeHolder)) { + _$jscoverage['/swf.js'].lineData[128]++; placeHolder.outerHTML = html; } else { - _$jscoverage['/swf.js'].lineData[133]++; + _$jscoverage['/swf.js'].lineData[130]++; placeHolder.parentNode.replaceChild(Dom.create(html), placeHolder); } - _$jscoverage['/swf.js'].lineData[136]++; + _$jscoverage['/swf.js'].lineData[133]++; swf = Dom.get('#' + id, doc); - _$jscoverage['/swf.js'].lineData[138]++; - self.set('swfObject', swf); - _$jscoverage['/swf.js'].lineData[140]++; - if (visit26_140_1(htmlMode === 'full')) { - _$jscoverage['/swf.js'].lineData[141]++; - if (visit27_141_1(OLD_IE)) { - _$jscoverage['/swf.js'].lineData[142]++; + _$jscoverage['/swf.js'].lineData[135]++; + if (visit25_135_1(htmlMode === 'full')) { + _$jscoverage['/swf.js'].lineData[136]++; + if (visit26_136_1(OLD_IE)) { + _$jscoverage['/swf.js'].lineData[137]++; self.set('swfObject', swf); } else { - _$jscoverage['/swf.js'].lineData[144]++; + _$jscoverage['/swf.js'].lineData[139]++; self.set('swfObject', swf.parentNode); } + } else { + _$jscoverage['/swf.js'].lineData[142]++; + self.set('swfObject', swf); } - _$jscoverage['/swf.js'].lineData[150]++; + _$jscoverage['/swf.js'].lineData[147]++; self.set('el', swf); - _$jscoverage['/swf.js'].lineData[152]++; - if (visit28_152_1(!self.get('status'))) { - _$jscoverage['/swf.js'].lineData[153]++; + _$jscoverage['/swf.js'].lineData[149]++; + if (visit27_149_1(!self.get('status'))) { + _$jscoverage['/swf.js'].lineData[150]++; self.set('status', SWF.Status.SUCCESS); } }, 'callSWF': function(func, args) { _$jscoverage['/swf.js'].functionData[2]++; - _$jscoverage['/swf.js'].lineData[162]++; + _$jscoverage['/swf.js'].lineData[159]++; var swf = this.get('el'), ret, params; - _$jscoverage['/swf.js'].lineData[165]++; - args = visit29_165_1(args || []); - _$jscoverage['/swf.js'].lineData[166]++; + _$jscoverage['/swf.js'].lineData[162]++; + args = visit28_162_1(args || []); + _$jscoverage['/swf.js'].lineData[163]++; try { - _$jscoverage['/swf.js'].lineData[167]++; - if (visit30_167_1(swf[func])) { - _$jscoverage['/swf.js'].lineData[168]++; + _$jscoverage['/swf.js'].lineData[164]++; + if (visit29_164_1(swf[func])) { + _$jscoverage['/swf.js'].lineData[165]++; ret = swf[func].apply(swf, args); } } catch (e) { - _$jscoverage['/swf.js'].lineData[172]++; + _$jscoverage['/swf.js'].lineData[169]++; params = ''; - _$jscoverage['/swf.js'].lineData[173]++; - if (visit31_173_1(args.length !== 0)) { - _$jscoverage['/swf.js'].lineData[174]++; + _$jscoverage['/swf.js'].lineData[170]++; + if (visit30_170_1(args.length !== 0)) { + _$jscoverage['/swf.js'].lineData[171]++; params = '"' + args.join('", "') + '"'; } - _$jscoverage['/swf.js'].lineData[178]++; + _$jscoverage['/swf.js'].lineData[175]++; ret = (new Function('swf', 'return swf.' + func + '(' + params + ');'))(swf); } - _$jscoverage['/swf.js'].lineData[180]++; + _$jscoverage['/swf.js'].lineData[177]++; return ret; }, destroy: function() { _$jscoverage['/swf.js'].functionData[3]++; - _$jscoverage['/swf.js'].lineData[186]++; + _$jscoverage['/swf.js'].lineData[183]++; var self = this; - _$jscoverage['/swf.js'].lineData[187]++; - self.detach(); - _$jscoverage['/swf.js'].lineData[188]++; + _$jscoverage['/swf.js'].lineData[184]++; var swfObject = self.get('swfObject'); - _$jscoverage['/swf.js'].lineData[192]++; - if (visit32_192_1(OLD_IE)) { - _$jscoverage['/swf.js'].lineData[193]++; + _$jscoverage['/swf.js'].lineData[188]++; + if (visit31_188_1(OLD_IE)) { + _$jscoverage['/swf.js'].lineData[189]++; swfObject.style.display = 'none'; - _$jscoverage['/swf.js'].lineData[195]++; + _$jscoverage['/swf.js'].lineData[191]++; (function remove() { _$jscoverage['/swf.js'].functionData[4]++; - _$jscoverage['/swf.js'].lineData[196]++; - if (visit33_196_1(swfObject.readyState === 4)) { - _$jscoverage['/swf.js'].lineData[197]++; + _$jscoverage['/swf.js'].lineData[192]++; + if (visit32_192_1(swfObject.readyState === 4)) { + _$jscoverage['/swf.js'].lineData[193]++; removeObjectInIE(swfObject); } else { - _$jscoverage['/swf.js'].lineData[200]++; + _$jscoverage['/swf.js'].lineData[196]++; setTimeout(remove, 10); } })(); } else { - _$jscoverage['/swf.js'].lineData[204]++; + _$jscoverage['/swf.js'].lineData[200]++; swfObject.parentNode.removeChild(swfObject); } }}, { @@ -866,28 +864,28 @@ KISSY.add(function(S, require) { render: { setter: function(v) { _$jscoverage['/swf.js'].functionData[5]++; - _$jscoverage['/swf.js'].lineData[277]++; - if (visit34_277_1(typeof v === 'string')) { - _$jscoverage['/swf.js'].lineData[278]++; + _$jscoverage['/swf.js'].lineData[273]++; + if (visit33_273_1(typeof v === 'string')) { + _$jscoverage['/swf.js'].lineData[274]++; v = Dom.get(v, this.get('document')); } - _$jscoverage['/swf.js'].lineData[280]++; + _$jscoverage['/swf.js'].lineData[276]++; return v; }, valueFn: function() { _$jscoverage['/swf.js'].functionData[6]++; - _$jscoverage['/swf.js'].lineData[283]++; + _$jscoverage['/swf.js'].lineData[279]++; return document.body; }}, elBefore: { setter: function(v) { _$jscoverage['/swf.js'].functionData[7]++; - _$jscoverage['/swf.js'].lineData[295]++; - if (visit35_295_1(typeof v === 'string')) { - _$jscoverage['/swf.js'].lineData[296]++; + _$jscoverage['/swf.js'].lineData[291]++; + if (visit34_291_1(typeof v === 'string')) { + _$jscoverage['/swf.js'].lineData[292]++; v = Dom.get(v, this.get('document')); } - _$jscoverage['/swf.js'].lineData[298]++; + _$jscoverage['/swf.js'].lineData[294]++; return v; }}, document: { @@ -900,28 +898,28 @@ KISSY.add(function(S, require) { value: 'default'}}, getSrc: function(swf) { _$jscoverage['/swf.js'].functionData[8]++; - _$jscoverage['/swf.js'].lineData[378]++; + _$jscoverage['/swf.js'].lineData[374]++; swf = Dom.get(swf); - _$jscoverage['/swf.js'].lineData[379]++; - var srcElement = getSrcElements(swf)[0], nodeName = visit36_380_1(srcElement && Dom.nodeName(srcElement)); - _$jscoverage['/swf.js'].lineData[381]++; - if (visit37_381_1(nodeName === 'embed')) { - _$jscoverage['/swf.js'].lineData[382]++; + _$jscoverage['/swf.js'].lineData[375]++; + var srcElement = getSrcElements(swf)[0], nodeName = visit35_376_1(srcElement && Dom.nodeName(srcElement)); + _$jscoverage['/swf.js'].lineData[377]++; + if (visit36_377_1(nodeName === 'embed')) { + _$jscoverage['/swf.js'].lineData[378]++; return Dom.attr(srcElement, 'src'); } else { - _$jscoverage['/swf.js'].lineData[383]++; - if (visit38_383_1(nodeName === 'object')) { - _$jscoverage['/swf.js'].lineData[384]++; + _$jscoverage['/swf.js'].lineData[379]++; + if (visit37_379_1(nodeName === 'object')) { + _$jscoverage['/swf.js'].lineData[380]++; return Dom.attr(srcElement, 'data'); } else { - _$jscoverage['/swf.js'].lineData[385]++; - if (visit39_385_1(nodeName === 'param')) { - _$jscoverage['/swf.js'].lineData[386]++; + _$jscoverage['/swf.js'].lineData[381]++; + if (visit38_381_1(nodeName === 'param')) { + _$jscoverage['/swf.js'].lineData[382]++; return Dom.attr(srcElement, 'value'); } } } - _$jscoverage['/swf.js'].lineData[388]++; + _$jscoverage['/swf.js'].lineData[384]++; return null; }, Status: { @@ -934,55 +932,55 @@ KISSY.add(function(S, require) { fpv: fpv, fpvGEQ: fpvGEQ, fpvGTE: fpvGTE}); - _$jscoverage['/swf.js'].lineData[430]++; + _$jscoverage['/swf.js'].lineData[428]++; function removeObjectInIE(obj) { _$jscoverage['/swf.js'].functionData[9]++; - _$jscoverage['/swf.js'].lineData[431]++; + _$jscoverage['/swf.js'].lineData[429]++; for (var i in obj) { - _$jscoverage['/swf.js'].lineData[432]++; - if (visit40_432_1(typeof obj[i] === 'function')) { - _$jscoverage['/swf.js'].lineData[433]++; + _$jscoverage['/swf.js'].lineData[430]++; + if (visit39_430_1(typeof obj[i] === 'function')) { + _$jscoverage['/swf.js'].lineData[431]++; obj[i] = null; } } - _$jscoverage['/swf.js'].lineData[436]++; + _$jscoverage['/swf.js'].lineData[434]++; obj.parentNode.removeChild(obj); } - _$jscoverage['/swf.js'].lineData[439]++; + _$jscoverage['/swf.js'].lineData[437]++; function getSrcElements(swf) { _$jscoverage['/swf.js'].functionData[10]++; - _$jscoverage['/swf.js'].lineData[440]++; + _$jscoverage['/swf.js'].lineData[438]++; var url = '', params, i, param, elements = [], nodeName = Dom.nodeName(swf); - _$jscoverage['/swf.js'].lineData[444]++; - if (visit41_444_1(nodeName === 'object')) { - _$jscoverage['/swf.js'].lineData[445]++; + _$jscoverage['/swf.js'].lineData[442]++; + if (visit40_442_1(nodeName === 'object')) { + _$jscoverage['/swf.js'].lineData[443]++; url = Dom.attr(swf, 'data'); - _$jscoverage['/swf.js'].lineData[446]++; - if (visit42_446_1(url)) { - _$jscoverage['/swf.js'].lineData[447]++; + _$jscoverage['/swf.js'].lineData[444]++; + if (visit41_444_1(url)) { + _$jscoverage['/swf.js'].lineData[445]++; elements.push(swf); } - _$jscoverage['/swf.js'].lineData[449]++; + _$jscoverage['/swf.js'].lineData[447]++; params = swf.childNodes; - _$jscoverage['/swf.js'].lineData[450]++; - for (i = 0; visit43_450_1(i < params.length); i++) { - _$jscoverage['/swf.js'].lineData[451]++; + _$jscoverage['/swf.js'].lineData[448]++; + for (i = 0; visit42_448_1(i < params.length); i++) { + _$jscoverage['/swf.js'].lineData[449]++; param = params[i]; - _$jscoverage['/swf.js'].lineData[452]++; - if (visit44_452_1(param.nodeType === 1)) { - _$jscoverage['/swf.js'].lineData[453]++; - if (visit45_453_1((visit46_453_2(Dom.attr(param, 'name') || '')).toLowerCase() === 'movie')) { - _$jscoverage['/swf.js'].lineData[454]++; + _$jscoverage['/swf.js'].lineData[450]++; + if (visit43_450_1(param.nodeType === 1)) { + _$jscoverage['/swf.js'].lineData[451]++; + if (visit44_451_1((visit45_451_2(Dom.attr(param, 'name') || '')).toLowerCase() === 'movie')) { + _$jscoverage['/swf.js'].lineData[452]++; elements.push(param); } else { - _$jscoverage['/swf.js'].lineData[455]++; - if (visit47_455_1(Dom.nodeName(param) === 'embed')) { - _$jscoverage['/swf.js'].lineData[456]++; + _$jscoverage['/swf.js'].lineData[453]++; + if (visit46_453_1(Dom.nodeName(param) === 'embed')) { + _$jscoverage['/swf.js'].lineData[454]++; elements.push(param); } else { - _$jscoverage['/swf.js'].lineData[457]++; - if (visit48_457_1(Dom.nodeName(params[i]) === 'object')) { - _$jscoverage['/swf.js'].lineData[458]++; + _$jscoverage['/swf.js'].lineData[455]++; + if (visit47_455_1(Dom.nodeName(params[i]) === 'object')) { + _$jscoverage['/swf.js'].lineData[456]++; elements.push(param); } } @@ -990,140 +988,140 @@ KISSY.add(function(S, require) { } } } else { - _$jscoverage['/swf.js'].lineData[462]++; - if (visit49_462_1(nodeName === 'embed')) { - _$jscoverage['/swf.js'].lineData[463]++; + _$jscoverage['/swf.js'].lineData[460]++; + if (visit48_460_1(nodeName === 'embed')) { + _$jscoverage['/swf.js'].lineData[461]++; elements.push(swf); } } - _$jscoverage['/swf.js'].lineData[465]++; + _$jscoverage['/swf.js'].lineData[463]++; return elements; } - _$jscoverage['/swf.js'].lineData[470]++; + _$jscoverage['/swf.js'].lineData[467]++; function collectionParams(params) { _$jscoverage['/swf.js'].functionData[11]++; - _$jscoverage['/swf.js'].lineData[471]++; + _$jscoverage['/swf.js'].lineData[468]++; var par = EMPTY; - _$jscoverage['/swf.js'].lineData[472]++; + _$jscoverage['/swf.js'].lineData[469]++; S.each(params, function(v, k) { _$jscoverage['/swf.js'].functionData[12]++; - _$jscoverage['/swf.js'].lineData[473]++; + _$jscoverage['/swf.js'].lineData[470]++; k = k.toLowerCase(); - _$jscoverage['/swf.js'].lineData[474]++; - if (visit50_474_1(k in PARAMS)) { - _$jscoverage['/swf.js'].lineData[475]++; + _$jscoverage['/swf.js'].lineData[471]++; + if (visit49_471_1(k in PARAMS)) { + _$jscoverage['/swf.js'].lineData[472]++; par += stringParam(k, v); } else { - _$jscoverage['/swf.js'].lineData[478]++; - if (visit51_478_1(k === FLASHVARS)) { - _$jscoverage['/swf.js'].lineData[479]++; + _$jscoverage['/swf.js'].lineData[475]++; + if (visit50_475_1(k === FLASHVARS)) { + _$jscoverage['/swf.js'].lineData[476]++; par += stringParam(k, toFlashVars(v)); } } }); - _$jscoverage['/swf.js'].lineData[482]++; + _$jscoverage['/swf.js'].lineData[479]++; return par; } - _$jscoverage['/swf.js'].lineData[486]++; + _$jscoverage['/swf.js'].lineData[482]++; function _stringSWFDefault(src, attrs, params) { _$jscoverage['/swf.js'].functionData[13]++; - _$jscoverage['/swf.js'].lineData[487]++; + _$jscoverage['/swf.js'].lineData[483]++; return _stringSWF(src, attrs, params, OLD_IE) + LT + '/' + OBJECT_TAG + GT; } - _$jscoverage['/swf.js'].lineData[490]++; + _$jscoverage['/swf.js'].lineData[486]++; function _stringSWF(src, attrs, params, ie) { _$jscoverage['/swf.js'].functionData[14]++; - _$jscoverage['/swf.js'].lineData[491]++; + _$jscoverage['/swf.js'].lineData[487]++; var res, attr = EMPTY, par = EMPTY; - _$jscoverage['/swf.js'].lineData[496]++; + _$jscoverage['/swf.js'].lineData[492]++; S.each(attrs, function(v, k) { _$jscoverage['/swf.js'].functionData[15]++; - _$jscoverage['/swf.js'].lineData[497]++; + _$jscoverage['/swf.js'].lineData[493]++; attr += stringAttr(k, v); }); - _$jscoverage['/swf.js'].lineData[500]++; - if (visit52_500_1(ie)) { - _$jscoverage['/swf.js'].lineData[501]++; + _$jscoverage['/swf.js'].lineData[496]++; + if (visit51_496_1(ie)) { + _$jscoverage['/swf.js'].lineData[497]++; attr += stringAttr('classid', CID); - _$jscoverage['/swf.js'].lineData[502]++; + _$jscoverage['/swf.js'].lineData[498]++; par += stringParam('movie', src); } else { - _$jscoverage['/swf.js'].lineData[505]++; + _$jscoverage['/swf.js'].lineData[501]++; attr += stringAttr('data', src); - _$jscoverage['/swf.js'].lineData[507]++; + _$jscoverage['/swf.js'].lineData[503]++; attr += stringAttr('type', TYPE); } - _$jscoverage['/swf.js'].lineData[510]++; + _$jscoverage['/swf.js'].lineData[506]++; par += collectionParams(params); - _$jscoverage['/swf.js'].lineData[512]++; + _$jscoverage['/swf.js'].lineData[508]++; res = LT + OBJECT_TAG + attr + GT + par; - _$jscoverage['/swf.js'].lineData[514]++; + _$jscoverage['/swf.js'].lineData[510]++; return res; } - _$jscoverage['/swf.js'].lineData[518]++; + _$jscoverage['/swf.js'].lineData[514]++; function _stringSWFFull(src, attrs, params) { _$jscoverage['/swf.js'].functionData[16]++; - _$jscoverage['/swf.js'].lineData[519]++; + _$jscoverage['/swf.js'].lineData[515]++; var outside, inside; - _$jscoverage['/swf.js'].lineData[520]++; - if (visit53_520_1(OLD_IE)) { - _$jscoverage['/swf.js'].lineData[521]++; + _$jscoverage['/swf.js'].lineData[516]++; + if (visit52_516_1(OLD_IE)) { + _$jscoverage['/swf.js'].lineData[517]++; outside = _stringSWF(src, attrs, params, 1); - _$jscoverage['/swf.js'].lineData[522]++; + _$jscoverage['/swf.js'].lineData[518]++; delete attrs.id; - _$jscoverage['/swf.js'].lineData[523]++; + _$jscoverage['/swf.js'].lineData[519]++; delete attrs.style; - _$jscoverage['/swf.js'].lineData[524]++; + _$jscoverage['/swf.js'].lineData[520]++; inside = _stringSWF(src, attrs, params, 0); } else { - _$jscoverage['/swf.js'].lineData[526]++; + _$jscoverage['/swf.js'].lineData[522]++; inside = _stringSWF(src, attrs, params, 0); - _$jscoverage['/swf.js'].lineData[527]++; + _$jscoverage['/swf.js'].lineData[523]++; delete attrs.id; - _$jscoverage['/swf.js'].lineData[528]++; + _$jscoverage['/swf.js'].lineData[524]++; delete attrs.style; - _$jscoverage['/swf.js'].lineData[529]++; + _$jscoverage['/swf.js'].lineData[525]++; outside = _stringSWF(src, attrs, params, 1); } - _$jscoverage['/swf.js'].lineData[531]++; + _$jscoverage['/swf.js'].lineData[527]++; return outside + inside + LT + '/' + OBJECT_TAG + GT + LT + '/' + OBJECT_TAG + GT; } - _$jscoverage['/swf.js'].lineData[538]++; + _$jscoverage['/swf.js'].lineData[534]++; function toFlashVars(obj) { _$jscoverage['/swf.js'].functionData[17]++; - _$jscoverage['/swf.js'].lineData[539]++; + _$jscoverage['/swf.js'].lineData[535]++; var arr = [], ret; - _$jscoverage['/swf.js'].lineData[542]++; + _$jscoverage['/swf.js'].lineData[537]++; S.each(obj, function(data, prop) { _$jscoverage['/swf.js'].functionData[18]++; - _$jscoverage['/swf.js'].lineData[543]++; - if (visit54_543_1(typeof data !== 'string')) { - _$jscoverage['/swf.js'].lineData[544]++; + _$jscoverage['/swf.js'].lineData[538]++; + if (visit53_538_1(typeof data !== 'string')) { + _$jscoverage['/swf.js'].lineData[539]++; data = Json.stringify(data); } - _$jscoverage['/swf.js'].lineData[546]++; - if (visit55_546_1(data)) { - _$jscoverage['/swf.js'].lineData[547]++; + _$jscoverage['/swf.js'].lineData[541]++; + if (visit54_541_1(data)) { + _$jscoverage['/swf.js'].lineData[542]++; arr.push(prop + '=' + encode(data)); } }); - _$jscoverage['/swf.js'].lineData[550]++; + _$jscoverage['/swf.js'].lineData[545]++; ret = arr.join('&'); - _$jscoverage['/swf.js'].lineData[551]++; + _$jscoverage['/swf.js'].lineData[546]++; return ret; } - _$jscoverage['/swf.js'].lineData[554]++; + _$jscoverage['/swf.js'].lineData[549]++; function stringParam(key, value) { _$jscoverage['/swf.js'].functionData[19]++; - _$jscoverage['/swf.js'].lineData[555]++; + _$jscoverage['/swf.js'].lineData[550]++; return ''; } - _$jscoverage['/swf.js'].lineData[558]++; + _$jscoverage['/swf.js'].lineData[553]++; function stringAttr(key, value) { _$jscoverage['/swf.js'].functionData[20]++; - _$jscoverage['/swf.js'].lineData[559]++; - return SPACE + key + EQUAL + DOUBLE_QUOTE + value + DOUBLE_QUOTE; + _$jscoverage['/swf.js'].lineData[554]++; + return ' ' + key + '=' + '"' + value + '"'; } - _$jscoverage['/swf.js'].lineData[562]++; + _$jscoverage['/swf.js'].lineData[557]++; return SWF; }); diff --git a/src/swf/coverage/src/swf/ua.js b/src/swf/coverage/src/swf/ua.js index f6bf21caad..05a5dd13a6 100644 --- a/src/swf/coverage/src/swf/ua.js +++ b/src/swf/coverage/src/swf/ua.js @@ -230,37 +230,36 @@ if (! _$jscoverage['/swf/ua.js']) { _$jscoverage['/swf/ua.js'] = {}; _$jscoverage['/swf/ua.js'].lineData = []; _$jscoverage['/swf/ua.js'].lineData[6] = 0; - _$jscoverage['/swf/ua.js'].lineData[8] = 0; + _$jscoverage['/swf/ua.js'].lineData[7] = 0; + _$jscoverage['/swf/ua.js'].lineData[15] = 0; _$jscoverage['/swf/ua.js'].lineData[16] = 0; - _$jscoverage['/swf/ua.js'].lineData[17] = 0; + _$jscoverage['/swf/ua.js'].lineData[20] = 0; _$jscoverage['/swf/ua.js'].lineData[21] = 0; - _$jscoverage['/swf/ua.js'].lineData[22] = 0; _$jscoverage['/swf/ua.js'].lineData[25] = 0; _$jscoverage['/swf/ua.js'].lineData[26] = 0; - _$jscoverage['/swf/ua.js'].lineData[27] = 0; + _$jscoverage['/swf/ua.js'].lineData[34] = 0; _$jscoverage['/swf/ua.js'].lineData[35] = 0; - _$jscoverage['/swf/ua.js'].lineData[36] = 0; - _$jscoverage['/swf/ua.js'].lineData[40] = 0; + _$jscoverage['/swf/ua.js'].lineData[39] = 0; + _$jscoverage['/swf/ua.js'].lineData[45] = 0; _$jscoverage['/swf/ua.js'].lineData[46] = 0; - _$jscoverage['/swf/ua.js'].lineData[47] = 0; + _$jscoverage['/swf/ua.js'].lineData[56] = 0; _$jscoverage['/swf/ua.js'].lineData[57] = 0; - _$jscoverage['/swf/ua.js'].lineData[58] = 0; + _$jscoverage['/swf/ua.js'].lineData[61] = 0; _$jscoverage['/swf/ua.js'].lineData[62] = 0; - _$jscoverage['/swf/ua.js'].lineData[63] = 0; - _$jscoverage['/swf/ua.js'].lineData[65] = 0; + _$jscoverage['/swf/ua.js'].lineData[64] = 0; + _$jscoverage['/swf/ua.js'].lineData[70] = 0; _$jscoverage['/swf/ua.js'].lineData[71] = 0; _$jscoverage['/swf/ua.js'].lineData[72] = 0; _$jscoverage['/swf/ua.js'].lineData[73] = 0; _$jscoverage['/swf/ua.js'].lineData[74] = 0; - _$jscoverage['/swf/ua.js'].lineData[75] = 0; - _$jscoverage['/swf/ua.js'].lineData[85] = 0; + _$jscoverage['/swf/ua.js'].lineData[84] = 0; + _$jscoverage['/swf/ua.js'].lineData[86] = 0; _$jscoverage['/swf/ua.js'].lineData[87] = 0; _$jscoverage['/swf/ua.js'].lineData[88] = 0; - _$jscoverage['/swf/ua.js'].lineData[89] = 0; - _$jscoverage['/swf/ua.js'].lineData[91] = 0; + _$jscoverage['/swf/ua.js'].lineData[90] = 0; + _$jscoverage['/swf/ua.js'].lineData[101] = 0; _$jscoverage['/swf/ua.js'].lineData[102] = 0; - _$jscoverage['/swf/ua.js'].lineData[103] = 0; - _$jscoverage['/swf/ua.js'].lineData[106] = 0; + _$jscoverage['/swf/ua.js'].lineData[105] = 0; } if (! _$jscoverage['/swf/ua.js'].functionData) { _$jscoverage['/swf/ua.js'].functionData = []; @@ -274,157 +273,148 @@ if (! _$jscoverage['/swf/ua.js'].functionData) { } if (! _$jscoverage['/swf/ua.js'].branchData) { _$jscoverage['/swf/ua.js'].branchData = {}; + _$jscoverage['/swf/ua.js'].branchData['20'] = []; + _$jscoverage['/swf/ua.js'].branchData['20'][1] = new BranchData(); _$jscoverage['/swf/ua.js'].branchData['21'] = []; _$jscoverage['/swf/ua.js'].branchData['21'][1] = new BranchData(); - _$jscoverage['/swf/ua.js'].branchData['22'] = []; - _$jscoverage['/swf/ua.js'].branchData['22'][1] = new BranchData(); - _$jscoverage['/swf/ua.js'].branchData['25'] = []; - _$jscoverage['/swf/ua.js'].branchData['25'][1] = new BranchData(); - _$jscoverage['/swf/ua.js'].branchData['35'] = []; - _$jscoverage['/swf/ua.js'].branchData['35'][1] = new BranchData(); - _$jscoverage['/swf/ua.js'].branchData['58'] = []; - _$jscoverage['/swf/ua.js'].branchData['58'][1] = new BranchData(); - _$jscoverage['/swf/ua.js'].branchData['62'] = []; - _$jscoverage['/swf/ua.js'].branchData['62'][1] = new BranchData(); - _$jscoverage['/swf/ua.js'].branchData['65'] = []; - _$jscoverage['/swf/ua.js'].branchData['65'][1] = new BranchData(); - _$jscoverage['/swf/ua.js'].branchData['72'] = []; - _$jscoverage['/swf/ua.js'].branchData['72'][1] = new BranchData(); - _$jscoverage['/swf/ua.js'].branchData['75'] = []; - _$jscoverage['/swf/ua.js'].branchData['75'][1] = new BranchData(); - _$jscoverage['/swf/ua.js'].branchData['87'] = []; - _$jscoverage['/swf/ua.js'].branchData['87'][1] = new BranchData(); - _$jscoverage['/swf/ua.js'].branchData['103'] = []; - _$jscoverage['/swf/ua.js'].branchData['103'][1] = new BranchData(); + _$jscoverage['/swf/ua.js'].branchData['34'] = []; + _$jscoverage['/swf/ua.js'].branchData['34'][1] = new BranchData(); + _$jscoverage['/swf/ua.js'].branchData['57'] = []; + _$jscoverage['/swf/ua.js'].branchData['57'][1] = new BranchData(); + _$jscoverage['/swf/ua.js'].branchData['61'] = []; + _$jscoverage['/swf/ua.js'].branchData['61'][1] = new BranchData(); + _$jscoverage['/swf/ua.js'].branchData['64'] = []; + _$jscoverage['/swf/ua.js'].branchData['64'][1] = new BranchData(); + _$jscoverage['/swf/ua.js'].branchData['71'] = []; + _$jscoverage['/swf/ua.js'].branchData['71'][1] = new BranchData(); + _$jscoverage['/swf/ua.js'].branchData['74'] = []; + _$jscoverage['/swf/ua.js'].branchData['74'][1] = new BranchData(); + _$jscoverage['/swf/ua.js'].branchData['86'] = []; + _$jscoverage['/swf/ua.js'].branchData['86'][1] = new BranchData(); + _$jscoverage['/swf/ua.js'].branchData['102'] = []; + _$jscoverage['/swf/ua.js'].branchData['102'][1] = new BranchData(); } -_$jscoverage['/swf/ua.js'].branchData['103'][1].init(16, 53, 'getNumberVersion(fpv(force)) >= getNumberVersion(ver)'); -function visit11_103_1(result) { - _$jscoverage['/swf/ua.js'].branchData['103'][1].ranCondition(result); +_$jscoverage['/swf/ua.js'].branchData['102'][1].init(16, 53, 'getNumberVersion(fpv(force)) >= getNumberVersion(ver)'); +function visit10_102_1(result) { + _$jscoverage['/swf/ua.js'].branchData['102'][1].ranCondition(result); return result; -}_$jscoverage['/swf/ua.js'].branchData['87'][1].init(71, 17, 'force || firstRun'); -function visit10_87_1(result) { - _$jscoverage['/swf/ua.js'].branchData['87'][1].ranCondition(result); +}_$jscoverage['/swf/ua.js'].branchData['86'][1].init(71, 17, 'force || firstRun'); +function visit9_86_1(result) { + _$jscoverage['/swf/ua.js'].branchData['86'][1].ranCondition(result); return result; -}_$jscoverage['/swf/ua.js'].branchData['75'][1].init(111, 11, 'padding > 0'); -function visit9_75_1(result) { - _$jscoverage['/swf/ua.js'].branchData['75'][1].ranCondition(result); +}_$jscoverage['/swf/ua.js'].branchData['74'][1].init(111, 11, 'padding > 0'); +function visit8_74_1(result) { + _$jscoverage['/swf/ua.js'].branchData['74'][1].ranCondition(result); return result; -}_$jscoverage['/swf/ua.js'].branchData['72'][1].init(15, 8, 'num || 0'); -function visit8_72_1(result) { - _$jscoverage['/swf/ua.js'].branchData['72'][1].ranCondition(result); +}_$jscoverage['/swf/ua.js'].branchData['71'][1].init(15, 8, 'num || 0'); +function visit7_71_1(result) { + _$jscoverage['/swf/ua.js'].branchData['71'][1].ranCondition(result); return result; -}_$jscoverage['/swf/ua.js'].branchData['65'][1].init(261, 8, 'ret || 0'); -function visit7_65_1(result) { - _$jscoverage['/swf/ua.js'].branchData['65'][1].ranCondition(result); +}_$jscoverage['/swf/ua.js'].branchData['64'][1].init(261, 8, 'ret || 0'); +function visit6_64_1(result) { + _$jscoverage['/swf/ua.js'].branchData['64'][1].ranCondition(result); return result; -}_$jscoverage['/swf/ua.js'].branchData['62'][1].init(140, 14, 'S.isArray(arr)'); -function visit6_62_1(result) { - _$jscoverage['/swf/ua.js'].branchData['62'][1].ranCondition(result); +}_$jscoverage['/swf/ua.js'].branchData['61'][1].init(140, 14, 'S.isArray(arr)'); +function visit5_61_1(result) { + _$jscoverage['/swf/ua.js'].branchData['61'][1].ranCondition(result); return result; -}_$jscoverage['/swf/ua.js'].branchData['58'][1].init(19, 23, 'typeof ver === \'string\''); -function visit5_58_1(result) { - _$jscoverage['/swf/ua.js'].branchData['58'][1].ranCondition(result); +}_$jscoverage['/swf/ua.js'].branchData['57'][1].init(19, 23, 'typeof ver === \'string\''); +function visit4_57_1(result) { + _$jscoverage['/swf/ua.js'].branchData['57'][1].ranCondition(result); return result; -}_$jscoverage['/swf/ua.js'].branchData['35'][1].init(696, 4, '!ver'); -function visit4_35_1(result) { - _$jscoverage['/swf/ua.js'].branchData['35'][1].ranCondition(result); +}_$jscoverage['/swf/ua.js'].branchData['34'][1].init(673, 4, '!ver'); +function visit3_34_1(result) { + _$jscoverage['/swf/ua.js'].branchData['34'][1].ranCondition(result); return result; -}_$jscoverage['/swf/ua.js'].branchData['25'][1].init(346, 17, 'win.ActiveXObject'); -function visit3_25_1(result) { - _$jscoverage['/swf/ua.js'].branchData['25'][1].ranCondition(result); - return result; -}_$jscoverage['/swf/ua.js'].branchData['22'][1].init(20, 41, 'navigator.plugins[\'Shockwave Flash\'] || 0'); -function visit2_22_1(result) { - _$jscoverage['/swf/ua.js'].branchData['22'][1].ranCondition(result); - return result; -}_$jscoverage['/swf/ua.js'].branchData['21'][1].init(127, 47, 'navigator.plugins && navigator.mimeTypes.length'); -function visit1_21_1(result) { +}_$jscoverage['/swf/ua.js'].branchData['21'][1].init(20, 41, 'navigator.plugins[\'Shockwave Flash\'] || 0'); +function visit2_21_1(result) { _$jscoverage['/swf/ua.js'].branchData['21'][1].ranCondition(result); return result; +}_$jscoverage['/swf/ua.js'].branchData['20'][1].init(127, 47, 'navigator.plugins && navigator.mimeTypes.length'); +function visit1_20_1(result) { + _$jscoverage['/swf/ua.js'].branchData['20'][1].ranCondition(result); + return result; }_$jscoverage['/swf/ua.js'].lineData[6]++; KISSY.add(function(S) { _$jscoverage['/swf/ua.js'].functionData[0]++; - _$jscoverage['/swf/ua.js'].lineData[8]++; + _$jscoverage['/swf/ua.js'].lineData[7]++; var fpvCached, firstRun = true, win = S.Env.host; - _$jscoverage['/swf/ua.js'].lineData[16]++; + _$jscoverage['/swf/ua.js'].lineData[15]++; function getFlashVersion() { _$jscoverage['/swf/ua.js'].functionData[1]++; - _$jscoverage['/swf/ua.js'].lineData[17]++; + _$jscoverage['/swf/ua.js'].lineData[16]++; var ver, SF = 'ShockwaveFlash'; - _$jscoverage['/swf/ua.js'].lineData[21]++; - if (visit1_21_1(navigator.plugins && navigator.mimeTypes.length)) { - _$jscoverage['/swf/ua.js'].lineData[22]++; - ver = (visit2_22_1(navigator.plugins['Shockwave Flash'] || 0)).description; + _$jscoverage['/swf/ua.js'].lineData[20]++; + if (visit1_20_1(navigator.plugins && navigator.mimeTypes.length)) { + _$jscoverage['/swf/ua.js'].lineData[21]++; + ver = (visit2_21_1(navigator.plugins['Shockwave Flash'] || 0)).description; } else { _$jscoverage['/swf/ua.js'].lineData[25]++; - if (visit3_25_1(win.ActiveXObject)) { + try { _$jscoverage['/swf/ua.js'].lineData[26]++; - try { - _$jscoverage['/swf/ua.js'].lineData[27]++; - ver = new win.ActiveXObject(SF + '.' + SF).GetVariable('$version'); - } catch (ex) { + ver = new win.ActiveXObject(SF + '.' + SF).GetVariable('$version'); + } catch (ex) { } - } } - _$jscoverage['/swf/ua.js'].lineData[35]++; - if (visit4_35_1(!ver)) { - _$jscoverage['/swf/ua.js'].lineData[36]++; + _$jscoverage['/swf/ua.js'].lineData[34]++; + if (visit3_34_1(!ver)) { + _$jscoverage['/swf/ua.js'].lineData[35]++; return undefined; } - _$jscoverage['/swf/ua.js'].lineData[40]++; + _$jscoverage['/swf/ua.js'].lineData[39]++; return getArrayVersion(ver); } - _$jscoverage['/swf/ua.js'].lineData[46]++; + _$jscoverage['/swf/ua.js'].lineData[45]++; function getArrayVersion(ver) { _$jscoverage['/swf/ua.js'].functionData[2]++; - _$jscoverage['/swf/ua.js'].lineData[47]++; + _$jscoverage['/swf/ua.js'].lineData[46]++; return ver.match(/\d+/g).splice(0, 3); } - _$jscoverage['/swf/ua.js'].lineData[57]++; + _$jscoverage['/swf/ua.js'].lineData[56]++; function getNumberVersion(ver) { _$jscoverage['/swf/ua.js'].functionData[3]++; - _$jscoverage['/swf/ua.js'].lineData[58]++; - var arr = visit5_58_1(typeof ver === 'string') ? getArrayVersion(ver) : ver, ret = ver; - _$jscoverage['/swf/ua.js'].lineData[62]++; - if (visit6_62_1(S.isArray(arr))) { - _$jscoverage['/swf/ua.js'].lineData[63]++; + _$jscoverage['/swf/ua.js'].lineData[57]++; + var arr = visit4_57_1(typeof ver === 'string') ? getArrayVersion(ver) : ver, ret = ver; + _$jscoverage['/swf/ua.js'].lineData[61]++; + if (visit5_61_1(S.isArray(arr))) { + _$jscoverage['/swf/ua.js'].lineData[62]++; ret = parseFloat(arr[0] + '.' + pad(arr[1], 3) + pad(arr[2], 5)); } - _$jscoverage['/swf/ua.js'].lineData[65]++; - return visit7_65_1(ret || 0); + _$jscoverage['/swf/ua.js'].lineData[64]++; + return visit6_64_1(ret || 0); } - _$jscoverage['/swf/ua.js'].lineData[71]++; + _$jscoverage['/swf/ua.js'].lineData[70]++; function pad(num, n) { _$jscoverage['/swf/ua.js'].functionData[4]++; + _$jscoverage['/swf/ua.js'].lineData[71]++; + num = visit7_71_1(num || 0); _$jscoverage['/swf/ua.js'].lineData[72]++; - num = visit8_72_1(num || 0); - _$jscoverage['/swf/ua.js'].lineData[73]++; num += ''; - _$jscoverage['/swf/ua.js'].lineData[74]++; + _$jscoverage['/swf/ua.js'].lineData[73]++; var padding = n + 1 - num.length; - _$jscoverage['/swf/ua.js'].lineData[75]++; - return new Array(visit9_75_1(padding > 0) ? padding : 0).join('0') + num; + _$jscoverage['/swf/ua.js'].lineData[74]++; + return new Array(visit8_74_1(padding > 0) ? padding : 0).join('0') + num; } - _$jscoverage['/swf/ua.js'].lineData[85]++; + _$jscoverage['/swf/ua.js'].lineData[84]++; function fpv(force) { _$jscoverage['/swf/ua.js'].functionData[5]++; - _$jscoverage['/swf/ua.js'].lineData[87]++; - if (visit10_87_1(force || firstRun)) { - _$jscoverage['/swf/ua.js'].lineData[88]++; + _$jscoverage['/swf/ua.js'].lineData[86]++; + if (visit9_86_1(force || firstRun)) { + _$jscoverage['/swf/ua.js'].lineData[87]++; firstRun = false; - _$jscoverage['/swf/ua.js'].lineData[89]++; + _$jscoverage['/swf/ua.js'].lineData[88]++; fpvCached = getFlashVersion(); } - _$jscoverage['/swf/ua.js'].lineData[91]++; + _$jscoverage['/swf/ua.js'].lineData[90]++; return fpvCached; } - _$jscoverage['/swf/ua.js'].lineData[102]++; + _$jscoverage['/swf/ua.js'].lineData[101]++; function fpvGTE(ver, force) { _$jscoverage['/swf/ua.js'].functionData[6]++; - _$jscoverage['/swf/ua.js'].lineData[103]++; - return visit11_103_1(getNumberVersion(fpv(force)) >= getNumberVersion(ver)); + _$jscoverage['/swf/ua.js'].lineData[102]++; + return visit10_102_1(getNumberVersion(fpv(force)) >= getNumberVersion(ver)); } - _$jscoverage['/swf/ua.js'].lineData[106]++; + _$jscoverage['/swf/ua.js'].lineData[105]++; return { fpv: fpv, fpvGTE: fpvGTE}; diff --git a/src/swf/src/swf.js b/src/swf/src/swf.js index 808f2e30bb..1b32c4103a 100644 --- a/src/swf/src/swf.js +++ b/src/swf/src/swf.js @@ -14,9 +14,6 @@ KISSY.add(function (S, require) { CID = 'clsid:d27cdb6e-ae6d-11cf-96b8-444553540000', FLASHVARS = 'flashvars', EMPTY = '', - SPACE = ' ', - EQUAL = '=', - DOUBLE_QUOTE = '"', LT = '<', GT = '>', doc = S.Env.host.document, @@ -58,9 +55,9 @@ KISSY.add(function (S, require) { * @extends KISSY.Base */ SWF = Attribute.extend({ - constructor: function () { + constructor: function (config) { var self = this; - self.callSuper.apply(self, arguments); + self.callSuper(config); var expressInstall = self.get('expressInstall'), swf, html, @@ -118,7 +115,7 @@ KISSY.add(function (S, require) { html = _stringSWFDefault(installedSrc, attrs, params); } - // ie 再取 target.innerHTML 属性大写,很多多与属性,等 + // ie 再取 target.innerHTML 属性大写,很多多与属性,等 self.set('html', html); if (elBefore) { @@ -135,18 +132,18 @@ KISSY.add(function (S, require) { swf = Dom.get('#' + id, doc); - self.set('swfObject', swf); - if (htmlMode === 'full') { if (OLD_IE) { self.set('swfObject', swf); } else { self.set('swfObject', swf.parentNode); } + } else { + self.set('swfObject', swf); } // bug fix: 重新获取对象,否则还是老对象. - // 如 入口为 div 如果不重新获取则仍然是 div longzang | 2010/8/9 + // 如 入口为 div 如果不重新获取则仍然是 div longzang | 2010/8/9 self.set('el', swf); if (!self.get('status')) { @@ -184,7 +181,6 @@ KISSY.add(function (S, require) { */ destroy: function () { var self = this; - self.detach(); var swfObject = self.get('swfObject'); /* Cross-browser SWF removal - Especially needed to safely and completely remove a SWF in Internet Explorer @@ -423,7 +419,9 @@ KISSY.add(function (S, require) { }, fpv: fpv, + fpvGEQ: fpvGEQ, + fpvGTE: fpvGTE }); @@ -466,7 +464,6 @@ KISSY.add(function (S, require) { } // setSrc ie 不重新渲染 - function collectionParams(params) { var par = EMPTY; S.each(params, function (v, k) { @@ -482,7 +479,6 @@ KISSY.add(function (S, require) { return par; } - function _stringSWFDefault(src, attrs, params) { return _stringSWF(src, attrs, params, OLD_IE) + LT + '/' + OBJECT_TAG + GT; } @@ -538,7 +534,6 @@ KISSY.add(function (S, require) { function toFlashVars(obj) { var arr = [], ret; - S.each(obj, function (data, prop) { if (typeof data !== 'string') { data = Json.stringify(data); @@ -556,7 +551,7 @@ KISSY.add(function (S, require) { } function stringAttr(key, value) { - return SPACE + key + EQUAL + DOUBLE_QUOTE + value + DOUBLE_QUOTE; + return ' ' + key + '=' + '"' + value + '"'; } return SWF; diff --git a/src/swf/src/swf/ua.js b/src/swf/src/swf/ua.js index e13f9dd9e0..f56d30a1e4 100644 --- a/src/swf/src/swf/ua.js +++ b/src/swf/src/swf/ua.js @@ -4,7 +4,6 @@ * @author oicuicu@gmail.com */ KISSY.add(function (S) { - var fpvCached, firstRun = true, win = S.Env.host; @@ -22,7 +21,7 @@ KISSY.add(function (S) { ver = (navigator.plugins['Shockwave Flash'] || 0).description; } // for ActiveX see: http://en.wikipedia.org/wiki/ActiveX - else if (win.ActiveXObject) { + else { try { ver = new win.ActiveXObject(SF + '.' + SF).GetVariable('$version'); } catch (ex) { diff --git a/src/tree/coverage/src/tree/check-node.js b/src/tree/coverage/src/tree/check-node.js index 9d1550e9f7..0437054904 100644 --- a/src/tree/coverage/src/tree/check-node.js +++ b/src/tree/coverage/src/tree/check-node.js @@ -245,30 +245,29 @@ if (! _$jscoverage['/tree/check-node.js']) { _$jscoverage['/tree/check-node.js'].lineData[42] = 0; _$jscoverage['/tree/check-node.js'].lineData[44] = 0; _$jscoverage['/tree/check-node.js'].lineData[47] = 0; - _$jscoverage['/tree/check-node.js'].lineData[49] = 0; - _$jscoverage['/tree/check-node.js'].lineData[50] = 0; - _$jscoverage['/tree/check-node.js'].lineData[54] = 0; + _$jscoverage['/tree/check-node.js'].lineData[48] = 0; + _$jscoverage['/tree/check-node.js'].lineData[52] = 0; + _$jscoverage['/tree/check-node.js'].lineData[60] = 0; + _$jscoverage['/tree/check-node.js'].lineData[61] = 0; _$jscoverage['/tree/check-node.js'].lineData[62] = 0; - _$jscoverage['/tree/check-node.js'].lineData[63] = 0; - _$jscoverage['/tree/check-node.js'].lineData[64] = 0; + _$jscoverage['/tree/check-node.js'].lineData[68] = 0; + _$jscoverage['/tree/check-node.js'].lineData[69] = 0; _$jscoverage['/tree/check-node.js'].lineData[70] = 0; _$jscoverage['/tree/check-node.js'].lineData[71] = 0; _$jscoverage['/tree/check-node.js'].lineData[72] = 0; _$jscoverage['/tree/check-node.js'].lineData[73] = 0; - _$jscoverage['/tree/check-node.js'].lineData[74] = 0; _$jscoverage['/tree/check-node.js'].lineData[75] = 0; + _$jscoverage['/tree/check-node.js'].lineData[76] = 0; _$jscoverage['/tree/check-node.js'].lineData[77] = 0; _$jscoverage['/tree/check-node.js'].lineData[78] = 0; _$jscoverage['/tree/check-node.js'].lineData[79] = 0; - _$jscoverage['/tree/check-node.js'].lineData[80] = 0; - _$jscoverage['/tree/check-node.js'].lineData[81] = 0; - _$jscoverage['/tree/check-node.js'].lineData[86] = 0; - _$jscoverage['/tree/check-node.js'].lineData[87] = 0; - _$jscoverage['/tree/check-node.js'].lineData[90] = 0; - _$jscoverage['/tree/check-node.js'].lineData[91] = 0; - _$jscoverage['/tree/check-node.js'].lineData[95] = 0; - _$jscoverage['/tree/check-node.js'].lineData[139] = 0; - _$jscoverage['/tree/check-node.js'].lineData[154] = 0; + _$jscoverage['/tree/check-node.js'].lineData[84] = 0; + _$jscoverage['/tree/check-node.js'].lineData[85] = 0; + _$jscoverage['/tree/check-node.js'].lineData[88] = 0; + _$jscoverage['/tree/check-node.js'].lineData[89] = 0; + _$jscoverage['/tree/check-node.js'].lineData[93] = 0; + _$jscoverage['/tree/check-node.js'].lineData[137] = 0; + _$jscoverage['/tree/check-node.js'].lineData[152] = 0; } if (! _$jscoverage['/tree/check-node.js'].functionData) { _$jscoverage['/tree/check-node.js'].functionData = []; @@ -283,58 +282,58 @@ if (! _$jscoverage['/tree/check-node.js'].branchData) { _$jscoverage['/tree/check-node.js'].branchData['33'][1] = new BranchData(); _$jscoverage['/tree/check-node.js'].branchData['41'] = []; _$jscoverage['/tree/check-node.js'].branchData['41'][1] = new BranchData(); - _$jscoverage['/tree/check-node.js'].branchData['62'] = []; - _$jscoverage['/tree/check-node.js'].branchData['62'][1] = new BranchData(); - _$jscoverage['/tree/check-node.js'].branchData['62'][2] = new BranchData(); - _$jscoverage['/tree/check-node.js'].branchData['62'][3] = new BranchData(); - _$jscoverage['/tree/check-node.js'].branchData['70'] = []; - _$jscoverage['/tree/check-node.js'].branchData['70'][1] = new BranchData(); - _$jscoverage['/tree/check-node.js'].branchData['73'] = []; - _$jscoverage['/tree/check-node.js'].branchData['73'][1] = new BranchData(); - _$jscoverage['/tree/check-node.js'].branchData['77'] = []; - _$jscoverage['/tree/check-node.js'].branchData['77'][1] = new BranchData(); - _$jscoverage['/tree/check-node.js'].branchData['80'] = []; - _$jscoverage['/tree/check-node.js'].branchData['80'][1] = new BranchData(); - _$jscoverage['/tree/check-node.js'].branchData['86'] = []; - _$jscoverage['/tree/check-node.js'].branchData['86'][1] = new BranchData(); - _$jscoverage['/tree/check-node.js'].branchData['90'] = []; - _$jscoverage['/tree/check-node.js'].branchData['90'][1] = new BranchData(); + _$jscoverage['/tree/check-node.js'].branchData['60'] = []; + _$jscoverage['/tree/check-node.js'].branchData['60'][1] = new BranchData(); + _$jscoverage['/tree/check-node.js'].branchData['60'][2] = new BranchData(); + _$jscoverage['/tree/check-node.js'].branchData['60'][3] = new BranchData(); + _$jscoverage['/tree/check-node.js'].branchData['68'] = []; + _$jscoverage['/tree/check-node.js'].branchData['68'][1] = new BranchData(); + _$jscoverage['/tree/check-node.js'].branchData['71'] = []; + _$jscoverage['/tree/check-node.js'].branchData['71'][1] = new BranchData(); + _$jscoverage['/tree/check-node.js'].branchData['75'] = []; + _$jscoverage['/tree/check-node.js'].branchData['75'][1] = new BranchData(); + _$jscoverage['/tree/check-node.js'].branchData['78'] = []; + _$jscoverage['/tree/check-node.js'].branchData['78'][1] = new BranchData(); + _$jscoverage['/tree/check-node.js'].branchData['84'] = []; + _$jscoverage['/tree/check-node.js'].branchData['84'][1] = new BranchData(); + _$jscoverage['/tree/check-node.js'].branchData['88'] = []; + _$jscoverage['/tree/check-node.js'].branchData['88'][1] = new BranchData(); } -_$jscoverage['/tree/check-node.js'].branchData['90'][1].init(732, 24, 'checkCount === cs.length'); -function visit11_90_1(result) { - _$jscoverage['/tree/check-node.js'].branchData['90'][1].ranCondition(result); +_$jscoverage['/tree/check-node.js'].branchData['88'][1].init(732, 24, 'checkCount === cs.length'); +function visit11_88_1(result) { + _$jscoverage['/tree/check-node.js'].branchData['88'][1].ranCondition(result); return result; -}_$jscoverage['/tree/check-node.js'].branchData['86'][1].init(583, 16, 'checkCount === 0'); -function visit10_86_1(result) { - _$jscoverage['/tree/check-node.js'].branchData['86'][1].ranCondition(result); +}_$jscoverage['/tree/check-node.js'].branchData['84'][1].init(583, 16, 'checkCount === 0'); +function visit10_84_1(result) { + _$jscoverage['/tree/check-node.js'].branchData['84'][1].ranCondition(result); return result; -}_$jscoverage['/tree/check-node.js'].branchData['80'][1].init(307, 16, 'cState === CHECK'); -function visit9_80_1(result) { - _$jscoverage['/tree/check-node.js'].branchData['80'][1].ranCondition(result); +}_$jscoverage['/tree/check-node.js'].branchData['78'][1].init(307, 16, 'cState === CHECK'); +function visit9_78_1(result) { + _$jscoverage['/tree/check-node.js'].branchData['78'][1].ranCondition(result); return result; -}_$jscoverage['/tree/check-node.js'].branchData['77'][1].init(150, 24, 'cState === PARTIAL_CHECK'); -function visit8_77_1(result) { - _$jscoverage['/tree/check-node.js'].branchData['77'][1].ranCondition(result); +}_$jscoverage['/tree/check-node.js'].branchData['75'][1].init(150, 24, 'cState === PARTIAL_CHECK'); +function visit8_75_1(result) { + _$jscoverage['/tree/check-node.js'].branchData['75'][1].ranCondition(result); return result; -}_$jscoverage['/tree/check-node.js'].branchData['73'][1].init(106, 13, 'i < cs.length'); -function visit7_73_1(result) { - _$jscoverage['/tree/check-node.js'].branchData['73'][1].ranCondition(result); +}_$jscoverage['/tree/check-node.js'].branchData['71'][1].init(106, 13, 'i < cs.length'); +function visit7_71_1(result) { + _$jscoverage['/tree/check-node.js'].branchData['71'][1].ranCondition(result); return result; -}_$jscoverage['/tree/check-node.js'].branchData['70'][1].init(459, 6, 'parent'); -function visit6_70_1(result) { - _$jscoverage['/tree/check-node.js'].branchData['70'][1].ranCondition(result); +}_$jscoverage['/tree/check-node.js'].branchData['68'][1].init(459, 6, 'parent'); +function visit6_68_1(result) { + _$jscoverage['/tree/check-node.js'].branchData['68'][1].ranCondition(result); return result; -}_$jscoverage['/tree/check-node.js'].branchData['62'][3].init(217, 11, 's === EMPTY'); -function visit5_62_3(result) { - _$jscoverage['/tree/check-node.js'].branchData['62'][3].ranCondition(result); +}_$jscoverage['/tree/check-node.js'].branchData['60'][3].init(217, 11, 's === EMPTY'); +function visit5_60_3(result) { + _$jscoverage['/tree/check-node.js'].branchData['60'][3].ranCondition(result); return result; -}_$jscoverage['/tree/check-node.js'].branchData['62'][2].init(202, 11, 's === CHECK'); -function visit4_62_2(result) { - _$jscoverage['/tree/check-node.js'].branchData['62'][2].ranCondition(result); +}_$jscoverage['/tree/check-node.js'].branchData['60'][2].init(202, 11, 's === CHECK'); +function visit4_60_2(result) { + _$jscoverage['/tree/check-node.js'].branchData['60'][2].ranCondition(result); return result; -}_$jscoverage['/tree/check-node.js'].branchData['62'][1].init(202, 26, 's === CHECK || s === EMPTY'); -function visit3_62_1(result) { - _$jscoverage['/tree/check-node.js'].branchData['62'][1].ranCondition(result); +}_$jscoverage['/tree/check-node.js'].branchData['60'][1].init(202, 26, 's === CHECK || s === EMPTY'); +function visit3_60_1(result) { + _$jscoverage['/tree/check-node.js'].branchData['60'][1].ranCondition(result); return result; }_$jscoverage['/tree/check-node.js'].branchData['41'][1].init(597, 20, 'checkState === CHECK'); function visit2_41_1(result) { @@ -382,61 +381,59 @@ KISSY.add(function(S, require) { } _$jscoverage['/tree/check-node.js'].lineData[47]++; self.set('checkState', checkState); - _$jscoverage['/tree/check-node.js'].lineData[49]++; - self.fire('click'); - _$jscoverage['/tree/check-node.js'].lineData[50]++; + _$jscoverage['/tree/check-node.js'].lineData[48]++; return true; }, _onSetCheckState: function(s) { _$jscoverage['/tree/check-node.js'].functionData[2]++; - _$jscoverage['/tree/check-node.js'].lineData[54]++; + _$jscoverage['/tree/check-node.js'].lineData[52]++; var self = this, parent = self.get('parent'), checkCount, i, c, cState, cs; - _$jscoverage['/tree/check-node.js'].lineData[62]++; - if (visit3_62_1(visit4_62_2(s === CHECK) || visit5_62_3(s === EMPTY))) { - _$jscoverage['/tree/check-node.js'].lineData[63]++; + _$jscoverage['/tree/check-node.js'].lineData[60]++; + if (visit3_60_1(visit4_60_2(s === CHECK) || visit5_60_3(s === EMPTY))) { + _$jscoverage['/tree/check-node.js'].lineData[61]++; S.each(self.get('children'), function(c) { _$jscoverage['/tree/check-node.js'].functionData[3]++; - _$jscoverage['/tree/check-node.js'].lineData[64]++; + _$jscoverage['/tree/check-node.js'].lineData[62]++; c.set('checkState', s); }); } - _$jscoverage['/tree/check-node.js'].lineData[70]++; - if (visit6_70_1(parent)) { - _$jscoverage['/tree/check-node.js'].lineData[71]++; + _$jscoverage['/tree/check-node.js'].lineData[68]++; + if (visit6_68_1(parent)) { + _$jscoverage['/tree/check-node.js'].lineData[69]++; checkCount = 0; - _$jscoverage['/tree/check-node.js'].lineData[72]++; + _$jscoverage['/tree/check-node.js'].lineData[70]++; cs = parent.get('children'); - _$jscoverage['/tree/check-node.js'].lineData[73]++; - for (i = 0; visit7_73_1(i < cs.length); i++) { - _$jscoverage['/tree/check-node.js'].lineData[74]++; + _$jscoverage['/tree/check-node.js'].lineData[71]++; + for (i = 0; visit7_71_1(i < cs.length); i++) { + _$jscoverage['/tree/check-node.js'].lineData[72]++; c = cs[i]; - _$jscoverage['/tree/check-node.js'].lineData[75]++; + _$jscoverage['/tree/check-node.js'].lineData[73]++; cState = c.get('checkState'); - _$jscoverage['/tree/check-node.js'].lineData[77]++; - if (visit8_77_1(cState === PARTIAL_CHECK)) { - _$jscoverage['/tree/check-node.js'].lineData[78]++; + _$jscoverage['/tree/check-node.js'].lineData[75]++; + if (visit8_75_1(cState === PARTIAL_CHECK)) { + _$jscoverage['/tree/check-node.js'].lineData[76]++; parent.set('checkState', PARTIAL_CHECK); - _$jscoverage['/tree/check-node.js'].lineData[79]++; + _$jscoverage['/tree/check-node.js'].lineData[77]++; return; } else { - _$jscoverage['/tree/check-node.js'].lineData[80]++; - if (visit9_80_1(cState === CHECK)) { - _$jscoverage['/tree/check-node.js'].lineData[81]++; + _$jscoverage['/tree/check-node.js'].lineData[78]++; + if (visit9_78_1(cState === CHECK)) { + _$jscoverage['/tree/check-node.js'].lineData[79]++; checkCount++; } } } - _$jscoverage['/tree/check-node.js'].lineData[86]++; - if (visit10_86_1(checkCount === 0)) { - _$jscoverage['/tree/check-node.js'].lineData[87]++; + _$jscoverage['/tree/check-node.js'].lineData[84]++; + if (visit10_84_1(checkCount === 0)) { + _$jscoverage['/tree/check-node.js'].lineData[85]++; parent.set('checkState', EMPTY); } else { - _$jscoverage['/tree/check-node.js'].lineData[90]++; - if (visit11_90_1(checkCount === cs.length)) { - _$jscoverage['/tree/check-node.js'].lineData[91]++; + _$jscoverage['/tree/check-node.js'].lineData[88]++; + if (visit11_88_1(checkCount === cs.length)) { + _$jscoverage['/tree/check-node.js'].lineData[89]++; parent.set('checkState', CHECK); } else { - _$jscoverage['/tree/check-node.js'].lineData[95]++; + _$jscoverage['/tree/check-node.js'].lineData[93]++; parent.set('checkState', PARTIAL_CHECK); } } @@ -455,11 +452,11 @@ KISSY.add(function(S, require) { value: { xclass: 'check-tree-node'}}}, xclass: 'check-tree-node'}); - _$jscoverage['/tree/check-node.js'].lineData[139]++; + _$jscoverage['/tree/check-node.js'].lineData[137]++; CheckNode.CheckState = { PARTIAL_CHECK: PARTIAL_CHECK, CHECK: CHECK, EMPTY: EMPTY}; - _$jscoverage['/tree/check-node.js'].lineData[154]++; + _$jscoverage['/tree/check-node.js'].lineData[152]++; return CheckNode; }); diff --git a/src/tree/coverage/src/tree/node-xtpl.js b/src/tree/coverage/src/tree/node-xtpl.js index c2e8138cce..bf6099463d 100644 --- a/src/tree/coverage/src/tree/node-xtpl.js +++ b/src/tree/coverage/src/tree/node-xtpl.js @@ -235,8 +235,6 @@ if (! _$jscoverage['/tree/node-xtpl.js']) { _$jscoverage['/tree/node-xtpl.js'].lineData[9] = 0; _$jscoverage['/tree/node-xtpl.js'].lineData[10] = 0; _$jscoverage['/tree/node-xtpl.js'].lineData[12] = 0; - _$jscoverage['/tree/node-xtpl.js'].lineData[15] = 0; - _$jscoverage['/tree/node-xtpl.js'].lineData[16] = 0; _$jscoverage['/tree/node-xtpl.js'].lineData[17] = 0; _$jscoverage['/tree/node-xtpl.js'].lineData[18] = 0; _$jscoverage['/tree/node-xtpl.js'].lineData[19] = 0; @@ -262,8 +260,8 @@ if (! _$jscoverage['/tree/node-xtpl.js']) { _$jscoverage['/tree/node-xtpl.js'].lineData[39] = 0; _$jscoverage['/tree/node-xtpl.js'].lineData[40] = 0; _$jscoverage['/tree/node-xtpl.js'].lineData[41] = 0; + _$jscoverage['/tree/node-xtpl.js'].lineData[42] = 0; _$jscoverage['/tree/node-xtpl.js'].lineData[43] = 0; - _$jscoverage['/tree/node-xtpl.js'].lineData[44] = 0; _$jscoverage['/tree/node-xtpl.js'].lineData[45] = 0; _$jscoverage['/tree/node-xtpl.js'].lineData[46] = 0; _$jscoverage['/tree/node-xtpl.js'].lineData[47] = 0; @@ -294,8 +292,8 @@ if (! _$jscoverage['/tree/node-xtpl.js']) { _$jscoverage['/tree/node-xtpl.js'].lineData[72] = 0; _$jscoverage['/tree/node-xtpl.js'].lineData[73] = 0; _$jscoverage['/tree/node-xtpl.js'].lineData[74] = 0; + _$jscoverage['/tree/node-xtpl.js'].lineData[75] = 0; _$jscoverage['/tree/node-xtpl.js'].lineData[76] = 0; - _$jscoverage['/tree/node-xtpl.js'].lineData[77] = 0; _$jscoverage['/tree/node-xtpl.js'].lineData[78] = 0; _$jscoverage['/tree/node-xtpl.js'].lineData[79] = 0; _$jscoverage['/tree/node-xtpl.js'].lineData[80] = 0; @@ -313,8 +311,8 @@ if (! _$jscoverage['/tree/node-xtpl.js']) { _$jscoverage['/tree/node-xtpl.js'].lineData[92] = 0; _$jscoverage['/tree/node-xtpl.js'].lineData[93] = 0; _$jscoverage['/tree/node-xtpl.js'].lineData[94] = 0; + _$jscoverage['/tree/node-xtpl.js'].lineData[95] = 0; _$jscoverage['/tree/node-xtpl.js'].lineData[96] = 0; - _$jscoverage['/tree/node-xtpl.js'].lineData[97] = 0; _$jscoverage['/tree/node-xtpl.js'].lineData[98] = 0; _$jscoverage['/tree/node-xtpl.js'].lineData[99] = 0; _$jscoverage['/tree/node-xtpl.js'].lineData[100] = 0; @@ -335,12 +333,14 @@ if (! _$jscoverage['/tree/node-xtpl.js']) { _$jscoverage['/tree/node-xtpl.js'].lineData[115] = 0; _$jscoverage['/tree/node-xtpl.js'].lineData[116] = 0; _$jscoverage['/tree/node-xtpl.js'].lineData[117] = 0; + _$jscoverage['/tree/node-xtpl.js'].lineData[118] = 0; _$jscoverage['/tree/node-xtpl.js'].lineData[119] = 0; - _$jscoverage['/tree/node-xtpl.js'].lineData[120] = 0; _$jscoverage['/tree/node-xtpl.js'].lineData[121] = 0; _$jscoverage['/tree/node-xtpl.js'].lineData[122] = 0; _$jscoverage['/tree/node-xtpl.js'].lineData[123] = 0; _$jscoverage['/tree/node-xtpl.js'].lineData[124] = 0; + _$jscoverage['/tree/node-xtpl.js'].lineData[125] = 0; + _$jscoverage['/tree/node-xtpl.js'].lineData[126] = 0; } if (! _$jscoverage['/tree/node-xtpl.js'].functionData) { _$jscoverage['/tree/node-xtpl.js'].functionData = []; @@ -355,12 +355,12 @@ if (! _$jscoverage['/tree/node-xtpl.js'].branchData) { _$jscoverage['/tree/node-xtpl.js'].branchData['9'] = []; _$jscoverage['/tree/node-xtpl.js'].branchData['9'][1] = new BranchData(); _$jscoverage['/tree/node-xtpl.js'].branchData['9'][2] = new BranchData(); - _$jscoverage['/tree/node-xtpl.js'].branchData['92'] = []; - _$jscoverage['/tree/node-xtpl.js'].branchData['92'][1] = new BranchData(); + _$jscoverage['/tree/node-xtpl.js'].branchData['94'] = []; + _$jscoverage['/tree/node-xtpl.js'].branchData['94'][1] = new BranchData(); } -_$jscoverage['/tree/node-xtpl.js'].branchData['92'][1].init(4422, 10, 'moduleWrap'); -function visit28_92_1(result) { - _$jscoverage['/tree/node-xtpl.js'].branchData['92'][1].ranCondition(result); +_$jscoverage['/tree/node-xtpl.js'].branchData['94'][1].init(4346, 10, 'moduleWrap'); +function visit28_94_1(result) { + _$jscoverage['/tree/node-xtpl.js'].branchData['94'][1].ranCondition(result); return result; }_$jscoverage['/tree/node-xtpl.js'].branchData['9'][2].init(165, 29, 'typeof module !== "undefined"'); function visit27_9_2(result) { @@ -384,225 +384,225 @@ KISSY.add(function(S, require, exports, module) { moduleWrap = module; } _$jscoverage['/tree/node-xtpl.js'].lineData[12]++; - var runBlockCommandUtil = utils.runBlockCommand, getExpressionUtil = utils.getExpression, getPropertyOrRunCommandUtil = utils.getPropertyOrRunCommand; - _$jscoverage['/tree/node-xtpl.js'].lineData[15]++; - buffer += '
    DEBUG_CONTEXT_LIMIT'); -function visit8_125_1(result) { - _$jscoverage['/compiler/parser.js'].branchData['125'][1].ranCondition(result); +}_$jscoverage['/compiler/parser.js'].branchData['97'][1].init(522, 33, 'next.length > DEBUG_CONTEXT_LIMIT'); +function visit10_97_1(result) { + _$jscoverage['/compiler/parser.js'].branchData['97'][1].ranCondition(result); return result; -}_$jscoverage['/compiler/parser.js'].branchData['123'][1].init(309, 36, 'matched.length > DEBUG_CONTEXT_LIMIT'); -function visit7_123_1(result) { - _$jscoverage['/compiler/parser.js'].branchData['123'][1].ranCondition(result); +}_$jscoverage['/compiler/parser.js'].branchData['95'][1].init(316, 36, 'matched.length > DEBUG_CONTEXT_LIMIT'); +function visit9_95_1(result) { + _$jscoverage['/compiler/parser.js'].branchData['95'][1].ranCondition(result); return result; -}_$jscoverage['/compiler/parser.js'].branchData['101'][1].init(230, 30, 'S.inArray(currentState, state)'); -function visit6_101_1(result) { - _$jscoverage['/compiler/parser.js'].branchData['101'][1].ranCondition(result); +}_$jscoverage['/compiler/parser.js'].branchData['72'][1].init(26, 30, 'S.inArray(currentState, state)'); +function visit8_72_1(result) { + _$jscoverage['/compiler/parser.js'].branchData['72'][1].ranCondition(result); return result; -}_$jscoverage['/compiler/parser.js'].branchData['98'][1].init(25, 37, 'currentState === Lexer.STATIC.INITIAL'); -function visit5_98_1(result) { - _$jscoverage['/compiler/parser.js'].branchData['98'][1].ranCondition(result); +}_$jscoverage['/compiler/parser.js'].branchData['68'][1].init(26, 37, 'currentState === Lexer.STATIC.INITIAL'); +function visit7_68_1(result) { + _$jscoverage['/compiler/parser.js'].branchData['68'][1].ranCondition(result); return result; -}_$jscoverage['/compiler/parser.js'].branchData['97'][1].init(66, 6, '!state'); -function visit4_97_1(result) { - _$jscoverage['/compiler/parser.js'].branchData['97'][1].ranCondition(result); +}_$jscoverage['/compiler/parser.js'].branchData['67'][1].init(68, 6, '!state'); +function visit6_67_1(result) { + _$jscoverage['/compiler/parser.js'].branchData['67'][1].ranCondition(result); return result; -}_$jscoverage['/compiler/parser.js'].branchData['96'][1].init(29, 15, 'r.state || r[3]'); -function visit3_96_1(result) { - _$jscoverage['/compiler/parser.js'].branchData['96'][1].ranCondition(result); +}_$jscoverage['/compiler/parser.js'].branchData['66'][1].init(30, 15, 'r.state || r[3]'); +function visit5_66_1(result) { + _$jscoverage['/compiler/parser.js'].branchData['66'][1].ranCondition(result); + return result; +}_$jscoverage['/compiler/parser.js'].branchData['57'][1].init(159, 10, 'index >= 0'); +function visit4_57_1(result) { + _$jscoverage['/compiler/parser.js'].branchData['57'][1].ranCondition(result); + return result; +}_$jscoverage['/compiler/parser.js'].branchData['49'][1].init(179, 16, '!(field in self)'); +function visit3_49_1(result) { + _$jscoverage['/compiler/parser.js'].branchData['49'][1].ranCondition(result); return result; }_$jscoverage['/compiler/parser.js'].lineData[3]++; -KISSY.add(function(_, undefined) { +KISSY.add(function() { _$jscoverage['/compiler/parser.js'].functionData[0]++; _$jscoverage['/compiler/parser.js'].lineData[6]++; var parser = {}, S = KISSY, GrammarConst = { @@ -752,34 +786,34 @@ KISSY.add(function(_, undefined) { 'TYPE_INDEX': 0, 'PRODUCTION_INDEX': 1, 'TO_INDEX': 2}; - _$jscoverage['/compiler/parser.js'].lineData[15]++; + _$jscoverage['/compiler/parser.js'].lineData[16]++; var Lexer = function(cfg) { _$jscoverage['/compiler/parser.js'].functionData[1]++; _$jscoverage['/compiler/parser.js'].lineData[17]++; var self = this; - _$jscoverage['/compiler/parser.js'].lineData[33]++; + _$jscoverage['/compiler/parser.js'].lineData[18]++; self.rules = []; - _$jscoverage['/compiler/parser.js'].lineData[35]++; + _$jscoverage['/compiler/parser.js'].lineData[19]++; S.mix(self, cfg); - _$jscoverage['/compiler/parser.js'].lineData[42]++; + _$jscoverage['/compiler/parser.js'].lineData[20]++; self.resetInput(self.input); }; - _$jscoverage['/compiler/parser.js'].lineData[45]++; + _$jscoverage['/compiler/parser.js'].lineData[22]++; Lexer.prototype = { 'constructor': function(cfg) { _$jscoverage['/compiler/parser.js'].functionData[2]++; - _$jscoverage['/compiler/parser.js'].lineData[48]++; + _$jscoverage['/compiler/parser.js'].lineData[24]++; var self = this; - _$jscoverage['/compiler/parser.js'].lineData[64]++; + _$jscoverage['/compiler/parser.js'].lineData[25]++; self.rules = []; - _$jscoverage['/compiler/parser.js'].lineData[66]++; + _$jscoverage['/compiler/parser.js'].lineData[26]++; S.mix(self, cfg); - _$jscoverage['/compiler/parser.js'].lineData[73]++; + _$jscoverage['/compiler/parser.js'].lineData[27]++; self.resetInput(self.input); }, 'resetInput': function(input) { _$jscoverage['/compiler/parser.js'].functionData[3]++; - _$jscoverage['/compiler/parser.js'].lineData[77]++; + _$jscoverage['/compiler/parser.js'].lineData[30]++; S.mix(this, { input: input, matched: "", @@ -792,1851 +826,1743 @@ KISSY.add(function(_, undefined) { firstColumn: 1, lastColumn: 1}); }, - 'getCurrentRules': function() { + 'genShortId': function(field) { _$jscoverage['/compiler/parser.js'].functionData[4]++; - _$jscoverage['/compiler/parser.js'].lineData[91]++; + _$jscoverage['/compiler/parser.js'].lineData[44]++; + var base = 97, max = 122, interval = max - base + 1; + _$jscoverage['/compiler/parser.js'].lineData[47]++; + field += "__gen"; + _$jscoverage['/compiler/parser.js'].lineData[48]++; + var self = this; + _$jscoverage['/compiler/parser.js'].lineData[49]++; + if (visit3_49_1(!(field in self))) { + _$jscoverage['/compiler/parser.js'].lineData[50]++; + self[field] = -1; + } + _$jscoverage['/compiler/parser.js'].lineData[52]++; + var index = self[field] = self[field] + 1; + _$jscoverage['/compiler/parser.js'].lineData[53]++; + var ret = ""; + _$jscoverage['/compiler/parser.js'].lineData[54]++; + do { + _$jscoverage['/compiler/parser.js'].lineData[55]++; + ret = String.fromCharCode(base + index % interval) + ret; + _$jscoverage['/compiler/parser.js'].lineData[56]++; + index = Math.floor(index / interval) - 1; + } while (visit4_57_1(index >= 0)); + _$jscoverage['/compiler/parser.js'].lineData[58]++; + return ret; +}, + 'getCurrentRules': function() { + _$jscoverage['/compiler/parser.js'].functionData[5]++; + _$jscoverage['/compiler/parser.js'].lineData[61]++; var self = this, currentState = self.stateStack[self.stateStack.length - 1], rules = []; - _$jscoverage['/compiler/parser.js'].lineData[94]++; + _$jscoverage['/compiler/parser.js'].lineData[64]++; currentState = self.mapState(currentState); - _$jscoverage['/compiler/parser.js'].lineData[95]++; + _$jscoverage['/compiler/parser.js'].lineData[65]++; S.each(self.rules, function(r) { - _$jscoverage['/compiler/parser.js'].functionData[5]++; - _$jscoverage['/compiler/parser.js'].lineData[96]++; - var state = visit3_96_1(r.state || r[3]); - _$jscoverage['/compiler/parser.js'].lineData[97]++; - if (visit4_97_1(!state)) { - _$jscoverage['/compiler/parser.js'].lineData[98]++; - if (visit5_98_1(currentState === Lexer.STATIC.INITIAL)) { - _$jscoverage['/compiler/parser.js'].lineData[99]++; + _$jscoverage['/compiler/parser.js'].functionData[6]++; + _$jscoverage['/compiler/parser.js'].lineData[66]++; + var state = visit5_66_1(r.state || r[3]); + _$jscoverage['/compiler/parser.js'].lineData[67]++; + if (visit6_67_1(!state)) { + _$jscoverage['/compiler/parser.js'].lineData[68]++; + if (visit7_68_1(currentState === Lexer.STATIC.INITIAL)) { + _$jscoverage['/compiler/parser.js'].lineData[69]++; rules.push(r); } } else { - _$jscoverage['/compiler/parser.js'].lineData[101]++; - if (visit6_101_1(S.inArray(currentState, state))) { - _$jscoverage['/compiler/parser.js'].lineData[102]++; + _$jscoverage['/compiler/parser.js'].lineData[72]++; + if (visit8_72_1(S.inArray(currentState, state))) { + _$jscoverage['/compiler/parser.js'].lineData[73]++; rules.push(r); } } }); - _$jscoverage['/compiler/parser.js'].lineData[105]++; + _$jscoverage['/compiler/parser.js'].lineData[77]++; return rules; }, 'pushState': function(state) { - _$jscoverage['/compiler/parser.js'].functionData[6]++; - _$jscoverage['/compiler/parser.js'].lineData[108]++; + _$jscoverage['/compiler/parser.js'].functionData[7]++; + _$jscoverage['/compiler/parser.js'].lineData[80]++; this.stateStack.push(state); }, 'popState': function() { - _$jscoverage['/compiler/parser.js'].functionData[7]++; - _$jscoverage['/compiler/parser.js'].lineData[111]++; + _$jscoverage['/compiler/parser.js'].functionData[8]++; + _$jscoverage['/compiler/parser.js'].lineData[83]++; return this.stateStack.pop(); }, 'getStateStack': function() { - _$jscoverage['/compiler/parser.js'].functionData[8]++; - _$jscoverage['/compiler/parser.js'].lineData[114]++; + _$jscoverage['/compiler/parser.js'].functionData[9]++; + _$jscoverage['/compiler/parser.js'].lineData[86]++; return this.stateStack; }, 'showDebugInfo': function() { - _$jscoverage['/compiler/parser.js'].functionData[9]++; - _$jscoverage['/compiler/parser.js'].lineData[117]++; + _$jscoverage['/compiler/parser.js'].functionData[10]++; + _$jscoverage['/compiler/parser.js'].lineData[89]++; var self = this, DEBUG_CONTEXT_LIMIT = Lexer.STATIC.DEBUG_CONTEXT_LIMIT, matched = self.matched, match = self.match, input = self.input; - _$jscoverage['/compiler/parser.js'].lineData[122]++; + _$jscoverage['/compiler/parser.js'].lineData[94]++; matched = matched.slice(0, matched.length - match.length); - _$jscoverage['/compiler/parser.js'].lineData[123]++; - var past = (visit7_123_1(matched.length > DEBUG_CONTEXT_LIMIT) ? "..." : "") + matched.slice(-DEBUG_CONTEXT_LIMIT).replace(/\n/, " "), next = match + input; - _$jscoverage['/compiler/parser.js'].lineData[125]++; - next = next.slice(0, DEBUG_CONTEXT_LIMIT) + (visit8_125_1(next.length > DEBUG_CONTEXT_LIMIT) ? "..." : ""); - _$jscoverage['/compiler/parser.js'].lineData[126]++; - return past + next + '\n' + new Array(past.length + 1).join("-") + "^"; + _$jscoverage['/compiler/parser.js'].lineData[95]++; + var past = (visit9_95_1(matched.length > DEBUG_CONTEXT_LIMIT) ? "..." : "") + matched.slice(-DEBUG_CONTEXT_LIMIT).replace(/\n/, " "), next = match + input; + _$jscoverage['/compiler/parser.js'].lineData[97]++; + next = next.slice(0, DEBUG_CONTEXT_LIMIT) + (visit10_97_1(next.length > DEBUG_CONTEXT_LIMIT) ? "..." : ""); + _$jscoverage['/compiler/parser.js'].lineData[98]++; + return past + next + "\n" + (new Array(past.length + 1)).join("-") + "^"; }, 'mapSymbol': function(t) { - _$jscoverage['/compiler/parser.js'].functionData[10]++; - _$jscoverage['/compiler/parser.js'].lineData[129]++; + _$jscoverage['/compiler/parser.js'].functionData[11]++; + _$jscoverage['/compiler/parser.js'].lineData[101]++; var self = this, symbolMap = self.symbolMap; - _$jscoverage['/compiler/parser.js'].lineData[131]++; - if (visit9_131_1(!symbolMap)) { - _$jscoverage['/compiler/parser.js'].lineData[132]++; + _$jscoverage['/compiler/parser.js'].lineData[103]++; + if (visit11_103_1(!symbolMap)) { + _$jscoverage['/compiler/parser.js'].lineData[104]++; return t; } - _$jscoverage['/compiler/parser.js'].lineData[134]++; - return visit10_134_1(symbolMap[t] || (symbolMap[t] = (++self.symbolId))); + _$jscoverage['/compiler/parser.js'].lineData[106]++; + return visit12_106_1(symbolMap[t] || (symbolMap[t] = self.genShortId("symbol"))); }, 'mapReverseSymbol': function(rs) { - _$jscoverage['/compiler/parser.js'].functionData[11]++; - _$jscoverage['/compiler/parser.js'].lineData[137]++; + _$jscoverage['/compiler/parser.js'].functionData[12]++; + _$jscoverage['/compiler/parser.js'].lineData[109]++; var self = this, symbolMap = self.symbolMap, i, reverseSymbolMap = self.reverseSymbolMap; - _$jscoverage['/compiler/parser.js'].lineData[141]++; - if (visit11_141_1(!reverseSymbolMap && symbolMap)) { - _$jscoverage['/compiler/parser.js'].lineData[142]++; + _$jscoverage['/compiler/parser.js'].lineData[112]++; + if (visit13_112_1(!reverseSymbolMap && symbolMap)) { + _$jscoverage['/compiler/parser.js'].lineData[113]++; reverseSymbolMap = self.reverseSymbolMap = {}; - _$jscoverage['/compiler/parser.js'].lineData[143]++; + _$jscoverage['/compiler/parser.js'].lineData[114]++; for (i in symbolMap) { - _$jscoverage['/compiler/parser.js'].lineData[144]++; + _$jscoverage['/compiler/parser.js'].lineData[115]++; reverseSymbolMap[symbolMap[i]] = i; } } - _$jscoverage['/compiler/parser.js'].lineData[147]++; - if (visit12_147_1(reverseSymbolMap)) { - _$jscoverage['/compiler/parser.js'].lineData[148]++; + _$jscoverage['/compiler/parser.js'].lineData[118]++; + if (visit14_118_1(reverseSymbolMap)) { + _$jscoverage['/compiler/parser.js'].lineData[119]++; return reverseSymbolMap[rs]; } else { - _$jscoverage['/compiler/parser.js'].lineData[150]++; + _$jscoverage['/compiler/parser.js'].lineData[121]++; return rs; } }, 'mapState': function(s) { - _$jscoverage['/compiler/parser.js'].functionData[12]++; - _$jscoverage['/compiler/parser.js'].lineData[154]++; + _$jscoverage['/compiler/parser.js'].functionData[13]++; + _$jscoverage['/compiler/parser.js'].lineData[125]++; var self = this, stateMap = self.stateMap; - _$jscoverage['/compiler/parser.js'].lineData[156]++; - if (visit13_156_1(!stateMap)) { - _$jscoverage['/compiler/parser.js'].lineData[157]++; + _$jscoverage['/compiler/parser.js'].lineData[127]++; + if (visit15_127_1(!stateMap)) { + _$jscoverage['/compiler/parser.js'].lineData[128]++; return s; } - _$jscoverage['/compiler/parser.js'].lineData[159]++; - return visit14_159_1(stateMap[s] || (stateMap[s] = (++self.stateId))); + _$jscoverage['/compiler/parser.js'].lineData[130]++; + return visit16_130_1(stateMap[s] || (stateMap[s] = self.genShortId("state"))); }, 'lex': function() { - _$jscoverage['/compiler/parser.js'].functionData[13]++; - _$jscoverage['/compiler/parser.js'].lineData[162]++; + _$jscoverage['/compiler/parser.js'].functionData[14]++; + _$jscoverage['/compiler/parser.js'].lineData[133]++; var self = this, input = self.input, i, rule, m, ret, lines, rules = self.getCurrentRules(); - _$jscoverage['/compiler/parser.js'].lineData[171]++; + _$jscoverage['/compiler/parser.js'].lineData[136]++; self.match = self.text = ""; - _$jscoverage['/compiler/parser.js'].lineData[173]++; - if (visit15_173_1(!input)) { - _$jscoverage['/compiler/parser.js'].lineData[174]++; + _$jscoverage['/compiler/parser.js'].lineData[137]++; + if (visit17_137_1(!input)) { + _$jscoverage['/compiler/parser.js'].lineData[138]++; return self.mapSymbol(Lexer.STATIC.END_TAG); } - _$jscoverage['/compiler/parser.js'].lineData[177]++; - for (i = 0; visit16_177_1(i < rules.length); i++) { - _$jscoverage['/compiler/parser.js'].lineData[178]++; + _$jscoverage['/compiler/parser.js'].lineData[140]++; + for (i = 0; visit18_140_1(i < rules.length); i++) { + _$jscoverage['/compiler/parser.js'].lineData[141]++; rule = rules[i]; - _$jscoverage['/compiler/parser.js'].lineData[179]++; - var regexp = visit17_179_1(rule.regexp || rule[1]), token = visit18_180_1(rule.token || rule[0]), action = visit19_181_1(rule.action || visit20_181_2(rule[2] || undefined)); - _$jscoverage['/compiler/parser.js'].lineData[182]++; - if ((m = input.match(regexp))) { - _$jscoverage['/compiler/parser.js'].lineData[183]++; + _$jscoverage['/compiler/parser.js'].lineData[142]++; + var regexp = visit19_142_1(rule.regexp || rule[1]), token = visit20_143_1(rule.token || rule[0]), action = visit21_144_1(rule.action || visit22_144_2(rule[2] || undefined)); + _$jscoverage['/compiler/parser.js'].lineData[145]++; + if (visit23_145_1(m = input.match(regexp))) { + _$jscoverage['/compiler/parser.js'].lineData[146]++; lines = m[0].match(/\n.*/g); - _$jscoverage['/compiler/parser.js'].lineData[184]++; - if (visit21_184_1(lines)) { - _$jscoverage['/compiler/parser.js'].lineData[185]++; + _$jscoverage['/compiler/parser.js'].lineData[147]++; + if (visit24_147_1(lines)) { + _$jscoverage['/compiler/parser.js'].lineData[148]++; self.lineNumber += lines.length; } - _$jscoverage['/compiler/parser.js'].lineData[187]++; + _$jscoverage['/compiler/parser.js'].lineData[150]++; S.mix(self, { firstLine: self.lastLine, lastLine: self.lineNumber + 1, firstColumn: self.lastColumn, lastColumn: lines ? lines[lines.length - 1].length - 1 : self.lastColumn + m[0].length}); - _$jscoverage['/compiler/parser.js'].lineData[193]++; + _$jscoverage['/compiler/parser.js'].lineData[156]++; var match; - _$jscoverage['/compiler/parser.js'].lineData[195]++; + _$jscoverage['/compiler/parser.js'].lineData[157]++; match = self.match = m[0]; - _$jscoverage['/compiler/parser.js'].lineData[198]++; + _$jscoverage['/compiler/parser.js'].lineData[158]++; self.matches = m; - _$jscoverage['/compiler/parser.js'].lineData[200]++; + _$jscoverage['/compiler/parser.js'].lineData[159]++; self.text = match; - _$jscoverage['/compiler/parser.js'].lineData[202]++; + _$jscoverage['/compiler/parser.js'].lineData[160]++; self.matched += match; - _$jscoverage['/compiler/parser.js'].lineData[203]++; - ret = visit22_203_1(action && action.call(self)); - _$jscoverage['/compiler/parser.js'].lineData[204]++; - if (visit23_204_1(ret === undefined)) { - _$jscoverage['/compiler/parser.js'].lineData[205]++; + _$jscoverage['/compiler/parser.js'].lineData[161]++; + ret = visit25_161_1(action && action.call(self)); + _$jscoverage['/compiler/parser.js'].lineData[162]++; + if (visit26_162_1(ret === undefined)) { + _$jscoverage['/compiler/parser.js'].lineData[163]++; ret = token; } else { - _$jscoverage['/compiler/parser.js'].lineData[207]++; + _$jscoverage['/compiler/parser.js'].lineData[165]++; ret = self.mapSymbol(ret); } - _$jscoverage['/compiler/parser.js'].lineData[209]++; + _$jscoverage['/compiler/parser.js'].lineData[167]++; input = input.slice(match.length); - _$jscoverage['/compiler/parser.js'].lineData[210]++; + _$jscoverage['/compiler/parser.js'].lineData[168]++; self.input = input; - _$jscoverage['/compiler/parser.js'].lineData[212]++; - if (visit24_212_1(ret)) { - _$jscoverage['/compiler/parser.js'].lineData[213]++; + _$jscoverage['/compiler/parser.js'].lineData[169]++; + if (visit27_169_1(ret)) { + _$jscoverage['/compiler/parser.js'].lineData[170]++; return ret; } else { - _$jscoverage['/compiler/parser.js'].lineData[216]++; + _$jscoverage['/compiler/parser.js'].lineData[172]++; return self.lex(); } } } - _$jscoverage['/compiler/parser.js'].lineData[221]++; + _$jscoverage['/compiler/parser.js'].lineData[176]++; S.error("lex error at line " + self.lineNumber + ":\n" + self.showDebugInfo()); - _$jscoverage['/compiler/parser.js'].lineData[222]++; + _$jscoverage['/compiler/parser.js'].lineData[177]++; return undefined; }}; - _$jscoverage['/compiler/parser.js'].lineData[225]++; + _$jscoverage['/compiler/parser.js'].lineData[180]++; Lexer.STATIC = { 'INITIAL': 'I', 'DEBUG_CONTEXT_LIMIT': 20, 'END_TAG': '$EOF'}; - _$jscoverage['/compiler/parser.js'].lineData[230]++; + _$jscoverage['/compiler/parser.js'].lineData[185]++; var lexer = new Lexer({ 'rules': [[0, /^[\s\S]*?(?={{)/, function() { - _$jscoverage['/compiler/parser.js'].functionData[14]++; - _$jscoverage['/compiler/parser.js'].lineData[233]++; + _$jscoverage['/compiler/parser.js'].functionData[15]++; + _$jscoverage['/compiler/parser.js'].lineData[189]++; var self = this, text = self.text, m, n = 0; - _$jscoverage['/compiler/parser.js'].lineData[237]++; + _$jscoverage['/compiler/parser.js'].lineData[194]++; if ((m = text.match(/\\+$/))) { - _$jscoverage['/compiler/parser.js'].lineData[238]++; + _$jscoverage['/compiler/parser.js'].lineData[195]++; n = m[0].length; } - _$jscoverage['/compiler/parser.js'].lineData[240]++; - if (visit25_240_1(n % 2)) { - _$jscoverage['/compiler/parser.js'].lineData[241]++; + _$jscoverage['/compiler/parser.js'].lineData[197]++; + if (visit28_197_1(n % 2)) { + _$jscoverage['/compiler/parser.js'].lineData[198]++; self.pushState('et'); + _$jscoverage['/compiler/parser.js'].lineData[199]++; + text = text.slice(0, -1); } else { - _$jscoverage['/compiler/parser.js'].lineData[243]++; + _$jscoverage['/compiler/parser.js'].lineData[201]++; self.pushState('t'); } - _$jscoverage['/compiler/parser.js'].lineData[245]++; - if (visit26_245_1(n)) { - _$jscoverage['/compiler/parser.js'].lineData[246]++; - text = text.slice(0, -1); + _$jscoverage['/compiler/parser.js'].lineData[203]++; + if (visit29_203_1(n)) { + _$jscoverage['/compiler/parser.js'].lineData[204]++; + text = text.replace(/\\+$/g, function(m) { + _$jscoverage['/compiler/parser.js'].functionData[16]++; + _$jscoverage['/compiler/parser.js'].lineData[205]++; + return new Array(m.length / 2 + 1).join('\\'); +}); } - _$jscoverage['/compiler/parser.js'].lineData[250]++; + _$jscoverage['/compiler/parser.js'].lineData[210]++; self.text = text; - _$jscoverage['/compiler/parser.js'].lineData[251]++; + _$jscoverage['/compiler/parser.js'].lineData[211]++; return 'CONTENT'; -}], [2, /^[\s\S]+/, 0], [2, /^[\s\S]{2,}?(?:(?={{)|$)/, function popState() { - _$jscoverage['/compiler/parser.js'].functionData[15]++; - _$jscoverage['/compiler/parser.js'].lineData[255]++; - this.popState(); -}, ['et']], [3, /^{{(?:#|@|\^)/, 0, ['t']], [4, /^{{\//, 0, ['t']], [5, /^{{\s*else\s*}}/, function popState() { - _$jscoverage['/compiler/parser.js'].functionData[16]++; - _$jscoverage['/compiler/parser.js'].lineData[260]++; - this.popState(); -}, ['t']], [0, /^{{![\s\S]*?}}/, function popState() { +}], ['b', /^[\s\S]+/, 0], ['b', /^[\s\S]{2,}?(?:(?={{)|$)/, function popState() { _$jscoverage['/compiler/parser.js'].functionData[17]++; - _$jscoverage['/compiler/parser.js'].lineData[263]++; + _$jscoverage['/compiler/parser.js'].lineData[217]++; this.popState(); -}, ['t']], [2, /^{{%([\s\S]*?)%}}/, function() { +}, ['et']], ['c', /^{{(?:#|@|\^)/, 0, ['t']], ['d', /^{{\//, 0, ['t']], ['e', /^{{\s*else\s*}}/, function popState() { _$jscoverage['/compiler/parser.js'].functionData[18]++; - _$jscoverage['/compiler/parser.js'].lineData[267]++; - this.text = visit27_267_1(this.matches[1] || ''); - _$jscoverage['/compiler/parser.js'].lineData[268]++; + _$jscoverage['/compiler/parser.js'].lineData[225]++; this.popState(); -}, ['t']], [6, /^{{{?/, 0, ['t']], [0, /^\s+/, 0, ['t']], [7, /^}}}?/, function popState() { +}, ['t']], [0, /^{{![\s\S]*?}}/, function popState() { _$jscoverage['/compiler/parser.js'].functionData[19]++; - _$jscoverage['/compiler/parser.js'].lineData[273]++; + _$jscoverage['/compiler/parser.js'].lineData[231]++; this.popState(); -}, ['t']], [8, /^\(/, 0, ['t']], [9, /^\)/, 0, ['t']], [10, /^\|\|/, 0, ['t']], [11, /^&&/, 0, ['t']], [12, /^===/, 0, ['t']], [13, /^!==/, 0, ['t']], [15, /^>=/, 0, ['t']], [17, /^<=/, 0, ['t']], [14, /^>/, 0, ['t']], [16, /^=/, 0, ['t']], ['p', /^<=/, 0, ['t']], ['q', /^>/, 0, ['t']], ['r', /^', this.$3); -}], [50, [50, 17, 51], function() { + _$jscoverage['/compiler/parser.js'].lineData[482]++; + return new this.yy.EqualityExpression(this.$1, '!==', this.$3); +}], ['ay', ['az']], ['ay', ['ay', 'r', 'az'], function() { _$jscoverage['/compiler/parser.js'].functionData[46]++; - _$jscoverage['/compiler/parser.js'].lineData[464]++; - return new this.yy.RelationalExpression(this.$1, '<=', this.$3); -}], [50, [50, 15, 51], function() { + _$jscoverage['/compiler/parser.js'].lineData[488]++; + return new this.yy.RelationalExpression(this.$1, '<', this.$3); +}], ['ay', ['ay', 'q', 'az'], function() { _$jscoverage['/compiler/parser.js'].functionData[47]++; - _$jscoverage['/compiler/parser.js'].lineData[467]++; - return new this.yy.RelationalExpression(this.$1, '>=', this.$3); -}], [51, [52]], [51, [51, 18, 52], function() { + _$jscoverage['/compiler/parser.js'].lineData[493]++; + return new this.yy.RelationalExpression(this.$1, '>', this.$3); +}], ['ay', ['ay', 'p', 'az'], function() { _$jscoverage['/compiler/parser.js'].functionData[48]++; - _$jscoverage['/compiler/parser.js'].lineData[471]++; - return new this.yy.AdditiveExpression(this.$1, '+', this.$3); -}], [51, [51, 19, 52], function() { + _$jscoverage['/compiler/parser.js'].lineData[498]++; + return new this.yy.RelationalExpression(this.$1, '<=', this.$3); +}], ['ay', ['ay', 'o', 'az'], function() { _$jscoverage['/compiler/parser.js'].functionData[49]++; - _$jscoverage['/compiler/parser.js'].lineData[474]++; - return new this.yy.AdditiveExpression(this.$1, '-', this.$3); -}], [52, [53]], [52, [52, 20, 53], function() { + _$jscoverage['/compiler/parser.js'].lineData[503]++; + return new this.yy.RelationalExpression(this.$1, '>=', this.$3); +}], ['az', ['ba']], ['az', ['az', 's', 'ba'], function() { _$jscoverage['/compiler/parser.js'].functionData[50]++; - _$jscoverage['/compiler/parser.js'].lineData[478]++; - return new this.yy.MultiplicativeExpression(this.$1, '*', this.$3); -}], [52, [52, 21, 53], function() { + _$jscoverage['/compiler/parser.js'].lineData[509]++; + return new this.yy.AdditiveExpression(this.$1, '+', this.$3); +}], ['az', ['az', 't', 'ba'], function() { _$jscoverage['/compiler/parser.js'].functionData[51]++; - _$jscoverage['/compiler/parser.js'].lineData[481]++; - return new this.yy.MultiplicativeExpression(this.$1, '/', this.$3); -}], [52, [52, 22, 53], function() { + _$jscoverage['/compiler/parser.js'].lineData[514]++; + return new this.yy.AdditiveExpression(this.$1, '-', this.$3); +}], ['ba', ['bb']], ['ba', ['ba', 'u', 'bb'], function() { _$jscoverage['/compiler/parser.js'].functionData[52]++; - _$jscoverage['/compiler/parser.js'].lineData[484]++; - return new this.yy.MultiplicativeExpression(this.$1, '%', this.$3); -}], [53, [23, 53], function() { + _$jscoverage['/compiler/parser.js'].lineData[520]++; + return new this.yy.MultiplicativeExpression(this.$1, '*', this.$3); +}], ['ba', ['ba', 'v', 'bb'], function() { _$jscoverage['/compiler/parser.js'].functionData[53]++; - _$jscoverage['/compiler/parser.js'].lineData[487]++; - return new this.yy.UnaryExpression(this.$1); -}], [53, [54]], [54, [24], function() { + _$jscoverage['/compiler/parser.js'].lineData[525]++; + return new this.yy.MultiplicativeExpression(this.$1, '/', this.$3); +}], ['ba', ['ba', 'w', 'bb'], function() { _$jscoverage['/compiler/parser.js'].functionData[54]++; - _$jscoverage['/compiler/parser.js'].lineData[491]++; - return new this.yy.StringNode(this.lexer.lineNumber, this.$1); -}], [54, [26], function() { + _$jscoverage['/compiler/parser.js'].lineData[530]++; + return new this.yy.MultiplicativeExpression(this.$1, '%', this.$3); +}], ['bb', ['x', 'bb'], function() { _$jscoverage['/compiler/parser.js'].functionData[55]++; - _$jscoverage['/compiler/parser.js'].lineData[494]++; - return new this.yy.NumberNode(this.lexer.lineNumber, this.$1); -}], [54, [25], function() { + _$jscoverage['/compiler/parser.js'].lineData[535]++; + return new this.yy.UnaryExpression(this.$1, this.$2); +}], ['bb', ['t', 'bb'], function() { _$jscoverage['/compiler/parser.js'].functionData[56]++; - _$jscoverage['/compiler/parser.js'].lineData[497]++; - return new this.yy.BooleanNode(this.lexer.lineNumber, this.$1); -}], [54, [41]], [54, [8, 43, 9], function() { + _$jscoverage['/compiler/parser.js'].lineData[540]++; + return new this.yy.UnaryExpression(this.$1, this.$2); +}], ['bb', ['bc']], ['bc', ['y'], function() { _$jscoverage['/compiler/parser.js'].functionData[57]++; - _$jscoverage['/compiler/parser.js'].lineData[501]++; - return this.$2; -}], [45, [55], function() { + _$jscoverage['/compiler/parser.js'].lineData[546]++; + return new this.yy.StringNode(this.lexer.lineNumber, this.$1); +}], ['bc', ['aa'], function() { _$jscoverage['/compiler/parser.js'].functionData[58]++; - _$jscoverage['/compiler/parser.js'].lineData[504]++; - return new this.yy.HashNode(this.lexer.lineNumber, this.$1); -}], [55, [55, 56], function() { + _$jscoverage['/compiler/parser.js'].lineData[551]++; + return new this.yy.NumberNode(this.lexer.lineNumber, this.$1); +}], ['bc', ['z'], function() { _$jscoverage['/compiler/parser.js'].functionData[59]++; - _$jscoverage['/compiler/parser.js'].lineData[507]++; - this.$1.push(this.$2); -}], [55, [56], function() { + _$jscoverage['/compiler/parser.js'].lineData[556]++; + return new this.yy.BooleanNode(this.lexer.lineNumber, this.$1); +}], ['bc', ['ap']], ['bc', ['i', 'ar', 'j'], function() { _$jscoverage['/compiler/parser.js'].functionData[60]++; - _$jscoverage['/compiler/parser.js'].lineData[510]++; - return [this.$1]; -}], [56, [28, 27, 43], function() { + _$jscoverage['/compiler/parser.js'].lineData[562]++; + return this.$2; +}], ['at', ['bd'], function() { _$jscoverage['/compiler/parser.js'].functionData[61]++; - _$jscoverage['/compiler/parser.js'].lineData[513]++; - return [this.$1, this.$3]; -}], [41, [57], function() { + _$jscoverage['/compiler/parser.js'].lineData[567]++; + return new this.yy.HashNode(this.lexer.lineNumber, this.$1); +}], ['bd', ['bd', 'g', 'be'], function() { _$jscoverage['/compiler/parser.js'].functionData[62]++; - _$jscoverage['/compiler/parser.js'].lineData[516]++; - return new this.yy.IdNode(this.lexer.lineNumber, this.$1); -}], [57, [57, 29, 28], function() { - _$jscoverage['/compiler/parser.js'].functionData[63]++; - _$jscoverage['/compiler/parser.js'].lineData[519]++; + _$jscoverage['/compiler/parser.js'].lineData[572]++; this.$1.push(this.$3); -}], [57, [57, 30, 43, 31], function() { +}], ['bd', ['be'], function() { + _$jscoverage['/compiler/parser.js'].functionData[63]++; + _$jscoverage['/compiler/parser.js'].lineData[577]++; + return [this.$1]; +}], ['be', ['ac', 'ab', 'ar'], function() { _$jscoverage['/compiler/parser.js'].functionData[64]++; - _$jscoverage['/compiler/parser.js'].lineData[522]++; - this.$1.push(this.$3); -}], [57, [57, 29, 26], function() { + _$jscoverage['/compiler/parser.js'].lineData[582]++; + return [this.$1, this.$3]; +}], ['ap', ['bf'], function() { _$jscoverage['/compiler/parser.js'].functionData[65]++; - _$jscoverage['/compiler/parser.js'].lineData[525]++; - this.$1.push(this.$3); -}], [57, [28], function() { + _$jscoverage['/compiler/parser.js'].lineData[587]++; + return new this.yy.IdNode(this.lexer.lineNumber, this.$1); +}], ['bf', ['bf', 'ad', 'ac'], function() { _$jscoverage['/compiler/parser.js'].functionData[66]++; - _$jscoverage['/compiler/parser.js'].lineData[528]++; + _$jscoverage['/compiler/parser.js'].lineData[592]++; + this.$1.push(this.$3); +}], ['bf', ['bf', 'ae', 'ar', 'af'], function() { + _$jscoverage['/compiler/parser.js'].functionData[67]++; + _$jscoverage['/compiler/parser.js'].lineData[597]++; + this.$1.push(this.$3); +}], ['bf', ['bf', 'ad', 'aa'], function() { + _$jscoverage['/compiler/parser.js'].functionData[68]++; + _$jscoverage['/compiler/parser.js'].lineData[602]++; + this.$1.push(this.$3); +}], ['bf', ['ac'], function() { + _$jscoverage['/compiler/parser.js'].functionData[69]++; + _$jscoverage['/compiler/parser.js'].lineData[607]++; return [this.$1]; }]]; - _$jscoverage['/compiler/parser.js'].lineData[531]++; + _$jscoverage['/compiler/parser.js'].lineData[611]++; parser.table = { 'gotos': { '0': { - '34': 4, - '35': 5, - '36': 6, - '37': 7, - '39': 8}, + 'ai': 4, + 'aj': 5, + 'ak': 6, + 'al': 7, + 'an': 8}, '2': { - '40': 10, - '41': 11, - '42': 12, - '57': 13}, + 'ao': 10, + 'aq': 11, + 'ap': 12, + 'bf': 13}, '3': { - '41': 19, - '42': 20, - '43': 21, - '47': 22, - '48': 23, - '49': 24, - '50': 25, - '51': 26, - '52': 27, - '53': 28, - '54': 29, - '57': 13}, + 'aq': 20, + 'ar': 21, + 'av': 22, + 'aw': 23, + 'ax': 24, + 'ay': 25, + 'az': 26, + 'ba': 27, + 'bb': 28, + 'bc': 29, + 'ap': 30, + 'bf': 13}, '5': { - '36': 31, - '37': 7, - '39': 8}, + 'ak': 32, + 'al': 7, + 'an': 8}, '7': { - '34': 32, - '35': 5, - '36': 6, - '37': 7, - '39': 8}, - '11': { - '41': 35, - '43': 36, - '44': 37, - '45': 38, - '46': 39, - '47': 22, - '48': 23, - '49': 24, - '50': 25, - '51': 26, - '52': 27, - '53': 28, - '54': 29, - '55': 40, - '56': 41, - '57': 13}, + 'ai': 33, + 'aj': 5, + 'ak': 6, + 'al': 7, + 'an': 8}, '14': { - '41': 35, - '43': 44, - '47': 22, - '48': 23, - '49': 24, - '50': 25, - '51': 26, - '52': 27, - '53': 28, - '54': 29, - '57': 13}, + 'ar': 38, + 'av': 22, + 'aw': 23, + 'ax': 24, + 'ay': 25, + 'az': 26, + 'ba': 27, + 'bb': 28, + 'bc': 29, + 'ap': 39, + 'bf': 13}, '15': { - '41': 35, - '53': 45, - '54': 29, - '57': 13}, - '19': { - '41': 35, - '43': 36, - '44': 37, - '45': 38, - '46': 39, - '47': 22, - '48': 23, - '49': 24, - '50': 25, - '51': 26, - '52': 27, - '53': 28, - '54': 29, - '55': 40, - '56': 41, - '57': 13}, - '30': { - '35': 61, - '36': 6, - '37': 7, - '39': 8}, - '32': { - '38': 63}, + 'bb': 40, + 'bc': 29, + 'ap': 39, + 'bf': 13}, + '16': { + 'bb': 41, + 'bc': 29, + 'ap': 39, + 'bf': 13}, + '31': { + 'aj': 57, + 'ak': 6, + 'al': 7, + 'an': 8}, + '33': { + 'am': 59}, + '35': { + 'as': 61, + 'au': 62, + 'ar': 63, + 'av': 22, + 'aw': 23, + 'ax': 24, + 'ay': 25, + 'az': 26, + 'ba': 27, + 'bb': 28, + 'bc': 29, + 'at': 64, + 'bd': 65, + 'be': 66, + 'ap': 39, + 'bf': 13}, '37': { - '41': 35, - '43': 36, - '45': 65, - '46': 66, - '47': 22, - '48': 23, - '49': 24, - '50': 25, - '51': 26, - '52': 27, - '53': 28, - '54': 29, - '55': 40, - '56': 41, - '57': 13}, - '40': { - '56': 68}, - '43': { - '41': 35, - '43': 71, - '47': 22, - '48': 23, - '49': 24, - '50': 25, - '51': 26, - '52': 27, - '53': 28, - '54': 29, - '57': 13}, + 'ar': 69, + 'av': 22, + 'aw': 23, + 'ax': 24, + 'ay': 25, + 'az': 26, + 'ba': 27, + 'bb': 28, + 'bc': 29, + 'ap': 39, + 'bf': 13}, + '44': { + 'aw': 71, + 'ax': 24, + 'ay': 25, + 'az': 26, + 'ba': 27, + 'bb': 28, + 'bc': 29, + 'ap': 39, + 'bf': 13}, + '45': { + 'ax': 72, + 'ay': 25, + 'az': 26, + 'ba': 27, + 'bb': 28, + 'bc': 29, + 'ap': 39, + 'bf': 13}, + '46': { + 'ay': 73, + 'az': 26, + 'ba': 27, + 'bb': 28, + 'bc': 29, + 'ap': 39, + 'bf': 13}, + '47': { + 'ay': 74, + 'az': 26, + 'ba': 27, + 'bb': 28, + 'bc': 29, + 'ap': 39, + 'bf': 13}, '48': { - '41': 35, - '48': 73, - '49': 24, - '50': 25, - '51': 26, - '52': 27, - '53': 28, - '54': 29, - '57': 13}, + 'az': 75, + 'ba': 27, + 'bb': 28, + 'bc': 29, + 'ap': 39, + 'bf': 13}, '49': { - '41': 35, - '49': 74, - '50': 25, - '51': 26, - '52': 27, - '53': 28, - '54': 29, - '57': 13}, + 'az': 76, + 'ba': 27, + 'bb': 28, + 'bc': 29, + 'ap': 39, + 'bf': 13}, '50': { - '41': 35, - '50': 75, - '51': 26, - '52': 27, - '53': 28, - '54': 29, - '57': 13}, + 'az': 77, + 'ba': 27, + 'bb': 28, + 'bc': 29, + 'ap': 39, + 'bf': 13}, '51': { - '41': 35, - '50': 76, - '51': 26, - '52': 27, - '53': 28, - '54': 29, - '57': 13}, + 'az': 78, + 'ba': 27, + 'bb': 28, + 'bc': 29, + 'ap': 39, + 'bf': 13}, '52': { - '41': 35, - '51': 77, - '52': 27, - '53': 28, - '54': 29, - '57': 13}, + 'ba': 79, + 'bb': 28, + 'bc': 29, + 'ap': 39, + 'bf': 13}, '53': { - '41': 35, - '51': 78, - '52': 27, - '53': 28, - '54': 29, - '57': 13}, + 'ba': 80, + 'bb': 28, + 'bc': 29, + 'ap': 39, + 'bf': 13}, '54': { - '41': 35, - '51': 79, - '52': 27, - '53': 28, - '54': 29, - '57': 13}, + 'bb': 81, + 'bc': 29, + 'ap': 39, + 'bf': 13}, '55': { - '41': 35, - '51': 80, - '52': 27, - '53': 28, - '54': 29, - '57': 13}, + 'bb': 82, + 'bc': 29, + 'ap': 39, + 'bf': 13}, '56': { - '41': 35, - '52': 81, - '53': 28, - '54': 29, - '57': 13}, + 'bb': 83, + 'bc': 29, + 'ap': 39, + 'bf': 13}, '57': { - '41': 35, - '52': 82, - '53': 28, - '54': 29, - '57': 13}, + 'ak': 32, + 'al': 7, + 'an': 8}, '58': { - '41': 35, - '53': 83, - '54': 29, - '57': 13}, - '59': { - '41': 35, - '53': 84, - '54': 29, - '57': 13}, - '60': { - '41': 35, - '53': 85, - '54': 29, - '57': 13}, - '61': { - '36': 31, - '37': 7, - '39': 8}, - '62': { - '41': 86, - '57': 13}, - '64': { - '41': 35, - '43': 87, - '47': 22, - '48': 23, - '49': 24, - '50': 25, - '51': 26, - '52': 27, - '53': 28, - '54': 29, - '57': 13}}, + 'ap': 84, + 'bf': 13}, + '85': { + 'ar': 90, + 'av': 22, + 'aw': 23, + 'ax': 24, + 'ay': 25, + 'az': 26, + 'ba': 27, + 'bb': 28, + 'bc': 29, + 'ap': 39, + 'bf': 13}, + '86': { + 'au': 91, + 'ar': 63, + 'av': 22, + 'aw': 23, + 'ax': 24, + 'ay': 25, + 'az': 26, + 'ba': 27, + 'bb': 28, + 'bc': 29, + 'at': 92, + 'bd': 65, + 'be': 66, + 'ap': 39, + 'bf': 13}, + '87': { + 'be': 94}}, 'action': { '0': { - '2': [1, undefined, 1], - '3': [1, undefined, 2], - '6': [1, undefined, 3]}, + 'b': [1, undefined, 1], + 'c': [1, undefined, 2], + 'f': [1, undefined, 3]}, '1': { - '1': [2, 7], - '2': [2, 7], - '3': [2, 7], - '4': [2, 7], - '5': [2, 7], - '6': [2, 7]}, + 'a': [2, 7], + 'e': [2, 7], + 'c': [2, 7], + 'f': [2, 7], + 'b': [2, 7], + 'd': [2, 7]}, '2': { - '28': [1, undefined, 9]}, + 'ac': [1, undefined, 9]}, '3': { - '8': [1, undefined, 14], - '23': [1, undefined, 15], - '24': [1, undefined, 16], - '25': [1, undefined, 17], - '26': [1, undefined, 18], - '28': [1, undefined, 9]}, + 'i': [1, undefined, 14], + 't': [1, undefined, 15], + 'x': [1, undefined, 16], + 'y': [1, undefined, 17], + 'z': [1, undefined, 18], + 'aa': [1, undefined, 19], + 'ac': [1, undefined, 9]}, '4': { - '1': [0]}, + 'a': [0]}, '5': { - '1': [2, 2], - '2': [1, undefined, 1], - '3': [1, undefined, 2], - '4': [2, 2], - '5': [1, undefined, 30], - '6': [1, undefined, 3]}, + 'a': [2, 2], + 'd': [2, 2], + 'b': [1, undefined, 1], + 'c': [1, undefined, 2], + 'e': [1, undefined, 31], + 'f': [1, undefined, 3]}, '6': { - '1': [2, 3], - '2': [2, 3], - '3': [2, 3], - '4': [2, 3], - '5': [2, 3], - '6': [2, 3]}, + 'a': [2, 3], + 'e': [2, 3], + 'c': [2, 3], + 'f': [2, 3], + 'b': [2, 3], + 'd': [2, 3]}, '7': { - '2': [1, undefined, 1], - '3': [1, undefined, 2], - '6': [1, undefined, 3]}, + 'b': [1, undefined, 1], + 'c': [1, undefined, 2], + 'f': [1, undefined, 3]}, '8': { - '1': [2, 6], - '2': [2, 6], - '3': [2, 6], - '4': [2, 6], - '5': [2, 6], - '6': [2, 6]}, + 'a': [2, 6], + 'e': [2, 6], + 'c': [2, 6], + 'f': [2, 6], + 'b': [2, 6], + 'd': [2, 6]}, '9': { - '7': [2, 55], - '8': [2, 55], - '9': [2, 55], - '10': [2, 55], - '11': [2, 55], - '12': [2, 55], - '13': [2, 55], - '14': [2, 55], - '15': [2, 55], - '16': [2, 55], - '17': [2, 55], - '18': [2, 55], - '19': [2, 55], - '20': [2, 55], - '21': [2, 55], - '22': [2, 55], - '23': [2, 55], - '24': [2, 55], - '25': [2, 55], - '26': [2, 55], - '28': [2, 55], - '29': [2, 55], - '30': [2, 55], - '31': [2, 55]}, + 'h': [2, 56], + 'g': [2, 56], + 'ad': [2, 56], + 'ae': [2, 56], + 'k': [2, 56], + 'l': [2, 56], + 'm': [2, 56], + 'n': [2, 56], + 'o': [2, 56], + 'p': [2, 56], + 'q': [2, 56], + 'r': [2, 56], + 's': [2, 56], + 't': [2, 56], + 'u': [2, 56], + 'v': [2, 56], + 'w': [2, 56], + 'j': [2, 56], + 'af': [2, 56]}, '10': { - '7': [1, undefined, 33]}, + 'h': [1, undefined, 34]}, '11': { - '7': [2, 8], - '8': [1, undefined, 14], - '23': [1, undefined, 15], - '24': [1, undefined, 16], - '25': [1, undefined, 17], - '26': [1, undefined, 18], - '28': [1, undefined, 34]}, + 'h': [2, 9]}, '12': { - '7': [2, 9]}, + 'h': [2, 8], + 'g': [1, undefined, 35]}, '13': { - '7': [2, 51], - '8': [2, 51], - '9': [2, 51], - '10': [2, 51], - '11': [2, 51], - '12': [2, 51], - '13': [2, 51], - '14': [2, 51], - '15': [2, 51], - '16': [2, 51], - '17': [2, 51], - '18': [2, 51], - '19': [2, 51], - '20': [2, 51], - '21': [2, 51], - '22': [2, 51], - '23': [2, 51], - '24': [2, 51], - '25': [2, 51], - '26': [2, 51], - '28': [2, 51], - '29': [1, undefined, 42], - '30': [1, undefined, 43], - '31': [2, 51]}, + 'h': [2, 52], + 'g': [2, 52], + 'k': [2, 52], + 'l': [2, 52], + 'm': [2, 52], + 'n': [2, 52], + 'o': [2, 52], + 'p': [2, 52], + 'q': [2, 52], + 'r': [2, 52], + 's': [2, 52], + 't': [2, 52], + 'u': [2, 52], + 'v': [2, 52], + 'w': [2, 52], + 'j': [2, 52], + 'af': [2, 52], + 'ad': [1, undefined, 36], + 'ae': [1, undefined, 37]}, '14': { - '8': [1, undefined, 14], - '23': [1, undefined, 15], - '24': [1, undefined, 16], - '25': [1, undefined, 17], - '26': [1, undefined, 18], - '28': [1, undefined, 9]}, + 'i': [1, undefined, 14], + 't': [1, undefined, 15], + 'x': [1, undefined, 16], + 'y': [1, undefined, 17], + 'z': [1, undefined, 18], + 'aa': [1, undefined, 19], + 'ac': [1, undefined, 9]}, '15': { - '8': [1, undefined, 14], - '23': [1, undefined, 15], - '24': [1, undefined, 16], - '25': [1, undefined, 17], - '26': [1, undefined, 18], - '28': [1, undefined, 9]}, + 'i': [1, undefined, 14], + 't': [1, undefined, 15], + 'x': [1, undefined, 16], + 'y': [1, undefined, 17], + 'z': [1, undefined, 18], + 'aa': [1, undefined, 19], + 'ac': [1, undefined, 9]}, '16': { - '7': [2, 42], - '8': [2, 42], - '9': [2, 42], - '10': [2, 42], - '11': [2, 42], - '12': [2, 42], - '13': [2, 42], - '14': [2, 42], - '15': [2, 42], - '16': [2, 42], - '17': [2, 42], - '18': [2, 42], - '19': [2, 42], - '20': [2, 42], - '21': [2, 42], - '22': [2, 42], - '23': [2, 42], - '24': [2, 42], - '25': [2, 42], - '26': [2, 42], - '28': [2, 42], - '31': [2, 42]}, + 'i': [1, undefined, 14], + 't': [1, undefined, 15], + 'x': [1, undefined, 16], + 'y': [1, undefined, 17], + 'z': [1, undefined, 18], + 'aa': [1, undefined, 19], + 'ac': [1, undefined, 9]}, '17': { - '7': [2, 44], - '8': [2, 44], - '9': [2, 44], - '10': [2, 44], - '11': [2, 44], - '12': [2, 44], - '13': [2, 44], - '14': [2, 44], - '15': [2, 44], - '16': [2, 44], - '17': [2, 44], - '18': [2, 44], - '19': [2, 44], - '20': [2, 44], - '21': [2, 44], - '22': [2, 44], - '23': [2, 44], - '24': [2, 44], - '25': [2, 44], - '26': [2, 44], - '28': [2, 44], - '31': [2, 44]}, + 'h': [2, 43], + 'k': [2, 43], + 'l': [2, 43], + 'm': [2, 43], + 'n': [2, 43], + 'o': [2, 43], + 'p': [2, 43], + 'q': [2, 43], + 'r': [2, 43], + 's': [2, 43], + 't': [2, 43], + 'u': [2, 43], + 'v': [2, 43], + 'w': [2, 43], + 'j': [2, 43], + 'g': [2, 43], + 'af': [2, 43]}, '18': { - '7': [2, 43], - '8': [2, 43], - '9': [2, 43], - '10': [2, 43], - '11': [2, 43], - '12': [2, 43], - '13': [2, 43], - '14': [2, 43], - '15': [2, 43], - '16': [2, 43], - '17': [2, 43], - '18': [2, 43], - '19': [2, 43], - '20': [2, 43], - '21': [2, 43], - '22': [2, 43], - '23': [2, 43], - '24': [2, 43], - '25': [2, 43], - '26': [2, 43], - '28': [2, 43], - '31': [2, 43]}, + 'h': [2, 45], + 'k': [2, 45], + 'l': [2, 45], + 'm': [2, 45], + 'n': [2, 45], + 'o': [2, 45], + 'p': [2, 45], + 'q': [2, 45], + 'r': [2, 45], + 's': [2, 45], + 't': [2, 45], + 'u': [2, 45], + 'v': [2, 45], + 'w': [2, 45], + 'j': [2, 45], + 'g': [2, 45], + 'af': [2, 45]}, '19': { - '7': [2, 45], - '8': [1, undefined, 14], - '10': [2, 45], - '11': [2, 45], - '12': [2, 45], - '13': [2, 45], - '14': [2, 45], - '15': [2, 45], - '16': [2, 45], - '17': [2, 45], - '18': [2, 45], - '19': [2, 45], - '20': [2, 45], - '21': [2, 45], - '22': [2, 45], - '23': [1, undefined, 15], - '24': [1, undefined, 16], - '25': [1, undefined, 17], - '26': [1, undefined, 18], - '28': [1, undefined, 34]}, + 'h': [2, 44], + 'k': [2, 44], + 'l': [2, 44], + 'm': [2, 44], + 'n': [2, 44], + 'o': [2, 44], + 'p': [2, 44], + 'q': [2, 44], + 'r': [2, 44], + 's': [2, 44], + 't': [2, 44], + 'u': [2, 44], + 'v': [2, 44], + 'w': [2, 44], + 'j': [2, 44], + 'g': [2, 44], + 'af': [2, 44]}, '20': { - '7': [1, undefined, 46]}, + 'h': [1, undefined, 42]}, '21': { - '7': [1, undefined, 47]}, + 'h': [1, undefined, 43]}, '22': { - '7': [2, 20], - '8': [2, 20], - '9': [2, 20], - '10': [1, undefined, 48], - '23': [2, 20], - '24': [2, 20], - '25': [2, 20], - '26': [2, 20], - '28': [2, 20], - '31': [2, 20]}, + 'h': [2, 20], + 'j': [2, 20], + 'g': [2, 20], + 'af': [2, 20], + 'k': [1, undefined, 44]}, '23': { - '7': [2, 21], - '8': [2, 21], - '9': [2, 21], - '10': [2, 21], - '11': [1, undefined, 49], - '23': [2, 21], - '24': [2, 21], - '25': [2, 21], - '26': [2, 21], - '28': [2, 21], - '31': [2, 21]}, + 'h': [2, 21], + 'k': [2, 21], + 'j': [2, 21], + 'g': [2, 21], + 'af': [2, 21], + 'l': [1, undefined, 45]}, '24': { - '7': [2, 23], - '8': [2, 23], - '9': [2, 23], - '10': [2, 23], - '11': [2, 23], - '12': [1, undefined, 50], - '13': [1, undefined, 51], - '23': [2, 23], - '24': [2, 23], - '25': [2, 23], - '26': [2, 23], - '28': [2, 23], - '31': [2, 23]}, + 'h': [2, 23], + 'k': [2, 23], + 'l': [2, 23], + 'j': [2, 23], + 'g': [2, 23], + 'af': [2, 23], + 'm': [1, undefined, 46], + 'n': [1, undefined, 47]}, '25': { - '7': [2, 25], - '8': [2, 25], - '9': [2, 25], - '10': [2, 25], - '11': [2, 25], - '12': [2, 25], - '13': [2, 25], - '14': [1, undefined, 52], - '15': [1, undefined, 53], - '16': [1, undefined, 54], - '17': [1, undefined, 55], - '23': [2, 25], - '24': [2, 25], - '25': [2, 25], - '26': [2, 25], - '28': [2, 25], - '31': [2, 25]}, + 'h': [2, 25], + 'k': [2, 25], + 'l': [2, 25], + 'm': [2, 25], + 'n': [2, 25], + 'j': [2, 25], + 'g': [2, 25], + 'af': [2, 25], + 'o': [1, undefined, 48], + 'p': [1, undefined, 49], + 'q': [1, undefined, 50], + 'r': [1, undefined, 51]}, '26': { - '7': [2, 28], - '8': [2, 28], - '9': [2, 28], - '10': [2, 28], - '11': [2, 28], - '12': [2, 28], - '13': [2, 28], - '14': [2, 28], - '15': [2, 28], - '16': [2, 28], - '17': [2, 28], - '18': [1, undefined, 56], - '19': [1, undefined, 57], - '23': [2, 28], - '24': [2, 28], - '25': [2, 28], - '26': [2, 28], - '28': [2, 28], - '31': [2, 28]}, + 'h': [2, 28], + 'k': [2, 28], + 'l': [2, 28], + 'm': [2, 28], + 'n': [2, 28], + 'o': [2, 28], + 'p': [2, 28], + 'q': [2, 28], + 'r': [2, 28], + 'j': [2, 28], + 'g': [2, 28], + 'af': [2, 28], + 's': [1, undefined, 52], + 't': [1, undefined, 53]}, '27': { - '7': [2, 33], - '8': [2, 33], - '9': [2, 33], - '10': [2, 33], - '11': [2, 33], - '12': [2, 33], - '13': [2, 33], - '14': [2, 33], - '15': [2, 33], - '16': [2, 33], - '17': [2, 33], - '18': [2, 33], - '19': [2, 33], - '20': [1, undefined, 58], - '21': [1, undefined, 59], - '22': [1, undefined, 60], - '23': [2, 33], - '24': [2, 33], - '25': [2, 33], - '26': [2, 33], - '28': [2, 33], - '31': [2, 33]}, + 'h': [2, 33], + 'k': [2, 33], + 'l': [2, 33], + 'm': [2, 33], + 'n': [2, 33], + 'o': [2, 33], + 'p': [2, 33], + 'q': [2, 33], + 'r': [2, 33], + 's': [2, 33], + 't': [2, 33], + 'j': [2, 33], + 'g': [2, 33], + 'af': [2, 33], + 'u': [1, undefined, 54], + 'v': [1, undefined, 55], + 'w': [1, undefined, 56]}, '28': { - '7': [2, 36], - '8': [2, 36], - '9': [2, 36], - '10': [2, 36], - '11': [2, 36], - '12': [2, 36], - '13': [2, 36], - '14': [2, 36], - '15': [2, 36], - '16': [2, 36], - '17': [2, 36], - '18': [2, 36], - '19': [2, 36], - '20': [2, 36], - '21': [2, 36], - '22': [2, 36], - '23': [2, 36], - '24': [2, 36], - '25': [2, 36], - '26': [2, 36], - '28': [2, 36], - '31': [2, 36]}, + 'h': [2, 36], + 'k': [2, 36], + 'l': [2, 36], + 'm': [2, 36], + 'n': [2, 36], + 'o': [2, 36], + 'p': [2, 36], + 'q': [2, 36], + 'r': [2, 36], + 's': [2, 36], + 't': [2, 36], + 'u': [2, 36], + 'v': [2, 36], + 'w': [2, 36], + 'j': [2, 36], + 'g': [2, 36], + 'af': [2, 36]}, '29': { - '7': [2, 41], - '8': [2, 41], - '9': [2, 41], - '10': [2, 41], - '11': [2, 41], - '12': [2, 41], - '13': [2, 41], - '14': [2, 41], - '15': [2, 41], - '16': [2, 41], - '17': [2, 41], - '18': [2, 41], - '19': [2, 41], - '20': [2, 41], - '21': [2, 41], - '22': [2, 41], - '23': [2, 41], - '24': [2, 41], - '25': [2, 41], - '26': [2, 41], - '28': [2, 41], - '31': [2, 41]}, + 'h': [2, 42], + 'k': [2, 42], + 'l': [2, 42], + 'm': [2, 42], + 'n': [2, 42], + 'o': [2, 42], + 'p': [2, 42], + 'q': [2, 42], + 'r': [2, 42], + 's': [2, 42], + 't': [2, 42], + 'u': [2, 42], + 'v': [2, 42], + 'w': [2, 42], + 'j': [2, 42], + 'g': [2, 42], + 'af': [2, 42]}, '30': { - '2': [1, undefined, 1], - '3': [1, undefined, 2], - '6': [1, undefined, 3]}, + 'h': [2, 46], + 'k': [2, 46], + 'l': [2, 46], + 'm': [2, 46], + 'n': [2, 46], + 'o': [2, 46], + 'p': [2, 46], + 'q': [2, 46], + 'r': [2, 46], + 's': [2, 46], + 't': [2, 46], + 'u': [2, 46], + 'v': [2, 46], + 'w': [2, 46], + 'g': [1, undefined, 35]}, '31': { - '1': [2, 4], - '2': [2, 4], - '3': [2, 4], - '4': [2, 4], - '5': [2, 4], - '6': [2, 4]}, + 'b': [1, undefined, 1], + 'c': [1, undefined, 2], + 'f': [1, undefined, 3]}, '32': { - '4': [1, undefined, 62]}, + 'a': [2, 4], + 'e': [2, 4], + 'c': [2, 4], + 'f': [2, 4], + 'b': [2, 4], + 'd': [2, 4]}, '33': { - '2': [2, 10], - '3': [2, 10], - '6': [2, 10]}, + 'd': [1, undefined, 58]}, '34': { - '7': [2, 55], - '8': [2, 55], - '10': [2, 55], - '11': [2, 55], - '12': [2, 55], - '13': [2, 55], - '14': [2, 55], - '15': [2, 55], - '16': [2, 55], - '17': [2, 55], - '18': [2, 55], - '19': [2, 55], - '20': [2, 55], - '21': [2, 55], - '22': [2, 55], - '23': [2, 55], - '24': [2, 55], - '25': [2, 55], - '26': [2, 55], - '27': [1, undefined, 64], - '28': [2, 55], - '29': [2, 55], - '30': [2, 55]}, + 'c': [2, 10], + 'f': [2, 10], + 'b': [2, 10]}, '35': { - '7': [2, 45], - '8': [2, 45], - '9': [2, 45], - '10': [2, 45], - '11': [2, 45], - '12': [2, 45], - '13': [2, 45], - '14': [2, 45], - '15': [2, 45], - '16': [2, 45], - '17': [2, 45], - '18': [2, 45], - '19': [2, 45], - '20': [2, 45], - '21': [2, 45], - '22': [2, 45], - '23': [2, 45], - '24': [2, 45], - '25': [2, 45], - '26': [2, 45], - '28': [2, 45], - '31': [2, 45]}, + 'i': [1, undefined, 14], + 't': [1, undefined, 15], + 'x': [1, undefined, 16], + 'y': [1, undefined, 17], + 'z': [1, undefined, 18], + 'aa': [1, undefined, 19], + 'ac': [1, undefined, 60]}, '36': { - '7': [2, 19], - '8': [2, 19], - '23': [2, 19], - '24': [2, 19], - '25': [2, 19], - '26': [2, 19], - '28': [2, 19]}, + 'aa': [1, undefined, 67], + 'ac': [1, undefined, 68]}, '37': { - '7': [2, 15], - '8': [1, undefined, 14], - '23': [1, undefined, 15], - '24': [1, undefined, 16], - '25': [1, undefined, 17], - '26': [1, undefined, 18], - '28': [1, undefined, 34]}, + 'i': [1, undefined, 14], + 't': [1, undefined, 15], + 'x': [1, undefined, 16], + 'y': [1, undefined, 17], + 'z': [1, undefined, 18], + 'aa': [1, undefined, 19], + 'ac': [1, undefined, 9]}, '38': { - '7': [2, 16]}, + 'j': [1, undefined, 70]}, '39': { - '7': [2, 18], - '8': [2, 18], - '23': [2, 18], - '24': [2, 18], - '25': [2, 18], - '26': [2, 18], - '28': [2, 18]}, + 'j': [2, 46], + 'k': [2, 46], + 'l': [2, 46], + 'm': [2, 46], + 'n': [2, 46], + 'o': [2, 46], + 'p': [2, 46], + 'q': [2, 46], + 'r': [2, 46], + 's': [2, 46], + 't': [2, 46], + 'u': [2, 46], + 'v': [2, 46], + 'w': [2, 46], + 'h': [2, 46], + 'g': [2, 46], + 'af': [2, 46]}, '40': { - '7': [2, 47], - '28': [1, undefined, 67]}, + 'h': [2, 41], + 'k': [2, 41], + 'l': [2, 41], + 'm': [2, 41], + 'n': [2, 41], + 'o': [2, 41], + 'p': [2, 41], + 'q': [2, 41], + 'r': [2, 41], + 's': [2, 41], + 't': [2, 41], + 'u': [2, 41], + 'v': [2, 41], + 'w': [2, 41], + 'j': [2, 41], + 'g': [2, 41], + 'af': [2, 41]}, '41': { - '7': [2, 49], - '28': [2, 49]}, + 'h': [2, 40], + 'k': [2, 40], + 'l': [2, 40], + 'm': [2, 40], + 'n': [2, 40], + 'o': [2, 40], + 'p': [2, 40], + 'q': [2, 40], + 'r': [2, 40], + 's': [2, 40], + 't': [2, 40], + 'u': [2, 40], + 'v': [2, 40], + 'w': [2, 40], + 'j': [2, 40], + 'g': [2, 40], + 'af': [2, 40]}, '42': { - '26': [1, undefined, 69], - '28': [1, undefined, 70]}, + 'a': [2, 12], + 'e': [2, 12], + 'c': [2, 12], + 'f': [2, 12], + 'b': [2, 12], + 'd': [2, 12]}, '43': { - '8': [1, undefined, 14], - '23': [1, undefined, 15], - '24': [1, undefined, 16], - '25': [1, undefined, 17], - '26': [1, undefined, 18], - '28': [1, undefined, 9]}, + 'a': [2, 13], + 'e': [2, 13], + 'c': [2, 13], + 'f': [2, 13], + 'b': [2, 13], + 'd': [2, 13]}, '44': { - '9': [1, undefined, 72]}, + 'i': [1, undefined, 14], + 't': [1, undefined, 15], + 'x': [1, undefined, 16], + 'y': [1, undefined, 17], + 'z': [1, undefined, 18], + 'aa': [1, undefined, 19], + 'ac': [1, undefined, 9]}, '45': { - '7': [2, 40], - '8': [2, 40], - '9': [2, 40], - '10': [2, 40], - '11': [2, 40], - '12': [2, 40], - '13': [2, 40], - '14': [2, 40], - '15': [2, 40], - '16': [2, 40], - '17': [2, 40], - '18': [2, 40], - '19': [2, 40], - '20': [2, 40], - '21': [2, 40], - '22': [2, 40], - '23': [2, 40], - '24': [2, 40], - '25': [2, 40], - '26': [2, 40], - '28': [2, 40], - '31': [2, 40]}, + 'i': [1, undefined, 14], + 't': [1, undefined, 15], + 'x': [1, undefined, 16], + 'y': [1, undefined, 17], + 'z': [1, undefined, 18], + 'aa': [1, undefined, 19], + 'ac': [1, undefined, 9]}, '46': { - '1': [2, 12], - '2': [2, 12], - '3': [2, 12], - '4': [2, 12], - '5': [2, 12], - '6': [2, 12]}, + 'i': [1, undefined, 14], + 't': [1, undefined, 15], + 'x': [1, undefined, 16], + 'y': [1, undefined, 17], + 'z': [1, undefined, 18], + 'aa': [1, undefined, 19], + 'ac': [1, undefined, 9]}, '47': { - '1': [2, 13], - '2': [2, 13], - '3': [2, 13], - '4': [2, 13], - '5': [2, 13], - '6': [2, 13]}, + 'i': [1, undefined, 14], + 't': [1, undefined, 15], + 'x': [1, undefined, 16], + 'y': [1, undefined, 17], + 'z': [1, undefined, 18], + 'aa': [1, undefined, 19], + 'ac': [1, undefined, 9]}, '48': { - '8': [1, undefined, 14], - '23': [1, undefined, 15], - '24': [1, undefined, 16], - '25': [1, undefined, 17], - '26': [1, undefined, 18], - '28': [1, undefined, 9]}, + 'i': [1, undefined, 14], + 't': [1, undefined, 15], + 'x': [1, undefined, 16], + 'y': [1, undefined, 17], + 'z': [1, undefined, 18], + 'aa': [1, undefined, 19], + 'ac': [1, undefined, 9]}, '49': { - '8': [1, undefined, 14], - '23': [1, undefined, 15], - '24': [1, undefined, 16], - '25': [1, undefined, 17], - '26': [1, undefined, 18], - '28': [1, undefined, 9]}, + 'i': [1, undefined, 14], + 't': [1, undefined, 15], + 'x': [1, undefined, 16], + 'y': [1, undefined, 17], + 'z': [1, undefined, 18], + 'aa': [1, undefined, 19], + 'ac': [1, undefined, 9]}, '50': { - '8': [1, undefined, 14], - '23': [1, undefined, 15], - '24': [1, undefined, 16], - '25': [1, undefined, 17], - '26': [1, undefined, 18], - '28': [1, undefined, 9]}, + 'i': [1, undefined, 14], + 't': [1, undefined, 15], + 'x': [1, undefined, 16], + 'y': [1, undefined, 17], + 'z': [1, undefined, 18], + 'aa': [1, undefined, 19], + 'ac': [1, undefined, 9]}, '51': { - '8': [1, undefined, 14], - '23': [1, undefined, 15], - '24': [1, undefined, 16], - '25': [1, undefined, 17], - '26': [1, undefined, 18], - '28': [1, undefined, 9]}, + 'i': [1, undefined, 14], + 't': [1, undefined, 15], + 'x': [1, undefined, 16], + 'y': [1, undefined, 17], + 'z': [1, undefined, 18], + 'aa': [1, undefined, 19], + 'ac': [1, undefined, 9]}, '52': { - '8': [1, undefined, 14], - '23': [1, undefined, 15], - '24': [1, undefined, 16], - '25': [1, undefined, 17], - '26': [1, undefined, 18], - '28': [1, undefined, 9]}, + 'i': [1, undefined, 14], + 't': [1, undefined, 15], + 'x': [1, undefined, 16], + 'y': [1, undefined, 17], + 'z': [1, undefined, 18], + 'aa': [1, undefined, 19], + 'ac': [1, undefined, 9]}, '53': { - '8': [1, undefined, 14], - '23': [1, undefined, 15], - '24': [1, undefined, 16], - '25': [1, undefined, 17], - '26': [1, undefined, 18], - '28': [1, undefined, 9]}, + 'i': [1, undefined, 14], + 't': [1, undefined, 15], + 'x': [1, undefined, 16], + 'y': [1, undefined, 17], + 'z': [1, undefined, 18], + 'aa': [1, undefined, 19], + 'ac': [1, undefined, 9]}, '54': { - '8': [1, undefined, 14], - '23': [1, undefined, 15], - '24': [1, undefined, 16], - '25': [1, undefined, 17], - '26': [1, undefined, 18], - '28': [1, undefined, 9]}, + 'i': [1, undefined, 14], + 't': [1, undefined, 15], + 'x': [1, undefined, 16], + 'y': [1, undefined, 17], + 'z': [1, undefined, 18], + 'aa': [1, undefined, 19], + 'ac': [1, undefined, 9]}, '55': { - '8': [1, undefined, 14], - '23': [1, undefined, 15], - '24': [1, undefined, 16], - '25': [1, undefined, 17], - '26': [1, undefined, 18], - '28': [1, undefined, 9]}, + 'i': [1, undefined, 14], + 't': [1, undefined, 15], + 'x': [1, undefined, 16], + 'y': [1, undefined, 17], + 'z': [1, undefined, 18], + 'aa': [1, undefined, 19], + 'ac': [1, undefined, 9]}, '56': { - '8': [1, undefined, 14], - '23': [1, undefined, 15], - '24': [1, undefined, 16], - '25': [1, undefined, 17], - '26': [1, undefined, 18], - '28': [1, undefined, 9]}, + 'i': [1, undefined, 14], + 't': [1, undefined, 15], + 'x': [1, undefined, 16], + 'y': [1, undefined, 17], + 'z': [1, undefined, 18], + 'aa': [1, undefined, 19], + 'ac': [1, undefined, 9]}, '57': { - '8': [1, undefined, 14], - '23': [1, undefined, 15], - '24': [1, undefined, 16], - '25': [1, undefined, 17], - '26': [1, undefined, 18], - '28': [1, undefined, 9]}, + 'a': [2, 1], + 'd': [2, 1], + 'b': [1, undefined, 1], + 'c': [1, undefined, 2], + 'f': [1, undefined, 3]}, '58': { - '8': [1, undefined, 14], - '23': [1, undefined, 15], - '24': [1, undefined, 16], - '25': [1, undefined, 17], - '26': [1, undefined, 18], - '28': [1, undefined, 9]}, + 'ac': [1, undefined, 9]}, '59': { - '8': [1, undefined, 14], - '23': [1, undefined, 15], - '24': [1, undefined, 16], - '25': [1, undefined, 17], - '26': [1, undefined, 18], - '28': [1, undefined, 9]}, + 'a': [2, 5], + 'e': [2, 5], + 'c': [2, 5], + 'f': [2, 5], + 'b': [2, 5], + 'd': [2, 5]}, '60': { - '8': [1, undefined, 14], - '23': [1, undefined, 15], - '24': [1, undefined, 16], - '25': [1, undefined, 17], - '26': [1, undefined, 18], - '28': [1, undefined, 9]}, + 'h': [2, 56], + 'g': [2, 56], + 'k': [2, 56], + 'l': [2, 56], + 'm': [2, 56], + 'n': [2, 56], + 'o': [2, 56], + 'p': [2, 56], + 'q': [2, 56], + 'r': [2, 56], + 's': [2, 56], + 't': [2, 56], + 'u': [2, 56], + 'v': [2, 56], + 'w': [2, 56], + 'ad': [2, 56], + 'ae': [2, 56], + 'ab': [1, undefined, 85]}, '61': { - '1': [2, 1], - '2': [1, undefined, 1], - '3': [1, undefined, 2], - '4': [2, 1], - '6': [1, undefined, 3]}, + 'h': [2, 15], + 'g': [1, undefined, 86]}, '62': { - '28': [1, undefined, 9]}, + 'h': [2, 18], + 'g': [2, 18]}, '63': { - '1': [2, 5], - '2': [2, 5], - '3': [2, 5], - '4': [2, 5], - '5': [2, 5], - '6': [2, 5]}, + 'h': [2, 19], + 'g': [2, 19]}, '64': { - '8': [1, undefined, 14], - '23': [1, undefined, 15], - '24': [1, undefined, 16], - '25': [1, undefined, 17], - '26': [1, undefined, 18], - '28': [1, undefined, 9]}, + 'h': [2, 16]}, '65': { - '7': [2, 14]}, + 'h': [2, 48], + 'g': [1, undefined, 87]}, '66': { - '7': [2, 17], - '8': [2, 17], - '23': [2, 17], - '24': [2, 17], - '25': [2, 17], - '26': [2, 17], - '28': [2, 17]}, + 'h': [2, 50], + 'g': [2, 50]}, '67': { - '27': [1, undefined, 64]}, + 'h': [2, 55], + 'g': [2, 55], + 'ad': [2, 55], + 'ae': [2, 55], + 'k': [2, 55], + 'l': [2, 55], + 'm': [2, 55], + 'n': [2, 55], + 'o': [2, 55], + 'p': [2, 55], + 'q': [2, 55], + 'r': [2, 55], + 's': [2, 55], + 't': [2, 55], + 'u': [2, 55], + 'v': [2, 55], + 'w': [2, 55], + 'j': [2, 55], + 'af': [2, 55]}, '68': { - '7': [2, 48], - '28': [2, 48]}, + 'h': [2, 53], + 'g': [2, 53], + 'ad': [2, 53], + 'ae': [2, 53], + 'k': [2, 53], + 'l': [2, 53], + 'm': [2, 53], + 'n': [2, 53], + 'o': [2, 53], + 'p': [2, 53], + 'q': [2, 53], + 'r': [2, 53], + 's': [2, 53], + 't': [2, 53], + 'u': [2, 53], + 'v': [2, 53], + 'w': [2, 53], + 'j': [2, 53], + 'af': [2, 53]}, '69': { - '7': [2, 54], - '8': [2, 54], - '9': [2, 54], - '10': [2, 54], - '11': [2, 54], - '12': [2, 54], - '13': [2, 54], - '14': [2, 54], - '15': [2, 54], - '16': [2, 54], - '17': [2, 54], - '18': [2, 54], - '19': [2, 54], - '20': [2, 54], - '21': [2, 54], - '22': [2, 54], - '23': [2, 54], - '24': [2, 54], - '25': [2, 54], - '26': [2, 54], - '28': [2, 54], - '29': [2, 54], - '30': [2, 54], - '31': [2, 54]}, + 'af': [1, undefined, 88]}, '70': { - '7': [2, 52], - '8': [2, 52], - '9': [2, 52], - '10': [2, 52], - '11': [2, 52], - '12': [2, 52], - '13': [2, 52], - '14': [2, 52], - '15': [2, 52], - '16': [2, 52], - '17': [2, 52], - '18': [2, 52], - '19': [2, 52], - '20': [2, 52], - '21': [2, 52], - '22': [2, 52], - '23': [2, 52], - '24': [2, 52], - '25': [2, 52], - '26': [2, 52], - '28': [2, 52], - '29': [2, 52], - '30': [2, 52], - '31': [2, 52]}, + 'h': [2, 47], + 'k': [2, 47], + 'l': [2, 47], + 'm': [2, 47], + 'n': [2, 47], + 'o': [2, 47], + 'p': [2, 47], + 'q': [2, 47], + 'r': [2, 47], + 's': [2, 47], + 't': [2, 47], + 'u': [2, 47], + 'v': [2, 47], + 'w': [2, 47], + 'j': [2, 47], + 'g': [2, 47], + 'af': [2, 47]}, '71': { - '31': [1, undefined, 88]}, + 'h': [2, 22], + 'k': [2, 22], + 'j': [2, 22], + 'g': [2, 22], + 'af': [2, 22], + 'l': [1, undefined, 45]}, '72': { - '7': [2, 46], - '8': [2, 46], - '9': [2, 46], - '10': [2, 46], - '11': [2, 46], - '12': [2, 46], - '13': [2, 46], - '14': [2, 46], - '15': [2, 46], - '16': [2, 46], - '17': [2, 46], - '18': [2, 46], - '19': [2, 46], - '20': [2, 46], - '21': [2, 46], - '22': [2, 46], - '23': [2, 46], - '24': [2, 46], - '25': [2, 46], - '26': [2, 46], - '28': [2, 46], - '31': [2, 46]}, + 'h': [2, 24], + 'k': [2, 24], + 'l': [2, 24], + 'j': [2, 24], + 'g': [2, 24], + 'af': [2, 24], + 'm': [1, undefined, 46], + 'n': [1, undefined, 47]}, '73': { - '7': [2, 22], - '8': [2, 22], - '9': [2, 22], - '10': [2, 22], - '11': [1, undefined, 49], - '23': [2, 22], - '24': [2, 22], - '25': [2, 22], - '26': [2, 22], - '28': [2, 22], - '31': [2, 22]}, + 'h': [2, 26], + 'k': [2, 26], + 'l': [2, 26], + 'm': [2, 26], + 'n': [2, 26], + 'j': [2, 26], + 'g': [2, 26], + 'af': [2, 26], + 'o': [1, undefined, 48], + 'p': [1, undefined, 49], + 'q': [1, undefined, 50], + 'r': [1, undefined, 51]}, '74': { - '7': [2, 24], - '8': [2, 24], - '9': [2, 24], - '10': [2, 24], - '11': [2, 24], - '12': [1, undefined, 50], - '13': [1, undefined, 51], - '23': [2, 24], - '24': [2, 24], - '25': [2, 24], - '26': [2, 24], - '28': [2, 24], - '31': [2, 24]}, + 'h': [2, 27], + 'k': [2, 27], + 'l': [2, 27], + 'm': [2, 27], + 'n': [2, 27], + 'j': [2, 27], + 'g': [2, 27], + 'af': [2, 27], + 'o': [1, undefined, 48], + 'p': [1, undefined, 49], + 'q': [1, undefined, 50], + 'r': [1, undefined, 51]}, '75': { - '7': [2, 26], - '8': [2, 26], - '9': [2, 26], - '10': [2, 26], - '11': [2, 26], - '12': [2, 26], - '13': [2, 26], - '14': [1, undefined, 52], - '15': [1, undefined, 53], - '16': [1, undefined, 54], - '17': [1, undefined, 55], - '23': [2, 26], - '24': [2, 26], - '25': [2, 26], - '26': [2, 26], - '28': [2, 26], - '31': [2, 26]}, + 'h': [2, 32], + 'k': [2, 32], + 'l': [2, 32], + 'm': [2, 32], + 'n': [2, 32], + 'o': [2, 32], + 'p': [2, 32], + 'q': [2, 32], + 'r': [2, 32], + 'j': [2, 32], + 'g': [2, 32], + 'af': [2, 32], + 's': [1, undefined, 52], + 't': [1, undefined, 53]}, '76': { - '7': [2, 27], - '8': [2, 27], - '9': [2, 27], - '10': [2, 27], - '11': [2, 27], - '12': [2, 27], - '13': [2, 27], - '14': [1, undefined, 52], - '15': [1, undefined, 53], - '16': [1, undefined, 54], - '17': [1, undefined, 55], - '23': [2, 27], - '24': [2, 27], - '25': [2, 27], - '26': [2, 27], - '28': [2, 27], - '31': [2, 27]}, + 'h': [2, 31], + 'k': [2, 31], + 'l': [2, 31], + 'm': [2, 31], + 'n': [2, 31], + 'o': [2, 31], + 'p': [2, 31], + 'q': [2, 31], + 'r': [2, 31], + 'j': [2, 31], + 'g': [2, 31], + 'af': [2, 31], + 's': [1, undefined, 52], + 't': [1, undefined, 53]}, '77': { - '7': [2, 30], - '8': [2, 30], - '9': [2, 30], - '10': [2, 30], - '11': [2, 30], - '12': [2, 30], - '13': [2, 30], - '14': [2, 30], - '15': [2, 30], - '16': [2, 30], - '17': [2, 30], - '18': [1, undefined, 56], - '19': [1, undefined, 57], - '23': [2, 30], - '24': [2, 30], - '25': [2, 30], - '26': [2, 30], - '28': [2, 30], - '31': [2, 30]}, + 'h': [2, 30], + 'k': [2, 30], + 'l': [2, 30], + 'm': [2, 30], + 'n': [2, 30], + 'o': [2, 30], + 'p': [2, 30], + 'q': [2, 30], + 'r': [2, 30], + 'j': [2, 30], + 'g': [2, 30], + 'af': [2, 30], + 's': [1, undefined, 52], + 't': [1, undefined, 53]}, '78': { - '7': [2, 32], - '8': [2, 32], - '9': [2, 32], - '10': [2, 32], - '11': [2, 32], - '12': [2, 32], - '13': [2, 32], - '14': [2, 32], - '15': [2, 32], - '16': [2, 32], - '17': [2, 32], - '18': [1, undefined, 56], - '19': [1, undefined, 57], - '23': [2, 32], - '24': [2, 32], - '25': [2, 32], - '26': [2, 32], - '28': [2, 32], - '31': [2, 32]}, + 'h': [2, 29], + 'k': [2, 29], + 'l': [2, 29], + 'm': [2, 29], + 'n': [2, 29], + 'o': [2, 29], + 'p': [2, 29], + 'q': [2, 29], + 'r': [2, 29], + 'j': [2, 29], + 'g': [2, 29], + 'af': [2, 29], + 's': [1, undefined, 52], + 't': [1, undefined, 53]}, '79': { - '7': [2, 29], - '8': [2, 29], - '9': [2, 29], - '10': [2, 29], - '11': [2, 29], - '12': [2, 29], - '13': [2, 29], - '14': [2, 29], - '15': [2, 29], - '16': [2, 29], - '17': [2, 29], - '18': [1, undefined, 56], - '19': [1, undefined, 57], - '23': [2, 29], - '24': [2, 29], - '25': [2, 29], - '26': [2, 29], - '28': [2, 29], - '31': [2, 29]}, + 'h': [2, 34], + 'k': [2, 34], + 'l': [2, 34], + 'm': [2, 34], + 'n': [2, 34], + 'o': [2, 34], + 'p': [2, 34], + 'q': [2, 34], + 'r': [2, 34], + 's': [2, 34], + 't': [2, 34], + 'j': [2, 34], + 'g': [2, 34], + 'af': [2, 34], + 'u': [1, undefined, 54], + 'v': [1, undefined, 55], + 'w': [1, undefined, 56]}, '80': { - '7': [2, 31], - '8': [2, 31], - '9': [2, 31], - '10': [2, 31], - '11': [2, 31], - '12': [2, 31], - '13': [2, 31], - '14': [2, 31], - '15': [2, 31], - '16': [2, 31], - '17': [2, 31], - '18': [1, undefined, 56], - '19': [1, undefined, 57], - '23': [2, 31], - '24': [2, 31], - '25': [2, 31], - '26': [2, 31], - '28': [2, 31], - '31': [2, 31]}, + 'h': [2, 35], + 'k': [2, 35], + 'l': [2, 35], + 'm': [2, 35], + 'n': [2, 35], + 'o': [2, 35], + 'p': [2, 35], + 'q': [2, 35], + 'r': [2, 35], + 's': [2, 35], + 't': [2, 35], + 'j': [2, 35], + 'g': [2, 35], + 'af': [2, 35], + 'u': [1, undefined, 54], + 'v': [1, undefined, 55], + 'w': [1, undefined, 56]}, '81': { - '7': [2, 34], - '8': [2, 34], - '9': [2, 34], - '10': [2, 34], - '11': [2, 34], - '12': [2, 34], - '13': [2, 34], - '14': [2, 34], - '15': [2, 34], - '16': [2, 34], - '17': [2, 34], - '18': [2, 34], - '19': [2, 34], - '20': [1, undefined, 58], - '21': [1, undefined, 59], - '22': [1, undefined, 60], - '23': [2, 34], - '24': [2, 34], - '25': [2, 34], - '26': [2, 34], - '28': [2, 34], - '31': [2, 34]}, + 'h': [2, 37], + 'k': [2, 37], + 'l': [2, 37], + 'm': [2, 37], + 'n': [2, 37], + 'o': [2, 37], + 'p': [2, 37], + 'q': [2, 37], + 'r': [2, 37], + 's': [2, 37], + 't': [2, 37], + 'u': [2, 37], + 'v': [2, 37], + 'w': [2, 37], + 'j': [2, 37], + 'g': [2, 37], + 'af': [2, 37]}, '82': { - '7': [2, 35], - '8': [2, 35], - '9': [2, 35], - '10': [2, 35], - '11': [2, 35], - '12': [2, 35], - '13': [2, 35], - '14': [2, 35], - '15': [2, 35], - '16': [2, 35], - '17': [2, 35], - '18': [2, 35], - '19': [2, 35], - '20': [1, undefined, 58], - '21': [1, undefined, 59], - '22': [1, undefined, 60], - '23': [2, 35], - '24': [2, 35], - '25': [2, 35], - '26': [2, 35], - '28': [2, 35], - '31': [2, 35]}, + 'h': [2, 38], + 'k': [2, 38], + 'l': [2, 38], + 'm': [2, 38], + 'n': [2, 38], + 'o': [2, 38], + 'p': [2, 38], + 'q': [2, 38], + 'r': [2, 38], + 's': [2, 38], + 't': [2, 38], + 'u': [2, 38], + 'v': [2, 38], + 'w': [2, 38], + 'j': [2, 38], + 'g': [2, 38], + 'af': [2, 38]}, '83': { - '7': [2, 37], - '8': [2, 37], - '9': [2, 37], - '10': [2, 37], - '11': [2, 37], - '12': [2, 37], - '13': [2, 37], - '14': [2, 37], - '15': [2, 37], - '16': [2, 37], - '17': [2, 37], - '18': [2, 37], - '19': [2, 37], - '20': [2, 37], - '21': [2, 37], - '22': [2, 37], - '23': [2, 37], - '24': [2, 37], - '25': [2, 37], - '26': [2, 37], - '28': [2, 37], - '31': [2, 37]}, + 'h': [2, 39], + 'k': [2, 39], + 'l': [2, 39], + 'm': [2, 39], + 'n': [2, 39], + 'o': [2, 39], + 'p': [2, 39], + 'q': [2, 39], + 'r': [2, 39], + 's': [2, 39], + 't': [2, 39], + 'u': [2, 39], + 'v': [2, 39], + 'w': [2, 39], + 'j': [2, 39], + 'g': [2, 39], + 'af': [2, 39]}, '84': { - '7': [2, 38], - '8': [2, 38], - '9': [2, 38], - '10': [2, 38], - '11': [2, 38], - '12': [2, 38], - '13': [2, 38], - '14': [2, 38], - '15': [2, 38], - '16': [2, 38], - '17': [2, 38], - '18': [2, 38], - '19': [2, 38], - '20': [2, 38], - '21': [2, 38], - '22': [2, 38], - '23': [2, 38], - '24': [2, 38], - '25': [2, 38], - '26': [2, 38], - '28': [2, 38], - '31': [2, 38]}, + 'h': [1, undefined, 89]}, '85': { - '7': [2, 39], - '8': [2, 39], - '9': [2, 39], - '10': [2, 39], - '11': [2, 39], - '12': [2, 39], - '13': [2, 39], - '14': [2, 39], - '15': [2, 39], - '16': [2, 39], - '17': [2, 39], - '18': [2, 39], - '19': [2, 39], - '20': [2, 39], - '21': [2, 39], - '22': [2, 39], - '23': [2, 39], - '24': [2, 39], - '25': [2, 39], - '26': [2, 39], - '28': [2, 39], - '31': [2, 39]}, + 'i': [1, undefined, 14], + 't': [1, undefined, 15], + 'x': [1, undefined, 16], + 'y': [1, undefined, 17], + 'z': [1, undefined, 18], + 'aa': [1, undefined, 19], + 'ac': [1, undefined, 9]}, '86': { - '7': [1, undefined, 89]}, + 'i': [1, undefined, 14], + 't': [1, undefined, 15], + 'x': [1, undefined, 16], + 'y': [1, undefined, 17], + 'z': [1, undefined, 18], + 'aa': [1, undefined, 19], + 'ac': [1, undefined, 60]}, '87': { - '7': [2, 50], - '28': [2, 50]}, + 'ac': [1, undefined, 93]}, '88': { - '7': [2, 53], - '8': [2, 53], - '9': [2, 53], - '10': [2, 53], - '11': [2, 53], - '12': [2, 53], - '13': [2, 53], - '14': [2, 53], - '15': [2, 53], - '16': [2, 53], - '17': [2, 53], - '18': [2, 53], - '19': [2, 53], - '20': [2, 53], - '21': [2, 53], - '22': [2, 53], - '23': [2, 53], - '24': [2, 53], - '25': [2, 53], - '26': [2, 53], - '28': [2, 53], - '29': [2, 53], - '30': [2, 53], - '31': [2, 53]}, + 'h': [2, 54], + 'g': [2, 54], + 'ad': [2, 54], + 'ae': [2, 54], + 'k': [2, 54], + 'l': [2, 54], + 'm': [2, 54], + 'n': [2, 54], + 'o': [2, 54], + 'p': [2, 54], + 'q': [2, 54], + 'r': [2, 54], + 's': [2, 54], + 't': [2, 54], + 'u': [2, 54], + 'v': [2, 54], + 'w': [2, 54], + 'j': [2, 54], + 'af': [2, 54]}, '89': { - '1': [2, 11], - '2': [2, 11], - '3': [2, 11], - '4': [2, 11], - '5': [2, 11], - '6': [2, 11]}}}; - _$jscoverage['/compiler/parser.js'].lineData[1891]++; + 'a': [2, 11], + 'e': [2, 11], + 'c': [2, 11], + 'f': [2, 11], + 'b': [2, 11], + 'd': [2, 11]}, + '90': { + 'h': [2, 51], + 'g': [2, 51]}, + '91': { + 'h': [2, 17], + 'g': [2, 17]}, + '92': { + 'h': [2, 14]}, + '93': { + 'ab': [1, undefined, 85]}, + '94': { + 'h': [2, 49], + 'g': [2, 49]}}}; + _$jscoverage['/compiler/parser.js'].lineData[1831]++; parser.parse = function parse(input) { - _$jscoverage['/compiler/parser.js'].functionData[67]++; - _$jscoverage['/compiler/parser.js'].lineData[1893]++; + _$jscoverage['/compiler/parser.js'].functionData[70]++; + _$jscoverage['/compiler/parser.js'].lineData[1832]++; var self = this, lexer = self.lexer, state, symbol, action, table = self.table, gotos = table.gotos, tableAction = table.action, productions = self.productions, valueStack = [null], stack = [0]; - _$jscoverage['/compiler/parser.js'].lineData[1905]++; + _$jscoverage['/compiler/parser.js'].lineData[1840]++; lexer.resetInput(input); - _$jscoverage['/compiler/parser.js'].lineData[1907]++; + _$jscoverage['/compiler/parser.js'].lineData[1841]++; while (1) { - _$jscoverage['/compiler/parser.js'].lineData[1909]++; + _$jscoverage['/compiler/parser.js'].lineData[1842]++; state = stack[stack.length - 1]; - _$jscoverage['/compiler/parser.js'].lineData[1911]++; - if (visit31_1911_1(!symbol)) { - _$jscoverage['/compiler/parser.js'].lineData[1912]++; + _$jscoverage['/compiler/parser.js'].lineData[1843]++; + if (visit34_1843_1(!symbol)) { + _$jscoverage['/compiler/parser.js'].lineData[1844]++; symbol = lexer.lex(); } - _$jscoverage['/compiler/parser.js'].lineData[1915]++; - if (visit32_1915_1(!symbol)) { - _$jscoverage['/compiler/parser.js'].lineData[1916]++; + _$jscoverage['/compiler/parser.js'].lineData[1846]++; + if (visit35_1846_1(!symbol)) { + _$jscoverage['/compiler/parser.js'].lineData[1847]++; S.log("it is not a valid input: " + input, "error"); - _$jscoverage['/compiler/parser.js'].lineData[1917]++; + _$jscoverage['/compiler/parser.js'].lineData[1848]++; return false; } - _$jscoverage['/compiler/parser.js'].lineData[1921]++; - action = visit33_1921_1(tableAction[state] && tableAction[state][symbol]); - _$jscoverage['/compiler/parser.js'].lineData[1923]++; - if (visit34_1923_1(!action)) { - _$jscoverage['/compiler/parser.js'].lineData[1924]++; + _$jscoverage['/compiler/parser.js'].lineData[1850]++; + action = visit36_1850_1(tableAction[state] && tableAction[state][symbol]); + _$jscoverage['/compiler/parser.js'].lineData[1851]++; + if (visit37_1851_1(!action)) { + _$jscoverage['/compiler/parser.js'].lineData[1852]++; var expected = [], error; - _$jscoverage['/compiler/parser.js'].lineData[1926]++; - if (visit35_1926_1(tableAction[state])) { - _$jscoverage['/compiler/parser.js'].lineData[1927]++; - S.each(tableAction[state], function(_, symbol) { - _$jscoverage['/compiler/parser.js'].functionData[68]++; - _$jscoverage['/compiler/parser.js'].lineData[1928]++; - expected.push(self.lexer.mapReverseSymbol(symbol)); -}); + _$jscoverage['/compiler/parser.js'].lineData[1854]++; + if (visit38_1854_1(tableAction[state])) { + _$jscoverage['/compiler/parser.js'].lineData[1855]++; + for (var symbolForState in tableAction[state]) { + _$jscoverage['/compiler/parser.js'].lineData[1856]++; + expected.push(self.lexer.mapReverseSymbol(symbolForState)); + } } - _$jscoverage['/compiler/parser.js'].lineData[1931]++; - error = "Syntax error at line " + lexer.lineNumber + ":\n" + lexer.showDebugInfo() + '\n' + "expect " + expected.join(", "); - _$jscoverage['/compiler/parser.js'].lineData[1932]++; + _$jscoverage['/compiler/parser.js'].lineData[1859]++; + error = "Syntax error at line " + lexer.lineNumber + ":\n" + lexer.showDebugInfo() + "\n" + "expect " + expected.join(", "); + _$jscoverage['/compiler/parser.js'].lineData[1860]++; S.error(error); - _$jscoverage['/compiler/parser.js'].lineData[1933]++; + _$jscoverage['/compiler/parser.js'].lineData[1861]++; return false; } - _$jscoverage['/compiler/parser.js'].lineData[1936]++; + _$jscoverage['/compiler/parser.js'].lineData[1863]++; switch (action[GrammarConst.TYPE_INDEX]) { case GrammarConst.SHIFT_TYPE: - _$jscoverage['/compiler/parser.js'].lineData[1940]++; + _$jscoverage['/compiler/parser.js'].lineData[1865]++; stack.push(symbol); - _$jscoverage['/compiler/parser.js'].lineData[1942]++; + _$jscoverage['/compiler/parser.js'].lineData[1866]++; valueStack.push(lexer.text); - _$jscoverage['/compiler/parser.js'].lineData[1945]++; + _$jscoverage['/compiler/parser.js'].lineData[1867]++; stack.push(action[GrammarConst.TO_INDEX]); - _$jscoverage['/compiler/parser.js'].lineData[1948]++; + _$jscoverage['/compiler/parser.js'].lineData[1868]++; symbol = null; - _$jscoverage['/compiler/parser.js'].lineData[1950]++; + _$jscoverage['/compiler/parser.js'].lineData[1869]++; break; case GrammarConst.REDUCE_TYPE: - _$jscoverage['/compiler/parser.js'].lineData[1954]++; - var production = productions[action[GrammarConst.PRODUCTION_INDEX]], reducedSymbol = visit36_1955_1(production.symbol || production[0]), reducedAction = visit37_1956_1(production.action || production[2]), reducedRhs = visit38_1957_1(production.rhs || production[1]), len = reducedRhs.length, i = 0, ret, $$ = valueStack[valueStack.length - len]; - _$jscoverage['/compiler/parser.js'].lineData[1963]++; - self.$$ = $$; - _$jscoverage['/compiler/parser.js'].lineData[1965]++; + _$jscoverage['/compiler/parser.js'].lineData[1871]++; + var production = productions[action[GrammarConst.PRODUCTION_INDEX]], reducedSymbol = visit39_1872_1(production.symbol || production[0]), reducedAction = visit40_1873_1(production.action || production[2]), reducedRhs = visit41_1874_1(production.rhs || production[1]), len = reducedRhs.length, i = 0, ret, $$ = valueStack[valueStack.length - len]; + _$jscoverage['/compiler/parser.js'].lineData[1878]++; ret = undefined; - _$jscoverage['/compiler/parser.js'].lineData[1967]++; - for (; visit39_1967_1(i < len); i++) { - _$jscoverage['/compiler/parser.js'].lineData[1968]++; + _$jscoverage['/compiler/parser.js'].lineData[1879]++; + self.$$ = $$; + _$jscoverage['/compiler/parser.js'].lineData[1880]++; + for (; visit42_1880_1(i < len); i++) { + _$jscoverage['/compiler/parser.js'].lineData[1881]++; self["$" + (len - i)] = valueStack[valueStack.length - 1 - i]; } - _$jscoverage['/compiler/parser.js'].lineData[1971]++; - if (visit40_1971_1(reducedAction)) { - _$jscoverage['/compiler/parser.js'].lineData[1972]++; + _$jscoverage['/compiler/parser.js'].lineData[1883]++; + if (visit43_1883_1(reducedAction)) { + _$jscoverage['/compiler/parser.js'].lineData[1884]++; ret = reducedAction.call(self); } - _$jscoverage['/compiler/parser.js'].lineData[1975]++; - if (visit41_1975_1(ret !== undefined)) { - _$jscoverage['/compiler/parser.js'].lineData[1976]++; + _$jscoverage['/compiler/parser.js'].lineData[1886]++; + if (visit44_1886_1(ret !== undefined)) { + _$jscoverage['/compiler/parser.js'].lineData[1887]++; $$ = ret; } else { - _$jscoverage['/compiler/parser.js'].lineData[1978]++; + _$jscoverage['/compiler/parser.js'].lineData[1889]++; $$ = self.$$; } - _$jscoverage['/compiler/parser.js'].lineData[1981]++; - if (visit42_1981_1(len)) { - _$jscoverage['/compiler/parser.js'].lineData[1982]++; + _$jscoverage['/compiler/parser.js'].lineData[1891]++; + if (visit45_1891_1(len)) { + _$jscoverage['/compiler/parser.js'].lineData[1892]++; stack = stack.slice(0, -1 * len * 2); - _$jscoverage['/compiler/parser.js'].lineData[1983]++; + _$jscoverage['/compiler/parser.js'].lineData[1893]++; valueStack = valueStack.slice(0, -1 * len); } - _$jscoverage['/compiler/parser.js'].lineData[1986]++; + _$jscoverage['/compiler/parser.js'].lineData[1895]++; stack.push(reducedSymbol); - _$jscoverage['/compiler/parser.js'].lineData[1988]++; + _$jscoverage['/compiler/parser.js'].lineData[1896]++; valueStack.push($$); - _$jscoverage['/compiler/parser.js'].lineData[1990]++; + _$jscoverage['/compiler/parser.js'].lineData[1897]++; var newState = gotos[stack[stack.length - 2]][stack[stack.length - 1]]; - _$jscoverage['/compiler/parser.js'].lineData[1992]++; + _$jscoverage['/compiler/parser.js'].lineData[1898]++; stack.push(newState); - _$jscoverage['/compiler/parser.js'].lineData[1994]++; + _$jscoverage['/compiler/parser.js'].lineData[1899]++; break; case GrammarConst.ACCEPT_TYPE: - _$jscoverage['/compiler/parser.js'].lineData[1998]++; + _$jscoverage['/compiler/parser.js'].lineData[1901]++; return $$; } } - _$jscoverage['/compiler/parser.js'].lineData[2003]++; + _$jscoverage['/compiler/parser.js'].lineData[1904]++; return undefined; }; - _$jscoverage['/compiler/parser.js'].lineData[2006]++; + _$jscoverage['/compiler/parser.js'].lineData[1906]++; return parser; }); diff --git a/src/xtemplate/sub-modules/compiler/src/compiler.js b/src/xtemplate/sub-modules/compiler/src/compiler.js index ea6677a747..24d4afa386 100644 --- a/src/xtemplate/sub-modules/compiler/src/compiler.js +++ b/src/xtemplate/sub-modules/compiler/src/compiler.js @@ -97,7 +97,7 @@ KISSY.add(function (S, require) { } }, - genId: function (idNode, tplNode, preserveUndefined) { + genIdOrInlineCommand: function (idNode, tplNode) { var source = [], depth = idNode.depth, configName, @@ -118,22 +118,32 @@ KISSY.add(function (S, require) { // variable {{variable.subVariable}} var idString = self.getIdStringFromIdParts(source, idParts); - // require include modules - if (idString === 'include') { - // prevent require parse... - source.push('if(moduleWrap) {re' + 'quire("' + tplNode.params[0].value + '");' + - configName + '.params[0]=moduleWrap.resolveByName(' + configName + '.params[0]);' + - '}'); + // {{../x}} + // {{this.x}} + // {{command x}} + if (depth || S.startsWith(idString, 'this.')) { + source.push('var ' + idName + + ' = getPropertyUtil(engine,scope' + + ',"' + idString + '",' + + depth + ',' + idNode.lineNumber + ');'); + } else if (configName) { + // require include modules + if (idString === 'include') { + // prevent require parse... + source.push('if(moduleWrap) {re' + 'quire("' + tplNode.params[0].value + '");' + + configName + '.params[0] = moduleWrap.resolveByName(' + configName + '.params[0]);' + + '}'); + } + source.push('var ' + idName + + ' = runInlineCommandUtil(engine,scope,' + + configName + ',"' + idString + '",' + + idNode.lineNumber + ');'); + } else { + source.push('var ' + idName + + ' = getPropertyOrRunCommandUtil(engine,scope,' + + (configName || '{}') + ',"' + idString + '",' + depth + + ',' + idNode.lineNumber + ');'); } - - source.push('var ' + idName + - ' = getPropertyOrRunCommandUtil(engine,scope,' + - (configName || '{}') + ',"' + - idString + - '",' + depth + ',' + idNode.lineNumber + - ',' + (tplNode && tplNode.escaped) + - ',' + preserveUndefined + ');'); - return [idName, source]; }, @@ -268,12 +278,13 @@ KISSY.add(function (S, require) { unaryExpression: function (e) { var source = [], name, + unaryType = e.unaryType, code = this[e.value.type](e.value); arrayPush.apply(source, code[1]); if ((name = code[0])) { - source.push(name + '=!' + name + ';'); + source.push(name + '=' + unaryType + name + ';'); } else { - source[source.length - 1] = '!' + lastOfArray(source); + source[source.length - 1] = '' + unaryType + lastOfArray(source); } return [name, source]; }, @@ -292,9 +303,19 @@ KISSY.add(function (S, require) { return ['', [e.value]]; }, - 'id': function (e, topLevel) { - // topLevel: {{n}} - return this.genId(e, undefined, !topLevel); + 'id': function (idNode) { + var source = [], + depth = idNode.depth, + idParts = idNode.parts, + idName = guid('id'), + self = this; + // variable {{variable.subVariable}} + var idString = self.getIdStringFromIdParts(source, idParts); + source.push('var ' + idName + + ' = getPropertyUtil(engine,scope' + + ',"' + idString + '",' + + depth + ',' + idNode.lineNumber + ');'); + return [idName, source]; }, 'block': function (block) { @@ -356,17 +377,25 @@ KISSY.add(function (S, require) { 'tpl': function (tplNode) { var source = [], - genIdCode = this.genId(tplNode.path, tplNode); - pushToArray(source, genIdCode[1]); - source.push('buffer += ' + genIdCode[0] + ';'); + genIdOrInlineCommandCode = this.genIdOrInlineCommand(tplNode.path, tplNode); + pushToArray(source, genIdOrInlineCommandCode[1]); + source.push('buffer += renderOutputUtil(' + genIdOrInlineCommandCode[0] + ',' + tplNode.escaped + ');'); return source; }, 'tplExpression': function (e) { var source = [], escaped = e.escaped, + code, + expression = e.expression, + type = e.expression.type, expressionOrVariable; - var code = this[e.expression.type](e.expression, 1); + if (type === 'id') { + code = this.genIdOrInlineCommand(expression); + } else { + // {{x+y}} + code = this[type](expression); + } if (code[0]) { pushToArray(source, code[1]); expressionOrVariable = code[0]; @@ -374,7 +403,7 @@ KISSY.add(function (S, require) { pushToArray(source, code[1].slice(0, -1)); expressionOrVariable = lastOfArray(code[1]); } - source.push('buffer += getExpressionUtil(' + expressionOrVariable + ',' + escaped + ');'); + source.push('buffer += renderOutputUtil(' + expressionOrVariable + ',' + escaped + ');'); return source; }, diff --git a/src/xtemplate/sub-modules/compiler/src/compiler/ast.js b/src/xtemplate/sub-modules/compiler/src/compiler/ast.js index 7bcb22619b..94839c0edf 100644 --- a/src/xtemplate/sub-modules/compiler/src/compiler/ast.js +++ b/src/xtemplate/sub-modules/compiler/src/compiler/ast.js @@ -4,7 +4,6 @@ * @ignore */ KISSY.add(function (S) { - var ast = {}; /** @@ -82,8 +81,9 @@ KISSY.add(function (S) { ast.ContentNode.prototype.type = 'content'; - ast.UnaryExpression = function (v) { + ast.UnaryExpression = function (unaryType, v) { this.value = v; + this.unaryType = unaryType; }; ast.UnaryExpression.prototype.type = 'unaryExpression'; diff --git a/src/xtemplate/sub-modules/compiler/src/compiler/gen-parser.bat b/src/xtemplate/sub-modules/compiler/src/compiler/gen-parser.bat index 1cbc85b965..67f7654878 100644 --- a/src/xtemplate/sub-modules/compiler/src/compiler/gen-parser.bat +++ b/src/xtemplate/sub-modules/compiler/src/compiler/gen-parser.bat @@ -1,2 +1,2 @@ -call kissy-kison -g parser-grammar.kison -m xtemplate/compiler/parser +node ../../../../../../bin/kissy-kison -g parser-grammar.kison pause \ No newline at end of file diff --git a/src/xtemplate/sub-modules/compiler/src/compiler/parser-grammar.kison b/src/xtemplate/sub-modules/compiler/src/compiler/parser-grammar.kison index c2a72a6132..4047c95051 100644 --- a/src/xtemplate/sub-modules/compiler/src/compiler/parser-grammar.kison +++ b/src/xtemplate/sub-modules/compiler/src/compiler/parser-grammar.kison @@ -117,23 +117,23 @@ }, { symbol: 'inTpl', - rhs: ['path', 'params', 'hash'], + rhs: ['path', 'SPACE', 'params', 'SPACE', 'hash'], action: function () { - return new this.yy.TplNode(this.lexer.lineNumber, this.$1, this.$2, this.$3); + return new this.yy.TplNode(this.lexer.lineNumber, this.$1, this.$3, this.$5); } }, { symbol: 'inTpl', - rhs: ['path', 'params'], + rhs: ['path', 'SPACE', 'params'], action: function () { - return new this.yy.TplNode(this.lexer.lineNumber, this.$1, this.$2); + return new this.yy.TplNode(this.lexer.lineNumber, this.$1, this.$3); } }, { symbol: 'inTpl', - rhs: ['path', 'hash'], + rhs: ['path', 'SPACE', 'hash'], action: function () { - return new this.yy.TplNode(this.lexer.lineNumber, this.$1, null, this.$2); + return new this.yy.TplNode(this.lexer.lineNumber, this.$1, null, this.$3); } }, // inline tpl end @@ -142,9 +142,9 @@ // params start { symbol: 'params', - rhs: ['params', 'param'], + rhs: ['params', 'SPACE', 'param'], action: function () { - this.$1.push(this.$2); + this.$1.push(this.$3); } }, { @@ -285,7 +285,14 @@ symbol: 'UnaryExpression', rhs: ['NOT', 'UnaryExpression'], action: function () { - return new this.yy.UnaryExpression(this.$1); + return new this.yy.UnaryExpression(this.$1, this.$2); + } + }, + { + symbol: 'UnaryExpression', + rhs: ['MINUS', 'UnaryExpression'], + action: function () { + return new this.yy.UnaryExpression(this.$1, this.$2); } }, { @@ -337,9 +344,9 @@ }, { symbol: 'hashSegments', - rhs: ['hashSegments', 'hashSegment'], + rhs: ['hashSegments', 'SPACE', 'hashSegment'], action: function () { - this.$1.push(this.$2); + this.$1.push(this.$3); } }, { @@ -410,16 +417,20 @@ text = self.text, m, n = 0; + if ((m = text.match(/\\+$/))) { n = m[0].length; } if (n % 2) { self.pushState('et'); + text = text.slice(0, -1); } else { self.pushState('t'); } - if(n){ - text = text.slice(0, -1); + if (n) { + text = text.replace(/\\+$/g, function (m) { + return new Array(m.length / 2 + 1).join('\\'); + }); } // https://github.com/kissyteam/kissy/issues/330 // return even empty @@ -480,7 +491,8 @@ { // ignore white space state: ['t'], - regexp: /^\s+/ + regexp: /^\s+/, + token: 'SPACE' }, { state: ['t'], diff --git a/src/xtemplate/sub-modules/compiler/src/compiler/parser.js b/src/xtemplate/sub-modules/compiler/src/compiler/parser.js index ae42fc3b32..c435607368 100644 --- a/src/xtemplate/sub-modules/compiler/src/compiler/parser.js +++ b/src/xtemplate/sub-modules/compiler/src/compiler/parser.js @@ -1,8 +1,8 @@ /* Generated by kissy-kison.*/ -KISSY.add(function (_, undefined) { +KISSY.add(function () { + /*jshint quotmark:false, loopfunc:true, indent:false, asi:true, boss:true*/ /* Generated by kison from KISSY */ - /* jshint quotmark:false, loopfunc:true */ var parser = {}, S = KISSY, GrammarConst = { 'SHIFT_TYPE': 1, @@ -12,66 +12,19 @@ KISSY.add(function (_, undefined) { 'PRODUCTION_INDEX': 1, 'TO_INDEX': 2 }; + /*jslint quotmark: false*/ var Lexer = function (cfg) { - var self = this; - - /* - lex rules. - @type {Object[]} - @example - [ - { - regexp:'\\w+', - state:['xx'], - token:'c', - // this => lex - action:function(){} - } - ] - */ self.rules = []; - S.mix(self, cfg); - - /* - Input languages - @type {String} - */ - - self.resetInput(self.input); - + self.resetInput(self.input) }; Lexer.prototype = { 'constructor': function (cfg) { - var self = this; - - /* - lex rules. - @type {Object[]} - @example - [ - { - regexp:'\\w+', - state:['xx'], - token:'c', - // this => lex - action:function(){} - } - ] - */ self.rules = []; - S.mix(self, cfg); - - /* - Input languages - @type {String} - */ - - self.resetInput(self.input); - + self.resetInput(self.input) }, 'resetInput': function (input) { S.mix(this, { @@ -85,7 +38,24 @@ KISSY.add(function (_, undefined) { lastLine: 1, firstColumn: 1, lastColumn: 1 - }); + }) + }, + 'genShortId': function (field) { + var base = 97, + max = 122, + interval = max - base + 1; + field += "__gen"; + var self = this; + if (!(field in self)) { + self[field] = -1 + } + var index = self[field] = self[field] + 1; + var ret = ""; + do { + ret = String.fromCharCode(base + index % interval) + ret; + index = Math.floor(index / interval) - 1 + } while (index >= 0); + return ret }, 'getCurrentRules': function () { var self = this, @@ -96,22 +66,24 @@ KISSY.add(function (_, undefined) { var state = r.state || r[3]; if (!state) { if (currentState === Lexer.STATIC.INITIAL) { - rules.push(r); + rules.push(r) + } + } else { + if (S.inArray(currentState, state)) { + rules.push(r) } - } else if (S.inArray(currentState, state)) { - rules.push(r); } }); - return rules; + return rules }, 'pushState': function (state) { - this.stateStack.push(state); + this.stateStack.push(state) }, 'popState': function () { - return this.stateStack.pop(); + return this.stateStack.pop() }, 'getStateStack': function () { - return this.stateStack; + return this.stateStack }, 'showDebugInfo': function () { var self = this, @@ -123,66 +95,57 @@ KISSY.add(function (_, undefined) { var past = (matched.length > DEBUG_CONTEXT_LIMIT ? "..." : "") + matched.slice(-DEBUG_CONTEXT_LIMIT).replace(/\n/, " "), next = match + input; next = next.slice(0, DEBUG_CONTEXT_LIMIT) + (next.length > DEBUG_CONTEXT_LIMIT ? "..." : ""); - return past + next + '\n' + new Array(past.length + 1).join("-") + "^"; + return past + next + "\n" + (new Array(past.length + 1)).join("-") + "^" }, 'mapSymbol': function (t) { var self = this, symbolMap = self.symbolMap; if (!symbolMap) { - return t; + return t } - return symbolMap[t] || (symbolMap[t] = (++self.symbolId)); + return symbolMap[t] || (symbolMap[t] = self.genShortId("symbol")) }, 'mapReverseSymbol': function (rs) { var self = this, symbolMap = self.symbolMap, - i, - reverseSymbolMap = self.reverseSymbolMap; + i, reverseSymbolMap = self.reverseSymbolMap; if (!reverseSymbolMap && symbolMap) { reverseSymbolMap = self.reverseSymbolMap = {}; for (i in symbolMap) { - reverseSymbolMap[symbolMap[i]] = i; + reverseSymbolMap[symbolMap[i]] = i } } if (reverseSymbolMap) { - return reverseSymbolMap[rs]; + return reverseSymbolMap[rs] } else { - return rs; + return rs } }, 'mapState': function (s) { var self = this, stateMap = self.stateMap; if (!stateMap) { - return s; + return s } - return stateMap[s] || (stateMap[s] = (++self.stateId)); + return stateMap[s] || (stateMap[s] = self.genShortId("state")) }, 'lex': function () { var self = this, input = self.input, - i, - rule, - m, - ret, - lines, - rules = self.getCurrentRules(); - + i, rule, m, ret, lines, rules = self.getCurrentRules(); self.match = self.text = ""; - if (!input) { - return self.mapSymbol(Lexer.STATIC.END_TAG); + return self.mapSymbol(Lexer.STATIC.END_TAG) } - for (i = 0; i < rules.length; i++) { rule = rules[i]; var regexp = rule.regexp || rule[1], token = rule.token || rule[0], action = rule.action || rule[2] || undefined; - if ((m = input.match(regexp))) { + if (m = input.match(regexp)) { lines = m[0].match(/\n.*/g); if (lines) { - self.lineNumber += lines.length; + self.lineNumber += lines.length } S.mix(self, { firstLine: self.lastLine, @@ -191,35 +154,27 @@ KISSY.add(function (_, undefined) { lastColumn: lines ? lines[lines.length - 1].length - 1 : self.lastColumn + m[0].length }); var match; - // for error report match = self.match = m[0]; - - // all matches self.matches = m; - // may change by user self.text = match; - // matched content utils now self.matched += match; ret = action && action.call(self); if (ret === undefined) { - ret = token; + ret = token } else { - ret = self.mapSymbol(ret); + ret = self.mapSymbol(ret) } input = input.slice(match.length); self.input = input; - if (ret) { - return ret; + return ret } else { - // ignore - return self.lex(); + return self.lex() } } } - S.error("lex error at line " + self.lineNumber + ":\n" + self.showDebugInfo()); - return undefined; + return undefined } }; Lexer.STATIC = { @@ -229,1779 +184,1724 @@ KISSY.add(function (_, undefined) { }; var lexer = new Lexer({ 'rules': [ - [0, /^[\s\S]*?(?={{)/, function () { - var self = this, - text = self.text, - m, - n = 0; - if ((m = text.match(/\\+$/))) { - n = m[0].length; - } - if (n % 2) { - self.pushState('et'); - } else { - self.pushState('t'); - } - if (n) { - text = text.slice(0, -1); + [0, /^[\s\S]*?(?={{)/, + function () { + var self = this, + text = self.text, + m, + n = 0; + + if ((m = text.match(/\\+$/))) { + n = m[0].length; + } + if (n % 2) { + self.pushState('et'); + text = text.slice(0, -1); + } else { + self.pushState('t'); + } + if (n) { + text = text.replace(/\\+$/g, function (m) { + return new Array(m.length / 2 + 1).join('\\'); + }); + } + // https://github.com/kissyteam/kissy/issues/330 + // return even empty + self.text = text; + return 'CONTENT'; } - // https://github.com/kissyteam/kissy/issues/330 - // return even empty - self.text = text; - return 'CONTENT'; - }], - [2, /^[\s\S]+/, 0], - [2, /^[\s\S]{2,}?(?:(?={{)|$)/, function popState() { - this.popState(); - }, ['et']], - [3, /^{{(?:#|@|\^)/, 0, ['t']], - [4, /^{{\//, 0, ['t']], - [5, /^{{\s*else\s*}}/, function popState() { - this.popState(); - }, ['t']], - [0, /^{{![\s\S]*?}}/, function popState() { - this.popState(); - }, ['t']], - [2, /^{{%([\s\S]*?)%}}/, function () { - // return to content mode - this.text = this.matches[1] || ''; - this.popState(); - }, ['t']], - [6, /^{{{?/, 0, ['t']], - [0, /^\s+/, 0, ['t']], - [7, /^}}}?/, function popState() { - this.popState(); - }, ['t']], - [8, /^\(/, 0, ['t']], - [9, /^\)/, 0, ['t']], - [10, /^\|\|/, 0, ['t']], - [11, /^&&/, 0, ['t']], - [12, /^===/, 0, ['t']], - [13, /^!==/, 0, ['t']], - [15, /^>=/, 0, ['t']], - [17, /^<=/, 0, ['t']], - [14, /^>/, 0, ['t']], - [16, /^=/, 0, ['t']], + ['p', /^<=/, 0, ['t']], + ['q', /^>/, 0, ['t']], + ['r', /^', this.$3); + } + ], + ['ay', ['ay', 'p', 'az'], + function () { + return new this.yy.RelationalExpression(this.$1, '<=', this.$3); + } + ], + ['ay', ['ay', 'o', 'az'], + function () { + return new this.yy.RelationalExpression(this.$1, '>=', this.$3); + } + ], + ['az', ['ba']], + ['az', ['az', 's', 'ba'], + function () { + return new this.yy.AdditiveExpression(this.$1, '+', this.$3); + } + ], + ['az', ['az', 't', 'ba'], + function () { + return new this.yy.AdditiveExpression(this.$1, '-', this.$3); + } + ], + ['ba', ['bb']], + ['ba', ['ba', 'u', 'bb'], + function () { + return new this.yy.MultiplicativeExpression(this.$1, '*', this.$3); + } + ], + ['ba', ['ba', 'v', 'bb'], + function () { + return new this.yy.MultiplicativeExpression(this.$1, '/', this.$3); + } + ], + ['ba', ['ba', 'w', 'bb'], + function () { + return new this.yy.MultiplicativeExpression(this.$1, '%', this.$3); + } + ], + ['bb', ['x', 'bb'], + function () { + return new this.yy.UnaryExpression(this.$1, this.$2); + } + ], + ['bb', ['t', 'bb'], + function () { + return new this.yy.UnaryExpression(this.$1, this.$2); + } + ], + ['bb', ['bc']], + ['bc', ['y'], + function () { + return new this.yy.StringNode(this.lexer.lineNumber, this.$1); + } + ], + ['bc', ['aa'], + function () { + return new this.yy.NumberNode(this.lexer.lineNumber, this.$1); + } + ], + ['bc', ['z'], + function () { + return new this.yy.BooleanNode(this.lexer.lineNumber, this.$1); + } + ], + ['bc', ['ap']], + ['bc', ['i', 'ar', 'j'], + function () { + return this.$2; + } + ], + ['at', ['bd'], + function () { + return new this.yy.HashNode(this.lexer.lineNumber, this.$1); + } + ], + ['bd', ['bd', 'g', 'be'], + function () { + this.$1.push(this.$3); } - return this.$2; - }], - [38, [4, 41, 7], function () { - return this.$2; - }], - [39, [6, 42, 7], function () { - if (this.$1.length === 3) { - this.$2.escaped = false; + ], + ['bd', ['be'], + function () { + return [this.$1]; } - return this.$2; - }], - [39, [6, 43, 7], function () { - var tpl = new this.yy.TplExpressionNode(this.lexer.lineNumber, - this.$2); - if (this.$1.length === 3) { - tpl.escaped = false; + ], + ['be', ['ac', 'ab', 'ar'], + function () { + return [this.$1, this.$3]; } - return tpl; - }], - [42, [41, 44, 45], function () { - return new this.yy.TplNode(this.lexer.lineNumber, this.$1, this.$2, this.$3); - }], - [42, [41, 44], function () { - return new this.yy.TplNode(this.lexer.lineNumber, this.$1, this.$2); - }], - [42, [41, 45], function () { - return new this.yy.TplNode(this.lexer.lineNumber, this.$1, null, this.$2); - }], - [44, [44, 46], function () { - this.$1.push(this.$2); - }], - [44, [46], function () { - return [this.$1]; - }], - [46, [43]], - [43, [47]], - [47, [48]], - [47, [47, 10, 48], function () { - return new this.yy.ConditionalOrExpression(this.$1, this.$3); - }], - [48, [49]], - [48, [48, 11, 49], function () { - return new this.yy.ConditionalAndExpression(this.$1, this.$3); - }], - [49, [50]], - [49, [49, 12, 50], function () { - return new this.yy.EqualityExpression(this.$1, '===', this.$3); - }], - [49, [49, 13, 50], function () { - return new this.yy.EqualityExpression(this.$1, '!==', this.$3); - }], - [50, [51]], - [50, [50, 16, 51], function () { - return new this.yy.RelationalExpression(this.$1, '<', this.$3); - }], - [50, [50, 14, 51], function () { - return new this.yy.RelationalExpression(this.$1, '>', this.$3); - }], - [50, [50, 17, 51], function () { - return new this.yy.RelationalExpression(this.$1, '<=', this.$3); - }], - [50, [50, 15, 51], function () { - return new this.yy.RelationalExpression(this.$1, '>=', this.$3); - }], - [51, [52]], - [51, [51, 18, 52], function () { - return new this.yy.AdditiveExpression(this.$1, '+', this.$3); - }], - [51, [51, 19, 52], function () { - return new this.yy.AdditiveExpression(this.$1, '-', this.$3); - }], - [52, [53]], - [52, [52, 20, 53], function () { - return new this.yy.MultiplicativeExpression(this.$1, '*', this.$3); - }], - [52, [52, 21, 53], function () { - return new this.yy.MultiplicativeExpression(this.$1, '/', this.$3); - }], - [52, [52, 22, 53], function () { - return new this.yy.MultiplicativeExpression(this.$1, '%', this.$3); - }], - [53, [23, 53], function () { - return new this.yy.UnaryExpression(this.$1); - }], - [53, [54]], - [54, [24], function () { - return new this.yy.StringNode(this.lexer.lineNumber, this.$1); - }], - [54, [26], function () { - return new this.yy.NumberNode(this.lexer.lineNumber, this.$1); - }], - [54, [25], function () { - return new this.yy.BooleanNode(this.lexer.lineNumber, this.$1); - }], - [54, [41]], - [54, [8, 43, 9], function () { - return this.$2; - }], - [45, [55], function () { - return new this.yy.HashNode(this.lexer.lineNumber, this.$1); - }], - [55, [55, 56], function () { - this.$1.push(this.$2); - }], - [55, [56], function () { - return [this.$1]; - }], - [56, [28, 27, 43], function () { - return [this.$1, this.$3]; - }], - [41, [57], function () { - return new this.yy.IdNode(this.lexer.lineNumber, this.$1); - }], - [57, [57, 29, 28], function () { - this.$1.push(this.$3); - }], - [57, [57, 30, 43, 31], function () { - this.$1.push(this.$3); - }], - [57, [57, 29, 26], function () { - this.$1.push(this.$3); - }], - [57, [28], function () { - return [this.$1]; - }] + ], + ['ap', ['bf'], + function () { + return new this.yy.IdNode(this.lexer.lineNumber, this.$1); + } + ], + ['bf', ['bf', 'ad', 'ac'], + function () { + this.$1.push(this.$3); + } + ], + ['bf', ['bf', 'ae', 'ar', 'af'], + function () { + this.$1.push(this.$3); + } + ], + ['bf', ['bf', 'ad', 'aa'], + function () { + this.$1.push(this.$3); + } + ], + ['bf', ['ac'], + function () { + return [this.$1]; + } + ] ]; parser.table = { 'gotos': { '0': { - '34': 4, - '35': 5, - '36': 6, - '37': 7, - '39': 8 + 'ai': 4, + 'aj': 5, + 'ak': 6, + 'al': 7, + 'an': 8 }, '2': { - '40': 10, - '41': 11, - '42': 12, - '57': 13 + 'ao': 10, + 'aq': 11, + 'ap': 12, + 'bf': 13 }, '3': { - '41': 19, - '42': 20, - '43': 21, - '47': 22, - '48': 23, - '49': 24, - '50': 25, - '51': 26, - '52': 27, - '53': 28, - '54': 29, - '57': 13 + 'aq': 20, + 'ar': 21, + 'av': 22, + 'aw': 23, + 'ax': 24, + 'ay': 25, + 'az': 26, + 'ba': 27, + 'bb': 28, + 'bc': 29, + 'ap': 30, + 'bf': 13 }, '5': { - '36': 31, - '37': 7, - '39': 8 + 'ak': 32, + 'al': 7, + 'an': 8 }, '7': { - '34': 32, - '35': 5, - '36': 6, - '37': 7, - '39': 8 - }, - '11': { - '41': 35, - '43': 36, - '44': 37, - '45': 38, - '46': 39, - '47': 22, - '48': 23, - '49': 24, - '50': 25, - '51': 26, - '52': 27, - '53': 28, - '54': 29, - '55': 40, - '56': 41, - '57': 13 + 'ai': 33, + 'aj': 5, + 'ak': 6, + 'al': 7, + 'an': 8 }, '14': { - '41': 35, - '43': 44, - '47': 22, - '48': 23, - '49': 24, - '50': 25, - '51': 26, - '52': 27, - '53': 28, - '54': 29, - '57': 13 + 'ar': 38, + 'av': 22, + 'aw': 23, + 'ax': 24, + 'ay': 25, + 'az': 26, + 'ba': 27, + 'bb': 28, + 'bc': 29, + 'ap': 39, + 'bf': 13 }, '15': { - '41': 35, - '53': 45, - '54': 29, - '57': 13 + 'bb': 40, + 'bc': 29, + 'ap': 39, + 'bf': 13 }, - '19': { - '41': 35, - '43': 36, - '44': 37, - '45': 38, - '46': 39, - '47': 22, - '48': 23, - '49': 24, - '50': 25, - '51': 26, - '52': 27, - '53': 28, - '54': 29, - '55': 40, - '56': 41, - '57': 13 + '16': { + 'bb': 41, + 'bc': 29, + 'ap': 39, + 'bf': 13 }, - '30': { - '35': 61, - '36': 6, - '37': 7, - '39': 8 + '31': { + 'aj': 57, + 'ak': 6, + 'al': 7, + 'an': 8 }, - '32': { - '38': 63 + '33': { + 'am': 59 + }, + '35': { + 'as': 61, + 'au': 62, + 'ar': 63, + 'av': 22, + 'aw': 23, + 'ax': 24, + 'ay': 25, + 'az': 26, + 'ba': 27, + 'bb': 28, + 'bc': 29, + 'at': 64, + 'bd': 65, + 'be': 66, + 'ap': 39, + 'bf': 13 }, '37': { - '41': 35, - '43': 36, - '45': 65, - '46': 66, - '47': 22, - '48': 23, - '49': 24, - '50': 25, - '51': 26, - '52': 27, - '53': 28, - '54': 29, - '55': 40, - '56': 41, - '57': 13 + 'ar': 69, + 'av': 22, + 'aw': 23, + 'ax': 24, + 'ay': 25, + 'az': 26, + 'ba': 27, + 'bb': 28, + 'bc': 29, + 'ap': 39, + 'bf': 13 }, - '40': { - '56': 68 + '44': { + 'aw': 71, + 'ax': 24, + 'ay': 25, + 'az': 26, + 'ba': 27, + 'bb': 28, + 'bc': 29, + 'ap': 39, + 'bf': 13 }, - '43': { - '41': 35, - '43': 71, - '47': 22, - '48': 23, - '49': 24, - '50': 25, - '51': 26, - '52': 27, - '53': 28, - '54': 29, - '57': 13 + '45': { + 'ax': 72, + 'ay': 25, + 'az': 26, + 'ba': 27, + 'bb': 28, + 'bc': 29, + 'ap': 39, + 'bf': 13 + }, + '46': { + 'ay': 73, + 'az': 26, + 'ba': 27, + 'bb': 28, + 'bc': 29, + 'ap': 39, + 'bf': 13 + }, + '47': { + 'ay': 74, + 'az': 26, + 'ba': 27, + 'bb': 28, + 'bc': 29, + 'ap': 39, + 'bf': 13 }, '48': { - '41': 35, - '48': 73, - '49': 24, - '50': 25, - '51': 26, - '52': 27, - '53': 28, - '54': 29, - '57': 13 + 'az': 75, + 'ba': 27, + 'bb': 28, + 'bc': 29, + 'ap': 39, + 'bf': 13 }, '49': { - '41': 35, - '49': 74, - '50': 25, - '51': 26, - '52': 27, - '53': 28, - '54': 29, - '57': 13 + 'az': 76, + 'ba': 27, + 'bb': 28, + 'bc': 29, + 'ap': 39, + 'bf': 13 }, '50': { - '41': 35, - '50': 75, - '51': 26, - '52': 27, - '53': 28, - '54': 29, - '57': 13 + 'az': 77, + 'ba': 27, + 'bb': 28, + 'bc': 29, + 'ap': 39, + 'bf': 13 }, '51': { - '41': 35, - '50': 76, - '51': 26, - '52': 27, - '53': 28, - '54': 29, - '57': 13 + 'az': 78, + 'ba': 27, + 'bb': 28, + 'bc': 29, + 'ap': 39, + 'bf': 13 }, '52': { - '41': 35, - '51': 77, - '52': 27, - '53': 28, - '54': 29, - '57': 13 + 'ba': 79, + 'bb': 28, + 'bc': 29, + 'ap': 39, + 'bf': 13 }, '53': { - '41': 35, - '51': 78, - '52': 27, - '53': 28, - '54': 29, - '57': 13 + 'ba': 80, + 'bb': 28, + 'bc': 29, + 'ap': 39, + 'bf': 13 }, '54': { - '41': 35, - '51': 79, - '52': 27, - '53': 28, - '54': 29, - '57': 13 + 'bb': 81, + 'bc': 29, + 'ap': 39, + 'bf': 13 }, '55': { - '41': 35, - '51': 80, - '52': 27, - '53': 28, - '54': 29, - '57': 13 + 'bb': 82, + 'bc': 29, + 'ap': 39, + 'bf': 13 }, '56': { - '41': 35, - '52': 81, - '53': 28, - '54': 29, - '57': 13 + 'bb': 83, + 'bc': 29, + 'ap': 39, + 'bf': 13 }, '57': { - '41': 35, - '52': 82, - '53': 28, - '54': 29, - '57': 13 + 'ak': 32, + 'al': 7, + 'an': 8 }, '58': { - '41': 35, - '53': 83, - '54': 29, - '57': 13 - }, - '59': { - '41': 35, - '53': 84, - '54': 29, - '57': 13 + 'ap': 84, + 'bf': 13 }, - '60': { - '41': 35, - '53': 85, - '54': 29, - '57': 13 - }, - '61': { - '36': 31, - '37': 7, - '39': 8 + '85': { + 'ar': 90, + 'av': 22, + 'aw': 23, + 'ax': 24, + 'ay': 25, + 'az': 26, + 'ba': 27, + 'bb': 28, + 'bc': 29, + 'ap': 39, + 'bf': 13 }, - '62': { - '41': 86, - '57': 13 + '86': { + 'au': 91, + 'ar': 63, + 'av': 22, + 'aw': 23, + 'ax': 24, + 'ay': 25, + 'az': 26, + 'ba': 27, + 'bb': 28, + 'bc': 29, + 'at': 92, + 'bd': 65, + 'be': 66, + 'ap': 39, + 'bf': 13 }, - '64': { - '41': 35, - '43': 87, - '47': 22, - '48': 23, - '49': 24, - '50': 25, - '51': 26, - '52': 27, - '53': 28, - '54': 29, - '57': 13 + '87': { + 'be': 94 } }, 'action': { '0': { - '2': [1, undefined, 1], - '3': [1, undefined, 2], - '6': [1, undefined, 3] + 'b': [1, undefined, 1], + 'c': [1, undefined, 2], + 'f': [1, undefined, 3] }, '1': { - '1': [2, 7], - '2': [2, 7], - '3': [2, 7], - '4': [2, 7], - '5': [2, 7], - '6': [2, 7] + 'a': [2, 7], + 'e': [2, 7], + 'c': [2, 7], + 'f': [2, 7], + 'b': [2, 7], + 'd': [2, 7] }, '2': { - '28': [1, undefined, 9] + 'ac': [1, undefined, 9] }, '3': { - '8': [1, undefined, 14], - '23': [1, undefined, 15], - '24': [1, undefined, 16], - '25': [1, undefined, 17], - '26': [1, undefined, 18], - '28': [1, undefined, 9] + 'i': [1, undefined, 14], + 't': [1, undefined, 15], + 'x': [1, undefined, 16], + 'y': [1, undefined, 17], + 'z': [1, undefined, 18], + 'aa': [1, undefined, 19], + 'ac': [1, undefined, 9] }, '4': { - '1': [0] + 'a': [0] }, '5': { - '1': [2, 2], - '2': [1, undefined, 1], - '3': [1, undefined, 2], - '4': [2, 2], - '5': [1, undefined, 30], - '6': [1, undefined, 3] + 'a': [2, 2], + 'd': [2, 2], + 'b': [1, undefined, 1], + 'c': [1, undefined, 2], + 'e': [1, undefined, 31], + 'f': [1, undefined, 3] }, '6': { - '1': [2, 3], - '2': [2, 3], - '3': [2, 3], - '4': [2, 3], - '5': [2, 3], - '6': [2, 3] + 'a': [2, 3], + 'e': [2, 3], + 'c': [2, 3], + 'f': [2, 3], + 'b': [2, 3], + 'd': [2, 3] }, '7': { - '2': [1, undefined, 1], - '3': [1, undefined, 2], - '6': [1, undefined, 3] + 'b': [1, undefined, 1], + 'c': [1, undefined, 2], + 'f': [1, undefined, 3] }, '8': { - '1': [2, 6], - '2': [2, 6], - '3': [2, 6], - '4': [2, 6], - '5': [2, 6], - '6': [2, 6] + 'a': [2, 6], + 'e': [2, 6], + 'c': [2, 6], + 'f': [2, 6], + 'b': [2, 6], + 'd': [2, 6] }, '9': { - '7': [2, 55], - '8': [2, 55], - '9': [2, 55], - '10': [2, 55], - '11': [2, 55], - '12': [2, 55], - '13': [2, 55], - '14': [2, 55], - '15': [2, 55], - '16': [2, 55], - '17': [2, 55], - '18': [2, 55], - '19': [2, 55], - '20': [2, 55], - '21': [2, 55], - '22': [2, 55], - '23': [2, 55], - '24': [2, 55], - '25': [2, 55], - '26': [2, 55], - '28': [2, 55], - '29': [2, 55], - '30': [2, 55], - '31': [2, 55] + 'h': [2, 56], + 'g': [2, 56], + 'ad': [2, 56], + 'ae': [2, 56], + 'k': [2, 56], + 'l': [2, 56], + 'm': [2, 56], + 'n': [2, 56], + 'o': [2, 56], + 'p': [2, 56], + 'q': [2, 56], + 'r': [2, 56], + 's': [2, 56], + 't': [2, 56], + 'u': [2, 56], + 'v': [2, 56], + 'w': [2, 56], + 'j': [2, 56], + 'af': [2, 56] }, '10': { - '7': [1, undefined, 33] + 'h': [1, undefined, 34] }, '11': { - '7': [2, 8], - '8': [1, undefined, 14], - '23': [1, undefined, 15], - '24': [1, undefined, 16], - '25': [1, undefined, 17], - '26': [1, undefined, 18], - '28': [1, undefined, 34] + 'h': [2, 9] }, '12': { - '7': [2, 9] + 'h': [2, 8], + 'g': [1, undefined, 35] }, '13': { - '7': [2, 51], - '8': [2, 51], - '9': [2, 51], - '10': [2, 51], - '11': [2, 51], - '12': [2, 51], - '13': [2, 51], - '14': [2, 51], - '15': [2, 51], - '16': [2, 51], - '17': [2, 51], - '18': [2, 51], - '19': [2, 51], - '20': [2, 51], - '21': [2, 51], - '22': [2, 51], - '23': [2, 51], - '24': [2, 51], - '25': [2, 51], - '26': [2, 51], - '28': [2, 51], - '29': [1, undefined, 42], - '30': [1, undefined, 43], - '31': [2, 51] + 'h': [2, 52], + 'g': [2, 52], + 'k': [2, 52], + 'l': [2, 52], + 'm': [2, 52], + 'n': [2, 52], + 'o': [2, 52], + 'p': [2, 52], + 'q': [2, 52], + 'r': [2, 52], + 's': [2, 52], + 't': [2, 52], + 'u': [2, 52], + 'v': [2, 52], + 'w': [2, 52], + 'j': [2, 52], + 'af': [2, 52], + 'ad': [1, undefined, 36], + 'ae': [1, undefined, 37] }, '14': { - '8': [1, undefined, 14], - '23': [1, undefined, 15], - '24': [1, undefined, 16], - '25': [1, undefined, 17], - '26': [1, undefined, 18], - '28': [1, undefined, 9] + 'i': [1, undefined, 14], + 't': [1, undefined, 15], + 'x': [1, undefined, 16], + 'y': [1, undefined, 17], + 'z': [1, undefined, 18], + 'aa': [1, undefined, 19], + 'ac': [1, undefined, 9] }, '15': { - '8': [1, undefined, 14], - '23': [1, undefined, 15], - '24': [1, undefined, 16], - '25': [1, undefined, 17], - '26': [1, undefined, 18], - '28': [1, undefined, 9] + 'i': [1, undefined, 14], + 't': [1, undefined, 15], + 'x': [1, undefined, 16], + 'y': [1, undefined, 17], + 'z': [1, undefined, 18], + 'aa': [1, undefined, 19], + 'ac': [1, undefined, 9] }, '16': { - '7': [2, 42], - '8': [2, 42], - '9': [2, 42], - '10': [2, 42], - '11': [2, 42], - '12': [2, 42], - '13': [2, 42], - '14': [2, 42], - '15': [2, 42], - '16': [2, 42], - '17': [2, 42], - '18': [2, 42], - '19': [2, 42], - '20': [2, 42], - '21': [2, 42], - '22': [2, 42], - '23': [2, 42], - '24': [2, 42], - '25': [2, 42], - '26': [2, 42], - '28': [2, 42], - '31': [2, 42] + 'i': [1, undefined, 14], + 't': [1, undefined, 15], + 'x': [1, undefined, 16], + 'y': [1, undefined, 17], + 'z': [1, undefined, 18], + 'aa': [1, undefined, 19], + 'ac': [1, undefined, 9] }, '17': { - '7': [2, 44], - '8': [2, 44], - '9': [2, 44], - '10': [2, 44], - '11': [2, 44], - '12': [2, 44], - '13': [2, 44], - '14': [2, 44], - '15': [2, 44], - '16': [2, 44], - '17': [2, 44], - '18': [2, 44], - '19': [2, 44], - '20': [2, 44], - '21': [2, 44], - '22': [2, 44], - '23': [2, 44], - '24': [2, 44], - '25': [2, 44], - '26': [2, 44], - '28': [2, 44], - '31': [2, 44] + 'h': [2, 43], + 'k': [2, 43], + 'l': [2, 43], + 'm': [2, 43], + 'n': [2, 43], + 'o': [2, 43], + 'p': [2, 43], + 'q': [2, 43], + 'r': [2, 43], + 's': [2, 43], + 't': [2, 43], + 'u': [2, 43], + 'v': [2, 43], + 'w': [2, 43], + 'j': [2, 43], + 'g': [2, 43], + 'af': [2, 43] }, '18': { - '7': [2, 43], - '8': [2, 43], - '9': [2, 43], - '10': [2, 43], - '11': [2, 43], - '12': [2, 43], - '13': [2, 43], - '14': [2, 43], - '15': [2, 43], - '16': [2, 43], - '17': [2, 43], - '18': [2, 43], - '19': [2, 43], - '20': [2, 43], - '21': [2, 43], - '22': [2, 43], - '23': [2, 43], - '24': [2, 43], - '25': [2, 43], - '26': [2, 43], - '28': [2, 43], - '31': [2, 43] + 'h': [2, 45], + 'k': [2, 45], + 'l': [2, 45], + 'm': [2, 45], + 'n': [2, 45], + 'o': [2, 45], + 'p': [2, 45], + 'q': [2, 45], + 'r': [2, 45], + 's': [2, 45], + 't': [2, 45], + 'u': [2, 45], + 'v': [2, 45], + 'w': [2, 45], + 'j': [2, 45], + 'g': [2, 45], + 'af': [2, 45] }, '19': { - '7': [2, 45], - '8': [1, undefined, 14], - '10': [2, 45], - '11': [2, 45], - '12': [2, 45], - '13': [2, 45], - '14': [2, 45], - '15': [2, 45], - '16': [2, 45], - '17': [2, 45], - '18': [2, 45], - '19': [2, 45], - '20': [2, 45], - '21': [2, 45], - '22': [2, 45], - '23': [1, undefined, 15], - '24': [1, undefined, 16], - '25': [1, undefined, 17], - '26': [1, undefined, 18], - '28': [1, undefined, 34] + 'h': [2, 44], + 'k': [2, 44], + 'l': [2, 44], + 'm': [2, 44], + 'n': [2, 44], + 'o': [2, 44], + 'p': [2, 44], + 'q': [2, 44], + 'r': [2, 44], + 's': [2, 44], + 't': [2, 44], + 'u': [2, 44], + 'v': [2, 44], + 'w': [2, 44], + 'j': [2, 44], + 'g': [2, 44], + 'af': [2, 44] }, '20': { - '7': [1, undefined, 46] + 'h': [1, undefined, 42] }, '21': { - '7': [1, undefined, 47] + 'h': [1, undefined, 43] }, '22': { - '7': [2, 20], - '8': [2, 20], - '9': [2, 20], - '10': [1, undefined, 48], - '23': [2, 20], - '24': [2, 20], - '25': [2, 20], - '26': [2, 20], - '28': [2, 20], - '31': [2, 20] + 'h': [2, 20], + 'j': [2, 20], + 'g': [2, 20], + 'af': [2, 20], + 'k': [1, undefined, 44] }, '23': { - '7': [2, 21], - '8': [2, 21], - '9': [2, 21], - '10': [2, 21], - '11': [1, undefined, 49], - '23': [2, 21], - '24': [2, 21], - '25': [2, 21], - '26': [2, 21], - '28': [2, 21], - '31': [2, 21] + 'h': [2, 21], + 'k': [2, 21], + 'j': [2, 21], + 'g': [2, 21], + 'af': [2, 21], + 'l': [1, undefined, 45] }, '24': { - '7': [2, 23], - '8': [2, 23], - '9': [2, 23], - '10': [2, 23], - '11': [2, 23], - '12': [1, undefined, 50], - '13': [1, undefined, 51], - '23': [2, 23], - '24': [2, 23], - '25': [2, 23], - '26': [2, 23], - '28': [2, 23], - '31': [2, 23] + 'h': [2, 23], + 'k': [2, 23], + 'l': [2, 23], + 'j': [2, 23], + 'g': [2, 23], + 'af': [2, 23], + 'm': [1, undefined, 46], + 'n': [1, undefined, 47] }, '25': { - '7': [2, 25], - '8': [2, 25], - '9': [2, 25], - '10': [2, 25], - '11': [2, 25], - '12': [2, 25], - '13': [2, 25], - '14': [1, undefined, 52], - '15': [1, undefined, 53], - '16': [1, undefined, 54], - '17': [1, undefined, 55], - '23': [2, 25], - '24': [2, 25], - '25': [2, 25], - '26': [2, 25], - '28': [2, 25], - '31': [2, 25] + 'h': [2, 25], + 'k': [2, 25], + 'l': [2, 25], + 'm': [2, 25], + 'n': [2, 25], + 'j': [2, 25], + 'g': [2, 25], + 'af': [2, 25], + 'o': [1, undefined, 48], + 'p': [1, undefined, 49], + 'q': [1, undefined, 50], + 'r': [1, undefined, 51] }, '26': { - '7': [2, 28], - '8': [2, 28], - '9': [2, 28], - '10': [2, 28], - '11': [2, 28], - '12': [2, 28], - '13': [2, 28], - '14': [2, 28], - '15': [2, 28], - '16': [2, 28], - '17': [2, 28], - '18': [1, undefined, 56], - '19': [1, undefined, 57], - '23': [2, 28], - '24': [2, 28], - '25': [2, 28], - '26': [2, 28], - '28': [2, 28], - '31': [2, 28] + 'h': [2, 28], + 'k': [2, 28], + 'l': [2, 28], + 'm': [2, 28], + 'n': [2, 28], + 'o': [2, 28], + 'p': [2, 28], + 'q': [2, 28], + 'r': [2, 28], + 'j': [2, 28], + 'g': [2, 28], + 'af': [2, 28], + 's': [1, undefined, 52], + 't': [1, undefined, 53] }, '27': { - '7': [2, 33], - '8': [2, 33], - '9': [2, 33], - '10': [2, 33], - '11': [2, 33], - '12': [2, 33], - '13': [2, 33], - '14': [2, 33], - '15': [2, 33], - '16': [2, 33], - '17': [2, 33], - '18': [2, 33], - '19': [2, 33], - '20': [1, undefined, 58], - '21': [1, undefined, 59], - '22': [1, undefined, 60], - '23': [2, 33], - '24': [2, 33], - '25': [2, 33], - '26': [2, 33], - '28': [2, 33], - '31': [2, 33] + 'h': [2, 33], + 'k': [2, 33], + 'l': [2, 33], + 'm': [2, 33], + 'n': [2, 33], + 'o': [2, 33], + 'p': [2, 33], + 'q': [2, 33], + 'r': [2, 33], + 's': [2, 33], + 't': [2, 33], + 'j': [2, 33], + 'g': [2, 33], + 'af': [2, 33], + 'u': [1, undefined, 54], + 'v': [1, undefined, 55], + 'w': [1, undefined, 56] }, '28': { - '7': [2, 36], - '8': [2, 36], - '9': [2, 36], - '10': [2, 36], - '11': [2, 36], - '12': [2, 36], - '13': [2, 36], - '14': [2, 36], - '15': [2, 36], - '16': [2, 36], - '17': [2, 36], - '18': [2, 36], - '19': [2, 36], - '20': [2, 36], - '21': [2, 36], - '22': [2, 36], - '23': [2, 36], - '24': [2, 36], - '25': [2, 36], - '26': [2, 36], - '28': [2, 36], - '31': [2, 36] + 'h': [2, 36], + 'k': [2, 36], + 'l': [2, 36], + 'm': [2, 36], + 'n': [2, 36], + 'o': [2, 36], + 'p': [2, 36], + 'q': [2, 36], + 'r': [2, 36], + 's': [2, 36], + 't': [2, 36], + 'u': [2, 36], + 'v': [2, 36], + 'w': [2, 36], + 'j': [2, 36], + 'g': [2, 36], + 'af': [2, 36] }, '29': { - '7': [2, 41], - '8': [2, 41], - '9': [2, 41], - '10': [2, 41], - '11': [2, 41], - '12': [2, 41], - '13': [2, 41], - '14': [2, 41], - '15': [2, 41], - '16': [2, 41], - '17': [2, 41], - '18': [2, 41], - '19': [2, 41], - '20': [2, 41], - '21': [2, 41], - '22': [2, 41], - '23': [2, 41], - '24': [2, 41], - '25': [2, 41], - '26': [2, 41], - '28': [2, 41], - '31': [2, 41] + 'h': [2, 42], + 'k': [2, 42], + 'l': [2, 42], + 'm': [2, 42], + 'n': [2, 42], + 'o': [2, 42], + 'p': [2, 42], + 'q': [2, 42], + 'r': [2, 42], + 's': [2, 42], + 't': [2, 42], + 'u': [2, 42], + 'v': [2, 42], + 'w': [2, 42], + 'j': [2, 42], + 'g': [2, 42], + 'af': [2, 42] }, '30': { - '2': [1, undefined, 1], - '3': [1, undefined, 2], - '6': [1, undefined, 3] + 'h': [2, 46], + 'k': [2, 46], + 'l': [2, 46], + 'm': [2, 46], + 'n': [2, 46], + 'o': [2, 46], + 'p': [2, 46], + 'q': [2, 46], + 'r': [2, 46], + 's': [2, 46], + 't': [2, 46], + 'u': [2, 46], + 'v': [2, 46], + 'w': [2, 46], + 'g': [1, undefined, 35] }, '31': { - '1': [2, 4], - '2': [2, 4], - '3': [2, 4], - '4': [2, 4], - '5': [2, 4], - '6': [2, 4] + 'b': [1, undefined, 1], + 'c': [1, undefined, 2], + 'f': [1, undefined, 3] }, '32': { - '4': [1, undefined, 62] + 'a': [2, 4], + 'e': [2, 4], + 'c': [2, 4], + 'f': [2, 4], + 'b': [2, 4], + 'd': [2, 4] }, '33': { - '2': [2, 10], - '3': [2, 10], - '6': [2, 10] + 'd': [1, undefined, 58] }, '34': { - '7': [2, 55], - '8': [2, 55], - '10': [2, 55], - '11': [2, 55], - '12': [2, 55], - '13': [2, 55], - '14': [2, 55], - '15': [2, 55], - '16': [2, 55], - '17': [2, 55], - '18': [2, 55], - '19': [2, 55], - '20': [2, 55], - '21': [2, 55], - '22': [2, 55], - '23': [2, 55], - '24': [2, 55], - '25': [2, 55], - '26': [2, 55], - '27': [1, undefined, 64], - '28': [2, 55], - '29': [2, 55], - '30': [2, 55] + 'c': [2, 10], + 'f': [2, 10], + 'b': [2, 10] }, '35': { - '7': [2, 45], - '8': [2, 45], - '9': [2, 45], - '10': [2, 45], - '11': [2, 45], - '12': [2, 45], - '13': [2, 45], - '14': [2, 45], - '15': [2, 45], - '16': [2, 45], - '17': [2, 45], - '18': [2, 45], - '19': [2, 45], - '20': [2, 45], - '21': [2, 45], - '22': [2, 45], - '23': [2, 45], - '24': [2, 45], - '25': [2, 45], - '26': [2, 45], - '28': [2, 45], - '31': [2, 45] + 'i': [1, undefined, 14], + 't': [1, undefined, 15], + 'x': [1, undefined, 16], + 'y': [1, undefined, 17], + 'z': [1, undefined, 18], + 'aa': [1, undefined, 19], + 'ac': [1, undefined, 60] }, '36': { - '7': [2, 19], - '8': [2, 19], - '23': [2, 19], - '24': [2, 19], - '25': [2, 19], - '26': [2, 19], - '28': [2, 19] + 'aa': [1, undefined, 67], + 'ac': [1, undefined, 68] }, '37': { - '7': [2, 15], - '8': [1, undefined, 14], - '23': [1, undefined, 15], - '24': [1, undefined, 16], - '25': [1, undefined, 17], - '26': [1, undefined, 18], - '28': [1, undefined, 34] + 'i': [1, undefined, 14], + 't': [1, undefined, 15], + 'x': [1, undefined, 16], + 'y': [1, undefined, 17], + 'z': [1, undefined, 18], + 'aa': [1, undefined, 19], + 'ac': [1, undefined, 9] }, '38': { - '7': [2, 16] + 'j': [1, undefined, 70] }, '39': { - '7': [2, 18], - '8': [2, 18], - '23': [2, 18], - '24': [2, 18], - '25': [2, 18], - '26': [2, 18], - '28': [2, 18] + 'j': [2, 46], + 'k': [2, 46], + 'l': [2, 46], + 'm': [2, 46], + 'n': [2, 46], + 'o': [2, 46], + 'p': [2, 46], + 'q': [2, 46], + 'r': [2, 46], + 's': [2, 46], + 't': [2, 46], + 'u': [2, 46], + 'v': [2, 46], + 'w': [2, 46], + 'h': [2, 46], + 'g': [2, 46], + 'af': [2, 46] }, '40': { - '7': [2, 47], - '28': [1, undefined, 67] + 'h': [2, 41], + 'k': [2, 41], + 'l': [2, 41], + 'm': [2, 41], + 'n': [2, 41], + 'o': [2, 41], + 'p': [2, 41], + 'q': [2, 41], + 'r': [2, 41], + 's': [2, 41], + 't': [2, 41], + 'u': [2, 41], + 'v': [2, 41], + 'w': [2, 41], + 'j': [2, 41], + 'g': [2, 41], + 'af': [2, 41] }, '41': { - '7': [2, 49], - '28': [2, 49] + 'h': [2, 40], + 'k': [2, 40], + 'l': [2, 40], + 'm': [2, 40], + 'n': [2, 40], + 'o': [2, 40], + 'p': [2, 40], + 'q': [2, 40], + 'r': [2, 40], + 's': [2, 40], + 't': [2, 40], + 'u': [2, 40], + 'v': [2, 40], + 'w': [2, 40], + 'j': [2, 40], + 'g': [2, 40], + 'af': [2, 40] }, '42': { - '26': [1, undefined, 69], - '28': [1, undefined, 70] + 'a': [2, 12], + 'e': [2, 12], + 'c': [2, 12], + 'f': [2, 12], + 'b': [2, 12], + 'd': [2, 12] }, '43': { - '8': [1, undefined, 14], - '23': [1, undefined, 15], - '24': [1, undefined, 16], - '25': [1, undefined, 17], - '26': [1, undefined, 18], - '28': [1, undefined, 9] + 'a': [2, 13], + 'e': [2, 13], + 'c': [2, 13], + 'f': [2, 13], + 'b': [2, 13], + 'd': [2, 13] }, '44': { - '9': [1, undefined, 72] + 'i': [1, undefined, 14], + 't': [1, undefined, 15], + 'x': [1, undefined, 16], + 'y': [1, undefined, 17], + 'z': [1, undefined, 18], + 'aa': [1, undefined, 19], + 'ac': [1, undefined, 9] }, '45': { - '7': [2, 40], - '8': [2, 40], - '9': [2, 40], - '10': [2, 40], - '11': [2, 40], - '12': [2, 40], - '13': [2, 40], - '14': [2, 40], - '15': [2, 40], - '16': [2, 40], - '17': [2, 40], - '18': [2, 40], - '19': [2, 40], - '20': [2, 40], - '21': [2, 40], - '22': [2, 40], - '23': [2, 40], - '24': [2, 40], - '25': [2, 40], - '26': [2, 40], - '28': [2, 40], - '31': [2, 40] + 'i': [1, undefined, 14], + 't': [1, undefined, 15], + 'x': [1, undefined, 16], + 'y': [1, undefined, 17], + 'z': [1, undefined, 18], + 'aa': [1, undefined, 19], + 'ac': [1, undefined, 9] }, '46': { - '1': [2, 12], - '2': [2, 12], - '3': [2, 12], - '4': [2, 12], - '5': [2, 12], - '6': [2, 12] + 'i': [1, undefined, 14], + 't': [1, undefined, 15], + 'x': [1, undefined, 16], + 'y': [1, undefined, 17], + 'z': [1, undefined, 18], + 'aa': [1, undefined, 19], + 'ac': [1, undefined, 9] }, '47': { - '1': [2, 13], - '2': [2, 13], - '3': [2, 13], - '4': [2, 13], - '5': [2, 13], - '6': [2, 13] + 'i': [1, undefined, 14], + 't': [1, undefined, 15], + 'x': [1, undefined, 16], + 'y': [1, undefined, 17], + 'z': [1, undefined, 18], + 'aa': [1, undefined, 19], + 'ac': [1, undefined, 9] }, '48': { - '8': [1, undefined, 14], - '23': [1, undefined, 15], - '24': [1, undefined, 16], - '25': [1, undefined, 17], - '26': [1, undefined, 18], - '28': [1, undefined, 9] + 'i': [1, undefined, 14], + 't': [1, undefined, 15], + 'x': [1, undefined, 16], + 'y': [1, undefined, 17], + 'z': [1, undefined, 18], + 'aa': [1, undefined, 19], + 'ac': [1, undefined, 9] }, '49': { - '8': [1, undefined, 14], - '23': [1, undefined, 15], - '24': [1, undefined, 16], - '25': [1, undefined, 17], - '26': [1, undefined, 18], - '28': [1, undefined, 9] + 'i': [1, undefined, 14], + 't': [1, undefined, 15], + 'x': [1, undefined, 16], + 'y': [1, undefined, 17], + 'z': [1, undefined, 18], + 'aa': [1, undefined, 19], + 'ac': [1, undefined, 9] }, '50': { - '8': [1, undefined, 14], - '23': [1, undefined, 15], - '24': [1, undefined, 16], - '25': [1, undefined, 17], - '26': [1, undefined, 18], - '28': [1, undefined, 9] + 'i': [1, undefined, 14], + 't': [1, undefined, 15], + 'x': [1, undefined, 16], + 'y': [1, undefined, 17], + 'z': [1, undefined, 18], + 'aa': [1, undefined, 19], + 'ac': [1, undefined, 9] }, '51': { - '8': [1, undefined, 14], - '23': [1, undefined, 15], - '24': [1, undefined, 16], - '25': [1, undefined, 17], - '26': [1, undefined, 18], - '28': [1, undefined, 9] + 'i': [1, undefined, 14], + 't': [1, undefined, 15], + 'x': [1, undefined, 16], + 'y': [1, undefined, 17], + 'z': [1, undefined, 18], + 'aa': [1, undefined, 19], + 'ac': [1, undefined, 9] }, '52': { - '8': [1, undefined, 14], - '23': [1, undefined, 15], - '24': [1, undefined, 16], - '25': [1, undefined, 17], - '26': [1, undefined, 18], - '28': [1, undefined, 9] + 'i': [1, undefined, 14], + 't': [1, undefined, 15], + 'x': [1, undefined, 16], + 'y': [1, undefined, 17], + 'z': [1, undefined, 18], + 'aa': [1, undefined, 19], + 'ac': [1, undefined, 9] }, '53': { - '8': [1, undefined, 14], - '23': [1, undefined, 15], - '24': [1, undefined, 16], - '25': [1, undefined, 17], - '26': [1, undefined, 18], - '28': [1, undefined, 9] + 'i': [1, undefined, 14], + 't': [1, undefined, 15], + 'x': [1, undefined, 16], + 'y': [1, undefined, 17], + 'z': [1, undefined, 18], + 'aa': [1, undefined, 19], + 'ac': [1, undefined, 9] }, '54': { - '8': [1, undefined, 14], - '23': [1, undefined, 15], - '24': [1, undefined, 16], - '25': [1, undefined, 17], - '26': [1, undefined, 18], - '28': [1, undefined, 9] + 'i': [1, undefined, 14], + 't': [1, undefined, 15], + 'x': [1, undefined, 16], + 'y': [1, undefined, 17], + 'z': [1, undefined, 18], + 'aa': [1, undefined, 19], + 'ac': [1, undefined, 9] }, '55': { - '8': [1, undefined, 14], - '23': [1, undefined, 15], - '24': [1, undefined, 16], - '25': [1, undefined, 17], - '26': [1, undefined, 18], - '28': [1, undefined, 9] + 'i': [1, undefined, 14], + 't': [1, undefined, 15], + 'x': [1, undefined, 16], + 'y': [1, undefined, 17], + 'z': [1, undefined, 18], + 'aa': [1, undefined, 19], + 'ac': [1, undefined, 9] }, '56': { - '8': [1, undefined, 14], - '23': [1, undefined, 15], - '24': [1, undefined, 16], - '25': [1, undefined, 17], - '26': [1, undefined, 18], - '28': [1, undefined, 9] + 'i': [1, undefined, 14], + 't': [1, undefined, 15], + 'x': [1, undefined, 16], + 'y': [1, undefined, 17], + 'z': [1, undefined, 18], + 'aa': [1, undefined, 19], + 'ac': [1, undefined, 9] }, '57': { - '8': [1, undefined, 14], - '23': [1, undefined, 15], - '24': [1, undefined, 16], - '25': [1, undefined, 17], - '26': [1, undefined, 18], - '28': [1, undefined, 9] + 'a': [2, 1], + 'd': [2, 1], + 'b': [1, undefined, 1], + 'c': [1, undefined, 2], + 'f': [1, undefined, 3] }, '58': { - '8': [1, undefined, 14], - '23': [1, undefined, 15], - '24': [1, undefined, 16], - '25': [1, undefined, 17], - '26': [1, undefined, 18], - '28': [1, undefined, 9] + 'ac': [1, undefined, 9] }, '59': { - '8': [1, undefined, 14], - '23': [1, undefined, 15], - '24': [1, undefined, 16], - '25': [1, undefined, 17], - '26': [1, undefined, 18], - '28': [1, undefined, 9] + 'a': [2, 5], + 'e': [2, 5], + 'c': [2, 5], + 'f': [2, 5], + 'b': [2, 5], + 'd': [2, 5] }, '60': { - '8': [1, undefined, 14], - '23': [1, undefined, 15], - '24': [1, undefined, 16], - '25': [1, undefined, 17], - '26': [1, undefined, 18], - '28': [1, undefined, 9] + 'h': [2, 56], + 'g': [2, 56], + 'k': [2, 56], + 'l': [2, 56], + 'm': [2, 56], + 'n': [2, 56], + 'o': [2, 56], + 'p': [2, 56], + 'q': [2, 56], + 'r': [2, 56], + 's': [2, 56], + 't': [2, 56], + 'u': [2, 56], + 'v': [2, 56], + 'w': [2, 56], + 'ad': [2, 56], + 'ae': [2, 56], + 'ab': [1, undefined, 85] }, '61': { - '1': [2, 1], - '2': [1, undefined, 1], - '3': [1, undefined, 2], - '4': [2, 1], - '6': [1, undefined, 3] + 'h': [2, 15], + 'g': [1, undefined, 86] }, '62': { - '28': [1, undefined, 9] + 'h': [2, 18], + 'g': [2, 18] }, '63': { - '1': [2, 5], - '2': [2, 5], - '3': [2, 5], - '4': [2, 5], - '5': [2, 5], - '6': [2, 5] + 'h': [2, 19], + 'g': [2, 19] }, '64': { - '8': [1, undefined, 14], - '23': [1, undefined, 15], - '24': [1, undefined, 16], - '25': [1, undefined, 17], - '26': [1, undefined, 18], - '28': [1, undefined, 9] + 'h': [2, 16] }, '65': { - '7': [2, 14] + 'h': [2, 48], + 'g': [1, undefined, 87] }, '66': { - '7': [2, 17], - '8': [2, 17], - '23': [2, 17], - '24': [2, 17], - '25': [2, 17], - '26': [2, 17], - '28': [2, 17] + 'h': [2, 50], + 'g': [2, 50] }, '67': { - '27': [1, undefined, 64] + 'h': [2, 55], + 'g': [2, 55], + 'ad': [2, 55], + 'ae': [2, 55], + 'k': [2, 55], + 'l': [2, 55], + 'm': [2, 55], + 'n': [2, 55], + 'o': [2, 55], + 'p': [2, 55], + 'q': [2, 55], + 'r': [2, 55], + 's': [2, 55], + 't': [2, 55], + 'u': [2, 55], + 'v': [2, 55], + 'w': [2, 55], + 'j': [2, 55], + 'af': [2, 55] }, '68': { - '7': [2, 48], - '28': [2, 48] + 'h': [2, 53], + 'g': [2, 53], + 'ad': [2, 53], + 'ae': [2, 53], + 'k': [2, 53], + 'l': [2, 53], + 'm': [2, 53], + 'n': [2, 53], + 'o': [2, 53], + 'p': [2, 53], + 'q': [2, 53], + 'r': [2, 53], + 's': [2, 53], + 't': [2, 53], + 'u': [2, 53], + 'v': [2, 53], + 'w': [2, 53], + 'j': [2, 53], + 'af': [2, 53] }, '69': { - '7': [2, 54], - '8': [2, 54], - '9': [2, 54], - '10': [2, 54], - '11': [2, 54], - '12': [2, 54], - '13': [2, 54], - '14': [2, 54], - '15': [2, 54], - '16': [2, 54], - '17': [2, 54], - '18': [2, 54], - '19': [2, 54], - '20': [2, 54], - '21': [2, 54], - '22': [2, 54], - '23': [2, 54], - '24': [2, 54], - '25': [2, 54], - '26': [2, 54], - '28': [2, 54], - '29': [2, 54], - '30': [2, 54], - '31': [2, 54] + 'af': [1, undefined, 88] }, '70': { - '7': [2, 52], - '8': [2, 52], - '9': [2, 52], - '10': [2, 52], - '11': [2, 52], - '12': [2, 52], - '13': [2, 52], - '14': [2, 52], - '15': [2, 52], - '16': [2, 52], - '17': [2, 52], - '18': [2, 52], - '19': [2, 52], - '20': [2, 52], - '21': [2, 52], - '22': [2, 52], - '23': [2, 52], - '24': [2, 52], - '25': [2, 52], - '26': [2, 52], - '28': [2, 52], - '29': [2, 52], - '30': [2, 52], - '31': [2, 52] + 'h': [2, 47], + 'k': [2, 47], + 'l': [2, 47], + 'm': [2, 47], + 'n': [2, 47], + 'o': [2, 47], + 'p': [2, 47], + 'q': [2, 47], + 'r': [2, 47], + 's': [2, 47], + 't': [2, 47], + 'u': [2, 47], + 'v': [2, 47], + 'w': [2, 47], + 'j': [2, 47], + 'g': [2, 47], + 'af': [2, 47] }, '71': { - '31': [1, undefined, 88] + 'h': [2, 22], + 'k': [2, 22], + 'j': [2, 22], + 'g': [2, 22], + 'af': [2, 22], + 'l': [1, undefined, 45] }, '72': { - '7': [2, 46], - '8': [2, 46], - '9': [2, 46], - '10': [2, 46], - '11': [2, 46], - '12': [2, 46], - '13': [2, 46], - '14': [2, 46], - '15': [2, 46], - '16': [2, 46], - '17': [2, 46], - '18': [2, 46], - '19': [2, 46], - '20': [2, 46], - '21': [2, 46], - '22': [2, 46], - '23': [2, 46], - '24': [2, 46], - '25': [2, 46], - '26': [2, 46], - '28': [2, 46], - '31': [2, 46] + 'h': [2, 24], + 'k': [2, 24], + 'l': [2, 24], + 'j': [2, 24], + 'g': [2, 24], + 'af': [2, 24], + 'm': [1, undefined, 46], + 'n': [1, undefined, 47] }, '73': { - '7': [2, 22], - '8': [2, 22], - '9': [2, 22], - '10': [2, 22], - '11': [1, undefined, 49], - '23': [2, 22], - '24': [2, 22], - '25': [2, 22], - '26': [2, 22], - '28': [2, 22], - '31': [2, 22] + 'h': [2, 26], + 'k': [2, 26], + 'l': [2, 26], + 'm': [2, 26], + 'n': [2, 26], + 'j': [2, 26], + 'g': [2, 26], + 'af': [2, 26], + 'o': [1, undefined, 48], + 'p': [1, undefined, 49], + 'q': [1, undefined, 50], + 'r': [1, undefined, 51] }, '74': { - '7': [2, 24], - '8': [2, 24], - '9': [2, 24], - '10': [2, 24], - '11': [2, 24], - '12': [1, undefined, 50], - '13': [1, undefined, 51], - '23': [2, 24], - '24': [2, 24], - '25': [2, 24], - '26': [2, 24], - '28': [2, 24], - '31': [2, 24] + 'h': [2, 27], + 'k': [2, 27], + 'l': [2, 27], + 'm': [2, 27], + 'n': [2, 27], + 'j': [2, 27], + 'g': [2, 27], + 'af': [2, 27], + 'o': [1, undefined, 48], + 'p': [1, undefined, 49], + 'q': [1, undefined, 50], + 'r': [1, undefined, 51] }, '75': { - '7': [2, 26], - '8': [2, 26], - '9': [2, 26], - '10': [2, 26], - '11': [2, 26], - '12': [2, 26], - '13': [2, 26], - '14': [1, undefined, 52], - '15': [1, undefined, 53], - '16': [1, undefined, 54], - '17': [1, undefined, 55], - '23': [2, 26], - '24': [2, 26], - '25': [2, 26], - '26': [2, 26], - '28': [2, 26], - '31': [2, 26] + 'h': [2, 32], + 'k': [2, 32], + 'l': [2, 32], + 'm': [2, 32], + 'n': [2, 32], + 'o': [2, 32], + 'p': [2, 32], + 'q': [2, 32], + 'r': [2, 32], + 'j': [2, 32], + 'g': [2, 32], + 'af': [2, 32], + 's': [1, undefined, 52], + 't': [1, undefined, 53] }, '76': { - '7': [2, 27], - '8': [2, 27], - '9': [2, 27], - '10': [2, 27], - '11': [2, 27], - '12': [2, 27], - '13': [2, 27], - '14': [1, undefined, 52], - '15': [1, undefined, 53], - '16': [1, undefined, 54], - '17': [1, undefined, 55], - '23': [2, 27], - '24': [2, 27], - '25': [2, 27], - '26': [2, 27], - '28': [2, 27], - '31': [2, 27] + 'h': [2, 31], + 'k': [2, 31], + 'l': [2, 31], + 'm': [2, 31], + 'n': [2, 31], + 'o': [2, 31], + 'p': [2, 31], + 'q': [2, 31], + 'r': [2, 31], + 'j': [2, 31], + 'g': [2, 31], + 'af': [2, 31], + 's': [1, undefined, 52], + 't': [1, undefined, 53] }, '77': { - '7': [2, 30], - '8': [2, 30], - '9': [2, 30], - '10': [2, 30], - '11': [2, 30], - '12': [2, 30], - '13': [2, 30], - '14': [2, 30], - '15': [2, 30], - '16': [2, 30], - '17': [2, 30], - '18': [1, undefined, 56], - '19': [1, undefined, 57], - '23': [2, 30], - '24': [2, 30], - '25': [2, 30], - '26': [2, 30], - '28': [2, 30], - '31': [2, 30] + 'h': [2, 30], + 'k': [2, 30], + 'l': [2, 30], + 'm': [2, 30], + 'n': [2, 30], + 'o': [2, 30], + 'p': [2, 30], + 'q': [2, 30], + 'r': [2, 30], + 'j': [2, 30], + 'g': [2, 30], + 'af': [2, 30], + 's': [1, undefined, 52], + 't': [1, undefined, 53] }, '78': { - '7': [2, 32], - '8': [2, 32], - '9': [2, 32], - '10': [2, 32], - '11': [2, 32], - '12': [2, 32], - '13': [2, 32], - '14': [2, 32], - '15': [2, 32], - '16': [2, 32], - '17': [2, 32], - '18': [1, undefined, 56], - '19': [1, undefined, 57], - '23': [2, 32], - '24': [2, 32], - '25': [2, 32], - '26': [2, 32], - '28': [2, 32], - '31': [2, 32] + 'h': [2, 29], + 'k': [2, 29], + 'l': [2, 29], + 'm': [2, 29], + 'n': [2, 29], + 'o': [2, 29], + 'p': [2, 29], + 'q': [2, 29], + 'r': [2, 29], + 'j': [2, 29], + 'g': [2, 29], + 'af': [2, 29], + 's': [1, undefined, 52], + 't': [1, undefined, 53] }, '79': { - '7': [2, 29], - '8': [2, 29], - '9': [2, 29], - '10': [2, 29], - '11': [2, 29], - '12': [2, 29], - '13': [2, 29], - '14': [2, 29], - '15': [2, 29], - '16': [2, 29], - '17': [2, 29], - '18': [1, undefined, 56], - '19': [1, undefined, 57], - '23': [2, 29], - '24': [2, 29], - '25': [2, 29], - '26': [2, 29], - '28': [2, 29], - '31': [2, 29] + 'h': [2, 34], + 'k': [2, 34], + 'l': [2, 34], + 'm': [2, 34], + 'n': [2, 34], + 'o': [2, 34], + 'p': [2, 34], + 'q': [2, 34], + 'r': [2, 34], + 's': [2, 34], + 't': [2, 34], + 'j': [2, 34], + 'g': [2, 34], + 'af': [2, 34], + 'u': [1, undefined, 54], + 'v': [1, undefined, 55], + 'w': [1, undefined, 56] }, '80': { - '7': [2, 31], - '8': [2, 31], - '9': [2, 31], - '10': [2, 31], - '11': [2, 31], - '12': [2, 31], - '13': [2, 31], - '14': [2, 31], - '15': [2, 31], - '16': [2, 31], - '17': [2, 31], - '18': [1, undefined, 56], - '19': [1, undefined, 57], - '23': [2, 31], - '24': [2, 31], - '25': [2, 31], - '26': [2, 31], - '28': [2, 31], - '31': [2, 31] + 'h': [2, 35], + 'k': [2, 35], + 'l': [2, 35], + 'm': [2, 35], + 'n': [2, 35], + 'o': [2, 35], + 'p': [2, 35], + 'q': [2, 35], + 'r': [2, 35], + 's': [2, 35], + 't': [2, 35], + 'j': [2, 35], + 'g': [2, 35], + 'af': [2, 35], + 'u': [1, undefined, 54], + 'v': [1, undefined, 55], + 'w': [1, undefined, 56] }, '81': { - '7': [2, 34], - '8': [2, 34], - '9': [2, 34], - '10': [2, 34], - '11': [2, 34], - '12': [2, 34], - '13': [2, 34], - '14': [2, 34], - '15': [2, 34], - '16': [2, 34], - '17': [2, 34], - '18': [2, 34], - '19': [2, 34], - '20': [1, undefined, 58], - '21': [1, undefined, 59], - '22': [1, undefined, 60], - '23': [2, 34], - '24': [2, 34], - '25': [2, 34], - '26': [2, 34], - '28': [2, 34], - '31': [2, 34] + 'h': [2, 37], + 'k': [2, 37], + 'l': [2, 37], + 'm': [2, 37], + 'n': [2, 37], + 'o': [2, 37], + 'p': [2, 37], + 'q': [2, 37], + 'r': [2, 37], + 's': [2, 37], + 't': [2, 37], + 'u': [2, 37], + 'v': [2, 37], + 'w': [2, 37], + 'j': [2, 37], + 'g': [2, 37], + 'af': [2, 37] }, '82': { - '7': [2, 35], - '8': [2, 35], - '9': [2, 35], - '10': [2, 35], - '11': [2, 35], - '12': [2, 35], - '13': [2, 35], - '14': [2, 35], - '15': [2, 35], - '16': [2, 35], - '17': [2, 35], - '18': [2, 35], - '19': [2, 35], - '20': [1, undefined, 58], - '21': [1, undefined, 59], - '22': [1, undefined, 60], - '23': [2, 35], - '24': [2, 35], - '25': [2, 35], - '26': [2, 35], - '28': [2, 35], - '31': [2, 35] + 'h': [2, 38], + 'k': [2, 38], + 'l': [2, 38], + 'm': [2, 38], + 'n': [2, 38], + 'o': [2, 38], + 'p': [2, 38], + 'q': [2, 38], + 'r': [2, 38], + 's': [2, 38], + 't': [2, 38], + 'u': [2, 38], + 'v': [2, 38], + 'w': [2, 38], + 'j': [2, 38], + 'g': [2, 38], + 'af': [2, 38] }, '83': { - '7': [2, 37], - '8': [2, 37], - '9': [2, 37], - '10': [2, 37], - '11': [2, 37], - '12': [2, 37], - '13': [2, 37], - '14': [2, 37], - '15': [2, 37], - '16': [2, 37], - '17': [2, 37], - '18': [2, 37], - '19': [2, 37], - '20': [2, 37], - '21': [2, 37], - '22': [2, 37], - '23': [2, 37], - '24': [2, 37], - '25': [2, 37], - '26': [2, 37], - '28': [2, 37], - '31': [2, 37] + 'h': [2, 39], + 'k': [2, 39], + 'l': [2, 39], + 'm': [2, 39], + 'n': [2, 39], + 'o': [2, 39], + 'p': [2, 39], + 'q': [2, 39], + 'r': [2, 39], + 's': [2, 39], + 't': [2, 39], + 'u': [2, 39], + 'v': [2, 39], + 'w': [2, 39], + 'j': [2, 39], + 'g': [2, 39], + 'af': [2, 39] }, '84': { - '7': [2, 38], - '8': [2, 38], - '9': [2, 38], - '10': [2, 38], - '11': [2, 38], - '12': [2, 38], - '13': [2, 38], - '14': [2, 38], - '15': [2, 38], - '16': [2, 38], - '17': [2, 38], - '18': [2, 38], - '19': [2, 38], - '20': [2, 38], - '21': [2, 38], - '22': [2, 38], - '23': [2, 38], - '24': [2, 38], - '25': [2, 38], - '26': [2, 38], - '28': [2, 38], - '31': [2, 38] + 'h': [1, undefined, 89] }, '85': { - '7': [2, 39], - '8': [2, 39], - '9': [2, 39], - '10': [2, 39], - '11': [2, 39], - '12': [2, 39], - '13': [2, 39], - '14': [2, 39], - '15': [2, 39], - '16': [2, 39], - '17': [2, 39], - '18': [2, 39], - '19': [2, 39], - '20': [2, 39], - '21': [2, 39], - '22': [2, 39], - '23': [2, 39], - '24': [2, 39], - '25': [2, 39], - '26': [2, 39], - '28': [2, 39], - '31': [2, 39] + 'i': [1, undefined, 14], + 't': [1, undefined, 15], + 'x': [1, undefined, 16], + 'y': [1, undefined, 17], + 'z': [1, undefined, 18], + 'aa': [1, undefined, 19], + 'ac': [1, undefined, 9] }, '86': { - '7': [1, undefined, 89] + 'i': [1, undefined, 14], + 't': [1, undefined, 15], + 'x': [1, undefined, 16], + 'y': [1, undefined, 17], + 'z': [1, undefined, 18], + 'aa': [1, undefined, 19], + 'ac': [1, undefined, 60] }, '87': { - '7': [2, 50], - '28': [2, 50] + 'ac': [1, undefined, 93] }, '88': { - '7': [2, 53], - '8': [2, 53], - '9': [2, 53], - '10': [2, 53], - '11': [2, 53], - '12': [2, 53], - '13': [2, 53], - '14': [2, 53], - '15': [2, 53], - '16': [2, 53], - '17': [2, 53], - '18': [2, 53], - '19': [2, 53], - '20': [2, 53], - '21': [2, 53], - '22': [2, 53], - '23': [2, 53], - '24': [2, 53], - '25': [2, 53], - '26': [2, 53], - '28': [2, 53], - '29': [2, 53], - '30': [2, 53], - '31': [2, 53] + 'h': [2, 54], + 'g': [2, 54], + 'ad': [2, 54], + 'ae': [2, 54], + 'k': [2, 54], + 'l': [2, 54], + 'm': [2, 54], + 'n': [2, 54], + 'o': [2, 54], + 'p': [2, 54], + 'q': [2, 54], + 'r': [2, 54], + 's': [2, 54], + 't': [2, 54], + 'u': [2, 54], + 'v': [2, 54], + 'w': [2, 54], + 'j': [2, 54], + 'af': [2, 54] }, '89': { - '1': [2, 11], - '2': [2, 11], - '3': [2, 11], - '4': [2, 11], - '5': [2, 11], - '6': [2, 11] + 'a': [2, 11], + 'e': [2, 11], + 'c': [2, 11], + 'f': [2, 11], + 'b': [2, 11], + 'd': [2, 11] + }, + '90': { + 'h': [2, 51], + 'g': [2, 51] + }, + '91': { + 'h': [2, 17], + 'g': [2, 17] + }, + '92': { + 'h': [2, 14] + }, + '93': { + 'ab': [1, undefined, 85] + }, + '94': { + 'h': [2, 49], + 'g': [2, 49] } } }; parser.parse = function parse(input) { - var self = this, lexer = self.lexer, - state, - symbol, - action, - table = self.table, + state, symbol, action, table = self.table, gotos = table.gotos, tableAction = table.action, productions = self.productions, valueStack = [null], stack = [0]; - lexer.resetInput(input); - while (1) { - // retrieve state number from top of stack state = stack[stack.length - 1]; - if (!symbol) { - symbol = lexer.lex(); + symbol = lexer.lex() } - if (!symbol) { S.log("it is not a valid input: " + input, "error"); - return false; + return false } - - // read action for current state and first input action = tableAction[state] && tableAction[state][symbol]; - if (!action) { var expected = [], error; if (tableAction[state]) { - S.each(tableAction[state], function (_, symbol) { - expected.push(self.lexer.mapReverseSymbol(symbol)); - }); + for (var symbolForState in tableAction[state]) { + expected.push(self.lexer.mapReverseSymbol(symbolForState)) + } } - error = "Syntax error at line " + lexer.lineNumber + ":\n" + lexer.showDebugInfo() + '\n' + "expect " + expected.join(", "); + error = "Syntax error at line " + lexer.lineNumber + ":\n" + lexer.showDebugInfo() + "\n" + "expect " + expected.join(", "); S.error(error); - return false; + return false } - switch (action[GrammarConst.TYPE_INDEX]) { - case GrammarConst.SHIFT_TYPE: - stack.push(symbol); - valueStack.push(lexer.text); - - // push state stack.push(action[GrammarConst.TO_INDEX]); - - // allow to read more symbol = null; - break; - case GrammarConst.REDUCE_TYPE: - var production = productions[action[GrammarConst.PRODUCTION_INDEX]], reducedSymbol = production.symbol || production[0], reducedAction = production.action || production[2], reducedRhs = production.rhs || production[1], len = reducedRhs.length, i = 0, - ret, - $$ = valueStack[valueStack.length - len]; // default to $$ = $1 - - self.$$ = $$; - + ret, $$ = valueStack[valueStack.length - len]; ret = undefined; - + self.$$ = $$; for (; i < len; i++) { - self["$" + (len - i)] = valueStack[valueStack.length - 1 - i]; + self["$" + (len - i)] = valueStack[valueStack.length - 1 - i] } - if (reducedAction) { - ret = reducedAction.call(self); + ret = reducedAction.call(self) } - if (ret !== undefined) { - $$ = ret; + $$ = ret } else { - $$ = self.$$; + $$ = self.$$ } - if (len) { stack = stack.slice(0, -1 * len * 2); - valueStack = valueStack.slice(0, -1 * len); + valueStack = valueStack.slice(0, -1 * len) } - stack.push(reducedSymbol); - valueStack.push($$); - var newState = gotos[stack[stack.length - 2]][stack[stack.length - 1]]; - stack.push(newState); - break; - case GrammarConst.ACCEPT_TYPE: - - return $$; + return $$ } - } - - return undefined; - + return undefined }; return parser; }); \ No newline at end of file diff --git a/src/xtemplate/sub-modules/nodejs/build.xml b/src/xtemplate/sub-modules/nodejs/build.xml index fcdbf1d3f1..b8a75c8ba1 100644 --- a/src/xtemplate/sub-modules/nodejs/build.xml +++ b/src/xtemplate/sub-modules/nodejs/build.xml @@ -6,4 +6,8 @@ + + + + diff --git a/src/xtemplate/sub-modules/nodejs/coverage/src/nodejs.js b/src/xtemplate/sub-modules/nodejs/coverage/src/nodejs.js index a6906a1077..d1ae6765ad 100644 --- a/src/xtemplate/sub-modules/nodejs/coverage/src/nodejs.js +++ b/src/xtemplate/sub-modules/nodejs/coverage/src/nodejs.js @@ -296,8 +296,8 @@ KISSY.add(function(S, require) { loadFromModuleName: function(moduleName, config) { _$jscoverage['/nodejs.js'].functionData[1]++; _$jscoverage['/nodejs.js'].lineData[25]++; - config = S.merge(config, { - cacheFile: 1}); + config = S.merge({ + cacheFile: 1}, config); _$jscoverage['/nodejs.js'].lineData[28]++; config.extname = visit1_28_1(config.extname || 'html'); _$jscoverage['/nodejs.js'].lineData[29]++; diff --git a/src/xtemplate/sub-modules/nodejs/src/nodejs.js b/src/xtemplate/sub-modules/nodejs/src/nodejs.js index 49e49ec3cf..345908ef3b 100644 --- a/src/xtemplate/sub-modules/nodejs/src/nodejs.js +++ b/src/xtemplate/sub-modules/nodejs/src/nodejs.js @@ -22,9 +22,9 @@ KISSY.add(function (S, require) { * @returns {KISSY.XTemplate} xtemplate instance */ loadFromModuleName: function (moduleName, config) { - config = S.merge(config, { + config = S.merge({ cacheFile: 1 - }); + }, config); config.extname = config.extname || 'html'; var loader = getLoader(config); config.name = moduleName; diff --git a/src/xtemplate/sub-modules/runtime/coverage/src/runtime.js b/src/xtemplate/sub-modules/runtime/coverage/src/runtime.js index 3a4111b493..088b714cdb 100644 --- a/src/xtemplate/sub-modules/runtime/coverage/src/runtime.js +++ b/src/xtemplate/sub-modules/runtime/coverage/src/runtime.js @@ -232,10 +232,11 @@ if (! _$jscoverage['/runtime.js']) { _$jscoverage['/runtime.js'].lineData[6] = 0; _$jscoverage['/runtime.js'].lineData[7] = 0; _$jscoverage['/runtime.js'].lineData[8] = 0; + _$jscoverage['/runtime.js'].lineData[9] = 0; _$jscoverage['/runtime.js'].lineData[10] = 0; - _$jscoverage['/runtime.js'].lineData[11] = 0; + _$jscoverage['/runtime.js'].lineData[12] = 0; _$jscoverage['/runtime.js'].lineData[13] = 0; - _$jscoverage['/runtime.js'].lineData[14] = 0; + _$jscoverage['/runtime.js'].lineData[16] = 0; _$jscoverage['/runtime.js'].lineData[17] = 0; _$jscoverage['/runtime.js'].lineData[18] = 0; _$jscoverage['/runtime.js'].lineData[19] = 0; @@ -243,83 +244,96 @@ if (! _$jscoverage['/runtime.js']) { _$jscoverage['/runtime.js'].lineData[21] = 0; _$jscoverage['/runtime.js'].lineData[22] = 0; _$jscoverage['/runtime.js'].lineData[23] = 0; - _$jscoverage['/runtime.js'].lineData[24] = 0; - _$jscoverage['/runtime.js'].lineData[27] = 0; + _$jscoverage['/runtime.js'].lineData[26] = 0; + _$jscoverage['/runtime.js'].lineData[29] = 0; _$jscoverage['/runtime.js'].lineData[30] = 0; _$jscoverage['/runtime.js'].lineData[31] = 0; + _$jscoverage['/runtime.js'].lineData[32] = 0; + _$jscoverage['/runtime.js'].lineData[33] = 0; _$jscoverage['/runtime.js'].lineData[34] = 0; + _$jscoverage['/runtime.js'].lineData[35] = 0; _$jscoverage['/runtime.js'].lineData[36] = 0; - _$jscoverage['/runtime.js'].lineData[37] = 0; _$jscoverage['/runtime.js'].lineData[38] = 0; - _$jscoverage['/runtime.js'].lineData[39] = 0; _$jscoverage['/runtime.js'].lineData[40] = 0; - _$jscoverage['/runtime.js'].lineData[41] = 0; - _$jscoverage['/runtime.js'].lineData[42] = 0; - _$jscoverage['/runtime.js'].lineData[43] = 0; _$jscoverage['/runtime.js'].lineData[44] = 0; _$jscoverage['/runtime.js'].lineData[45] = 0; _$jscoverage['/runtime.js'].lineData[47] = 0; - _$jscoverage['/runtime.js'].lineData[49] = 0; - _$jscoverage['/runtime.js'].lineData[50] = 0; - _$jscoverage['/runtime.js'].lineData[51] = 0; + _$jscoverage['/runtime.js'].lineData[52] = 0; _$jscoverage['/runtime.js'].lineData[53] = 0; _$jscoverage['/runtime.js'].lineData[54] = 0; + _$jscoverage['/runtime.js'].lineData[55] = 0; _$jscoverage['/runtime.js'].lineData[56] = 0; + _$jscoverage['/runtime.js'].lineData[57] = 0; _$jscoverage['/runtime.js'].lineData[58] = 0; - _$jscoverage['/runtime.js'].lineData[59] = 0; _$jscoverage['/runtime.js'].lineData[62] = 0; - _$jscoverage['/runtime.js'].lineData[63] = 0; _$jscoverage['/runtime.js'].lineData[64] = 0; - _$jscoverage['/runtime.js'].lineData[66] = 0; - _$jscoverage['/runtime.js'].lineData[68] = 0; + _$jscoverage['/runtime.js'].lineData[67] = 0; _$jscoverage['/runtime.js'].lineData[69] = 0; + _$jscoverage['/runtime.js'].lineData[70] = 0; _$jscoverage['/runtime.js'].lineData[71] = 0; + _$jscoverage['/runtime.js'].lineData[72] = 0; + _$jscoverage['/runtime.js'].lineData[73] = 0; + _$jscoverage['/runtime.js'].lineData[74] = 0; _$jscoverage['/runtime.js'].lineData[75] = 0; _$jscoverage['/runtime.js'].lineData[76] = 0; + _$jscoverage['/runtime.js'].lineData[77] = 0; _$jscoverage['/runtime.js'].lineData[78] = 0; + _$jscoverage['/runtime.js'].lineData[80] = 0; _$jscoverage['/runtime.js'].lineData[82] = 0; _$jscoverage['/runtime.js'].lineData[83] = 0; _$jscoverage['/runtime.js'].lineData[84] = 0; - _$jscoverage['/runtime.js'].lineData[85] = 0; _$jscoverage['/runtime.js'].lineData[86] = 0; _$jscoverage['/runtime.js'].lineData[87] = 0; - _$jscoverage['/runtime.js'].lineData[88] = 0; _$jscoverage['/runtime.js'].lineData[89] = 0; _$jscoverage['/runtime.js'].lineData[91] = 0; _$jscoverage['/runtime.js'].lineData[92] = 0; + _$jscoverage['/runtime.js'].lineData[95] = 0; _$jscoverage['/runtime.js'].lineData[96] = 0; _$jscoverage['/runtime.js'].lineData[97] = 0; - _$jscoverage['/runtime.js'].lineData[98] = 0; + _$jscoverage['/runtime.js'].lineData[99] = 0; _$jscoverage['/runtime.js'].lineData[101] = 0; - _$jscoverage['/runtime.js'].lineData[103] = 0; + _$jscoverage['/runtime.js'].lineData[105] = 0; _$jscoverage['/runtime.js'].lineData[106] = 0; - _$jscoverage['/runtime.js'].lineData[107] = 0; - _$jscoverage['/runtime.js'].lineData[109] = 0; - _$jscoverage['/runtime.js'].lineData[145] = 0; - _$jscoverage['/runtime.js'].lineData[146] = 0; - _$jscoverage['/runtime.js'].lineData[147] = 0; - _$jscoverage['/runtime.js'].lineData[149] = 0; - _$jscoverage['/runtime.js'].lineData[158] = 0; - _$jscoverage['/runtime.js'].lineData[159] = 0; - _$jscoverage['/runtime.js'].lineData[160] = 0; - _$jscoverage['/runtime.js'].lineData[161] = 0; - _$jscoverage['/runtime.js'].lineData[162] = 0; - _$jscoverage['/runtime.js'].lineData[163] = 0; - _$jscoverage['/runtime.js'].lineData[164] = 0; - _$jscoverage['/runtime.js'].lineData[165] = 0; - _$jscoverage['/runtime.js'].lineData[168] = 0; - _$jscoverage['/runtime.js'].lineData[182] = 0; + _$jscoverage['/runtime.js'].lineData[108] = 0; + _$jscoverage['/runtime.js'].lineData[112] = 0; + _$jscoverage['/runtime.js'].lineData[116] = 0; + _$jscoverage['/runtime.js'].lineData[119] = 0; + _$jscoverage['/runtime.js'].lineData[120] = 0; + _$jscoverage['/runtime.js'].lineData[121] = 0; + _$jscoverage['/runtime.js'].lineData[123] = 0; + _$jscoverage['/runtime.js'].lineData[127] = 0; + _$jscoverage['/runtime.js'].lineData[129] = 0; + _$jscoverage['/runtime.js'].lineData[133] = 0; + _$jscoverage['/runtime.js'].lineData[135] = 0; + _$jscoverage['/runtime.js'].lineData[136] = 0; + _$jscoverage['/runtime.js'].lineData[139] = 0; + _$jscoverage['/runtime.js'].lineData[140] = 0; + _$jscoverage['/runtime.js'].lineData[143] = 0; + _$jscoverage['/runtime.js'].lineData[179] = 0; + _$jscoverage['/runtime.js'].lineData[180] = 0; + _$jscoverage['/runtime.js'].lineData[181] = 0; + _$jscoverage['/runtime.js'].lineData[183] = 0; + _$jscoverage['/runtime.js'].lineData[192] = 0; _$jscoverage['/runtime.js'].lineData[193] = 0; + _$jscoverage['/runtime.js'].lineData[194] = 0; + _$jscoverage['/runtime.js'].lineData[195] = 0; + _$jscoverage['/runtime.js'].lineData[196] = 0; _$jscoverage['/runtime.js'].lineData[197] = 0; + _$jscoverage['/runtime.js'].lineData[198] = 0; + _$jscoverage['/runtime.js'].lineData[199] = 0; _$jscoverage['/runtime.js'].lineData[202] = 0; - _$jscoverage['/runtime.js'].lineData[210] = 0; - _$jscoverage['/runtime.js'].lineData[219] = 0; - _$jscoverage['/runtime.js'].lineData[228] = 0; - _$jscoverage['/runtime.js'].lineData[229] = 0; - _$jscoverage['/runtime.js'].lineData[230] = 0; - _$jscoverage['/runtime.js'].lineData[232] = 0; + _$jscoverage['/runtime.js'].lineData[216] = 0; + _$jscoverage['/runtime.js'].lineData[227] = 0; + _$jscoverage['/runtime.js'].lineData[231] = 0; _$jscoverage['/runtime.js'].lineData[236] = 0; - _$jscoverage['/runtime.js'].lineData[238] = 0; + _$jscoverage['/runtime.js'].lineData[244] = 0; + _$jscoverage['/runtime.js'].lineData[253] = 0; + _$jscoverage['/runtime.js'].lineData[262] = 0; + _$jscoverage['/runtime.js'].lineData[263] = 0; + _$jscoverage['/runtime.js'].lineData[264] = 0; + _$jscoverage['/runtime.js'].lineData[266] = 0; + _$jscoverage['/runtime.js'].lineData[270] = 0; + _$jscoverage['/runtime.js'].lineData[272] = 0; } if (! _$jscoverage['/runtime.js'].functionData) { _$jscoverage['/runtime.js'].functionData = []; @@ -338,121 +352,131 @@ if (! _$jscoverage['/runtime.js'].functionData) { _$jscoverage['/runtime.js'].functionData[12] = 0; _$jscoverage['/runtime.js'].functionData[13] = 0; _$jscoverage['/runtime.js'].functionData[14] = 0; + _$jscoverage['/runtime.js'].functionData[15] = 0; + _$jscoverage['/runtime.js'].functionData[16] = 0; + _$jscoverage['/runtime.js'].functionData[17] = 0; } if (! _$jscoverage['/runtime.js'].branchData) { _$jscoverage['/runtime.js'].branchData = {}; - _$jscoverage['/runtime.js'].branchData['21'] = []; - _$jscoverage['/runtime.js'].branchData['21'][1] = new BranchData(); - _$jscoverage['/runtime.js'].branchData['23'] = []; - _$jscoverage['/runtime.js'].branchData['23'][1] = new BranchData(); - _$jscoverage['/runtime.js'].branchData['40'] = []; - _$jscoverage['/runtime.js'].branchData['40'][1] = new BranchData(); - _$jscoverage['/runtime.js'].branchData['41'] = []; - _$jscoverage['/runtime.js'].branchData['41'][1] = new BranchData(); - _$jscoverage['/runtime.js'].branchData['43'] = []; - _$jscoverage['/runtime.js'].branchData['43'][1] = new BranchData(); - _$jscoverage['/runtime.js'].branchData['50'] = []; - _$jscoverage['/runtime.js'].branchData['50'][1] = new BranchData(); - _$jscoverage['/runtime.js'].branchData['53'] = []; - _$jscoverage['/runtime.js'].branchData['53'][1] = new BranchData(); - _$jscoverage['/runtime.js'].branchData['68'] = []; - _$jscoverage['/runtime.js'].branchData['68'][1] = new BranchData(); - _$jscoverage['/runtime.js'].branchData['75'] = []; - _$jscoverage['/runtime.js'].branchData['75'][1] = new BranchData(); - _$jscoverage['/runtime.js'].branchData['78'] = []; - _$jscoverage['/runtime.js'].branchData['78'][1] = new BranchData(); - _$jscoverage['/runtime.js'].branchData['87'] = []; - _$jscoverage['/runtime.js'].branchData['87'][1] = new BranchData(); - _$jscoverage['/runtime.js'].branchData['97'] = []; - _$jscoverage['/runtime.js'].branchData['97'][1] = new BranchData(); - _$jscoverage['/runtime.js'].branchData['106'] = []; - _$jscoverage['/runtime.js'].branchData['106'][1] = new BranchData(); - _$jscoverage['/runtime.js'].branchData['106'][2] = new BranchData(); - _$jscoverage['/runtime.js'].branchData['109'] = []; - _$jscoverage['/runtime.js'].branchData['109'][1] = new BranchData(); - _$jscoverage['/runtime.js'].branchData['146'] = []; - _$jscoverage['/runtime.js'].branchData['146'][1] = new BranchData(); - _$jscoverage['/runtime.js'].branchData['164'] = []; - _$jscoverage['/runtime.js'].branchData['164'][1] = new BranchData(); - _$jscoverage['/runtime.js'].branchData['229'] = []; - _$jscoverage['/runtime.js'].branchData['229'][1] = new BranchData(); - _$jscoverage['/runtime.js'].branchData['229'][2] = new BranchData(); + _$jscoverage['/runtime.js'].branchData['20'] = []; + _$jscoverage['/runtime.js'].branchData['20'][1] = new BranchData(); + _$jscoverage['/runtime.js'].branchData['22'] = []; + _$jscoverage['/runtime.js'].branchData['22'][1] = new BranchData(); + _$jscoverage['/runtime.js'].branchData['34'] = []; + _$jscoverage['/runtime.js'].branchData['34'][1] = new BranchData(); + _$jscoverage['/runtime.js'].branchData['44'] = []; + _$jscoverage['/runtime.js'].branchData['44'][1] = new BranchData(); + _$jscoverage['/runtime.js'].branchData['57'] = []; + _$jscoverage['/runtime.js'].branchData['57'][1] = new BranchData(); + _$jscoverage['/runtime.js'].branchData['73'] = []; + _$jscoverage['/runtime.js'].branchData['73'][1] = new BranchData(); + _$jscoverage['/runtime.js'].branchData['74'] = []; + _$jscoverage['/runtime.js'].branchData['74'][1] = new BranchData(); + _$jscoverage['/runtime.js'].branchData['76'] = []; + _$jscoverage['/runtime.js'].branchData['76'][1] = new BranchData(); + _$jscoverage['/runtime.js'].branchData['83'] = []; + _$jscoverage['/runtime.js'].branchData['83'][1] = new BranchData(); + _$jscoverage['/runtime.js'].branchData['86'] = []; + _$jscoverage['/runtime.js'].branchData['86'][1] = new BranchData(); + _$jscoverage['/runtime.js'].branchData['105'] = []; + _$jscoverage['/runtime.js'].branchData['105'][1] = new BranchData(); + _$jscoverage['/runtime.js'].branchData['108'] = []; + _$jscoverage['/runtime.js'].branchData['108'][1] = new BranchData(); + _$jscoverage['/runtime.js'].branchData['120'] = []; + _$jscoverage['/runtime.js'].branchData['120'][1] = new BranchData(); + _$jscoverage['/runtime.js'].branchData['129'] = []; + _$jscoverage['/runtime.js'].branchData['129'][1] = new BranchData(); + _$jscoverage['/runtime.js'].branchData['135'] = []; + _$jscoverage['/runtime.js'].branchData['135'][1] = new BranchData(); + _$jscoverage['/runtime.js'].branchData['139'] = []; + _$jscoverage['/runtime.js'].branchData['139'][1] = new BranchData(); + _$jscoverage['/runtime.js'].branchData['180'] = []; + _$jscoverage['/runtime.js'].branchData['180'][1] = new BranchData(); + _$jscoverage['/runtime.js'].branchData['198'] = []; + _$jscoverage['/runtime.js'].branchData['198'][1] = new BranchData(); + _$jscoverage['/runtime.js'].branchData['263'] = []; + _$jscoverage['/runtime.js'].branchData['263'][1] = new BranchData(); + _$jscoverage['/runtime.js'].branchData['263'][2] = new BranchData(); } -_$jscoverage['/runtime.js'].branchData['229'][2].init(48, 20, 'root && root.isScope'); -function visit62_229_2(result) { - _$jscoverage['/runtime.js'].branchData['229'][2].ranCondition(result); +_$jscoverage['/runtime.js'].branchData['263'][2].init(48, 20, 'root && root.isScope'); +function visit66_263_2(result) { + _$jscoverage['/runtime.js'].branchData['263'][2].ranCondition(result); return result; -}_$jscoverage['/runtime.js'].branchData['229'][1].init(46, 23, '!(root && root.isScope)'); -function visit61_229_1(result) { - _$jscoverage['/runtime.js'].branchData['229'][1].ranCondition(result); +}_$jscoverage['/runtime.js'].branchData['263'][1].init(46, 23, '!(root && root.isScope)'); +function visit65_263_1(result) { + _$jscoverage['/runtime.js'].branchData['263'][1].ranCondition(result); return result; -}_$jscoverage['/runtime.js'].branchData['164'][1].init(215, 19, 'config.macros || {}'); -function visit60_164_1(result) { - _$jscoverage['/runtime.js'].branchData['164'][1].ranCondition(result); +}_$jscoverage['/runtime.js'].branchData['198'][1].init(215, 19, 'config.macros || {}'); +function visit64_198_1(result) { + _$jscoverage['/runtime.js'].branchData['198'][1].ranCondition(result); return result; -}_$jscoverage['/runtime.js'].branchData['146'][1].init(70, 4, '!tpl'); -function visit59_146_1(result) { - _$jscoverage['/runtime.js'].branchData['146'][1].ranCondition(result); +}_$jscoverage['/runtime.js'].branchData['180'][1].init(70, 4, '!tpl'); +function visit63_180_1(result) { + _$jscoverage['/runtime.js'].branchData['180'][1].ranCondition(result); return result; -}_$jscoverage['/runtime.js'].branchData['109'][1].init(1176, 13, 'escape && id0'); -function visit58_109_1(result) { - _$jscoverage['/runtime.js'].branchData['109'][1].ranCondition(result); +}_$jscoverage['/runtime.js'].branchData['139'][1].init(434, 12, '!onlyCommand'); +function visit62_139_1(result) { + _$jscoverage['/runtime.js'].branchData['139'][1].ranCondition(result); return result; -}_$jscoverage['/runtime.js'].branchData['106'][2].init(1084, 17, 'id0 === undefined'); -function visit57_106_2(result) { - _$jscoverage['/runtime.js'].branchData['106'][2].ranCondition(result); +}_$jscoverage['/runtime.js'].branchData['135'][1].init(273, 8, 'ret.find'); +function visit61_135_1(result) { + _$jscoverage['/runtime.js'].branchData['135'][1].ranCondition(result); return result; -}_$jscoverage['/runtime.js'].branchData['106'][1].init(1062, 39, '!preserveUndefined && id0 === undefined'); -function visit56_106_1(result) { - _$jscoverage['/runtime.js'].branchData['106'][1].ranCondition(result); +}_$jscoverage['/runtime.js'].branchData['129'][1].init(66, 30, 'options.hash || options.params'); +function visit60_129_1(result) { + _$jscoverage['/runtime.js'].branchData['129'][1].ranCondition(result); return result; -}_$jscoverage['/runtime.js'].branchData['97'][1].init(89, 14, 'tmp2 === false'); -function visit55_97_1(result) { - _$jscoverage['/runtime.js'].branchData['97'][1].ranCondition(result); +}_$jscoverage['/runtime.js'].branchData['120'][1].init(185, 8, 'ret.find'); +function visit59_120_1(result) { + _$jscoverage['/runtime.js'].branchData['120'][1].ranCondition(result); return result; -}_$jscoverage['/runtime.js'].branchData['87'][1].init(258, 8, 'command1'); -function visit54_87_1(result) { - _$jscoverage['/runtime.js'].branchData['87'][1].ranCondition(result); +}_$jscoverage['/runtime.js'].branchData['108'][1].init(113, 14, 'escaped && exp'); +function visit58_108_1(result) { + _$jscoverage['/runtime.js'].branchData['108'][1].ranCondition(result); return result; -}_$jscoverage['/runtime.js'].branchData['78'][1].init(113, 14, 'escaped && exp'); -function visit53_78_1(result) { - _$jscoverage['/runtime.js'].branchData['78'][1].ranCondition(result); +}_$jscoverage['/runtime.js'].branchData['105'][1].init(21, 17, 'exp === undefined'); +function visit57_105_1(result) { + _$jscoverage['/runtime.js'].branchData['105'][1].ranCondition(result); return result; -}_$jscoverage['/runtime.js'].branchData['75'][1].init(21, 17, 'exp === undefined'); -function visit52_75_1(result) { - _$jscoverage['/runtime.js'].branchData['75'][1].ranCondition(result); +}_$jscoverage['/runtime.js'].branchData['86'][1].init(571, 28, 'typeof property === \'object\''); +function visit56_86_1(result) { + _$jscoverage['/runtime.js'].branchData['86'][1].ranCondition(result); return result; -}_$jscoverage['/runtime.js'].branchData['68'][1].init(1505, 17, 'ret === undefined'); -function visit51_68_1(result) { - _$jscoverage['/runtime.js'].branchData['68'][1].ranCondition(result); +}_$jscoverage['/runtime.js'].branchData['83'][1].init(435, 19, 'S.isArray(property)'); +function visit55_83_1(result) { + _$jscoverage['/runtime.js'].branchData['83'][1].ranCondition(result); return result; -}_$jscoverage['/runtime.js'].branchData['53'][1].init(576, 28, 'typeof property === \'object\''); -function visit50_53_1(result) { - _$jscoverage['/runtime.js'].branchData['53'][1].ranCondition(result); +}_$jscoverage['/runtime.js'].branchData['76'][1].init(89, 18, 'property === false'); +function visit54_76_1(result) { + _$jscoverage['/runtime.js'].branchData['76'][1].ranCondition(result); return result; -}_$jscoverage['/runtime.js'].branchData['50'][1].init(440, 19, 'S.isArray(property)'); -function visit49_50_1(result) { - _$jscoverage['/runtime.js'].branchData['50'][1].ranCondition(result); +}_$jscoverage['/runtime.js'].branchData['74'][1].init(25, 32, '!options.params && !options.hash'); +function visit53_74_1(result) { + _$jscoverage['/runtime.js'].branchData['74'][1].ranCondition(result); return result; -}_$jscoverage['/runtime.js'].branchData['43'][1].init(94, 18, 'property === false'); -function visit48_43_1(result) { - _$jscoverage['/runtime.js'].branchData['43'][1].ranCondition(result); +}_$jscoverage['/runtime.js'].branchData['73'][1].init(232, 8, '!command'); +function visit52_73_1(result) { + _$jscoverage['/runtime.js'].branchData['73'][1].ranCondition(result); return result; -}_$jscoverage['/runtime.js'].branchData['41'][1].init(25, 32, '!options.params && !options.hash'); -function visit47_41_1(result) { - _$jscoverage['/runtime.js'].branchData['41'][1].ranCondition(result); +}_$jscoverage['/runtime.js'].branchData['57'][1].init(165, 14, 'tmp2 === false'); +function visit51_57_1(result) { + _$jscoverage['/runtime.js'].branchData['57'][1].ranCondition(result); return result; -}_$jscoverage['/runtime.js'].branchData['40'][1].init(232, 8, '!command'); -function visit46_40_1(result) { - _$jscoverage['/runtime.js'].branchData['40'][1].ranCondition(result); +}_$jscoverage['/runtime.js'].branchData['44'][1].init(473, 11, 'onlyCommand'); +function visit50_44_1(result) { + _$jscoverage['/runtime.js'].branchData['44'][1].ranCondition(result); return result; -}_$jscoverage['/runtime.js'].branchData['23'][1].init(50, 4, '!cmd'); -function visit45_23_1(result) { - _$jscoverage['/runtime.js'].branchData['23'][1].ranCondition(result); +}_$jscoverage['/runtime.js'].branchData['34'][1].init(158, 8, 'command1'); +function visit49_34_1(result) { + _$jscoverage['/runtime.js'].branchData['34'][1].ranCondition(result); return result; -}_$jscoverage['/runtime.js'].branchData['21'][1].init(122, 7, 'i < len'); -function visit44_21_1(result) { - _$jscoverage['/runtime.js'].branchData['21'][1].ranCondition(result); +}_$jscoverage['/runtime.js'].branchData['22'][1].init(50, 4, '!cmd'); +function visit48_22_1(result) { + _$jscoverage['/runtime.js'].branchData['22'][1].ranCondition(result); + return result; +}_$jscoverage['/runtime.js'].branchData['20'][1].init(122, 7, 'i < len'); +function visit47_20_1(result) { + _$jscoverage['/runtime.js'].branchData['20'][1].ranCondition(result); return result; }_$jscoverage['/runtime.js'].lineData[6]++; KISSY.add(function(S, require) { @@ -461,246 +485,288 @@ KISSY.add(function(S, require) { var commands = require('./runtime/commands'); _$jscoverage['/runtime.js'].lineData[8]++; var Scope = require('./runtime/scope'); - _$jscoverage['/runtime.js'].lineData[10]++; + _$jscoverage['/runtime.js'].lineData[9]++; var escapeHtml = S.escapeHtml; - _$jscoverage['/runtime.js'].lineData[11]++; + _$jscoverage['/runtime.js'].lineData[10]++; var logger = S.getLogger('s/xtemplate'); - _$jscoverage['/runtime.js'].lineData[13]++; + _$jscoverage['/runtime.js'].lineData[12]++; function info(s) { _$jscoverage['/runtime.js'].functionData[1]++; - _$jscoverage['/runtime.js'].lineData[14]++; + _$jscoverage['/runtime.js'].lineData[13]++; logger.info(s); } - _$jscoverage['/runtime.js'].lineData[17]++; + _$jscoverage['/runtime.js'].lineData[16]++; function findCommand(commands, name) { _$jscoverage['/runtime.js'].functionData[2]++; - _$jscoverage['/runtime.js'].lineData[18]++; + _$jscoverage['/runtime.js'].lineData[17]++; var parts = name.split('.'); - _$jscoverage['/runtime.js'].lineData[19]++; + _$jscoverage['/runtime.js'].lineData[18]++; var cmd = commands; - _$jscoverage['/runtime.js'].lineData[20]++; + _$jscoverage['/runtime.js'].lineData[19]++; var len = parts.length; - _$jscoverage['/runtime.js'].lineData[21]++; - for (var i = 0; visit44_21_1(i < len); i++) { - _$jscoverage['/runtime.js'].lineData[22]++; + _$jscoverage['/runtime.js'].lineData[20]++; + for (var i = 0; visit47_20_1(i < len); i++) { + _$jscoverage['/runtime.js'].lineData[21]++; cmd = cmd[parts[i]]; - _$jscoverage['/runtime.js'].lineData[23]++; - if (visit45_23_1(!cmd)) { - _$jscoverage['/runtime.js'].lineData[24]++; + _$jscoverage['/runtime.js'].lineData[22]++; + if (visit48_22_1(!cmd)) { + _$jscoverage['/runtime.js'].lineData[23]++; break; } } - _$jscoverage['/runtime.js'].lineData[27]++; + _$jscoverage['/runtime.js'].lineData[26]++; return cmd; } - _$jscoverage['/runtime.js'].lineData[30]++; - function getProperty(name, scope, depth) { + _$jscoverage['/runtime.js'].lineData[29]++; + function runInlineCommand(engine, scope, options, name, line, onlyCommand) { _$jscoverage['/runtime.js'].functionData[3]++; + _$jscoverage['/runtime.js'].lineData[30]++; + var id0; _$jscoverage['/runtime.js'].lineData[31]++; - return scope.resolve(name, depth); + var config = engine.config; + _$jscoverage['/runtime.js'].lineData[32]++; + var commands = config.commands; + _$jscoverage['/runtime.js'].lineData[33]++; + var command1 = findCommand(commands, name); + _$jscoverage['/runtime.js'].lineData[34]++; + if (visit49_34_1(command1)) { + _$jscoverage['/runtime.js'].lineData[35]++; + try { + _$jscoverage['/runtime.js'].lineData[36]++; + id0 = command1.call(engine, scope, options); + } catch (e) { + _$jscoverage['/runtime.js'].lineData[38]++; + S.error(e.message + ': "' + name + '" at line ' + line); +} + _$jscoverage['/runtime.js'].lineData[40]++; + return { + find: true, + value: id0}; + } else { + _$jscoverage['/runtime.js'].lineData[44]++; + if (visit50_44_1(onlyCommand)) { + _$jscoverage['/runtime.js'].lineData[45]++; + S.error('can not find command: ' + name + '" at line ' + line); + } + } + _$jscoverage['/runtime.js'].lineData[47]++; + return { + find: false}; } - _$jscoverage['/runtime.js'].lineData[34]++; + _$jscoverage['/runtime.js'].lineData[52]++; + function getProperty(engine, scope, name, depth, line) { + _$jscoverage['/runtime.js'].functionData[4]++; + _$jscoverage['/runtime.js'].lineData[53]++; + var id0; + _$jscoverage['/runtime.js'].lineData[54]++; + var config = engine.config; + _$jscoverage['/runtime.js'].lineData[55]++; + var logFn = config.silent ? info : S.error; + _$jscoverage['/runtime.js'].lineData[56]++; + var tmp2 = scope.resolve(name, depth); + _$jscoverage['/runtime.js'].lineData[57]++; + if (visit51_57_1(tmp2 === false)) { + _$jscoverage['/runtime.js'].lineData[58]++; + logFn('can not find property: "' + name + '" at line ' + line, 'warn'); + } else { + _$jscoverage['/runtime.js'].lineData[62]++; + id0 = tmp2[0]; + } + _$jscoverage['/runtime.js'].lineData[64]++; + return id0; + } + _$jscoverage['/runtime.js'].lineData[67]++; var utils = { 'runBlockCommand': function(engine, scope, options, name, line) { - _$jscoverage['/runtime.js'].functionData[4]++; - _$jscoverage['/runtime.js'].lineData[36]++; + _$jscoverage['/runtime.js'].functionData[5]++; + _$jscoverage['/runtime.js'].lineData[69]++; var config = engine.config; - _$jscoverage['/runtime.js'].lineData[37]++; + _$jscoverage['/runtime.js'].lineData[70]++; var logFn = config.silent ? info : S.error; - _$jscoverage['/runtime.js'].lineData[38]++; + _$jscoverage['/runtime.js'].lineData[71]++; var commands = config.commands; - _$jscoverage['/runtime.js'].lineData[39]++; + _$jscoverage['/runtime.js'].lineData[72]++; var command = findCommand(commands, name); - _$jscoverage['/runtime.js'].lineData[40]++; - if (visit46_40_1(!command)) { - _$jscoverage['/runtime.js'].lineData[41]++; - if (visit47_41_1(!options.params && !options.hash)) { - _$jscoverage['/runtime.js'].lineData[42]++; - var property = getProperty(name, scope); - _$jscoverage['/runtime.js'].lineData[43]++; - if (visit48_43_1(property === false)) { - _$jscoverage['/runtime.js'].lineData[44]++; + _$jscoverage['/runtime.js'].lineData[73]++; + if (visit52_73_1(!command)) { + _$jscoverage['/runtime.js'].lineData[74]++; + if (visit53_74_1(!options.params && !options.hash)) { + _$jscoverage['/runtime.js'].lineData[75]++; + var property = scope.resolve(name); + _$jscoverage['/runtime.js'].lineData[76]++; + if (visit54_76_1(property === false)) { + _$jscoverage['/runtime.js'].lineData[77]++; logFn('can not find property: "' + name + '" at line ' + line); - _$jscoverage['/runtime.js'].lineData[45]++; + _$jscoverage['/runtime.js'].lineData[78]++; property = ''; } else { - _$jscoverage['/runtime.js'].lineData[47]++; + _$jscoverage['/runtime.js'].lineData[80]++; property = property[0]; } - _$jscoverage['/runtime.js'].lineData[49]++; + _$jscoverage['/runtime.js'].lineData[82]++; command = commands['if']; - _$jscoverage['/runtime.js'].lineData[50]++; - if (visit49_50_1(S.isArray(property))) { - _$jscoverage['/runtime.js'].lineData[51]++; + _$jscoverage['/runtime.js'].lineData[83]++; + if (visit55_83_1(S.isArray(property))) { + _$jscoverage['/runtime.js'].lineData[84]++; command = commands.each; } else { - _$jscoverage['/runtime.js'].lineData[53]++; - if (visit50_53_1(typeof property === 'object')) { - _$jscoverage['/runtime.js'].lineData[54]++; + _$jscoverage['/runtime.js'].lineData[86]++; + if (visit56_86_1(typeof property === 'object')) { + _$jscoverage['/runtime.js'].lineData[87]++; command = commands['with']; } } - _$jscoverage['/runtime.js'].lineData[56]++; + _$jscoverage['/runtime.js'].lineData[89]++; options.params = [property]; } else { - _$jscoverage['/runtime.js'].lineData[58]++; - S.error('can not find command module: ' + name + '" at line ' + line); - _$jscoverage['/runtime.js'].lineData[59]++; + _$jscoverage['/runtime.js'].lineData[91]++; + S.error('can not find command: ' + name + '" at line ' + line); + _$jscoverage['/runtime.js'].lineData[92]++; return ''; } } - _$jscoverage['/runtime.js'].lineData[62]++; - var ret = ''; - _$jscoverage['/runtime.js'].lineData[63]++; + _$jscoverage['/runtime.js'].lineData[95]++; + var ret; + _$jscoverage['/runtime.js'].lineData[96]++; try { - _$jscoverage['/runtime.js'].lineData[64]++; + _$jscoverage['/runtime.js'].lineData[97]++; ret = command.call(engine, scope, options); } catch (e) { - _$jscoverage['/runtime.js'].lineData[66]++; + _$jscoverage['/runtime.js'].lineData[99]++; S.error(e.message + ': "' + name + '" at line ' + line); } - _$jscoverage['/runtime.js'].lineData[68]++; - if (visit51_68_1(ret === undefined)) { - _$jscoverage['/runtime.js'].lineData[69]++; - ret = ''; - } - _$jscoverage['/runtime.js'].lineData[71]++; + _$jscoverage['/runtime.js'].lineData[101]++; return ret; }, - 'getExpression': function(exp, escaped) { - _$jscoverage['/runtime.js'].functionData[5]++; - _$jscoverage['/runtime.js'].lineData[75]++; - if (visit52_75_1(exp === undefined)) { - _$jscoverage['/runtime.js'].lineData[76]++; + 'renderOutput': function(exp, escaped) { + _$jscoverage['/runtime.js'].functionData[6]++; + _$jscoverage['/runtime.js'].lineData[105]++; + if (visit57_105_1(exp === undefined)) { + _$jscoverage['/runtime.js'].lineData[106]++; exp = ''; } - _$jscoverage['/runtime.js'].lineData[78]++; - return visit53_78_1(escaped && exp) ? escapeHtml(exp) : exp; + _$jscoverage['/runtime.js'].lineData[108]++; + return visit58_108_1(escaped && exp) ? escapeHtml(exp) : exp; }, - 'getPropertyOrRunCommand': function(engine, scope, options, name, depth, line, escape, preserveUndefined) { - _$jscoverage['/runtime.js'].functionData[6]++; - _$jscoverage['/runtime.js'].lineData[82]++; - var id0; - _$jscoverage['/runtime.js'].lineData[83]++; - var config = engine.config; - _$jscoverage['/runtime.js'].lineData[84]++; - var commands = config.commands; - _$jscoverage['/runtime.js'].lineData[85]++; - var command1 = findCommand(commands, name); - _$jscoverage['/runtime.js'].lineData[86]++; - var logFn = config.silent ? info : S.error; - _$jscoverage['/runtime.js'].lineData[87]++; - if (visit54_87_1(command1)) { - _$jscoverage['/runtime.js'].lineData[88]++; - try { - _$jscoverage['/runtime.js'].lineData[89]++; - id0 = command1.call(engine, scope, options); - } catch (e) { - _$jscoverage['/runtime.js'].lineData[91]++; - S.error(e.message + ': "' + name + '" at line ' + line); - _$jscoverage['/runtime.js'].lineData[92]++; - return ''; -} + 'getProperty': function(engine, scope, name, depth, line) { + _$jscoverage['/runtime.js'].functionData[7]++; + _$jscoverage['/runtime.js'].lineData[112]++; + return getProperty(engine, scope, name, depth, line); +}, + 'runInlineCommand': function(engine, scope, options, name, line) { + _$jscoverage['/runtime.js'].functionData[8]++; + _$jscoverage['/runtime.js'].lineData[116]++; + var id0 = '', ret; + _$jscoverage['/runtime.js'].lineData[119]++; + ret = runInlineCommand(engine, scope, options, name, line); + _$jscoverage['/runtime.js'].lineData[120]++; + if (visit59_120_1(ret.find)) { + _$jscoverage['/runtime.js'].lineData[121]++; + id0 = ret.value; + } + _$jscoverage['/runtime.js'].lineData[123]++; + return id0; +}, + 'getPropertyOrRunCommand': function(engine, scope, options, name, depth, line) { + _$jscoverage['/runtime.js'].functionData[9]++; + _$jscoverage['/runtime.js'].lineData[127]++; + var id0, ret; + _$jscoverage['/runtime.js'].lineData[129]++; + var onlyCommand = visit60_129_1(options.hash || options.params); + _$jscoverage['/runtime.js'].lineData[133]++; + ret = runInlineCommand(engine, scope, options, name, line, onlyCommand); + _$jscoverage['/runtime.js'].lineData[135]++; + if (visit61_135_1(ret.find)) { + _$jscoverage['/runtime.js'].lineData[136]++; + id0 = ret.value; } else { - _$jscoverage['/runtime.js'].lineData[96]++; - var tmp2 = getProperty(name, scope, depth); - _$jscoverage['/runtime.js'].lineData[97]++; - if (visit55_97_1(tmp2 === false)) { - _$jscoverage['/runtime.js'].lineData[98]++; - logFn('can not find property: "' + name + '" at line ' + line, 'warn'); - _$jscoverage['/runtime.js'].lineData[101]++; - return preserveUndefined ? undefined : ''; - } else { - _$jscoverage['/runtime.js'].lineData[103]++; - id0 = tmp2[0]; + _$jscoverage['/runtime.js'].lineData[139]++; + if (visit62_139_1(!onlyCommand)) { + _$jscoverage['/runtime.js'].lineData[140]++; + id0 = getProperty(engine, scope, name, depth, line); } } - _$jscoverage['/runtime.js'].lineData[106]++; - if (visit56_106_1(!preserveUndefined && visit57_106_2(id0 === undefined))) { - _$jscoverage['/runtime.js'].lineData[107]++; - id0 = ''; - } - _$jscoverage['/runtime.js'].lineData[109]++; - return visit58_109_1(escape && id0) ? escapeHtml(id0) : id0; + _$jscoverage['/runtime.js'].lineData[143]++; + return id0; }}, defaultConfig = { silent: true, name: 'unspecified', loader: function(subTplName) { - _$jscoverage['/runtime.js'].functionData[7]++; - _$jscoverage['/runtime.js'].lineData[145]++; + _$jscoverage['/runtime.js'].functionData[10]++; + _$jscoverage['/runtime.js'].lineData[179]++; var tpl = S.require(subTplName); - _$jscoverage['/runtime.js'].lineData[146]++; - if (visit59_146_1(!tpl)) { - _$jscoverage['/runtime.js'].lineData[147]++; + _$jscoverage['/runtime.js'].lineData[180]++; + if (visit63_180_1(!tpl)) { + _$jscoverage['/runtime.js'].lineData[181]++; S.error('template "' + subTplName + '" does not exist, ' + 'need to be required or used first!'); } - _$jscoverage['/runtime.js'].lineData[149]++; + _$jscoverage['/runtime.js'].lineData[183]++; return tpl; }}; - _$jscoverage['/runtime.js'].lineData[158]++; + _$jscoverage['/runtime.js'].lineData[192]++; function XTemplateRuntime(tpl, config) { - _$jscoverage['/runtime.js'].functionData[8]++; - _$jscoverage['/runtime.js'].lineData[159]++; + _$jscoverage['/runtime.js'].functionData[11]++; + _$jscoverage['/runtime.js'].lineData[193]++; var self = this; - _$jscoverage['/runtime.js'].lineData[160]++; + _$jscoverage['/runtime.js'].lineData[194]++; self.tpl = tpl; - _$jscoverage['/runtime.js'].lineData[161]++; + _$jscoverage['/runtime.js'].lineData[195]++; config = S.merge(defaultConfig, config); - _$jscoverage['/runtime.js'].lineData[162]++; + _$jscoverage['/runtime.js'].lineData[196]++; config.commands = S.merge(config.commands, commands); - _$jscoverage['/runtime.js'].lineData[163]++; + _$jscoverage['/runtime.js'].lineData[197]++; config.utils = utils; - _$jscoverage['/runtime.js'].lineData[164]++; - config.macros = visit60_164_1(config.macros || {}); - _$jscoverage['/runtime.js'].lineData[165]++; + _$jscoverage['/runtime.js'].lineData[198]++; + config.macros = visit64_198_1(config.macros || {}); + _$jscoverage['/runtime.js'].lineData[199]++; this.config = config; } - _$jscoverage['/runtime.js'].lineData[168]++; + _$jscoverage['/runtime.js'].lineData[202]++; S.mix(XTemplateRuntime, { commands: commands, utils: utils, addCommand: function(commandName, fn) { - _$jscoverage['/runtime.js'].functionData[9]++; - _$jscoverage['/runtime.js'].lineData[182]++; + _$jscoverage['/runtime.js'].functionData[12]++; + _$jscoverage['/runtime.js'].lineData[216]++; commands[commandName] = fn; }, removeCommand: function(commandName) { - _$jscoverage['/runtime.js'].functionData[10]++; - _$jscoverage['/runtime.js'].lineData[193]++; + _$jscoverage['/runtime.js'].functionData[13]++; + _$jscoverage['/runtime.js'].lineData[227]++; delete commands[commandName]; }}); - _$jscoverage['/runtime.js'].lineData[197]++; + _$jscoverage['/runtime.js'].lineData[231]++; XTemplateRuntime.prototype = { constructor: XTemplateRuntime, invokeEngine: function(tpl, scope, config) { - _$jscoverage['/runtime.js'].functionData[11]++; - _$jscoverage['/runtime.js'].lineData[202]++; + _$jscoverage['/runtime.js'].functionData[14]++; + _$jscoverage['/runtime.js'].lineData[236]++; return new this.constructor(tpl, config).render(scope, true); }, 'removeCommand': function(commandName) { - _$jscoverage['/runtime.js'].functionData[12]++; - _$jscoverage['/runtime.js'].lineData[210]++; + _$jscoverage['/runtime.js'].functionData[15]++; + _$jscoverage['/runtime.js'].lineData[244]++; delete this.config.commands[commandName]; }, addCommand: function(commandName, fn) { - _$jscoverage['/runtime.js'].functionData[13]++; - _$jscoverage['/runtime.js'].lineData[219]++; + _$jscoverage['/runtime.js'].functionData[16]++; + _$jscoverage['/runtime.js'].lineData[253]++; this.config.commands[commandName] = fn; }, render: function(data) { - _$jscoverage['/runtime.js'].functionData[14]++; - _$jscoverage['/runtime.js'].lineData[228]++; + _$jscoverage['/runtime.js'].functionData[17]++; + _$jscoverage['/runtime.js'].lineData[262]++; var root = data; - _$jscoverage['/runtime.js'].lineData[229]++; - if (visit61_229_1(!(visit62_229_2(root && root.isScope)))) { - _$jscoverage['/runtime.js'].lineData[230]++; + _$jscoverage['/runtime.js'].lineData[263]++; + if (visit65_263_1(!(visit66_263_2(root && root.isScope)))) { + _$jscoverage['/runtime.js'].lineData[264]++; root = new Scope(data); } - _$jscoverage['/runtime.js'].lineData[232]++; + _$jscoverage['/runtime.js'].lineData[266]++; return this.tpl(root, S); }}; - _$jscoverage['/runtime.js'].lineData[236]++; + _$jscoverage['/runtime.js'].lineData[270]++; XTemplateRuntime.Scope = Scope; - _$jscoverage['/runtime.js'].lineData[238]++; + _$jscoverage['/runtime.js'].lineData[272]++; return XTemplateRuntime; }); diff --git a/src/xtemplate/sub-modules/runtime/coverage/src/runtime/commands.js b/src/xtemplate/sub-modules/runtime/coverage/src/runtime/commands.js index 240ce99b45..7c2b7eaebc 100644 --- a/src/xtemplate/sub-modules/runtime/coverage/src/runtime/commands.js +++ b/src/xtemplate/sub-modules/runtime/coverage/src/runtime/commands.js @@ -234,97 +234,100 @@ if (! _$jscoverage['/runtime/commands.js']) { _$jscoverage['/runtime/commands.js'].lineData[8] = 0; _$jscoverage['/runtime/commands.js'].lineData[9] = 0; _$jscoverage['/runtime/commands.js'].lineData[11] = 0; - _$jscoverage['/runtime/commands.js'].lineData[13] = 0; - _$jscoverage['/runtime/commands.js'].lineData[14] = 0; _$jscoverage['/runtime/commands.js'].lineData[15] = 0; _$jscoverage['/runtime/commands.js'].lineData[16] = 0; _$jscoverage['/runtime/commands.js'].lineData[17] = 0; _$jscoverage['/runtime/commands.js'].lineData[18] = 0; _$jscoverage['/runtime/commands.js'].lineData[19] = 0; _$jscoverage['/runtime/commands.js'].lineData[20] = 0; + _$jscoverage['/runtime/commands.js'].lineData[21] = 0; _$jscoverage['/runtime/commands.js'].lineData[22] = 0; - _$jscoverage['/runtime/commands.js'].lineData[23] = 0; _$jscoverage['/runtime/commands.js'].lineData[24] = 0; _$jscoverage['/runtime/commands.js'].lineData[25] = 0; _$jscoverage['/runtime/commands.js'].lineData[26] = 0; + _$jscoverage['/runtime/commands.js'].lineData[27] = 0; _$jscoverage['/runtime/commands.js'].lineData[28] = 0; - _$jscoverage['/runtime/commands.js'].lineData[29] = 0; - _$jscoverage['/runtime/commands.js'].lineData[32] = 0; - _$jscoverage['/runtime/commands.js'].lineData[33] = 0; + _$jscoverage['/runtime/commands.js'].lineData[30] = 0; + _$jscoverage['/runtime/commands.js'].lineData[31] = 0; _$jscoverage['/runtime/commands.js'].lineData[34] = 0; + _$jscoverage['/runtime/commands.js'].lineData[35] = 0; _$jscoverage['/runtime/commands.js'].lineData[36] = 0; - _$jscoverage['/runtime/commands.js'].lineData[37] = 0; - _$jscoverage['/runtime/commands.js'].lineData[40] = 0; - _$jscoverage['/runtime/commands.js'].lineData[41] = 0; + _$jscoverage['/runtime/commands.js'].lineData[38] = 0; + _$jscoverage['/runtime/commands.js'].lineData[39] = 0; _$jscoverage['/runtime/commands.js'].lineData[42] = 0; _$jscoverage['/runtime/commands.js'].lineData[43] = 0; _$jscoverage['/runtime/commands.js'].lineData[44] = 0; _$jscoverage['/runtime/commands.js'].lineData[45] = 0; + _$jscoverage['/runtime/commands.js'].lineData[46] = 0; _$jscoverage['/runtime/commands.js'].lineData[47] = 0; - _$jscoverage['/runtime/commands.js'].lineData[48] = 0; - _$jscoverage['/runtime/commands.js'].lineData[52] = 0; - _$jscoverage['/runtime/commands.js'].lineData[53] = 0; + _$jscoverage['/runtime/commands.js'].lineData[49] = 0; + _$jscoverage['/runtime/commands.js'].lineData[50] = 0; + _$jscoverage['/runtime/commands.js'].lineData[54] = 0; _$jscoverage['/runtime/commands.js'].lineData[55] = 0; - _$jscoverage['/runtime/commands.js'].lineData[59] = 0; - _$jscoverage['/runtime/commands.js'].lineData[60] = 0; + _$jscoverage['/runtime/commands.js'].lineData[57] = 0; _$jscoverage['/runtime/commands.js'].lineData[61] = 0; _$jscoverage['/runtime/commands.js'].lineData[62] = 0; + _$jscoverage['/runtime/commands.js'].lineData[63] = 0; _$jscoverage['/runtime/commands.js'].lineData[64] = 0; - _$jscoverage['/runtime/commands.js'].lineData[65] = 0; _$jscoverage['/runtime/commands.js'].lineData[66] = 0; _$jscoverage['/runtime/commands.js'].lineData[67] = 0; _$jscoverage['/runtime/commands.js'].lineData[68] = 0; + _$jscoverage['/runtime/commands.js'].lineData[69] = 0; _$jscoverage['/runtime/commands.js'].lineData[70] = 0; - _$jscoverage['/runtime/commands.js'].lineData[74] = 0; - _$jscoverage['/runtime/commands.js'].lineData[75] = 0; + _$jscoverage['/runtime/commands.js'].lineData[72] = 0; _$jscoverage['/runtime/commands.js'].lineData[76] = 0; _$jscoverage['/runtime/commands.js'].lineData[77] = 0; _$jscoverage['/runtime/commands.js'].lineData[78] = 0; _$jscoverage['/runtime/commands.js'].lineData[79] = 0; + _$jscoverage['/runtime/commands.js'].lineData[80] = 0; _$jscoverage['/runtime/commands.js'].lineData[81] = 0; - _$jscoverage['/runtime/commands.js'].lineData[82] = 0; + _$jscoverage['/runtime/commands.js'].lineData[83] = 0; _$jscoverage['/runtime/commands.js'].lineData[84] = 0; - _$jscoverage['/runtime/commands.js'].lineData[88] = 0; - _$jscoverage['/runtime/commands.js'].lineData[89] = 0; - _$jscoverage['/runtime/commands.js'].lineData[93] = 0; + _$jscoverage['/runtime/commands.js'].lineData[86] = 0; + _$jscoverage['/runtime/commands.js'].lineData[90] = 0; + _$jscoverage['/runtime/commands.js'].lineData[91] = 0; _$jscoverage['/runtime/commands.js'].lineData[95] = 0; - _$jscoverage['/runtime/commands.js'].lineData[96] = 0; _$jscoverage['/runtime/commands.js'].lineData[97] = 0; - _$jscoverage['/runtime/commands.js'].lineData[101] = 0; - _$jscoverage['/runtime/commands.js'].lineData[102] = 0; + _$jscoverage['/runtime/commands.js'].lineData[98] = 0; + _$jscoverage['/runtime/commands.js'].lineData[99] = 0; _$jscoverage['/runtime/commands.js'].lineData[103] = 0; _$jscoverage['/runtime/commands.js'].lineData[104] = 0; - _$jscoverage['/runtime/commands.js'].lineData[107] = 0; - _$jscoverage['/runtime/commands.js'].lineData[108] = 0; + _$jscoverage['/runtime/commands.js'].lineData[105] = 0; + _$jscoverage['/runtime/commands.js'].lineData[106] = 0; + _$jscoverage['/runtime/commands.js'].lineData[109] = 0; _$jscoverage['/runtime/commands.js'].lineData[110] = 0; - _$jscoverage['/runtime/commands.js'].lineData[111] = 0; _$jscoverage['/runtime/commands.js'].lineData[112] = 0; _$jscoverage['/runtime/commands.js'].lineData[113] = 0; + _$jscoverage['/runtime/commands.js'].lineData[114] = 0; _$jscoverage['/runtime/commands.js'].lineData[115] = 0; - _$jscoverage['/runtime/commands.js'].lineData[118] = 0; + _$jscoverage['/runtime/commands.js'].lineData[117] = 0; _$jscoverage['/runtime/commands.js'].lineData[120] = 0; _$jscoverage['/runtime/commands.js'].lineData[122] = 0; _$jscoverage['/runtime/commands.js'].lineData[124] = 0; _$jscoverage['/runtime/commands.js'].lineData[126] = 0; - _$jscoverage['/runtime/commands.js'].lineData[127] = 0; - _$jscoverage['/runtime/commands.js'].lineData[131] = 0; - _$jscoverage['/runtime/commands.js'].lineData[132] = 0; + _$jscoverage['/runtime/commands.js'].lineData[128] = 0; + _$jscoverage['/runtime/commands.js'].lineData[129] = 0; _$jscoverage['/runtime/commands.js'].lineData[133] = 0; _$jscoverage['/runtime/commands.js'].lineData[134] = 0; + _$jscoverage['/runtime/commands.js'].lineData[135] = 0; _$jscoverage['/runtime/commands.js'].lineData[136] = 0; _$jscoverage['/runtime/commands.js'].lineData[138] = 0; - _$jscoverage['/runtime/commands.js'].lineData[139] = 0; - _$jscoverage['/runtime/commands.js'].lineData[145] = 0; - _$jscoverage['/runtime/commands.js'].lineData[146] = 0; + _$jscoverage['/runtime/commands.js'].lineData[140] = 0; + _$jscoverage['/runtime/commands.js'].lineData[141] = 0; + _$jscoverage['/runtime/commands.js'].lineData[147] = 0; _$jscoverage['/runtime/commands.js'].lineData[148] = 0; - _$jscoverage['/runtime/commands.js'].lineData[149] = 0; - _$jscoverage['/runtime/commands.js'].lineData[152] = 0; - _$jscoverage['/runtime/commands.js'].lineData[153] = 0; + _$jscoverage['/runtime/commands.js'].lineData[150] = 0; + _$jscoverage['/runtime/commands.js'].lineData[151] = 0; + _$jscoverage['/runtime/commands.js'].lineData[154] = 0; _$jscoverage['/runtime/commands.js'].lineData[155] = 0; _$jscoverage['/runtime/commands.js'].lineData[157] = 0; _$jscoverage['/runtime/commands.js'].lineData[159] = 0; - _$jscoverage['/runtime/commands.js'].lineData[164] = 0; - _$jscoverage['/runtime/commands.js'].lineData[168] = 0; + _$jscoverage['/runtime/commands.js'].lineData[161] = 0; + _$jscoverage['/runtime/commands.js'].lineData[166] = 0; + _$jscoverage['/runtime/commands.js'].lineData[170] = 0; + _$jscoverage['/runtime/commands.js'].lineData[171] = 0; + _$jscoverage['/runtime/commands.js'].lineData[172] = 0; + _$jscoverage['/runtime/commands.js'].lineData[176] = 0; } if (! _$jscoverage['/runtime/commands.js'].functionData) { _$jscoverage['/runtime/commands.js'].functionData = []; @@ -337,128 +340,135 @@ if (! _$jscoverage['/runtime/commands.js'].functionData) { _$jscoverage['/runtime/commands.js'].functionData[6] = 0; _$jscoverage['/runtime/commands.js'].functionData[7] = 0; _$jscoverage['/runtime/commands.js'].functionData[8] = 0; + _$jscoverage['/runtime/commands.js'].functionData[9] = 0; } if (! _$jscoverage['/runtime/commands.js'].branchData) { _$jscoverage['/runtime/commands.js'].branchData = {}; - _$jscoverage['/runtime/commands.js'].branchData['15'] = []; - _$jscoverage['/runtime/commands.js'].branchData['15'][1] = new BranchData(); - _$jscoverage['/runtime/commands.js'].branchData['22'] = []; - _$jscoverage['/runtime/commands.js'].branchData['22'][1] = new BranchData(); + _$jscoverage['/runtime/commands.js'].branchData['17'] = []; + _$jscoverage['/runtime/commands.js'].branchData['17'][1] = new BranchData(); _$jscoverage['/runtime/commands.js'].branchData['24'] = []; _$jscoverage['/runtime/commands.js'].branchData['24'][1] = new BranchData(); _$jscoverage['/runtime/commands.js'].branchData['26'] = []; _$jscoverage['/runtime/commands.js'].branchData['26'][1] = new BranchData(); - _$jscoverage['/runtime/commands.js'].branchData['33'] = []; - _$jscoverage['/runtime/commands.js'].branchData['33'][1] = new BranchData(); - _$jscoverage['/runtime/commands.js'].branchData['44'] = []; - _$jscoverage['/runtime/commands.js'].branchData['44'][1] = new BranchData(); - _$jscoverage['/runtime/commands.js'].branchData['52'] = []; - _$jscoverage['/runtime/commands.js'].branchData['52'][1] = new BranchData(); - _$jscoverage['/runtime/commands.js'].branchData['62'] = []; - _$jscoverage['/runtime/commands.js'].branchData['62'][1] = new BranchData(); - _$jscoverage['/runtime/commands.js'].branchData['67'] = []; - _$jscoverage['/runtime/commands.js'].branchData['67'][1] = new BranchData(); - _$jscoverage['/runtime/commands.js'].branchData['77'] = []; - _$jscoverage['/runtime/commands.js'].branchData['77'][1] = new BranchData(); - _$jscoverage['/runtime/commands.js'].branchData['78'] = []; - _$jscoverage['/runtime/commands.js'].branchData['78'][1] = new BranchData(); - _$jscoverage['/runtime/commands.js'].branchData['81'] = []; - _$jscoverage['/runtime/commands.js'].branchData['81'][1] = new BranchData(); - _$jscoverage['/runtime/commands.js'].branchData['95'] = []; - _$jscoverage['/runtime/commands.js'].branchData['95'][1] = new BranchData(); - _$jscoverage['/runtime/commands.js'].branchData['95'][2] = new BranchData(); - _$jscoverage['/runtime/commands.js'].branchData['101'] = []; - _$jscoverage['/runtime/commands.js'].branchData['101'][1] = new BranchData(); - _$jscoverage['/runtime/commands.js'].branchData['110'] = []; - _$jscoverage['/runtime/commands.js'].branchData['110'][1] = new BranchData(); - _$jscoverage['/runtime/commands.js'].branchData['111'] = []; - _$jscoverage['/runtime/commands.js'].branchData['111'][1] = new BranchData(); - _$jscoverage['/runtime/commands.js'].branchData['136'] = []; - _$jscoverage['/runtime/commands.js'].branchData['136'][1] = new BranchData(); + _$jscoverage['/runtime/commands.js'].branchData['28'] = []; + _$jscoverage['/runtime/commands.js'].branchData['28'][1] = new BranchData(); + _$jscoverage['/runtime/commands.js'].branchData['35'] = []; + _$jscoverage['/runtime/commands.js'].branchData['35'][1] = new BranchData(); + _$jscoverage['/runtime/commands.js'].branchData['46'] = []; + _$jscoverage['/runtime/commands.js'].branchData['46'][1] = new BranchData(); + _$jscoverage['/runtime/commands.js'].branchData['54'] = []; + _$jscoverage['/runtime/commands.js'].branchData['54'][1] = new BranchData(); + _$jscoverage['/runtime/commands.js'].branchData['64'] = []; + _$jscoverage['/runtime/commands.js'].branchData['64'][1] = new BranchData(); + _$jscoverage['/runtime/commands.js'].branchData['69'] = []; + _$jscoverage['/runtime/commands.js'].branchData['69'][1] = new BranchData(); + _$jscoverage['/runtime/commands.js'].branchData['79'] = []; + _$jscoverage['/runtime/commands.js'].branchData['79'][1] = new BranchData(); + _$jscoverage['/runtime/commands.js'].branchData['80'] = []; + _$jscoverage['/runtime/commands.js'].branchData['80'][1] = new BranchData(); + _$jscoverage['/runtime/commands.js'].branchData['83'] = []; + _$jscoverage['/runtime/commands.js'].branchData['83'][1] = new BranchData(); + _$jscoverage['/runtime/commands.js'].branchData['97'] = []; + _$jscoverage['/runtime/commands.js'].branchData['97'][1] = new BranchData(); + _$jscoverage['/runtime/commands.js'].branchData['97'][2] = new BranchData(); + _$jscoverage['/runtime/commands.js'].branchData['103'] = []; + _$jscoverage['/runtime/commands.js'].branchData['103'][1] = new BranchData(); + _$jscoverage['/runtime/commands.js'].branchData['112'] = []; + _$jscoverage['/runtime/commands.js'].branchData['112'][1] = new BranchData(); + _$jscoverage['/runtime/commands.js'].branchData['113'] = []; + _$jscoverage['/runtime/commands.js'].branchData['113'][1] = new BranchData(); _$jscoverage['/runtime/commands.js'].branchData['138'] = []; _$jscoverage['/runtime/commands.js'].branchData['138'][1] = new BranchData(); - _$jscoverage['/runtime/commands.js'].branchData['148'] = []; - _$jscoverage['/runtime/commands.js'].branchData['148'][1] = new BranchData(); + _$jscoverage['/runtime/commands.js'].branchData['140'] = []; + _$jscoverage['/runtime/commands.js'].branchData['140'][1] = new BranchData(); + _$jscoverage['/runtime/commands.js'].branchData['150'] = []; + _$jscoverage['/runtime/commands.js'].branchData['150'][1] = new BranchData(); + _$jscoverage['/runtime/commands.js'].branchData['170'] = []; + _$jscoverage['/runtime/commands.js'].branchData['170'][1] = new BranchData(); } -_$jscoverage['/runtime/commands.js'].branchData['148'][1].init(107, 6, '!macro'); -function visit20_148_1(result) { - _$jscoverage['/runtime/commands.js'].branchData['148'][1].ranCondition(result); +_$jscoverage['/runtime/commands.js'].branchData['170'][1].init(5516, 9, '\'@DEBUG@\''); +function visit21_170_1(result) { + _$jscoverage['/runtime/commands.js'].branchData['170'][1].ranCondition(result); return result; -}_$jscoverage['/runtime/commands.js'].branchData['138'][1].init(80, 18, '!macros[macroName]'); -function visit19_138_1(result) { +}_$jscoverage['/runtime/commands.js'].branchData['150'][1].init(107, 6, '!macro'); +function visit20_150_1(result) { + _$jscoverage['/runtime/commands.js'].branchData['150'][1].ranCondition(result); + return result; +}_$jscoverage['/runtime/commands.js'].branchData['140'][1].init(80, 18, '!macros[macroName]'); +function visit19_140_1(result) { + _$jscoverage['/runtime/commands.js'].branchData['140'][1].ranCondition(result); + return result; +}_$jscoverage['/runtime/commands.js'].branchData['138'][1].init(210, 9, 'config.fn'); +function visit18_138_1(result) { _$jscoverage['/runtime/commands.js'].branchData['138'][1].ranCondition(result); return result; -}_$jscoverage['/runtime/commands.js'].branchData['136'][1].init(210, 9, 'config.fn'); -function visit18_136_1(result) { - _$jscoverage['/runtime/commands.js'].branchData['136'][1].ranCondition(result); +}_$jscoverage['/runtime/commands.js'].branchData['113'][1].init(21, 24, 'myName === \'unspecified\''); +function visit17_113_1(result) { + _$jscoverage['/runtime/commands.js'].branchData['113'][1].ranCondition(result); return result; -}_$jscoverage['/runtime/commands.js'].branchData['111'][1].init(21, 24, 'myName === \'unspecified\''); -function visit17_111_1(result) { - _$jscoverage['/runtime/commands.js'].branchData['111'][1].ranCondition(result); +}_$jscoverage['/runtime/commands.js'].branchData['112'][1].init(501, 28, 'subTplName.charAt(0) === \'.\''); +function visit16_112_1(result) { + _$jscoverage['/runtime/commands.js'].branchData['112'][1].ranCondition(result); return result; -}_$jscoverage['/runtime/commands.js'].branchData['110'][1].init(501, 28, 'subTplName.charAt(0) === \'.\''); -function visit16_110_1(result) { - _$jscoverage['/runtime/commands.js'].branchData['110'][1].ranCondition(result); +}_$jscoverage['/runtime/commands.js'].branchData['103'][1].init(239, 11, 'config.hash'); +function visit15_103_1(result) { + _$jscoverage['/runtime/commands.js'].branchData['103'][1].ranCondition(result); return result; -}_$jscoverage['/runtime/commands.js'].branchData['101'][1].init(239, 11, 'config.hash'); -function visit15_101_1(result) { - _$jscoverage['/runtime/commands.js'].branchData['101'][1].ranCondition(result); +}_$jscoverage['/runtime/commands.js'].branchData['97'][2].init(69, 19, 'params.length !== 1'); +function visit14_97_2(result) { + _$jscoverage['/runtime/commands.js'].branchData['97'][2].ranCondition(result); return result; -}_$jscoverage['/runtime/commands.js'].branchData['95'][2].init(69, 19, 'params.length !== 1'); -function visit14_95_2(result) { - _$jscoverage['/runtime/commands.js'].branchData['95'][2].ranCondition(result); +}_$jscoverage['/runtime/commands.js'].branchData['97'][1].init(58, 30, '!params || params.length !== 1'); +function visit13_97_1(result) { + _$jscoverage['/runtime/commands.js'].branchData['97'][1].ranCondition(result); return result; -}_$jscoverage['/runtime/commands.js'].branchData['95'][1].init(58, 30, '!params || params.length !== 1'); -function visit13_95_1(result) { - _$jscoverage['/runtime/commands.js'].branchData['95'][1].ranCondition(result); +}_$jscoverage['/runtime/commands.js'].branchData['83'][1].init(254, 14, 'config.inverse'); +function visit12_83_1(result) { + _$jscoverage['/runtime/commands.js'].branchData['83'][1].ranCondition(result); return result; -}_$jscoverage['/runtime/commands.js'].branchData['81'][1].init(254, 14, 'config.inverse'); -function visit12_81_1(result) { - _$jscoverage['/runtime/commands.js'].branchData['81'][1].ranCondition(result); +}_$jscoverage['/runtime/commands.js'].branchData['80'][1].init(21, 9, 'config.fn'); +function visit11_80_1(result) { + _$jscoverage['/runtime/commands.js'].branchData['80'][1].ranCondition(result); return result; -}_$jscoverage['/runtime/commands.js'].branchData['78'][1].init(21, 9, 'config.fn'); -function visit11_78_1(result) { - _$jscoverage['/runtime/commands.js'].branchData['78'][1].ranCondition(result); +}_$jscoverage['/runtime/commands.js'].branchData['79'][1].init(122, 6, 'param0'); +function visit10_79_1(result) { + _$jscoverage['/runtime/commands.js'].branchData['79'][1].ranCondition(result); return result; -}_$jscoverage['/runtime/commands.js'].branchData['77'][1].init(122, 6, 'param0'); -function visit10_77_1(result) { - _$jscoverage['/runtime/commands.js'].branchData['77'][1].ranCondition(result); +}_$jscoverage['/runtime/commands.js'].branchData['69'][1].init(345, 14, 'config.inverse'); +function visit9_69_1(result) { + _$jscoverage['/runtime/commands.js'].branchData['69'][1].ranCondition(result); return result; -}_$jscoverage['/runtime/commands.js'].branchData['67'][1].init(345, 14, 'config.inverse'); -function visit9_67_1(result) { - _$jscoverage['/runtime/commands.js'].branchData['67'][1].ranCondition(result); +}_$jscoverage['/runtime/commands.js'].branchData['64'][1].init(122, 6, 'param0'); +function visit8_64_1(result) { + _$jscoverage['/runtime/commands.js'].branchData['64'][1].ranCondition(result); return result; -}_$jscoverage['/runtime/commands.js'].branchData['62'][1].init(122, 6, 'param0'); -function visit8_62_1(result) { - _$jscoverage['/runtime/commands.js'].branchData['62'][1].ranCondition(result); +}_$jscoverage['/runtime/commands.js'].branchData['54'][1].init(1624, 14, 'config.inverse'); +function visit7_54_1(result) { + _$jscoverage['/runtime/commands.js'].branchData['54'][1].ranCondition(result); return result; -}_$jscoverage['/runtime/commands.js'].branchData['52'][1].init(1624, 14, 'config.inverse'); -function visit7_52_1(result) { - _$jscoverage['/runtime/commands.js'].branchData['52'][1].ranCondition(result); +}_$jscoverage['/runtime/commands.js'].branchData['46'][1].init(184, 9, 'valueName'); +function visit6_46_1(result) { + _$jscoverage['/runtime/commands.js'].branchData['46'][1].ranCondition(result); return result; -}_$jscoverage['/runtime/commands.js'].branchData['44'][1].init(184, 9, 'valueName'); -function visit6_44_1(result) { - _$jscoverage['/runtime/commands.js'].branchData['44'][1].ranCondition(result); +}_$jscoverage['/runtime/commands.js'].branchData['35'][1].init(325, 9, 'valueName'); +function visit5_35_1(result) { + _$jscoverage['/runtime/commands.js'].branchData['35'][1].ranCondition(result); return result; -}_$jscoverage['/runtime/commands.js'].branchData['33'][1].init(325, 9, 'valueName'); -function visit5_33_1(result) { - _$jscoverage['/runtime/commands.js'].branchData['33'][1].ranCondition(result); +}_$jscoverage['/runtime/commands.js'].branchData['28'][1].init(86, 15, 'xindex < xcount'); +function visit4_28_1(result) { + _$jscoverage['/runtime/commands.js'].branchData['28'][1].ranCondition(result); return result; -}_$jscoverage['/runtime/commands.js'].branchData['26'][1].init(86, 15, 'xindex < xcount'); -function visit4_26_1(result) { +}_$jscoverage['/runtime/commands.js'].branchData['26'][1].init(60, 17, 'S.isArray(param0)'); +function visit3_26_1(result) { _$jscoverage['/runtime/commands.js'].branchData['26'][1].ranCondition(result); return result; -}_$jscoverage['/runtime/commands.js'].branchData['24'][1].init(60, 17, 'S.isArray(param0)'); -function visit3_24_1(result) { +}_$jscoverage['/runtime/commands.js'].branchData['24'][1].init(344, 6, 'param0'); +function visit2_24_1(result) { _$jscoverage['/runtime/commands.js'].branchData['24'][1].ranCondition(result); return result; -}_$jscoverage['/runtime/commands.js'].branchData['22'][1].init(344, 6, 'param0'); -function visit2_22_1(result) { - _$jscoverage['/runtime/commands.js'].branchData['22'][1].ranCondition(result); - return result; -}_$jscoverage['/runtime/commands.js'].branchData['15'][1].init(106, 21, 'params[2] || \'xindex\''); -function visit1_15_1(result) { - _$jscoverage['/runtime/commands.js'].branchData['15'][1].ranCondition(result); +}_$jscoverage['/runtime/commands.js'].branchData['17'][1].init(106, 21, 'params[2] || \'xindex\''); +function visit1_17_1(result) { + _$jscoverage['/runtime/commands.js'].branchData['17'][1].ranCondition(result); return result; }_$jscoverage['/runtime/commands.js'].lineData[6]++; KISSY.add(function(S, require) { @@ -471,236 +481,246 @@ KISSY.add(function(S, require) { var Scope = require('./scope'); _$jscoverage['/runtime/commands.js'].lineData[11]++; commands = { + 'debugger': S.noop, 'each': function(scope, config) { _$jscoverage['/runtime/commands.js'].functionData[1]++; - _$jscoverage['/runtime/commands.js'].lineData[13]++; - var params = config.params; - _$jscoverage['/runtime/commands.js'].lineData[14]++; - var param0 = params[0]; _$jscoverage['/runtime/commands.js'].lineData[15]++; - var xindexName = visit1_15_1(params[2] || 'xindex'); + var params = config.params; _$jscoverage['/runtime/commands.js'].lineData[16]++; - var valueName = params[1]; + var param0 = params[0]; _$jscoverage['/runtime/commands.js'].lineData[17]++; - var buffer = ''; + var xindexName = visit1_17_1(params[2] || 'xindex'); _$jscoverage['/runtime/commands.js'].lineData[18]++; - var xcount; + var valueName = params[1]; _$jscoverage['/runtime/commands.js'].lineData[19]++; - var opScope; + var buffer = ''; _$jscoverage['/runtime/commands.js'].lineData[20]++; - var affix; + var xcount; + _$jscoverage['/runtime/commands.js'].lineData[21]++; + var opScope; _$jscoverage['/runtime/commands.js'].lineData[22]++; - if (visit2_22_1(param0)) { - _$jscoverage['/runtime/commands.js'].lineData[23]++; + var affix; + _$jscoverage['/runtime/commands.js'].lineData[24]++; + if (visit2_24_1(param0)) { + _$jscoverage['/runtime/commands.js'].lineData[25]++; opScope = new Scope(); - _$jscoverage['/runtime/commands.js'].lineData[24]++; - if (visit3_24_1(S.isArray(param0))) { - _$jscoverage['/runtime/commands.js'].lineData[25]++; + _$jscoverage['/runtime/commands.js'].lineData[26]++; + if (visit3_26_1(S.isArray(param0))) { + _$jscoverage['/runtime/commands.js'].lineData[27]++; xcount = param0.length; - _$jscoverage['/runtime/commands.js'].lineData[26]++; - for (var xindex = 0; visit4_26_1(xindex < xcount); xindex++) { - _$jscoverage['/runtime/commands.js'].lineData[28]++; + _$jscoverage['/runtime/commands.js'].lineData[28]++; + for (var xindex = 0; visit4_28_1(xindex < xcount); xindex++) { + _$jscoverage['/runtime/commands.js'].lineData[30]++; opScope.data = param0[xindex]; - _$jscoverage['/runtime/commands.js'].lineData[29]++; + _$jscoverage['/runtime/commands.js'].lineData[31]++; affix = opScope.affix = { xcount: xcount}; - _$jscoverage['/runtime/commands.js'].lineData[32]++; + _$jscoverage['/runtime/commands.js'].lineData[34]++; affix[xindexName] = xindex; - _$jscoverage['/runtime/commands.js'].lineData[33]++; - if (visit5_33_1(valueName)) { - _$jscoverage['/runtime/commands.js'].lineData[34]++; + _$jscoverage['/runtime/commands.js'].lineData[35]++; + if (visit5_35_1(valueName)) { + _$jscoverage['/runtime/commands.js'].lineData[36]++; affix[valueName] = param0[xindex]; } - _$jscoverage['/runtime/commands.js'].lineData[36]++; + _$jscoverage['/runtime/commands.js'].lineData[38]++; opScope.setParent(scope); - _$jscoverage['/runtime/commands.js'].lineData[37]++; + _$jscoverage['/runtime/commands.js'].lineData[39]++; buffer += config.fn(opScope); } } else { - _$jscoverage['/runtime/commands.js'].lineData[40]++; + _$jscoverage['/runtime/commands.js'].lineData[42]++; for (var name in param0) { - _$jscoverage['/runtime/commands.js'].lineData[41]++; + _$jscoverage['/runtime/commands.js'].lineData[43]++; opScope.data = param0[name]; - _$jscoverage['/runtime/commands.js'].lineData[42]++; + _$jscoverage['/runtime/commands.js'].lineData[44]++; affix = opScope.affix = {}; - _$jscoverage['/runtime/commands.js'].lineData[43]++; + _$jscoverage['/runtime/commands.js'].lineData[45]++; affix[xindexName] = name; - _$jscoverage['/runtime/commands.js'].lineData[44]++; - if (visit6_44_1(valueName)) { - _$jscoverage['/runtime/commands.js'].lineData[45]++; + _$jscoverage['/runtime/commands.js'].lineData[46]++; + if (visit6_46_1(valueName)) { + _$jscoverage['/runtime/commands.js'].lineData[47]++; affix[valueName] = param0[name]; } - _$jscoverage['/runtime/commands.js'].lineData[47]++; + _$jscoverage['/runtime/commands.js'].lineData[49]++; opScope.setParent(scope); - _$jscoverage['/runtime/commands.js'].lineData[48]++; + _$jscoverage['/runtime/commands.js'].lineData[50]++; buffer += config.fn(opScope); } } } else { - _$jscoverage['/runtime/commands.js'].lineData[52]++; - if (visit7_52_1(config.inverse)) { - _$jscoverage['/runtime/commands.js'].lineData[53]++; + _$jscoverage['/runtime/commands.js'].lineData[54]++; + if (visit7_54_1(config.inverse)) { + _$jscoverage['/runtime/commands.js'].lineData[55]++; buffer = config.inverse(scope); } } - _$jscoverage['/runtime/commands.js'].lineData[55]++; + _$jscoverage['/runtime/commands.js'].lineData[57]++; return buffer; }, 'with': function(scope, config) { _$jscoverage['/runtime/commands.js'].functionData[2]++; - _$jscoverage['/runtime/commands.js'].lineData[59]++; + _$jscoverage['/runtime/commands.js'].lineData[61]++; var params = config.params; - _$jscoverage['/runtime/commands.js'].lineData[60]++; + _$jscoverage['/runtime/commands.js'].lineData[62]++; var param0 = params[0]; - _$jscoverage['/runtime/commands.js'].lineData[61]++; + _$jscoverage['/runtime/commands.js'].lineData[63]++; var buffer = ''; - _$jscoverage['/runtime/commands.js'].lineData[62]++; - if (visit8_62_1(param0)) { - _$jscoverage['/runtime/commands.js'].lineData[64]++; + _$jscoverage['/runtime/commands.js'].lineData[64]++; + if (visit8_64_1(param0)) { + _$jscoverage['/runtime/commands.js'].lineData[66]++; var opScope = new Scope(param0); - _$jscoverage['/runtime/commands.js'].lineData[65]++; + _$jscoverage['/runtime/commands.js'].lineData[67]++; opScope.setParent(scope); - _$jscoverage['/runtime/commands.js'].lineData[66]++; + _$jscoverage['/runtime/commands.js'].lineData[68]++; buffer = config.fn(opScope); } else { - _$jscoverage['/runtime/commands.js'].lineData[67]++; - if (visit9_67_1(config.inverse)) { - _$jscoverage['/runtime/commands.js'].lineData[68]++; + _$jscoverage['/runtime/commands.js'].lineData[69]++; + if (visit9_69_1(config.inverse)) { + _$jscoverage['/runtime/commands.js'].lineData[70]++; buffer = config.inverse(scope); } } - _$jscoverage['/runtime/commands.js'].lineData[70]++; + _$jscoverage['/runtime/commands.js'].lineData[72]++; return buffer; }, 'if': function(scope, config) { _$jscoverage['/runtime/commands.js'].functionData[3]++; - _$jscoverage['/runtime/commands.js'].lineData[74]++; + _$jscoverage['/runtime/commands.js'].lineData[76]++; var params = config.params; - _$jscoverage['/runtime/commands.js'].lineData[75]++; + _$jscoverage['/runtime/commands.js'].lineData[77]++; var param0 = params[0]; - _$jscoverage['/runtime/commands.js'].lineData[76]++; + _$jscoverage['/runtime/commands.js'].lineData[78]++; var buffer = ''; - _$jscoverage['/runtime/commands.js'].lineData[77]++; - if (visit10_77_1(param0)) { - _$jscoverage['/runtime/commands.js'].lineData[78]++; - if (visit11_78_1(config.fn)) { - _$jscoverage['/runtime/commands.js'].lineData[79]++; + _$jscoverage['/runtime/commands.js'].lineData[79]++; + if (visit10_79_1(param0)) { + _$jscoverage['/runtime/commands.js'].lineData[80]++; + if (visit11_80_1(config.fn)) { + _$jscoverage['/runtime/commands.js'].lineData[81]++; buffer = config.fn(scope); } } else { - _$jscoverage['/runtime/commands.js'].lineData[81]++; - if (visit12_81_1(config.inverse)) { - _$jscoverage['/runtime/commands.js'].lineData[82]++; + _$jscoverage['/runtime/commands.js'].lineData[83]++; + if (visit12_83_1(config.inverse)) { + _$jscoverage['/runtime/commands.js'].lineData[84]++; buffer = config.inverse(scope); } } - _$jscoverage['/runtime/commands.js'].lineData[84]++; + _$jscoverage['/runtime/commands.js'].lineData[86]++; return buffer; }, 'set': function(scope, config) { _$jscoverage['/runtime/commands.js'].functionData[4]++; - _$jscoverage['/runtime/commands.js'].lineData[88]++; + _$jscoverage['/runtime/commands.js'].lineData[90]++; scope.mix(config.hash); - _$jscoverage['/runtime/commands.js'].lineData[89]++; + _$jscoverage['/runtime/commands.js'].lineData[91]++; return ''; }, include: function(scope, config) { _$jscoverage['/runtime/commands.js'].functionData[5]++; - _$jscoverage['/runtime/commands.js'].lineData[93]++; - var params = config.params; _$jscoverage['/runtime/commands.js'].lineData[95]++; - if (visit13_95_1(!params || visit14_95_2(params.length !== 1))) { - _$jscoverage['/runtime/commands.js'].lineData[96]++; + var params = config.params; + _$jscoverage['/runtime/commands.js'].lineData[97]++; + if (visit13_97_1(!params || visit14_97_2(params.length !== 1))) { + _$jscoverage['/runtime/commands.js'].lineData[98]++; S.error('include must has one param'); - _$jscoverage['/runtime/commands.js'].lineData[97]++; + _$jscoverage['/runtime/commands.js'].lineData[99]++; return ''; } - _$jscoverage['/runtime/commands.js'].lineData[101]++; - if (visit15_101_1(config.hash)) { - _$jscoverage['/runtime/commands.js'].lineData[102]++; + _$jscoverage['/runtime/commands.js'].lineData[103]++; + if (visit15_103_1(config.hash)) { + _$jscoverage['/runtime/commands.js'].lineData[104]++; var newScope = new Scope(config.hash); - _$jscoverage['/runtime/commands.js'].lineData[103]++; + _$jscoverage['/runtime/commands.js'].lineData[105]++; newScope.setParent(scope); - _$jscoverage['/runtime/commands.js'].lineData[104]++; + _$jscoverage['/runtime/commands.js'].lineData[106]++; scope = newScope; } - _$jscoverage['/runtime/commands.js'].lineData[107]++; + _$jscoverage['/runtime/commands.js'].lineData[109]++; var myName = this.config.name; - _$jscoverage['/runtime/commands.js'].lineData[108]++; - var subTplName = params[0]; _$jscoverage['/runtime/commands.js'].lineData[110]++; - if (visit16_110_1(subTplName.charAt(0) === '.')) { - _$jscoverage['/runtime/commands.js'].lineData[111]++; - if (visit17_111_1(myName === 'unspecified')) { - _$jscoverage['/runtime/commands.js'].lineData[112]++; + var subTplName = params[0]; + _$jscoverage['/runtime/commands.js'].lineData[112]++; + if (visit16_112_1(subTplName.charAt(0) === '.')) { + _$jscoverage['/runtime/commands.js'].lineData[113]++; + if (visit17_113_1(myName === 'unspecified')) { + _$jscoverage['/runtime/commands.js'].lineData[114]++; S.error('parent template does not have name' + ' for relative sub tpl name: ' + subTplName); - _$jscoverage['/runtime/commands.js'].lineData[113]++; + _$jscoverage['/runtime/commands.js'].lineData[115]++; return ''; } - _$jscoverage['/runtime/commands.js'].lineData[115]++; + _$jscoverage['/runtime/commands.js'].lineData[117]++; subTplName = Path.resolve(myName, '../', subTplName); } - _$jscoverage['/runtime/commands.js'].lineData[118]++; - var tpl = this.config.loader.call(this, subTplName); _$jscoverage['/runtime/commands.js'].lineData[120]++; - config = S.merge(this.config); + var tpl = this.config.loader.call(this, subTplName); _$jscoverage['/runtime/commands.js'].lineData[122]++; - config.name = subTplName; + config = S.merge(this.config); _$jscoverage['/runtime/commands.js'].lineData[124]++; - config.commands = this.config.commands; + config.name = subTplName; _$jscoverage['/runtime/commands.js'].lineData[126]++; + config.commands = this.config.commands; + _$jscoverage['/runtime/commands.js'].lineData[128]++; config.macros = this.config.macros; - _$jscoverage['/runtime/commands.js'].lineData[127]++; + _$jscoverage['/runtime/commands.js'].lineData[129]++; return this.invokeEngine(tpl, scope, config); }, 'macro': function(scope, config) { _$jscoverage['/runtime/commands.js'].functionData[6]++; - _$jscoverage['/runtime/commands.js'].lineData[131]++; + _$jscoverage['/runtime/commands.js'].lineData[133]++; var params = config.params; - _$jscoverage['/runtime/commands.js'].lineData[132]++; + _$jscoverage['/runtime/commands.js'].lineData[134]++; var macroName = params[0]; - _$jscoverage['/runtime/commands.js'].lineData[133]++; + _$jscoverage['/runtime/commands.js'].lineData[135]++; var params1 = params.slice(1); - _$jscoverage['/runtime/commands.js'].lineData[134]++; - var macros = this.config.macros; _$jscoverage['/runtime/commands.js'].lineData[136]++; - if (visit18_136_1(config.fn)) { - _$jscoverage['/runtime/commands.js'].lineData[138]++; - if (visit19_138_1(!macros[macroName])) { - _$jscoverage['/runtime/commands.js'].lineData[139]++; + var macros = this.config.macros; + _$jscoverage['/runtime/commands.js'].lineData[138]++; + if (visit18_138_1(config.fn)) { + _$jscoverage['/runtime/commands.js'].lineData[140]++; + if (visit19_140_1(!macros[macroName])) { + _$jscoverage['/runtime/commands.js'].lineData[141]++; macros[macroName] = { paramNames: params1, fn: config.fn}; } } else { - _$jscoverage['/runtime/commands.js'].lineData[145]++; + _$jscoverage['/runtime/commands.js'].lineData[147]++; var paramValues = {}; - _$jscoverage['/runtime/commands.js'].lineData[146]++; - var macro = macros[macroName]; _$jscoverage['/runtime/commands.js'].lineData[148]++; - if (visit20_148_1(!macro)) { - _$jscoverage['/runtime/commands.js'].lineData[149]++; + var macro = macros[macroName]; + _$jscoverage['/runtime/commands.js'].lineData[150]++; + if (visit20_150_1(!macro)) { + _$jscoverage['/runtime/commands.js'].lineData[151]++; S.error('can not find macro:' + name); } - _$jscoverage['/runtime/commands.js'].lineData[152]++; + _$jscoverage['/runtime/commands.js'].lineData[154]++; S.each(macro.paramNames, function(p, i) { _$jscoverage['/runtime/commands.js'].functionData[7]++; - _$jscoverage['/runtime/commands.js'].lineData[153]++; + _$jscoverage['/runtime/commands.js'].lineData[155]++; paramValues[p] = params1[i]; }); - _$jscoverage['/runtime/commands.js'].lineData[155]++; - var newScope = new Scope(paramValues); _$jscoverage['/runtime/commands.js'].lineData[157]++; + var newScope = new Scope(paramValues); + _$jscoverage['/runtime/commands.js'].lineData[159]++; return macro.fn.call(this, newScope); } - _$jscoverage['/runtime/commands.js'].lineData[159]++; + _$jscoverage['/runtime/commands.js'].lineData[161]++; return ''; }, parse: function(scope, config) { _$jscoverage['/runtime/commands.js'].functionData[8]++; - _$jscoverage['/runtime/commands.js'].lineData[164]++; + _$jscoverage['/runtime/commands.js'].lineData[166]++; return commands.include.call(this, new Scope(), config); }}; - _$jscoverage['/runtime/commands.js'].lineData[168]++; + _$jscoverage['/runtime/commands.js'].lineData[170]++; + if (visit21_170_1('@DEBUG@')) { + _$jscoverage['/runtime/commands.js'].lineData[171]++; + commands['debugger'] = function() { + _$jscoverage['/runtime/commands.js'].functionData[9]++; + _$jscoverage['/runtime/commands.js'].lineData[172]++; + S.globalEval('debugger'); +}; + } + _$jscoverage['/runtime/commands.js'].lineData[176]++; return commands; }); diff --git a/src/xtemplate/sub-modules/runtime/coverage/src/runtime/scope.js b/src/xtemplate/sub-modules/runtime/coverage/src/runtime/scope.js index 892bfda624..ade21432bf 100644 --- a/src/xtemplate/sub-modules/runtime/coverage/src/runtime/scope.js +++ b/src/xtemplate/sub-modules/runtime/coverage/src/runtime/scope.js @@ -284,21 +284,22 @@ if (! _$jscoverage['/runtime/scope.js']) { _$jscoverage['/runtime/scope.js'].lineData[116] = 0; _$jscoverage['/runtime/scope.js'].lineData[117] = 0; _$jscoverage['/runtime/scope.js'].lineData[119] = 0; - _$jscoverage['/runtime/scope.js'].lineData[122] = 0; - _$jscoverage['/runtime/scope.js'].lineData[123] = 0; + _$jscoverage['/runtime/scope.js'].lineData[120] = 0; _$jscoverage['/runtime/scope.js'].lineData[124] = 0; + _$jscoverage['/runtime/scope.js'].lineData[125] = 0; _$jscoverage['/runtime/scope.js'].lineData[126] = 0; - _$jscoverage['/runtime/scope.js'].lineData[129] = 0; - _$jscoverage['/runtime/scope.js'].lineData[130] = 0; + _$jscoverage['/runtime/scope.js'].lineData[128] = 0; _$jscoverage['/runtime/scope.js'].lineData[131] = 0; - _$jscoverage['/runtime/scope.js'].lineData[134] = 0; + _$jscoverage['/runtime/scope.js'].lineData[132] = 0; + _$jscoverage['/runtime/scope.js'].lineData[133] = 0; _$jscoverage['/runtime/scope.js'].lineData[136] = 0; _$jscoverage['/runtime/scope.js'].lineData[138] = 0; _$jscoverage['/runtime/scope.js'].lineData[140] = 0; - _$jscoverage['/runtime/scope.js'].lineData[141] = 0; - _$jscoverage['/runtime/scope.js'].lineData[144] = 0; + _$jscoverage['/runtime/scope.js'].lineData[142] = 0; + _$jscoverage['/runtime/scope.js'].lineData[143] = 0; _$jscoverage['/runtime/scope.js'].lineData[146] = 0; - _$jscoverage['/runtime/scope.js'].lineData[150] = 0; + _$jscoverage['/runtime/scope.js'].lineData[148] = 0; + _$jscoverage['/runtime/scope.js'].lineData[152] = 0; } if (! _$jscoverage['/runtime/scope.js'].functionData) { _$jscoverage['/runtime/scope.js'].functionData = []; @@ -349,108 +350,118 @@ if (! _$jscoverage['/runtime/scope.js'].branchData) { _$jscoverage['/runtime/scope.js'].branchData['114'][1] = new BranchData(); _$jscoverage['/runtime/scope.js'].branchData['115'] = []; _$jscoverage['/runtime/scope.js'].branchData['115'][1] = new BranchData(); - _$jscoverage['/runtime/scope.js'].branchData['122'] = []; - _$jscoverage['/runtime/scope.js'].branchData['122'][1] = new BranchData(); - _$jscoverage['/runtime/scope.js'].branchData['122'][2] = new BranchData(); - _$jscoverage['/runtime/scope.js'].branchData['129'] = []; - _$jscoverage['/runtime/scope.js'].branchData['129'][1] = new BranchData(); - _$jscoverage['/runtime/scope.js'].branchData['130'] = []; - _$jscoverage['/runtime/scope.js'].branchData['130'][1] = new BranchData(); - _$jscoverage['/runtime/scope.js'].branchData['134'] = []; - _$jscoverage['/runtime/scope.js'].branchData['134'][1] = new BranchData(); - _$jscoverage['/runtime/scope.js'].branchData['140'] = []; - _$jscoverage['/runtime/scope.js'].branchData['140'][1] = new BranchData(); + _$jscoverage['/runtime/scope.js'].branchData['124'] = []; + _$jscoverage['/runtime/scope.js'].branchData['124'][1] = new BranchData(); + _$jscoverage['/runtime/scope.js'].branchData['124'][2] = new BranchData(); + _$jscoverage['/runtime/scope.js'].branchData['124'][3] = new BranchData(); + _$jscoverage['/runtime/scope.js'].branchData['124'][4] = new BranchData(); + _$jscoverage['/runtime/scope.js'].branchData['131'] = []; + _$jscoverage['/runtime/scope.js'].branchData['131'][1] = new BranchData(); + _$jscoverage['/runtime/scope.js'].branchData['132'] = []; + _$jscoverage['/runtime/scope.js'].branchData['132'][1] = new BranchData(); + _$jscoverage['/runtime/scope.js'].branchData['136'] = []; + _$jscoverage['/runtime/scope.js'].branchData['136'][1] = new BranchData(); + _$jscoverage['/runtime/scope.js'].branchData['142'] = []; + _$jscoverage['/runtime/scope.js'].branchData['142'][1] = new BranchData(); } -_$jscoverage['/runtime/scope.js'].branchData['140'][1].init(1314, 12, 'endScopeFind'); -function visit43_140_1(result) { - _$jscoverage['/runtime/scope.js'].branchData['140'][1].ranCondition(result); +_$jscoverage['/runtime/scope.js'].branchData['142'][1].init(1412, 12, 'endScopeFind'); +function visit46_142_1(result) { + _$jscoverage['/runtime/scope.js'].branchData['142'][1].ranCondition(result); return result; -}_$jscoverage['/runtime/scope.js'].branchData['134'][1].init(210, 23, 'typeof v === \'function\''); -function visit42_134_1(result) { - _$jscoverage['/runtime/scope.js'].branchData['134'][1].ranCondition(result); +}_$jscoverage['/runtime/scope.js'].branchData['136'][1].init(210, 23, 'typeof v === \'function\''); +function visit45_136_1(result) { + _$jscoverage['/runtime/scope.js'].branchData['136'][1].ranCondition(result); return result; -}_$jscoverage['/runtime/scope.js'].branchData['130'][1].init(26, 14, 'v && v.isScope'); -function visit41_130_1(result) { - _$jscoverage['/runtime/scope.js'].branchData['130'][1].ranCondition(result); +}_$jscoverage['/runtime/scope.js'].branchData['132'][1].init(26, 14, 'v && v.isScope'); +function visit44_132_1(result) { + _$jscoverage['/runtime/scope.js'].branchData['132'][1].ranCondition(result); return result; -}_$jscoverage['/runtime/scope.js'].branchData['129'][1].init(862, 5, 'valid'); -function visit40_129_1(result) { - _$jscoverage['/runtime/scope.js'].branchData['129'][1].ranCondition(result); +}_$jscoverage['/runtime/scope.js'].branchData['131'][1].init(960, 5, 'valid'); +function visit43_131_1(result) { + _$jscoverage['/runtime/scope.js'].branchData['131'][1].ranCondition(result); return result; -}_$jscoverage['/runtime/scope.js'].branchData['122'][2].init(83, 21, 'typeof v !== \'object\''); -function visit39_122_2(result) { - _$jscoverage['/runtime/scope.js'].branchData['122'][2].ranCondition(result); +}_$jscoverage['/runtime/scope.js'].branchData['124'][4].init(96, 21, 'typeof v !== \'object\''); +function visit42_124_4(result) { + _$jscoverage['/runtime/scope.js'].branchData['124'][4].ranCondition(result); return result; -}_$jscoverage['/runtime/scope.js'].branchData['122'][1].init(83, 34, 'typeof v !== \'object\' || !(p in v)'); -function visit38_122_1(result) { - _$jscoverage['/runtime/scope.js'].branchData['122'][1].ranCondition(result); +}_$jscoverage['/runtime/scope.js'].branchData['124'][3].init(96, 34, 'typeof v !== \'object\' || !(p in v)'); +function visit41_124_3(result) { + _$jscoverage['/runtime/scope.js'].branchData['124'][3].ranCondition(result); + return result; +}_$jscoverage['/runtime/scope.js'].branchData['124'][2].init(83, 9, 'v == null'); +function visit40_124_2(result) { + _$jscoverage['/runtime/scope.js'].branchData['124'][2].ranCondition(result); + return result; +}_$jscoverage['/runtime/scope.js'].branchData['124'][1].init(83, 47, 'v == null || typeof v !== \'object\' || !(p in v)'); +function visit39_124_1(result) { + _$jscoverage['/runtime/scope.js'].branchData['124'][1].ranCondition(result); return result; }_$jscoverage['/runtime/scope.js'].branchData['115'][1].init(30, 13, '!scope.has(p)'); -function visit37_115_1(result) { +function visit38_115_1(result) { _$jscoverage['/runtime/scope.js'].branchData['115'][1].ranCondition(result); return result; }_$jscoverage['/runtime/scope.js'].branchData['114'][1].init(203, 11, 'v === scope'); -function visit36_114_1(result) { +function visit37_114_1(result) { _$jscoverage['/runtime/scope.js'].branchData['114'][1].ranCondition(result); return result; }_$jscoverage['/runtime/scope.js'].branchData['110'][1].init(61, 12, 'p === \'this\''); -function visit35_110_1(result) { +function visit36_110_1(result) { _$jscoverage['/runtime/scope.js'].branchData['110'][1].ranCondition(result); return result; }_$jscoverage['/runtime/scope.js'].branchData['108'][1].init(86, 7, 'i < len'); -function visit34_108_1(result) { +function visit35_108_1(result) { _$jscoverage['/runtime/scope.js'].branchData['108'][1].ranCondition(result); return result; }_$jscoverage['/runtime/scope.js'].branchData['96'][1].init(25, 16, 'scope && depth--'); -function visit33_96_1(result) { +function visit34_96_1(result) { _$jscoverage['/runtime/scope.js'].branchData['96'][1].ranCondition(result); return result; }_$jscoverage['/runtime/scope.js'].branchData['95'][1].init(427, 5, 'depth'); -function visit32_95_1(result) { +function visit33_95_1(result) { _$jscoverage['/runtime/scope.js'].branchData['95'][1].ranCondition(result); return result; }_$jscoverage['/runtime/scope.js'].branchData['92'][1].init(310, 19, 'parts[0] === \'root\''); -function visit31_92_1(result) { +function visit32_92_1(result) { _$jscoverage['/runtime/scope.js'].branchData['92'][1].ranCondition(result); return result; }_$jscoverage['/runtime/scope.js'].branchData['82'][1].init(69, 12, 'name === \'.\''); -function visit30_82_1(result) { +function visit31_82_1(result) { _$jscoverage['/runtime/scope.js'].branchData['82'][1].ranCondition(result); return result; }_$jscoverage['/runtime/scope.js'].branchData['73'][2].init(191, 24, 'typeof data === \'object\''); -function visit29_73_2(result) { +function visit30_73_2(result) { _$jscoverage['/runtime/scope.js'].branchData['73'][2].ranCondition(result); return result; }_$jscoverage['/runtime/scope.js'].branchData['73'][1].init(191, 42, 'typeof data === \'object\' && (name in data)'); -function visit28_73_1(result) { +function visit29_73_1(result) { _$jscoverage['/runtime/scope.js'].branchData['73'][1].ranCondition(result); return result; }_$jscoverage['/runtime/scope.js'].branchData['69'][1].init(92, 24, 'affix && (name in affix)'); -function visit27_69_1(result) { +function visit28_69_1(result) { _$jscoverage['/runtime/scope.js'].branchData['69'][1].ranCondition(result); return result; }_$jscoverage['/runtime/scope.js'].branchData['61'][2].init(187, 24, 'typeof data === \'object\''); -function visit26_61_2(result) { +function visit27_61_2(result) { _$jscoverage['/runtime/scope.js'].branchData['61'][2].ranCondition(result); return result; }_$jscoverage['/runtime/scope.js'].branchData['61'][1].init(187, 42, 'typeof data === \'object\' && (name in data)'); -function visit25_61_1(result) { +function visit26_61_1(result) { _$jscoverage['/runtime/scope.js'].branchData['61'][1].ranCondition(result); return result; }_$jscoverage['/runtime/scope.js'].branchData['57'][1].init(92, 24, 'affix && (name in affix)'); -function visit24_57_1(result) { +function visit25_57_1(result) { _$jscoverage['/runtime/scope.js'].branchData['57'][1].ranCondition(result); return result; }_$jscoverage['/runtime/scope.js'].branchData['47'][1].init(18, 11, '!this.affix'); -function visit23_47_1(result) { +function visit24_47_1(result) { _$jscoverage['/runtime/scope.js'].branchData['47'][1].ranCondition(result); return result; }_$jscoverage['/runtime/scope.js'].branchData['32'][1].init(18, 11, '!this.affix'); -function visit22_32_1(result) { +function visit23_32_1(result) { _$jscoverage['/runtime/scope.js'].branchData['32'][1].ranCondition(result); return result; }_$jscoverage['/runtime/scope.js'].branchData['8'][1].init(37, 10, 'data || {}'); -function visit21_8_1(result) { +function visit22_8_1(result) { _$jscoverage['/runtime/scope.js'].branchData['8'][1].ranCondition(result); return result; }_$jscoverage['/runtime/scope.js'].lineData[5]++; @@ -460,7 +471,7 @@ KISSY.add(function(S) { function Scope(data, affix) { _$jscoverage['/runtime/scope.js'].functionData[1]++; _$jscoverage['/runtime/scope.js'].lineData[8]++; - this.data = visit21_8_1(data || {}); + this.data = visit22_8_1(data || {}); _$jscoverage['/runtime/scope.js'].lineData[10]++; this.affix = affix; _$jscoverage['/runtime/scope.js'].lineData[11]++; @@ -489,7 +500,7 @@ KISSY.add(function(S) { set: function(name, value) { _$jscoverage['/runtime/scope.js'].functionData[5]++; _$jscoverage['/runtime/scope.js'].lineData[32]++; - if (visit22_32_1(!this.affix)) { + if (visit23_32_1(!this.affix)) { _$jscoverage['/runtime/scope.js'].lineData[33]++; this.affix = {}; } @@ -509,7 +520,7 @@ KISSY.add(function(S) { mix: function(v) { _$jscoverage['/runtime/scope.js'].functionData[8]++; _$jscoverage['/runtime/scope.js'].lineData[47]++; - if (visit23_47_1(!this.affix)) { + if (visit24_47_1(!this.affix)) { _$jscoverage['/runtime/scope.js'].lineData[48]++; this.affix = {}; } @@ -523,12 +534,12 @@ KISSY.add(function(S) { _$jscoverage['/runtime/scope.js'].lineData[55]++; var affix = this.affix; _$jscoverage['/runtime/scope.js'].lineData[57]++; - if (visit24_57_1(affix && (name in affix))) { + if (visit25_57_1(affix && (name in affix))) { _$jscoverage['/runtime/scope.js'].lineData[58]++; return true; } _$jscoverage['/runtime/scope.js'].lineData[61]++; - return visit25_61_1(visit26_61_2(typeof data === 'object') && (name in data)); + return visit26_61_1(visit27_61_2(typeof data === 'object') && (name in data)); }, get: function(name) { _$jscoverage['/runtime/scope.js'].functionData[10]++; @@ -537,12 +548,12 @@ KISSY.add(function(S) { _$jscoverage['/runtime/scope.js'].lineData[67]++; var affix = this.affix; _$jscoverage['/runtime/scope.js'].lineData[69]++; - if (visit27_69_1(affix && (name in affix))) { + if (visit28_69_1(affix && (name in affix))) { _$jscoverage['/runtime/scope.js'].lineData[70]++; return affix[name]; } _$jscoverage['/runtime/scope.js'].lineData[73]++; - if (visit28_73_1(visit29_73_2(typeof data === 'object') && (name in data))) { + if (visit29_73_1(visit30_73_2(typeof data === 'object') && (name in data))) { _$jscoverage['/runtime/scope.js'].lineData[74]++; return data[name]; } @@ -552,7 +563,7 @@ KISSY.add(function(S) { resolve: function(name, depth) { _$jscoverage['/runtime/scope.js'].functionData[11]++; _$jscoverage['/runtime/scope.js'].lineData[82]++; - if (visit30_82_1(name === '.')) { + if (visit31_82_1(name === '.')) { _$jscoverage['/runtime/scope.js'].lineData[83]++; name = 'this'; } @@ -561,16 +572,16 @@ KISSY.add(function(S) { _$jscoverage['/runtime/scope.js'].lineData[88]++; var scope = this, len, i, v, p, valid; _$jscoverage['/runtime/scope.js'].lineData[92]++; - if (visit31_92_1(parts[0] === 'root')) { + if (visit32_92_1(parts[0] === 'root')) { _$jscoverage['/runtime/scope.js'].lineData[93]++; parts.shift(); _$jscoverage['/runtime/scope.js'].lineData[94]++; scope = scope.root; } else { _$jscoverage['/runtime/scope.js'].lineData[95]++; - if (visit32_95_1(depth)) { + if (visit33_95_1(depth)) { _$jscoverage['/runtime/scope.js'].lineData[96]++; - while (visit33_96_1(scope && depth--)) { + while (visit34_96_1(scope && depth--)) { _$jscoverage['/runtime/scope.js'].lineData[97]++; scope = scope.parent; } @@ -587,65 +598,68 @@ KISSY.add(function(S) { _$jscoverage['/runtime/scope.js'].lineData[107]++; v = scope; _$jscoverage['/runtime/scope.js'].lineData[108]++; - for (i = 0; visit34_108_1(i < len); i++) { + for (i = 0; visit35_108_1(i < len); i++) { _$jscoverage['/runtime/scope.js'].lineData[109]++; p = parts[i]; _$jscoverage['/runtime/scope.js'].lineData[110]++; - if (visit35_110_1(p === 'this')) { + if (visit36_110_1(p === 'this')) { _$jscoverage['/runtime/scope.js'].lineData[111]++; endScopeFind = 1; _$jscoverage['/runtime/scope.js'].lineData[112]++; continue; } _$jscoverage['/runtime/scope.js'].lineData[114]++; - if (visit36_114_1(v === scope)) { + if (visit37_114_1(v === scope)) { _$jscoverage['/runtime/scope.js'].lineData[115]++; - if (visit37_115_1(!scope.has(p))) { + if (visit38_115_1(!scope.has(p))) { _$jscoverage['/runtime/scope.js'].lineData[116]++; valid = 0; _$jscoverage['/runtime/scope.js'].lineData[117]++; break; + } else { + _$jscoverage['/runtime/scope.js'].lineData[119]++; + v = scope.get(p); + _$jscoverage['/runtime/scope.js'].lineData[120]++; + endScopeFind = 1; } - _$jscoverage['/runtime/scope.js'].lineData[119]++; - v = scope.get(p); } else { - _$jscoverage['/runtime/scope.js'].lineData[122]++; - if (visit38_122_1(visit39_122_2(typeof v !== 'object') || !(p in v))) { - _$jscoverage['/runtime/scope.js'].lineData[123]++; + _$jscoverage['/runtime/scope.js'].lineData[124]++; + if (visit39_124_1(visit40_124_2(v == null) || visit41_124_3(visit42_124_4(typeof v !== 'object') || !(p in v)))) { + _$jscoverage['/runtime/scope.js'].lineData[125]++; valid = 0; - _$jscoverage['/runtime/scope.js'].lineData[124]++; + _$jscoverage['/runtime/scope.js'].lineData[126]++; break; } - _$jscoverage['/runtime/scope.js'].lineData[126]++; + _$jscoverage['/runtime/scope.js'].lineData[128]++; v = v[p]; } } - _$jscoverage['/runtime/scope.js'].lineData[129]++; - if (visit40_129_1(valid)) { - _$jscoverage['/runtime/scope.js'].lineData[130]++; - if (visit41_130_1(v && v.isScope)) { - _$jscoverage['/runtime/scope.js'].lineData[131]++; + _$jscoverage['/runtime/scope.js'].lineData[131]++; + if (visit43_131_1(valid)) { + _$jscoverage['/runtime/scope.js'].lineData[132]++; + if (visit44_132_1(v && v.isScope)) { + _$jscoverage['/runtime/scope.js'].lineData[133]++; v = v.data; } - _$jscoverage['/runtime/scope.js'].lineData[134]++; - if (visit42_134_1(typeof v === 'function')) { - _$jscoverage['/runtime/scope.js'].lineData[136]++; + _$jscoverage['/runtime/scope.js'].lineData[136]++; + if (visit45_136_1(typeof v === 'function')) { + _$jscoverage['/runtime/scope.js'].lineData[138]++; v = v.call(this.data); } - _$jscoverage['/runtime/scope.js'].lineData[138]++; + _$jscoverage['/runtime/scope.js'].lineData[140]++; return [v]; } - _$jscoverage['/runtime/scope.js'].lineData[140]++; - if (visit43_140_1(endScopeFind)) { - _$jscoverage['/runtime/scope.js'].lineData[141]++; + _$jscoverage['/runtime/scope.js'].lineData[142]++; + if (visit46_142_1(endScopeFind)) { + _$jscoverage['/runtime/scope.js'].lineData[143]++; break; } - _$jscoverage['/runtime/scope.js'].lineData[144]++; + _$jscoverage['/runtime/scope.js'].lineData[146]++; scope = scope.parent; } - _$jscoverage['/runtime/scope.js'].lineData[146]++; + _$jscoverage['/runtime/scope.js'].lineData[148]++; return false; }}; - _$jscoverage['/runtime/scope.js'].lineData[150]++; + _$jscoverage['/runtime/scope.js'].lineData[152]++; return Scope; }); diff --git a/src/xtemplate/sub-modules/runtime/src/runtime.js b/src/xtemplate/sub-modules/runtime/src/runtime.js index eae0cf1b2c..5de4bc24fc 100644 --- a/src/xtemplate/sub-modules/runtime/src/runtime.js +++ b/src/xtemplate/sub-modules/runtime/src/runtime.js @@ -6,7 +6,6 @@ KISSY.add(function (S, require) { var commands = require('./runtime/commands'); var Scope = require('./runtime/scope'); - var escapeHtml = S.escapeHtml; var logger = S.getLogger('s/xtemplate'); @@ -27,8 +26,42 @@ KISSY.add(function (S, require) { return cmd; } - function getProperty(name, scope, depth) { - return scope.resolve(name, depth); + function runInlineCommand(engine, scope, options, name, line, onlyCommand) { + var id0; + var config = engine.config; + var commands = config.commands; + var command1 = findCommand(commands, name); + if (command1) { + try { + id0 = command1.call(engine, scope, options); + } catch (e) { + S.error(e.message + ': "' + name + '" at line ' + line); + } + return { + find: true, + value: id0 + }; + } else if (onlyCommand) { + S.error('can not find command: ' + name + '" at line ' + line); + } + return { + find: false + }; + } + + function getProperty(engine, scope, name, depth, line) { + var id0; + var config = engine.config; + var logFn = config.silent ? info : S.error; + var tmp2 = scope.resolve(name, depth); + if (tmp2 === false) { + logFn('can not find property: "' + name + '" at line ' + line, 'warn'); + // undefined for expression + // {{n+2}} + } else { + id0 = tmp2[0]; + } + return id0; } var utils = { @@ -39,7 +72,7 @@ KISSY.add(function (S, require) { var command = findCommand(commands, name); if (!command) { if (!options.params && !options.hash) { - var property = getProperty(name, scope); + var property = scope.resolve(name); if (property === false) { logFn('can not find property: "' + name + '" at line ' + line); property = ''; @@ -55,58 +88,59 @@ KISSY.add(function (S, require) { } options.params = [property]; } else { - S.error('can not find command module: ' + name + '" at line ' + line); + S.error('can not find command: ' + name + '" at line ' + line); return ''; } } - var ret = ''; + var ret; try { ret = command.call(engine, scope, options); } catch (e) { S.error(e.message + ': "' + name + '" at line ' + line); } - if (ret === undefined) { - ret = ''; - } return ret; }, - 'getExpression': function (exp, escaped) { + 'renderOutput': function (exp, escaped) { if (exp === undefined) { exp = ''; } return escaped && exp ? escapeHtml(exp) : exp; }, - 'getPropertyOrRunCommand': function (engine, scope, options, name, depth, line, escape, preserveUndefined) { - var id0; - var config = engine.config; - var commands = config.commands; - var command1 = findCommand(commands, name); - var logFn = config.silent ? info : S.error; - if (command1) { - try { - id0 = command1.call(engine, scope, options); - } catch (e) { - S.error(e.message + ': "' + name + '" at line ' + line); - return ''; - } + 'getProperty': function (engine, scope, name, depth, line) { + return getProperty(engine, scope, name, depth, line); + }, + + 'runInlineCommand': function (engine, scope, options, name, line) { + var id0 = '', + ret; + // command first + ret = runInlineCommand(engine, scope, options, name, line); + if (ret.find) { + id0 = ret.value; } - else { - var tmp2 = getProperty(name, scope, depth); - if (tmp2 === false) { - logFn('can not find property: "' + name + '" at line ' + line, 'warn'); - // undefined for expression - // {{n+2}} - return preserveUndefined ? undefined : ''; - } else { - id0 = tmp2[0]; - } + return id0; + }, + + 'getPropertyOrRunCommand': function (engine, scope, options, name, depth, line) { + var id0, ret; + + var onlyCommand = options.hash || options.params; + // {{this.xx}} + + // command first + ret = runInlineCommand(engine, scope, options, name, line, onlyCommand); + + if (ret.find) { + id0 = ret.value; } - if (!preserveUndefined && id0 === undefined) { - id0 = ''; + // if without hash or parameter, it may be property + else if (!onlyCommand) { + id0 = getProperty(engine, scope, name, depth, line); } - return escape && id0 ? escapeHtml(id0) : id0; + + return id0; } }, diff --git a/src/xtemplate/sub-modules/runtime/src/runtime/commands.js b/src/xtemplate/sub-modules/runtime/src/runtime/commands.js index 417c3bcdc3..d697de1c60 100644 --- a/src/xtemplate/sub-modules/runtime/src/runtime/commands.js +++ b/src/xtemplate/sub-modules/runtime/src/runtime/commands.js @@ -9,6 +9,8 @@ KISSY.add(function (S, require) { var Scope = require('./scope'); commands = { + 'debugger': S.noop, + 'each': function (scope, config) { var params = config.params; var param0 = params[0]; @@ -165,5 +167,11 @@ KISSY.add(function (S, require) { } }; + if ('@DEBUG@') { + commands['debugger'] = function () { + S.globalEval('debugger'); + }; + } + return commands; }); \ No newline at end of file diff --git a/src/xtemplate/sub-modules/runtime/src/runtime/scope.js b/src/xtemplate/sub-modules/runtime/src/runtime/scope.js index b3bf71635b..ccd9427d6f 100644 --- a/src/xtemplate/sub-modules/runtime/src/runtime/scope.js +++ b/src/xtemplate/sub-modules/runtime/src/runtime/scope.js @@ -115,11 +115,13 @@ KISSY.add(function (S) { if (!scope.has(p)) { valid = 0; break; + } else { + v = scope.get(p); + endScopeFind = 1; } - v = scope.get(p); } else { // may not be object at all - if (typeof v !== 'object' || !(p in v)) { + if (v == null || typeof v !== 'object' || !(p in v)) { valid = 0; break; } diff --git a/src/xtemplate/tests/specs/error.js b/src/xtemplate/tests/specs/error.js index 58fdfe3e9f..2df2c37b47 100644 --- a/src/xtemplate/tests/specs/error.js +++ b/src/xtemplate/tests/specs/error.js @@ -92,7 +92,7 @@ KISSY.add(function (S, require) { if (!KISSY.config('debug')) { return; } - var tpl = '{{#if n === n1}}\n' + + var tpl = '{{#if n===n1}}\n' + 'n eq n1\n' + '{{/with}}'; diff --git a/src/xtemplate/tests/specs/feature.js b/src/xtemplate/tests/specs/feature.js index 5a0ed56173..49884b2832 100644 --- a/src/xtemplate/tests/specs/feature.js +++ b/src/xtemplate/tests/specs/feature.js @@ -58,6 +58,20 @@ KISSY.add(function (S, require) { expect(render).toBe('1'); }); + it('will render empty instead of undefined', function () { + var tpl = '{{data.x}}'; + + var data = { + data: { + p: 1 + } + }; + + var render = new XTemplate(tpl).render(data); + + expect(render).toBe(''); + }); + it('support array index', function () { var tpl = '{{data.1.1}}'; @@ -88,11 +102,9 @@ KISSY.add(function (S, require) { it('support cache', function () { var tpl = '{{title}}'; - expect(new XTemplate(tpl).tpl).toBe(new XTemplate(tpl).tpl); }); - it('support {{#if}} {{@', function () { var tpl = '{{#if title}}has title{{/if}}\n' + '{{@if title2}}has title2{{else}}not has title2{{/if}}'; @@ -108,32 +120,54 @@ KISSY.add(function (S, require) { 'not has title2'); }); - it('does not support negative number', function () { - var tpl = '{{#if n===0-1}}-1{{else}}1{{/if}}'; + describe('negative number and minus', function () { + it('support 0-1', function () { + var tpl = '{{#if n===0-1}}-1{{else}}1{{/if}}'; - var data = { - n: -1 - }; + var data = { + n: -1 + }; - var render = new XTemplate(tpl).render(data); + var render = new XTemplate(tpl).render(data); - expect(render).toBe('-1'); + expect(render).toBe('-1'); - tpl = '{{#if n===1}}-1{{else}}1{{/if}}'; + tpl = '{{#if n===1}}-1{{else}}1{{/if}}'; - data = { - n: 1 - }; + data = { + n: 1 + }; - try { - new XTemplate(tpl).render(data); - } catch (e) { - expect(e.message.indexOf('Syntax error') > -1).toBeTruthy(); - } + try { + new XTemplate(tpl).render(data); + } catch (e) { + expect(e.message.indexOf('Syntax error') > -1).toBeTruthy(); + } + }); + + it('support simple -1',function(){ + var tpl = '{{-1}}'; + + var render = new XTemplate(tpl).render(); + + expect(render).toBe('-1'); + }); + + it('support -1', function () { + var tpl = '{{#if n===-1}}-1{{else}}1{{/if}}'; + + var data = { + n: -1 + }; + + var render = new XTemplate(tpl).render(data); + + expect(render).toBe('-1'); + }); }); describe('each', function () { - it('support xindex name',function(){ + it('support xindex name', function () { var tpl = '{{#each data "v" "i"}}{{i}}: {{v}}{{/each}}'; var data = { data: [1, 2] @@ -142,7 +176,7 @@ KISSY.add(function (S, require) { expect(render).toBe('0: 11: 2'); }); - it('support value name',function(){ + it('support value name', function () { var tpl = '{{#each data "v"}}{{xindex}}: {{v}}{{/each}}'; var data = { data: [1, 2] @@ -240,7 +274,7 @@ KISSY.add(function (S, require) { it('support {{^', function () { var tpl = '{{^each x}}wrong{{else}}{{title}}{{/each}}' + - '{{#if y === 0}}0{{/if}}' + + '{{#if y===0}}0{{/if}}' + '{{^if z===0}}1{{/if}}' + '{{^if a!==1}}1{{/if}}' + '{{#if a!==0}}1{{/if}}'; @@ -517,6 +551,34 @@ KISSY.add(function (S, require) { expect(render).toBe('my <a> is '); }); + it('escape in inline command', function () { + var tpl = 'my {{title}} is {{{title}}}'; + + var render = new XTemplate(tpl, { + commands: { + title: function () { + return ''; + } + } + }).render(); + + expect(render).toBe('my <a> is '); + }); + + it('escape in inline command', function () { + var tpl = 'my {{title 2}} is {{{title 2}}}'; + + var render = new XTemplate(tpl, { + commands: { + title: function () { + return ''; + } + } + }).render(); + + expect(render).toBe('my <a> is '); + }); + it('support escape " in tpl', function () { var tpl = '{{{"haha \\""}}}'; @@ -552,16 +614,104 @@ KISSY.add(function (S, require) { render = new XTemplate(tpl).render(data); + expect(render).toBe('haha \\{{title}}'); + + tpl = 'haha \\\\\\\\\\{{title}}'; + data = { + title: 'a' + }; + + render = new XTemplate(tpl).render(data); + expect(render).toBe('haha \\\\{{title}}'); }); }); - describe('command', function () { + it('../ or this can skip command finding', function () { + var tpl = '{{this.title}}{{#with d}}{{../title}}{{/with}}'; - it('support global command for variable', function () { + var data = { + title: '1', + d: { + + } + }; + + var render = new XTemplate(tpl, { + commands: { + title: function () { + return '2'; + } + } + }).render(data); + + expect(render).toBe('11'); + }); + it('skip command in expression',function(){ + var tpl = '{{title+3}}'; + + var data = { + title: '1' + }; + + var render = new XTemplate(tpl, { + commands: { + title: function () { + return '2'; + } + } + }).render(data); + + expect(render).toBe('13'); + }); + + it('can skip property finding', function () { + var tpl = '{{title 1}}{{#with d}}{{title 2}}{{/with}}'; + + var data = { + title: '1', + d: { + + } + }; + + var render = new XTemplate(tpl, { + commands: { + title: function () { + return '2'; + } + } + }).render(data); + + expect(render).toBe('22'); + }); + + it('will only find property for param', function () { + var tpl = '{{#with title}}{{c}}{{/with}}'; + + var data = { + title: { + c: 1 + } + }; + + var render = new XTemplate(tpl, { + commands: { + title: function () { + return { + c: 2 + }; + } + } + }).render(data); + + expect(render).toBe('1'); + }); + + it('support global command for variable', function () { XTemplate.addCommand('globalXcmd', function (scope, config) { return 'global-' + config.params[0]; }); @@ -724,6 +874,16 @@ KISSY.add(function (S, require) { }); describe('expression', function () { + it('support unary expression', function () { + var tpl = '{{#if !n}}1{{/if}}'; + expect(new XTemplate(tpl).render({ + n: 1 + })).toBe(''); + expect(new XTemplate(tpl).render({ + n: 0 + })).toBe('1'); + }); + it('support escapeHtml', function () { var tpl = '{{{"2<\\\\"+1}}} {{{"2<\\\\"+1}}}'; expect(new XTemplate(tpl).render()).toBe('2<\\1 2<\\1'); @@ -787,20 +947,20 @@ KISSY.add(function (S, require) { it('support relational expression', function () { - var tpl = '{{#if n > n2+4/2}}' + + var tpl = '{{#if n>n2+4/2}}' + '{{n+1}}' + '{{else}}' + '{{n2+1}}' + '{{/if}}'; - var tpl3 = '{{#if n === n2+4/2}}' + + var tpl3 = '{{#if n===n2+4/2}}' + '{{n+1}}' + '{{else}}' + '{{n2+1}}' + '{{/if}}'; - var tpl4 = '{{#if n !== n2+4/2}}' + + var tpl4 = '{{#if n!==n2+4/2}}' + '{{n+1}}' + '{{else}}' + '{{n2+1}}' + @@ -837,9 +997,8 @@ KISSY.add(function (S, require) { it('support relational expression in each', function () { - var tpl = '{{#each data}}' + - '{{#if this > ../limit+1}}' + + '{{#if this>../limit+1}}' + '{{this+1}}-{{xindex+1}}-{{xcount}}|' + '{{/if}}' + '{{/each}}' + @@ -854,16 +1013,12 @@ KISSY.add(function (S, require) { }); - it('support relational expression in with', function () { - var tpl = '{{#with data}}' + - '{{#if n > ../limit/5}}' + + '{{#if n>../limit/5}}' + '{{n+1}}' + '{{/if}}' + - '{{/with}}' + - - ''; + '{{/with}}'; var data = { data: { @@ -877,8 +1032,8 @@ KISSY.add(function (S, require) { }); it('support conditional expression', function () { - var tpl = '{{#if x>1 && x<10}}1{{else}}0{{/if}}' + - '{{#if q && q.x<10}}1{{else}}0{{/if}}'; + var tpl = '{{#if x>1&&x<10}}1{{else}}0{{/if}}' + + '{{#if q&&q.x<10}}1{{else}}0{{/if}}'; expect(new XTemplate(tpl, { name: 'conditional-expression' @@ -1110,6 +1265,5 @@ KISSY.add(function (S, require) { }); }); - }); }); \ No newline at end of file diff --git a/src/xtemplate/tests/specs/sub-template.js b/src/xtemplate/tests/specs/sub-template.js index 11adb0323e..6b7e0be42e 100644 --- a/src/xtemplate/tests/specs/sub-template.js +++ b/src/xtemplate/tests/specs/sub-template.js @@ -54,7 +54,6 @@ KISSY.add(function (S, require) { expect(render).toBe('1'); }); - it('support unescape sub template name', function () { var tpl = '{{{include "./sub-tpl-3-1"}}}'; @@ -145,14 +144,17 @@ KISSY.add(function (S, require) { KISSY.use('xtpls/a-xtpl', function (S, A) { ret = new XTemplate(A).render({ a: 1, - b: 2 + d:3, + b: { + c:2 + } }); }); waitsFor(function () { return !!ret; }); runs(function () { - expect(ret).toBe('12'); + expect(ret).toBe('123'); }); }); }); diff --git a/src/xtemplate/tests/specs/xtpls/a-xtpl.js b/src/xtemplate/tests/specs/xtpls/a-xtpl.js index 8ecbfbd54a..3c855257d4 100644 --- a/src/xtemplate/tests/specs/xtpls/a-xtpl.js +++ b/src/xtemplate/tests/specs/xtpls/a-xtpl.js @@ -1,19 +1,22 @@ /** Compiled By kissy-xtemplate */ KISSY.add(function (S, require, exports, module) { - return function (scopes, S, undefined) { + /*jshint quotmark: false, unused:false, indent:false*/ + return function (scope, S, undefined) { var buffer = "", config = this.config, engine = this, moduleWrap, utils = config.utils; - if (typeof module != "undefined") { + if (typeof module !== "undefined" && module.kissy) { moduleWrap = module; } - var runBlockCommandUtil = utils["runBlockCommand"], - getExpressionUtil = utils["getExpression"], - getPropertyOrRunCommandUtil = utils["getPropertyOrRunCommand"]; + var runBlockCommandUtil = utils.runBlockCommand, + renderOutputUtil = utils.renderOutput, + getPropertyUtil = utils.getProperty, + runInlineCommandUtil = utils.runInlineCommand, + getPropertyOrRunCommandUtil = utils.getPropertyOrRunCommand; buffer += ''; - var id0 = getPropertyOrRunCommandUtil(engine, scopes, {}, "a", 0, 1, undefined, false); - buffer += getExpressionUtil(id0, true); + var id0 = getPropertyOrRunCommandUtil(engine, scope, {}, "a", 0, 1); + buffer += renderOutputUtil(id0, true); buffer += ''; var config2 = {}; var params3 = []; @@ -21,10 +24,10 @@ KISSY.add(function (S, require, exports, module) { config2.params = params3; if (moduleWrap) { require("./b-xtpl"); - config2.params[0] = moduleWrap.resolveByName(config2.params[0]) + config2.params[0] = moduleWrap.resolveByName(config2.params[0]); } - var id1 = getPropertyOrRunCommandUtil(engine, scopes, config2, "include", 0, 1, true, undefined); - buffer += id1; + var id1 = runInlineCommandUtil(engine, scope, config2, "include", 1); + buffer += renderOutputUtil(id1, true); return buffer; - } + }; }); \ No newline at end of file diff --git a/src/xtemplate/tests/specs/xtpls/b-xtpl.js b/src/xtemplate/tests/specs/xtpls/b-xtpl.js index 48be87198c..79184decab 100644 --- a/src/xtemplate/tests/specs/xtpls/b-xtpl.js +++ b/src/xtemplate/tests/specs/xtpls/b-xtpl.js @@ -1,19 +1,37 @@ /** Compiled By kissy-xtemplate */ KISSY.add(function (S, require, exports, module) { - return function (scopes, S, undefined) { + /*jshint quotmark: false, unused:false, indent:false*/ + return function (scope, S, undefined) { var buffer = "", config = this.config, engine = this, moduleWrap, utils = config.utils; - if (typeof module != "undefined") { + if (typeof module !== "undefined" && module.kissy) { moduleWrap = module; } - var runBlockCommandUtil = utils["runBlockCommand"], - getExpressionUtil = utils["getExpression"], - getPropertyOrRunCommandUtil = utils["getPropertyOrRunCommand"]; + var runBlockCommandUtil = utils.runBlockCommand, + renderOutputUtil = utils.renderOutput, + getPropertyUtil = utils.getProperty, + runInlineCommandUtil = utils.runInlineCommand, + getPropertyOrRunCommandUtil = utils.getPropertyOrRunCommand; buffer += ''; - var id0 = getPropertyOrRunCommandUtil(engine, scopes, {}, "b", 0, 1, undefined, false); - buffer += getExpressionUtil(id0, true); + var config0 = {}; + var params1 = []; + var id2 = getPropertyUtil(engine, scope, "b", 0, 1); + params1.push(id2); + config0.params = params1; + config0.fn = function (scope) { + var buffer = ""; + buffer += ''; + var id3 = getPropertyOrRunCommandUtil(engine, scope, {}, "c", 0, 1); + buffer += renderOutputUtil(id3, true); + buffer += ''; + var id4 = getPropertyUtil(engine, scope, "d", 1, 1); + buffer += renderOutputUtil(id4, true); + buffer += ''; + return buffer; + }; + buffer += runBlockCommandUtil(engine, scope, config0, "with", 1); return buffer; - } + }; }); \ No newline at end of file diff --git a/src/xtemplate/tests/specs/xtpls/b.xtpl.html b/src/xtemplate/tests/specs/xtpls/b.xtpl.html index db44937fb5..3ba6dfe08f 100644 --- a/src/xtemplate/tests/specs/xtpls/b.xtpl.html +++ b/src/xtemplate/tests/specs/xtpls/b.xtpl.html @@ -1 +1 @@ -{{b}} \ No newline at end of file +{{#with b}}{{c}}{{../d}}{{/with}} \ No newline at end of file diff --git a/src/xtemplate/tests/specs/xtpls/compile.bat b/src/xtemplate/tests/specs/xtpls/compile.bat new file mode 100644 index 0000000000..2913e30883 --- /dev/null +++ b/src/xtemplate/tests/specs/xtpls/compile.bat @@ -0,0 +1 @@ +node ../../../../../bin/kissy-xtemplate -p ./ \ No newline at end of file diff --git a/tools/jasmine/jasmine.console_reporter.js b/tools/jasmine/jasmine.console_reporter.js index b018f38179..894f339538 100644 --- a/tools/jasmine/jasmine.console_reporter.js +++ b/tools/jasmine/jasmine.console_reporter.js @@ -8,10 +8,7 @@ jasmine.getEnv().execute(); */ -(function (jasmine, console) { - if (!console) { - return; - } +(function (jasmine) { if (!jasmine) { throw "jasmine library isn't loaded!"; } @@ -28,9 +25,6 @@ }; var ConsoleReporter = function () { - if (!console || !console.log) { - throw "console isn't present!"; - } this.status = this.statuses.stopped; }; @@ -107,8 +101,10 @@ proto.log = function (str, color) { var text = (color != undefined) ? ANSI.colorize_text(str, color) : str; - console.log(text) + if(window.console){ + console.log(text) + } }; jasmine.ConsoleReporter = ConsoleReporter; -})(jasmine, window.console); +})(jasmine); diff --git a/tools/server/xtemplates/list.html b/tools/server/xtemplates/list.html index ca47a32fda..18e0ec37ad 100644 --- a/tools/server/xtemplates/list.html +++ b/tools/server/xtemplates/list.html @@ -13,7 +13,7 @@

    Index of {{cur}}

      - {{#if cur !== '/'}} + {{#if cur!=='/'}}
    • Parent Directory
    • {{/if}} {{#each files}} diff --git a/tools/test/test.js b/tools/test/test.js index 10e9ee8e06..60fc30e922 100644 --- a/tools/test/test.js +++ b/tools/test/test.js @@ -48,6 +48,7 @@ window.onload = function () { testIframe = document.createElement('iframe'); testIframe.height = 600; + testIframe.frameborder = 'none'; testIframe.style.cssText = 'width:100%;' + 'height:600px;' + '-webkit-overflow-scrolling: touch;' +