diff options
author | Paul Bakaus <paul.bakaus@googlemail.com> | 2008-06-24 15:55:50 +0000 |
---|---|---|
committer | Paul Bakaus <paul.bakaus@googlemail.com> | 2008-06-24 15:55:50 +0000 |
commit | 201f1b66cc4fe86ea08d118ce15d831c6561cc8c (patch) | |
tree | 8cca9446816d6501b2f74bcfca18e5f786e64ec8 | |
parent | b5d65d4e4920d0a09bb53504cca7c21033ea8790 (diff) | |
download | jquery-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.js | 2 |
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" ); |