core: changed jQuery.css to num (uses curCSS) in the height/width methods with dramatically increases performance for height/width

This commit is contained in:
Paul Bakaus 2008-06-24 15:55:50 +00:00
parent b5d65d4e49
commit 201f1b66cc

View File

@ -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" );