mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
prop fix takes also "zoom" into account (see #803)
This commit is contained in:
parent
3362ccf3dd
commit
756183f607
2
src/jquery/jquery.js
vendored
2
src/jquery/jquery.js
vendored
@ -1268,7 +1268,7 @@ jQuery.extend({
|
|||||||
return value.call( elem, [index] );
|
return value.call( elem, [index] );
|
||||||
|
|
||||||
// exclude the following css properties to add px
|
// exclude the following css properties to add px
|
||||||
var exclude = /z-?index|font-?weight|opacity/i;
|
var exclude = /z-?index|font-?weight|opacity|zoom/i;
|
||||||
|
|
||||||
// Handle passing in a number to a CSS property
|
// Handle passing in a number to a CSS property
|
||||||
if ( value.constructor == Number && type == "curCSS" && !exclude.test(prop) )
|
if ( value.constructor == Number && type == "curCSS" && !exclude.test(prop) )
|
||||||
|
Loading…
Reference in New Issue
Block a user