git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make sure that when multiple variables are being declared that assignments are each...
[jquery.git]
/
src
/
dimensions.js
diff --git
a/src/dimensions.js
b/src/dimensions.js
index
f5212e1
..
f35b0ac
100644
(file)
--- a/
src/dimensions.js
+++ b/
src/dimensions.js
@@
-49,7
+49,9
@@
jQuery.each([ "Height", "Width" ], function( i, name ) {
// Get or set width or height on the element
} else if ( size === undefined ) {
// Get or set width or height on the element
} else if ( size === undefined ) {
- var orig = jQuery.css( elem, type ), ret = parseFloat( orig );
+ var orig = jQuery.css( elem, type ),
+ ret = parseFloat( orig );
+
return jQuery.isNaN( ret ) ? orig : ret;
// Set the width or height on the element (default to pixels if value is unitless)
return jQuery.isNaN( ret ) ? orig : ret;
// Set the width or height on the element (default to pixels if value is unitless)