aboutsummaryrefslogtreecommitdiffstats
path: root/src/css.js
diff options
context:
space:
mode:
authoravaly <github-com@agachi.name>2011-05-13 12:09:49 -0400
committertimmywil <tim.willison@thisismedium.com>2011-05-13 12:09:49 -0400
commitcbbd7d28e1088e76a9c89bfb30ba9af8f1fce759 (patch)
treed1da4999230ecfd6125f4ac2735a6bfeb99ecb25 /src/css.js
parent3486365062cdc7e8598cea238e67aafa33af7dce (diff)
downloadjquery-cbbd7d28e1088e76a9c89bfb30ba9af8f1fce759.tar.gz
jquery-cbbd7d28e1088e76a9c89bfb30ba9af8f1fce759.zip
Landing pull request 375. Added test case to support #9237 Fixes #9237.
More Details: - https://github.com/jquery/jquery/pull/375 - http://bugs.jquery.com/ticket/9237
Diffstat (limited to 'src/css.js')
-rw-r--r--src/css.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/css.js b/src/css.js
index 318cd5979..59eaed71c 100644
--- a/src/css.js
+++ b/src/css.js
@@ -96,6 +96,8 @@ jQuery.extend({
// convert relative number strings (+= or -=) to relative numbers. #7345
if ( type === "string" && rrelNum.test( value ) ) {
value = +value.replace( rrelNumFilter, "" ) + parseFloat( jQuery.css( elem, name ) );
+ // Fixes bug #9237
+ type = 'number';
}
// If a number was passed in, add 'px' to the (except for certain CSS properties)