Commit 201f1b66 authored by Paul Bakaus's avatar Paul Bakaus

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

core: changed jQuery.css to num (uses curCSS) in the height/width methods with dramatically increases performance for height/width
parent b5d65d4e
...@@ -1358,7 +1358,7 @@ jQuery.each([ "Height", "Width" ], function(i, name){ ...@@ -1358,7 +1358,7 @@ jQuery.each([ "Height", "Width" ], function(i, name){
// Get or set width or height on the element // Get or set width or height on the element
size == undefined ? size == undefined ?
// Get width or height on the element // 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) // Set the width or height on the element (default to pixels if value is unitless)
this.css( type, size.constructor == String ? size : size + "px" ); this.css( type, size.constructor == String ? size : size + "px" );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment