]> source.dussan.org Git - jquery.git/commitdiff
Speed up .css() by eliminating the middleman.
authorMike Sherov <mike.sherov@gmail.com>
Sat, 10 Mar 2012 18:30:07 +0000 (13:30 -0500)
committerDave Methvin <dave.methvin@gmail.com>
Fri, 6 Apr 2012 01:42:23 +0000 (21:42 -0400)
src/dimensions.js

index 64da9f4f20801e1a1b9e0c9411e6f4d79e1feff8..1350b1fe37ef20bc1a7850d9ccd69878b8e2e426 100644 (file)
@@ -65,7 +65,7 @@ jQuery.each( { Height: "height", Width: "width" }, function( name, type ) {
                        }
 
                        // Set the width or height on the element
-                       jQuery( elem ).css( type, value );
+                       jQuery.style( elem, type, value );
                }, type, value, arguments.length, null );
        };
 });