aboutsummaryrefslogtreecommitdiffstats
path: root/src/css.js
diff options
context:
space:
mode:
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)