More Details: - https://github.com/jquery/jquery/pull/375 - http://bugs.jquery.com/ticket/9237
This commit is contained in:
parent
3486365062
commit
cbbd7d28e1
2 changed files with 54 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue