Fixed an issue with how CSS property methods were being handled.

This commit is contained in:
John Resig 2006-08-18 04:13:13 +00:00
parent 2a4c269a9b
commit 065cd7ecf6

View file

@ -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 );