From 0ca936d2c911fe037dda3cb9d6e21f6fe1735a2c Mon Sep 17 00:00:00 2001 From: Dave Methvin Date: Thu, 30 Aug 2012 10:47:47 -0400 Subject: [PATCH] Fix #12370. Explicitly coerce bool/undef to integer. --- src/effects.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/effects.js b/src/effects.js index cc2a26a1e..8752838fb 100644 --- a/src/effects.js +++ b/src/effects.js @@ -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; -- 2.39.5