git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b5d65d4
)
core: changed jQuery.css to num (uses curCSS) in the height/width methods with dramat...
author
Paul Bakaus
<paul.bakaus@googlemail.com>
Tue, 24 Jun 2008 15:55:50 +0000
(15:55 +0000)
committer
Paul Bakaus
<paul.bakaus@googlemail.com>
Tue, 24 Jun 2008 15:55:50 +0000
(15:55 +0000)
src/core.js
patch
|
blob
|
history
diff --git
a/src/core.js
b/src/core.js
index
924bf96
..
6255dc5
100644
(file)
--- 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" );