Skip to content

Commit

Permalink
core: changed jQuery.css to num (uses curCSS) in the height/width met…
Browse files Browse the repository at this point in the history
…hods with dramatically increases performance for height/width
  • Loading branch information
Paul Bakaus committed Jun 24, 2008
1 parent b5d65d4 commit 201f1b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -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" );
Expand Down

0 comments on commit 201f1b6

Please sign in to comment.