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 non-px values aren't manipulated before input to height/width.
[jquery.git]
/
src
/
css.js
diff --git
a/src/css.js
b/src/css.js
index
84b6e60
..
69c4452
100644
(file)
--- a/
src/css.js
+++ b/
src/css.js
@@
-155,7
+155,7
@@
jQuery.each(["height", "width"], function( i, name ) {
},
set: function( elem, value ) {
- if ( value !== "" ) {
+ if ( rnumpx.test( value ) ) {
// ignore negative width and height values #1599
value = parseFloat(value);