Added some .css() fixes.
authorJohn Resig <jeresig@gmail.com>
Sun, 16 Jul 2006 20:10:37 +0000 (20:10 +0000)
committerJohn Resig <jeresig@gmail.com>
Sun, 16 Jul 2006 20:10:37 +0000 (20:10 +0000)
jquery/jquery.js

index 2bde96f..5937561 100644 (file)
@@ -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])