mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Fix #12370. Explicitly coerce bool/undef to integer.
This commit is contained in:
1
src/effects.js
vendored
1
src/effects.js
vendored
@@ -540,6 +540,7 @@ function genFx( type, includeWidth ) {
|
||||
|
||||
// if we include width, step value is 1 to do all cssExpand values,
|
||||
// if we don't include width, step value is 2 to skip over Left and Right
|
||||
includeWidth = includeWidth? 1 : 0;
|
||||
for( ; i < 4 ; i += 2 - includeWidth ) {
|
||||
which = cssExpand[ i ];
|
||||
attrs[ "margin" + which ] = attrs[ "padding" + which ] = type;
|
||||
|
||||
Reference in New Issue
Block a user