From: John Resig Date: Fri, 18 Aug 2006 04:13:13 +0000 (+0000) Subject: Fixed an issue with how CSS property methods were being handled. X-Git-Url: http://git.asbjorn.biz/?a=commitdiff_plain;h=065cd7ecf62c7b2ad5b58d447aca7a9cdb6f7bcb;p=jquery.git Fixed an issue with how CSS property methods were being handled. --- diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index 9d80d05..ec97116 100644 --- a/src/jquery/jquery.js +++ b/src/jquery/jquery.js @@ -853,7 +853,7 @@ jQuery.extend({ }); jQuery.each( jQuery.macros.css, function(i,n){ - jQuery.fn[ i ] = function(h) { + jQuery.fn[ n ] = function(h) { return h == undefined ? ( this.length ? jQuery.css( this[0], n ) : null ) : this.css( n, h );