aboutsummaryrefslogtreecommitdiffstats
path: root/src/css.js
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2010-09-21 17:12:42 -0400
committerJohn Resig <jeresig@gmail.com>2010-09-21 17:12:42 -0400
commite3463946e19f2eb53d909fc2b59cc1c8636d21bd (patch)
treec9be7cb27f70cd02f0ee4ab2245e79a3d08503d1 /src/css.js
parent1ac3713e7fa187838b04290ada9e4fc56e01f145 (diff)
downloadjquery-e3463946e19f2eb53d909fc2b59cc1c8636d21bd.tar.gz
jquery-e3463946e19f2eb53d909fc2b59cc1c8636d21bd.zip
Make sure that non-px values aren't manipulated before input to height/width.
Diffstat (limited to 'src/css.js')
-rw-r--r--src/css.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/css.js b/src/css.js
index 84b6e6023..69c4452b2 100644
--- 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);