From 91a6d9dafc402e78b76d1ea41d70480b42dfde60 Mon Sep 17 00:00:00 2001 From: Mike Sherov Date: Sat, 10 Mar 2012 13:30:07 -0500 Subject: [PATCH] Speed up .css() by eliminating the middleman. --- src/dimensions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dimensions.js b/src/dimensions.js index 64da9f4f2..1350b1fe3 100644 --- a/src/dimensions.js +++ b/src/dimensions.js @@ -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 ); }; });