aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Bakaus <paul.bakaus@googlemail.com>2008-06-24 15:55:50 +0000
committerPaul Bakaus <paul.bakaus@googlemail.com>2008-06-24 15:55:50 +0000
commit201f1b66cc4fe86ea08d118ce15d831c6561cc8c (patch)
tree8cca9446816d6501b2f74bcfca18e5f786e64ec8
parentb5d65d4e4920d0a09bb53504cca7c21033ea8790 (diff)
downloadjquery-201f1b66cc4fe86ea08d118ce15d831c6561cc8c.tar.gz
jquery-201f1b66cc4fe86ea08d118ce15d831c6561cc8c.zip
core: changed jQuery.css to num (uses curCSS) in the height/width methods with dramatically increases performance for height/width
-rw-r--r--src/core.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core.js b/src/core.js
index 924bf965e..6255dc5a4 100644
--- a/src/core.js
+++ b/src/core.js
@@ -1358,7 +1358,7 @@ jQuery.each([ "Height", "Width" ], function(i, name){
// Get or set width or height on the element
size == undefined ?
// Get width or height on the element
- (this.length ? jQuery.css( this[0], type ) : null) :
+ (this.length ? num( this, type) : null) :
// Set the width or height on the element (default to pixels if value is unitless)
this.css( type, size.constructor == String ? size : size + "px" );