]> source.dussan.org Git - jquery.git/commitdiff
Fix #12370. Explicitly coerce bool/undef to integer.
authorDave Methvin <dave.methvin@gmail.com>
Thu, 30 Aug 2012 14:47:47 +0000 (10:47 -0400)
committerDave Methvin <dave.methvin@gmail.com>
Thu, 30 Aug 2012 14:47:47 +0000 (10:47 -0400)
src/effects.js

index cc2a26a1e6aa1287dd55f0b6064dace782212817..8752838fbf1ba4b61ab54ee06ea0c44b7e87fcf0 100644 (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;