Skip to content

Commit 0ca936d

Browse files
committed
Fix #12370. Explicitly coerce bool/undef to integer.
1 parent 3a633b0 commit 0ca936d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/effects.js

+1
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,7 @@ function genFx( type, includeWidth ) {
540540

541541
// if we include width, step value is 1 to do all cssExpand values,
542542
// if we don't include width, step value is 2 to skip over Left and Right
543+
includeWidth = includeWidth? 1 : 0;
543544
for( ; i < 4 ; i += 2 - includeWidth ) {
544545
which = cssExpand[ i ];
545546
attrs[ "margin" + which ] = attrs[ "padding" + which ] = type;

0 commit comments

Comments
 (0)