r60697 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r60696‎ | r60697 | r60698 >
Date:22:52, 5 January 2010
Author:tparscal
Status:deferred
Tags:
Comment:
Modified paths:
  • /trunk/phase3/js2/js2stopgap.js (modified) (history)
  • /trunk/phase3/js2/js2stopgap.min.js (modified) (history)

Diff [purge]

Index: trunk/phase3/js2/js2stopgap.js
@@ -1057,7 +1057,7 @@
10581058 return letter.toUpperCase();
10591059 });
10601060
1061 - if ( set )
 1061+ if ( set && value != 'NaNpx' )
10621062 elem[ name ] = value;
10631063
10641064 return elem[ name ];
Index: trunk/phase3/js2/js2stopgap.min.js
@@ -120,7 +120,7 @@
121121 if(!jQuery.support.opacity&&name=="opacity"){if(set){elem.zoom=1;elem.filter=(elem.filter||"").replace(/alpha\([^)]*\)/,"")+
122122 (parseInt(value)+''=="NaN"?"":"alpha(opacity="+value*100+")");}
123123 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')
125125 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)
126126 ret[0]=array;else
127127 while(i)

Follow-up revisions

RevisionCommit summaryAuthorDate
r60728Followup to r60697: add a comment to js2stopgap.js pointing out that we patch...catrope11:49, 6 January 2010

Status & tagging log