Browse files

gallery-2014.03.06-14-38 jafl gallery-neon

  • Loading branch information...
1 parent b003b99 commit 56f678daead836a610f392cc8c7d6303749d2d78 Eugene Kashida committed Mar 6, 2014
View
6 build/gallery-neon/gallery-neon-coverage.js
@@ -0,0 +1,6 @@
+if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
+if (!__coverage__['build/gallery-neon/gallery-neon.js']) {
+ __coverage__['build/gallery-neon/gallery-neon.js'] = {"path":"build/gallery-neon/gallery-neon.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":24},"end":{"line":1,"column":43}}},"2":{"name":"Neon","line":19,"loc":{"start":{"line":19,"column":0},"end":{"line":21,"column":0}}},"3":{"name":"neonOff","line":91,"loc":{"start":{"line":91,"column":0},"end":{"line":92,"column":0}}},"4":{"name":"neonOn","line":98,"loc":{"start":{"line":98,"column":0},"end":{"line":99,"column":0}}},"5":{"name":"show","line":140,"loc":{"start":{"line":140,"column":0},"end":{"line":141,"column":0}}},"6":{"name":"(anonymous_6)","line":160,"loc":{"start":{"line":160,"column":14},"end":{"line":161,"column":1}}},"7":{"name":"(anonymous_7)","line":167,"loc":{"start":{"line":167,"column":13},"end":{"line":168,"column":1}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":177,"column":105}},"2":{"start":{"line":19,"column":0},"end":{"line":23,"column":1}},"3":{"start":{"line":22,"column":1},"end":{"line":22,"column":48}},"4":{"start":{"line":25,"column":0},"end":{"line":25,"column":25}},"5":{"start":{"line":26,"column":0},"end":{"line":26,"column":19}},"6":{"start":{"line":28,"column":0},"end":{"line":89,"column":2}},"7":{"start":{"line":91,"column":0},"end":{"line":96,"column":1}},"8":{"start":{"line":93,"column":1},"end":{"line":93,"column":95}},"9":{"start":{"line":95,"column":1},"end":{"line":95,"column":39}},"10":{"start":{"line":98,"column":0},"end":{"line":138,"column":1}},"11":{"start":{"line":100,"column":1},"end":{"line":100,"column":22}},"12":{"start":{"line":101,"column":1},"end":{"line":121,"column":2}},"13":{"start":{"line":103,"column":2},"end":{"line":103,"column":30}},"14":{"start":{"line":104,"column":2},"end":{"line":109,"column":4}},"15":{"start":{"line":111,"column":2},"end":{"line":111,"column":76}},"16":{"start":{"line":115,"column":2},"end":{"line":120,"column":4}},"17":{"start":{"line":123,"column":1},"end":{"line":123,"column":88}},"18":{"start":{"line":124,"column":1},"end":{"line":124,"column":36}},"19":{"start":{"line":126,"column":1},"end":{"line":126,"column":37}},"20":{"start":{"line":127,"column":1},"end":{"line":130,"column":2}},"21":{"start":{"line":129,"column":2},"end":{"line":129,"column":88}},"22":{"start":{"line":132,"column":1},"end":{"line":132,"column":35}},"23":{"start":{"line":134,"column":1},"end":{"line":137,"column":2}},"24":{"start":{"line":136,"column":2},"end":{"line":136,"column":34}},"25":{"start":{"line":140,"column":0},"end":{"line":156,"column":1}},"26":{"start":{"line":142,"column":1},"end":{"line":145,"column":2}},"27":{"start":{"line":144,"column":2},"end":{"line":144,"column":9}},"28":{"start":{"line":146,"column":1},"end":{"line":146,"column":32}},"29":{"start":{"line":148,"column":1},"end":{"line":148,"column":34}},"30":{"start":{"line":149,"column":1},"end":{"line":149,"column":29}},"31":{"start":{"line":150,"column":1},"end":{"line":150,"column":64}},"32":{"start":{"line":151,"column":1},"end":{"line":151,"column":43}},"33":{"start":{"line":152,"column":1},"end":{"line":152,"column":90}},"34":{"start":{"line":153,"column":1},"end":{"line":153,"column":84}},"35":{"start":{"line":155,"column":1},"end":{"line":155,"column":21}},"36":{"start":{"line":158,"column":0},"end":{"line":171,"column":3}},"37":{"start":{"line":162,"column":2},"end":{"line":162,"column":36}},"38":{"start":{"line":163,"column":2},"end":{"line":163,"column":29}},"39":{"start":{"line":164,"column":2},"end":{"line":164,"column":24}},"40":{"start":{"line":169,"column":2},"end":{"line":169,"column":41}},"41":{"start":{"line":173,"column":0},"end":{"line":173,"column":22}},"42":{"start":{"line":174,"column":0},"end":{"line":174,"column":21}}},"branchMap":{"1":{"line":101,"type":"if","locations":[{"start":{"line":101,"column":1},"end":{"line":101,"column":1}},{"start":{"line":101,"column":1},"end":{"line":101,"column":1}}]},"2":{"line":127,"type":"if","locations":[{"start":{"line":127,"column":1},"end":{"line":127,"column":1}},{"start":{"line":127,"column":1},"end":{"line":127,"column":1}}]},"3":{"line":134,"type":"if","locations":[{"start":{"line":134,"column":1},"end":{"line":134,"column":1}},{"start":{"line":134,"column":1},"end":{"line":134,"column":1}}]},"4":{"line":142,"type":"if","locations":[{"start":{"line":142,"column":1},"end":{"line":142,"column":1}},{"start":{"line":142,"column":1},"end":{"line":142,"column":1}}]}},"code":["(function () { YUI.add('gallery-neon', function (Y, NAME) {","","\"use strict\";","","/**"," * @module gallery-neon"," */","","/**********************************************************************"," * Overrides Y.Node.show() to make it look like a flickering neon sign."," * "," * @main gallery-neon"," * @class Neon"," * @namespace Plugin"," * @extends Plugin.Base"," * @constructor"," * @param config {Object} configuration"," */","function Neon(","\t/* object */ config)","{","\tNeon.superclass.constructor.call(this, config);","}","","Neon.NAME = \"NeonPlugin\";","Neon.NS = \"neon\";","","Neon.ATTRS =","{","\t/**","\t * Background (starting) color. Must be parseable by Y.Color.toRGB().","\t * ","\t * @attribute backgroundColor","\t * @type {String}","\t */","\tbackgroundColor:","\t{","\t\tvalidator: Y.Lang.isString","\t},","","\t/**","\t * Text (ending) color. Must be parseable by Y.Color.toRGB().","\t * ","\t * @attribute textColor","\t * @type {String}","\t */","\ttextColor:","\t{","\t\tvalidator: Y.Lang.isString","\t},","","\t/**","\t * Text shadow *template* for setting text-shadow CSS3 property. Use","\t * {color} to mark where color should be inserted.","\t * ","\t * @attribute textShadow","\t * @type {String}","\t */","\ttextShadow:","\t{","\t\tvalidator: Y.Lang.isString","\t},","","\t/**","\t * The number of flickers before the text stays visible.","\t * ","\t * @attribute flickerCount","\t * @type {int}","\t * @default 10","\t */","\tflickerCount:","\t{","\t\tvalue: 10,","\t\tvalidator: Y.Lang.isNumber","\t},","","\t/**","\t * The easing to apply to the color animation.","\t * ","\t * @attribute easing","\t * @type {Function}","\t * @default Y.Easing.easeIn","\t */","\teasing:","\t{","\t\tvalue: Y.Easing.easeIn,","\t\tvalidator: Y.Lang.isFunction","\t}","};","","function neonOff()","{","\tY.later(Math.round(Math.random()*1000/(this.flicker_max - this.flicker_count)), this, neonOn);","","\tthis.node.setStyle('display', 'none');","}","","function neonOn()","{","\tthis.flicker_count--;","\tif (this.flicker_count > 0)","\t{","\t\tvar fn = this.get('easing');","\t\tvar color =","\t\t{","\t\t\tr: fn(this.flicker_count, parseInt(this.end_color[1],10), this.start_color[1]-this.end_color[1], this.flicker_max),","\t\t\tg: fn(this.flicker_count, parseInt(this.end_color[2],10), this.start_color[2]-this.end_color[2], this.flicker_max),","\t\t\tb: fn(this.flicker_count, parseInt(this.end_color[3],10), this.start_color[3]-this.end_color[3], this.flicker_max)","\t\t};","","\t\tY.later(Math.round(Math.random()*1000/this.flicker_count), this, neonOff);","\t}","\telse","\t{","\t\tvar color =","\t\t{","\t\t\tr: this.end_color[1],","\t\t\tg: this.end_color[2],","\t\t\tb: this.end_color[3]","\t\t};","\t}","","\tcolor = 'rgb('+Math.round(color.r)+','+Math.round(color.g)+','+Math.round(color.b)+')';","\tthis.node.setStyle('color', color);","","\tvar shadow = this.get('textShadow');","\tif (shadow)","\t{","\t\tthis.node.setStyle('textShadow', Y.Lang.sub(shadow, { color: Y.Color.toHex(color) }));","\t}","","\tthis.node.setStyle('display', '');","","\tif (this.flicker_count === 0)","\t{","\t\tthis.node.fire('neon:finished');","\t}","}","","function show()","{","\tif (!this._isHidden())","\t{","\t\treturn;","\t}","\tthis.neon.orig_show.call(this);","","\tvar plugin = this.neon;","\tplugin.node = this;","\tplugin.flicker_max = Math.max(0, plugin.get('flickerCount'));","\tplugin.flicker_count = plugin.flicker_max;","\tplugin.start_color = Y.Color.re_RGB.exec(Y.Color.toRGB(plugin.get('backgroundColor')));","\tplugin.end_color = Y.Color.re_RGB.exec(Y.Color.toRGB(plugin.get('textColor')));","","\tneonOn.call(plugin);","}","","Y.extend(Neon, Y.Plugin.Base,","{","\tinitializer: function(config)","\t{","\t\tvar host = this.get('host');","\t\tthis.orig_show = host.show;","\t\thost.show = show;","\t},","","\tdestructor: function()","\t{","\t\tthis.get('host').show = this.orig_show;","\t}","});","","Y.namespace(\"Plugin\");","Y.Plugin.Neon = Neon;","","","}, 'gallery-2014.03.06-14-38', {\"requires\": [\"node-style\", \"node-pluginhost\", \"anim-easing\", \"plugin\"]});","","}());"]};
+}
+var __cov_YGWvf3IRiKm$rWL_MFwxFQ = __coverage__['build/gallery-neon/gallery-neon.js'];
+__cov_YGWvf3IRiKm$rWL_MFwxFQ.s['1']++;YUI.add('gallery-neon',function(Y,NAME){'use strict';__cov_YGWvf3IRiKm$rWL_MFwxFQ.f['1']++;__cov_YGWvf3IRiKm$rWL_MFwxFQ.s['2']++;function Neon(config){__cov_YGWvf3IRiKm$rWL_MFwxFQ.f['2']++;__cov_YGWvf3IRiKm$rWL_MFwxFQ.s['3']++;Neon.superclass.constructor.call(this,config);}__cov_YGWvf3IRiKm$rWL_MFwxFQ.s['4']++;Neon.NAME='NeonPlugin';__cov_YGWvf3IRiKm$rWL_MFwxFQ.s['5']++;Neon.NS='neon';__cov_YGWvf3IRiKm$rWL_MFwxFQ.s['6']++;Neon.ATTRS={backgroundColor:{validator:Y.Lang.isString},textColor:{validator:Y.Lang.isString},textShadow:{validator:Y.Lang.isString},flickerCount:{value:10,validator:Y.Lang.isNumber},easing:{value:Y.Easing.easeIn,validator:Y.Lang.isFunction}};__cov_YGWvf3IRiKm$rWL_MFwxFQ.s['7']++;function neonOff(){__cov_YGWvf3IRiKm$rWL_MFwxFQ.f['3']++;__cov_YGWvf3IRiKm$rWL_MFwxFQ.s['8']++;Y.later(Math.round(Math.random()*1000/(this.flicker_max-this.flicker_count)),this,neonOn);__cov_YGWvf3IRiKm$rWL_MFwxFQ.s['9']++;this.node.setStyle('display','none');}__cov_YGWvf3IRiKm$rWL_MFwxFQ.s['10']++;function neonOn(){__cov_YGWvf3IRiKm$rWL_MFwxFQ.f['4']++;__cov_YGWvf3IRiKm$rWL_MFwxFQ.s['11']++;this.flicker_count--;__cov_YGWvf3IRiKm$rWL_MFwxFQ.s['12']++;if(this.flicker_count>0){__cov_YGWvf3IRiKm$rWL_MFwxFQ.b['1'][0]++;__cov_YGWvf3IRiKm$rWL_MFwxFQ.s['13']++;var fn=this.get('easing');__cov_YGWvf3IRiKm$rWL_MFwxFQ.s['14']++;var color={r:fn(this.flicker_count,parseInt(this.end_color[1],10),this.start_color[1]-this.end_color[1],this.flicker_max),g:fn(this.flicker_count,parseInt(this.end_color[2],10),this.start_color[2]-this.end_color[2],this.flicker_max),b:fn(this.flicker_count,parseInt(this.end_color[3],10),this.start_color[3]-this.end_color[3],this.flicker_max)};__cov_YGWvf3IRiKm$rWL_MFwxFQ.s['15']++;Y.later(Math.round(Math.random()*1000/this.flicker_count),this,neonOff);}else{__cov_YGWvf3IRiKm$rWL_MFwxFQ.b['1'][1]++;__cov_YGWvf3IRiKm$rWL_MFwxFQ.s['16']++;var color={r:this.end_color[1],g:this.end_color[2],b:this.end_color[3]};}__cov_YGWvf3IRiKm$rWL_MFwxFQ.s['17']++;color='rgb('+Math.round(color.r)+','+Math.round(color.g)+','+Math.round(color.b)+')';__cov_YGWvf3IRiKm$rWL_MFwxFQ.s['18']++;this.node.setStyle('color',color);__cov_YGWvf3IRiKm$rWL_MFwxFQ.s['19']++;var shadow=this.get('textShadow');__cov_YGWvf3IRiKm$rWL_MFwxFQ.s['20']++;if(shadow){__cov_YGWvf3IRiKm$rWL_MFwxFQ.b['2'][0]++;__cov_YGWvf3IRiKm$rWL_MFwxFQ.s['21']++;this.node.setStyle('textShadow',Y.Lang.sub(shadow,{color:Y.Color.toHex(color)}));}else{__cov_YGWvf3IRiKm$rWL_MFwxFQ.b['2'][1]++;}__cov_YGWvf3IRiKm$rWL_MFwxFQ.s['22']++;this.node.setStyle('display','');__cov_YGWvf3IRiKm$rWL_MFwxFQ.s['23']++;if(this.flicker_count===0){__cov_YGWvf3IRiKm$rWL_MFwxFQ.b['3'][0]++;__cov_YGWvf3IRiKm$rWL_MFwxFQ.s['24']++;this.node.fire('neon:finished');}else{__cov_YGWvf3IRiKm$rWL_MFwxFQ.b['3'][1]++;}}__cov_YGWvf3IRiKm$rWL_MFwxFQ.s['25']++;function show(){__cov_YGWvf3IRiKm$rWL_MFwxFQ.f['5']++;__cov_YGWvf3IRiKm$rWL_MFwxFQ.s['26']++;if(!this._isHidden()){__cov_YGWvf3IRiKm$rWL_MFwxFQ.b['4'][0]++;__cov_YGWvf3IRiKm$rWL_MFwxFQ.s['27']++;return;}else{__cov_YGWvf3IRiKm$rWL_MFwxFQ.b['4'][1]++;}__cov_YGWvf3IRiKm$rWL_MFwxFQ.s['28']++;this.neon.orig_show.call(this);__cov_YGWvf3IRiKm$rWL_MFwxFQ.s['29']++;var plugin=this.neon;__cov_YGWvf3IRiKm$rWL_MFwxFQ.s['30']++;plugin.node=this;__cov_YGWvf3IRiKm$rWL_MFwxFQ.s['31']++;plugin.flicker_max=Math.max(0,plugin.get('flickerCount'));__cov_YGWvf3IRiKm$rWL_MFwxFQ.s['32']++;plugin.flicker_count=plugin.flicker_max;__cov_YGWvf3IRiKm$rWL_MFwxFQ.s['33']++;plugin.start_color=Y.Color.re_RGB.exec(Y.Color.toRGB(plugin.get('backgroundColor')));__cov_YGWvf3IRiKm$rWL_MFwxFQ.s['34']++;plugin.end_color=Y.Color.re_RGB.exec(Y.Color.toRGB(plugin.get('textColor')));__cov_YGWvf3IRiKm$rWL_MFwxFQ.s['35']++;neonOn.call(plugin);}__cov_YGWvf3IRiKm$rWL_MFwxFQ.s['36']++;Y.extend(Neon,Y.Plugin.Base,{initializer:function(config){__cov_YGWvf3IRiKm$rWL_MFwxFQ.f['6']++;__cov_YGWvf3IRiKm$rWL_MFwxFQ.s['37']++;var host=this.get('host');__cov_YGWvf3IRiKm$rWL_MFwxFQ.s['38']++;this.orig_show=host.show;__cov_YGWvf3IRiKm$rWL_MFwxFQ.s['39']++;host.show=show;},destructor:function(){__cov_YGWvf3IRiKm$rWL_MFwxFQ.f['7']++;__cov_YGWvf3IRiKm$rWL_MFwxFQ.s['40']++;this.get('host').show=this.orig_show;}});__cov_YGWvf3IRiKm$rWL_MFwxFQ.s['41']++;Y.namespace('Plugin');__cov_YGWvf3IRiKm$rWL_MFwxFQ.s['42']++;Y.Plugin.Neon=Neon;},'gallery-2014.03.06-14-38',{'requires':['node-style','node-pluginhost','anim-easing','plugin']});
View
8 build/gallery-neon/gallery-neon-debug.js
@@ -1,4 +1,4 @@
-YUI.add('gallery-neon', function(Y) {
+YUI.add('gallery-neon', function (Y, NAME) {
"use strict";
@@ -7,8 +7,7 @@ YUI.add('gallery-neon', function(Y) {
*/
/**********************************************************************
- * <p>Overrides Y.Node.show() to make it look like a flickering neon
- * sign.</p>
+ * Overrides Y.Node.show() to make it look like a flickering neon sign.
*
* @main gallery-neon
* @class Neon
@@ -144,6 +143,7 @@ function show()
{
return;
}
+ this.neon.orig_show.call(this);
var plugin = this.neon;
plugin.node = this;
@@ -174,4 +174,4 @@ Y.namespace("Plugin");
Y.Plugin.Neon = Neon;
-}, 'gallery-2012.05.16-20-37' ,{requires:['node-style','node-pluginhost','anim-easing','plugin']});
+}, 'gallery-2014.03.06-14-38', {"requires": ["node-style", "node-pluginhost", "anim-easing", "plugin"]});
View
2 build/gallery-neon/gallery-neon-min.js
@@ -1 +1 @@
-YUI.add("gallery-neon",function(e){function b(f){b.superclass.constructor.call(this,f);}b.NAME="NeonPlugin";b.NS="neon";b.ATTRS={backgroundColor:{validator:e.Lang.isString},textColor:{validator:e.Lang.isString},textShadow:{validator:e.Lang.isString},flickerCount:{value:10,validator:e.Lang.isNumber},easing:{value:e.Easing.easeIn,validator:e.Lang.isFunction}};function c(){e.later(Math.round(Math.random()*1000/(this.flicker_max-this.flicker_count)),this,d);this.node.setStyle("display","none");}function d(){this.flicker_count--;if(this.flicker_count>0){var g=this.get("easing");var f={r:g(this.flicker_count,parseInt(this.end_color[1],10),this.start_color[1]-this.end_color[1],this.flicker_max),g:g(this.flicker_count,parseInt(this.end_color[2],10),this.start_color[2]-this.end_color[2],this.flicker_max),b:g(this.flicker_count,parseInt(this.end_color[3],10),this.start_color[3]-this.end_color[3],this.flicker_max)};e.later(Math.round(Math.random()*1000/this.flicker_count),this,c);}else{var f={r:this.end_color[1],g:this.end_color[2],b:this.end_color[3]};}f="rgb("+Math.round(f.r)+","+Math.round(f.g)+","+Math.round(f.b)+")";this.node.setStyle("color",f);var h=this.get("textShadow");if(h){this.node.setStyle("textShadow",e.Lang.sub(h,{color:e.Color.toHex(f)}));}this.node.setStyle("display","");if(this.flicker_count===0){this.node.fire("neon:finished");}}function a(){if(!this._isHidden()){return;}var f=this.neon;f.node=this;f.flicker_max=Math.max(0,f.get("flickerCount"));f.flicker_count=f.flicker_max;f.start_color=e.Color.re_RGB.exec(e.Color.toRGB(f.get("backgroundColor")));f.end_color=e.Color.re_RGB.exec(e.Color.toRGB(f.get("textColor")));d.call(f);}e.extend(b,e.Plugin.Base,{initializer:function(f){var g=this.get("host");this.orig_show=g.show;g.show=a;},destructor:function(){this.get("host").show=this.orig_show;}});e.namespace("Plugin");e.Plugin.Neon=b;},"gallery-2012.05.16-20-37",{requires:["node-style","node-pluginhost","anim-easing","plugin"]});
+YUI.add("gallery-neon",function(e,t){"use strict";function n(e){n.superclass.constructor.call(this,e)}function r(){e.later(Math.round(Math.random()*1e3/(this.flicker_max-this.flicker_count)),this,i),this.node.setStyle("display","none")}function i(){this.flicker_count--;if(this.flicker_count>0){var t=this.get("easing"),n={r:t(this.flicker_count,parseInt(this.end_color[1],10),this.start_color[1]-this.end_color[1],this.flicker_max),g:t(this.flicker_count,parseInt(this.end_color[2],10),this.start_color[2]-this.end_color[2],this.flicker_max),b:t(this.flicker_count,parseInt(this.end_color[3],10),this.start_color[3]-this.end_color[3],this.flicker_max)};e.later(Math.round(Math.random()*1e3/this.flicker_count),this,r)}else var n={r:this.end_color[1],g:this.end_color[2],b:this.end_color[3]};n="rgb("+Math.round(n.r)+","+Math.round(n.g)+","+Math.round(n.b)+")",this.node.setStyle("color",n);var i=this.get("textShadow");i&&this.node.setStyle("textShadow",e.Lang.sub(i,{color:e.Color.toHex(n)})),this.node.setStyle("display",""),this.flicker_count===0&&this.node.fire("neon:finished")}function s(){if(!this._isHidden())return;this.neon.orig_show.call(this);var t=this.neon;t.node=this,t.flicker_max=Math.max(0,t.get("flickerCount")),t.flicker_count=t.flicker_max,t.start_color=e.Color.re_RGB.exec(e.Color.toRGB(t.get("backgroundColor"))),t.end_color=e.Color.re_RGB.exec(e.Color.toRGB(t.get("textColor"))),i.call(t)}n.NAME="NeonPlugin",n.NS="neon",n.ATTRS={backgroundColor:{validator:e.Lang.isString},textColor:{validator:e.Lang.isString},textShadow:{validator:e.Lang.isString},flickerCount:{value:10,validator:e.Lang.isNumber},easing:{value:e.Easing.easeIn,validator:e.Lang.isFunction}},e.extend(n,e.Plugin.Base,{initializer:function(e){var t=this.get("host");this.orig_show=t.show,t.show=s},destructor:function(){this.get("host").show=this.orig_show}}),e.namespace("Plugin"),e.Plugin.Neon=n},"gallery-2014.03.06-14-38",{requires:["node-style","node-pluginhost","anim-easing","plugin"]});
View
8 build/gallery-neon/gallery-neon.js
@@ -1,4 +1,4 @@
-YUI.add('gallery-neon', function(Y) {
+YUI.add('gallery-neon', function (Y, NAME) {
"use strict";
@@ -7,8 +7,7 @@ YUI.add('gallery-neon', function(Y) {
*/
/**********************************************************************
- * <p>Overrides Y.Node.show() to make it look like a flickering neon
- * sign.</p>
+ * Overrides Y.Node.show() to make it look like a flickering neon sign.
*
* @main gallery-neon
* @class Neon
@@ -144,6 +143,7 @@ function show()
{
return;
}
+ this.neon.orig_show.call(this);
var plugin = this.neon;
plugin.node = this;
@@ -174,4 +174,4 @@ Y.namespace("Plugin");
Y.Plugin.Neon = Neon;
-}, 'gallery-2012.05.16-20-37' ,{requires:['node-style','node-pluginhost','anim-easing','plugin']});
+}, 'gallery-2014.03.06-14-38', {"requires": ["node-style", "node-pluginhost", "anim-easing", "plugin"]});
View
18 src/gallery-neon/build.json
@@ -0,0 +1,18 @@
+{
+ "name": "gallery-neon",
+ "builds": {
+ "gallery-neon": {
+ "config": {
+ "requires": [
+ "node-style",
+ "node-pluginhost",
+ "anim-easing",
+ "plugin"
+ ]
+ },
+ "jsfiles": [
+ "Neon.js"
+ ]
+ }
+ }
+}
View
4 src/gallery-neon/js/Neon.js
@@ -5,8 +5,7 @@
*/
/**********************************************************************
- * <p>Overrides Y.Node.show() to make it look like a flickering neon
- * sign.</p>
+ * Overrides Y.Node.show() to make it look like a flickering neon sign.
*
* @main gallery-neon
* @class Neon
@@ -142,6 +141,7 @@ function show()
{
return;
}
+ this.neon.orig_show.call(this);
var plugin = this.neon;
plugin.node = this;
View
1 src/gallery-neon/logs/yogi.stderr.log
@@ -0,0 +1 @@
+shifter [err] /src/gallery-neon/js/Neon.js contains 56 lint errors
View
138 src/gallery-neon/logs/yogi.stdout.log
@@ -0,0 +1,138 @@
+yogi [info] using yogi@0.1.11 on node@0.10.26
+yogi [info] using module: gallery-neon
+yogi [info] running with shifter
+shifter [info] racing to find the closest .shifter.json file
+shifter [info] revving up
+shifter [info] looking for build.json file
+shifter [info] found build.json file, shifting
+shifter [info] putting the hammer down, let's build this thing!
+shifter [warn] down shifting, can't find a meta directory
+shifter [info] putting the hammer down
+shifter [info] shifting into gear for gallery-neon
+ #1: Trailing whitespace.
+ * // line 11, pos 3
+ #2: Trailing whitespace.
+ * // line 32, pos 7
+ #3: Trailing whitespace.
+ * // line 43, pos 7
+ #4: Trailing whitespace.
+ * // line 55, pos 7
+ #5: Trailing whitespace.
+ * // line 66, pos 7
+ #6: Trailing whitespace.
+ * // line 79, pos 7
+ #7: Possible strict violation.
+ Y.later(Math.round(Math.random()*1000/(this.flicker_max - this.flicker_count)), this, neonOn); // line 93, pos 44
+ #8: Possible strict violation.
+ Y.later(Math.round(Math.random()*1000/(this.flicker_max - this.flicker_count)), this, neonOn); // line 93, pos 63
+ #9: Possible strict violation.
+ Y.later(Math.round(Math.random()*1000/(this.flicker_max - this.flicker_count)), this, neonOn); // line 93, pos 85
+ #10: Possible strict violation.
+ this.node.setStyle('display', 'none'); // line 95, pos 5
+ #11: Possible strict violation.
+ this.flicker_count--; // line 100, pos 5
+ #12: Possible strict violation.
+ if (this.flicker_count > 0) // line 101, pos 9
+ #13: Possible strict violation.
+ var fn = this.get('easing'); // line 103, pos 18
+ #14: Too many var statements.
+ var color = // line 104, pos 13
+ #15: Possible strict violation.
+ r: fn(this.flicker_count, parseInt(this.end_color[1],10), this.start_color[1]-this.end_color[1], this.flicker_max), // line 106, pos 19
+ #16: Possible strict violation.
+ r: fn(this.flicker_count, parseInt(this.end_color[1],10), this.start_color[1]-this.end_color[1], this.flicker_max), // line 106, pos 48
+ #17: Possible strict violation.
+ r: fn(this.flicker_count, parseInt(this.end_color[1],10), this.start_color[1]-this.end_color[1], this.flicker_max), // line 106, pos 71
+ #18: Possible strict violation.
+ r: fn(this.flicker_count, parseInt(this.end_color[1],10), this.start_color[1]-this.end_color[1], this.flicker_max), // line 106, pos 91
+ #19: Possible strict violation.
+ r: fn(this.flicker_count, parseInt(this.end_color[1],10), this.start_color[1]-this.end_color[1], this.flicker_max), // line 106, pos 110
+ #20: Possible strict violation.
+ g: fn(this.flicker_count, parseInt(this.end_color[2],10), this.start_color[2]-this.end_color[2], this.flicker_max), // line 107, pos 19
+ #21: Possible strict violation.
+ g: fn(this.flicker_count, parseInt(this.end_color[2],10), this.start_color[2]-this.end_color[2], this.flicker_max), // line 107, pos 48
+ #22: Possible strict violation.
+ g: fn(this.flicker_count, parseInt(this.end_color[2],10), this.start_color[2]-this.end_color[2], this.flicker_max), // line 107, pos 71
+ #23: Possible strict violation.
+ g: fn(this.flicker_count, parseInt(this.end_color[2],10), this.start_color[2]-this.end_color[2], this.flicker_max), // line 107, pos 91
+ #24: Possible strict violation.
+ g: fn(this.flicker_count, parseInt(this.end_color[2],10), this.start_color[2]-this.end_color[2], this.flicker_max), // line 107, pos 110
+ #25: Possible strict violation.
+ b: fn(this.flicker_count, parseInt(this.end_color[3],10), this.start_color[3]-this.end_color[3], this.flicker_max) // line 108, pos 19
+ #26: Possible strict violation.
+ b: fn(this.flicker_count, parseInt(this.end_color[3],10), this.start_color[3]-this.end_color[3], this.flicker_max) // line 108, pos 48
+ #27: Possible strict violation.
+ b: fn(this.flicker_count, parseInt(this.end_color[3],10), this.start_color[3]-this.end_color[3], this.flicker_max) // line 108, pos 71
+ #28: Possible strict violation.
+ b: fn(this.flicker_count, parseInt(this.end_color[3],10), this.start_color[3]-this.end_color[3], this.flicker_max) // line 108, pos 91
+ #29: Possible strict violation.
+ b: fn(this.flicker_count, parseInt(this.end_color[3],10), this.start_color[3]-this.end_color[3], this.flicker_max) // line 108, pos 110
+ #30: Possible strict violation.
+ Y.later(Math.round(Math.random()*1000/this.flicker_count), this, neonOff); // line 111, pos 47
+ #31: Possible strict violation.
+ Y.later(Math.round(Math.random()*1000/this.flicker_count), this, neonOff); // line 111, pos 68
+ #32: Too many var statements.
+ var color = // line 115, pos 13
+ #33: 'color' is already defined.
+ var color = // line 115, pos 19
+ #34: Possible strict violation.
+ r: this.end_color[1], // line 117, pos 16
+ #35: Possible strict violation.
+ g: this.end_color[2], // line 118, pos 16
+ #36: Possible strict violation.
+ b: this.end_color[3] // line 119, pos 16
+ #37: 'color' used out of scope.
+ color = 'rgb('+Math.round(color.r)+','+Math.round(color.g)+','+Math.round(color.b)+')'; // line 123, pos 5
+ #38: 'color' used out of scope.
+ color = 'rgb('+Math.round(color.r)+','+Math.round(color.g)+','+Math.round(color.b)+')'; // line 123, pos 31
+ #39: 'color' used out of scope.
+ color = 'rgb('+Math.round(color.r)+','+Math.round(color.g)+','+Math.round(color.b)+')'; // line 123, pos 55
+ #40: 'color' used out of scope.
+ color = 'rgb('+Math.round(color.r)+','+Math.round(color.g)+','+Math.round(color.b)+')'; // line 123, pos 79
+ #41: Possible strict violation.
+ this.node.setStyle('color', color); // line 124, pos 5
+ #42: 'color' used out of scope.
+ this.node.setStyle('color', color); // line 124, pos 33
+ #43: Too many var statements.
+ var shadow = this.get('textShadow'); // line 126, pos 9
+ #44: Possible strict violation.
+ var shadow = this.get('textShadow'); // line 126, pos 18
+ #45: Possible strict violation.
+ this.node.setStyle('textShadow', Y.Lang.sub(shadow, { color: Y.Color.toHex(color) })); // line 129, pos 9
+ #46: 'color' used out of scope.
+ this.node.setStyle('textShadow', Y.Lang.sub(shadow, { color: Y.Color.toHex(color) })); // line 129, pos 84
+ #47: Possible strict violation.
+ this.node.setStyle('display', ''); // line 132, pos 5
+ #48: Possible strict violation.
+ if (this.flicker_count === 0) // line 134, pos 9
+ #49: Possible strict violation.
+ this.node.fire('neon:finished'); // line 136, pos 9
+ #50: Possible strict violation.
+ if (!this._isHidden()) // line 142, pos 10
+ #51: Possible strict violation.
+ this.neon.orig_show.call(this); // line 146, pos 5
+ #52: Possible strict violation.
+ this.neon.orig_show.call(this); // line 146, pos 30
+ #53: Possible strict violation.
+ var plugin = this.neon; // line 148, pos 28
+ #54: Possible strict violation.
+ plugin.node = this; // line 149, pos 28
+ #55: 'color' is defined but never used.
+ var color = // line 115, pos 18
+ #56: 'config' is defined but never used.
+ initializer: function(config) // line 160, pos 33
+shifter [queu] file has changed, continuing build
+shifter [queu] writing RAW file
+shifter [queu] compressing gallery-neon/gallery-neon.js with UglifyJS
+shifter [queu] writing -min file
+shifter [info] shifting for coverage
+shifter [queu] coverage file read, starting coverage for: gallery-neon/gallery-neon.js
+shifter [info] istanbul providing coverage
+shifter [queu] instrumenting with istanbul
+shifter [queu] writing coverage file to gallery-neon/gallery-neon-coverage.js
+shifter [info] done racing, the gears are toast
+shifter [info] finished in 0.169 seconds, pretty fast huh?
+yogi [info] build complete
+yogi [info] testing module now
+yogi [info] prepping grover tests
+yogi [bail] seems this module does not have tests, you should add some :)

0 comments on commit 56f678d

Please sign in to comment.