Patch jQuery to test for 'nullpx' as well as 'NaNpx'
authorRoan Kattouw <catrope@users.mediawiki.org>
Fri, 29 Jan 2010 23:57:44 +0000 (23:57 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Fri, 29 Jan 2010 23:57:44 +0000 (23:57 +0000)
skins/common/jquery.js
skins/common/jquery.min.js

index 377bb51..c25ee31 100644 (file)
@@ -1059,7 +1059,7 @@ jQuery.extend({
                        return letter.toUpperCase();
                });
 
-               if ( set && value != 'NaNpx' ) // Patched by Trevor, see http://is.gd/5NXiD
+               if ( set && value != 'NaNpx' && value != 'nullpx' ) // Patched by Trevor, see http://is.gd/5NXiD
                        elem[ name ] = value;
 
                return elem[ name ];
index 6574100..d872c9f 100644 (file)
@@ -121,7 +121,7 @@ elem.setAttribute(name,""+value);var attr=!jQuery.support.hrefNormalized&&notxml
 if(!jQuery.support.opacity&&name=="opacity"){if(set){elem.zoom=1;elem.filter=(elem.filter||"").replace(/alpha\([^)]*\)/,"")+
 (parseInt(value)+''=="NaN"?"":"alpha(opacity="+value*100+")");}
 return elem.filter&&elem.filter.indexOf("opacity=")>=0?(parseFloat(elem.filter.match(/opacity=([^)]*)/)[1])/100)+'':"";}
-name=name.replace(/-([a-z])/ig,function(all,letter){return letter.toUpperCase();});if(set&&value!='NaNpx')
+name=name.replace(/-([a-z])/ig,function(all,letter){return letter.toUpperCase();});if(set&&value!='NaNpx'&&value!='nullpx')
 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)
 ret[0]=array;else
 while(i)