Index: trunk/phase3/js2/js2stopgap.js |
— | — | @@ -1057,7 +1057,7 @@ |
1058 | 1058 | return letter.toUpperCase(); |
1059 | 1059 | }); |
1060 | 1060 | |
1061 | | - if ( set ) |
| 1061 | + if ( set && value != 'NaNpx' ) |
1062 | 1062 | elem[ name ] = value; |
1063 | 1063 | |
1064 | 1064 | return elem[ name ]; |
Index: trunk/phase3/js2/js2stopgap.min.js |
— | — | @@ -120,7 +120,7 @@ |
121 | 121 | if(!jQuery.support.opacity&&name=="opacity"){if(set){elem.zoom=1;elem.filter=(elem.filter||"").replace(/alpha\([^)]*\)/,"")+ |
122 | 122 | (parseInt(value)+''=="NaN"?"":"alpha(opacity="+value*100+")");} |
123 | 123 | return elem.filter&&elem.filter.indexOf("opacity=")>=0?(parseFloat(elem.filter.match(/opacity=([^)]*)/)[1])/100)+'':"";} |
124 | | -name=name.replace(/-([a-z])/ig,function(all,letter){return letter.toUpperCase();});if(set) |
| 124 | +name=name.replace(/-([a-z])/ig,function(all,letter){return letter.toUpperCase();});if(set&&value!='NaNpx') |
125 | 125 | elem[name]=value;return elem[name];},trim:function(text){return(text||"").replace(/^\s+|\s+$/g,"");},makeArray:function(array){var ret=[];if(array!=null){var i=array.length;if(i==null||typeof array==="string"||jQuery.isFunction(array)||array.setInterval) |
126 | 126 | ret[0]=array;else |
127 | 127 | while(i) |