From: John Resig Date: Sun, 16 Jul 2006 20:10:37 +0000 (+0000) Subject: Added some .css() fixes. X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=f4c67b7c5aba7fbdaf4b883b71ff9cc1b66e9af8;hp=57403c1be2e9408e44b02628bae0bbe0680d1c4b;p=jquery.git Added some .css() fixes. --- diff --git a/jquery/jquery.js b/jquery/jquery.js index 2bde96f..5937561 100644 --- a/jquery/jquery.js +++ b/jquery/jquery.js @@ -308,7 +308,7 @@ jQuery.fn = jQuery.prototype = { * @param Object value The value to set the property to. */ css: function( key, value ) { - return this.attr( key, value, "css" ); + return this.attr( key, value, "curCSS" ); }, /** @@ -1177,7 +1177,11 @@ jQuery.extend({ return p == "height" ? oHeight : oWidth; } - + + return jQuery.curCSS( e, p ); + }, + + curCSS: function(e,p) { var r; if (e.style[p])