aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMike Sherov <mike.sherov@gmail.com>2012-03-10 13:30:07 -0500
committerDave Methvin <dave.methvin@gmail.com>2012-04-05 21:42:23 -0400
commit91a6d9dafc402e78b76d1ea41d70480b42dfde60 (patch)
tree288d8ce1d45d8cc1f2450add13ed9b3a3d004fee /src
parent590bcab245d969dffc3c61b7679ab4d1a9a26ebd (diff)
downloadjquery-91a6d9dafc402e78b76d1ea41d70480b42dfde60.tar.gz
jquery-91a6d9dafc402e78b76d1ea41d70480b42dfde60.zip
Speed up .css() by eliminating the middleman.
Diffstat (limited to 'src')
-rw-r--r--src/dimensions.js2
1 files changed, 1 insertions, 1 deletions
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 );
};
});