Fix #12370. Explicitly coerce bool/undef to integer.

This commit is contained in:
Dave Methvin
2012-08-30 10:47:47 -04:00
parent 3a633b0082
commit 0ca936d2c9

1
src/effects.js vendored
View File

@@ -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;