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

1.7/enhancement_8685
John Resig 2006-08-18 04:13:13 +00:00
parent 2a4c269a9b
commit 065cd7ecf6
1 changed files with 1 additions and 1 deletions

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