From 2b955e0f81cc134fcc6a3dbb020ad82e012c7c80 Mon Sep 17 00:00:00 2001 From: Jack Lukic Date: Wed, 29 Jun 2016 23:20:25 -0700 Subject: [PATCH] #4181 fix issue with jQ 3.0 width calculations causing shape to break --- src/definitions/modules/shape.js | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/src/definitions/modules/shape.js b/src/definitions/modules/shape.js index 5d40da481..d39904643 100644 --- a/src/definitions/modules/shape.js +++ b/src/definitions/modules/shape.js @@ -307,9 +307,12 @@ $.fn.shape = function(parameters) { } if( !module.is.animating()) { module.debug('Flipping up', $nextSide); + var + transform = module.get.transform.up() + ; module.set.stageSize(); module.stage.above(); - module.animate( module.get.transform.up() ); + module.animate(transform); } else { module.queue('flip up'); @@ -323,9 +326,12 @@ $.fn.shape = function(parameters) { } if( !module.is.animating()) { module.debug('Flipping down', $nextSide); + var + transform = module.get.transform.down() + ; module.set.stageSize(); module.stage.below(); - module.animate( module.get.transform.down() ); + module.animate(transform); } else { module.queue('flip down'); @@ -339,9 +345,12 @@ $.fn.shape = function(parameters) { } if( !module.is.animating()) { module.debug('Flipping left', $nextSide); + var + transform = module.get.transform.left() + ; module.set.stageSize(); module.stage.left(); - module.animate(module.get.transform.left() ); + module.animate(transform); } else { module.queue('flip left'); @@ -355,9 +364,12 @@ $.fn.shape = function(parameters) { } if( !module.is.animating()) { module.debug('Flipping right', $nextSide); + var + transform = module.get.transform.right() + ; module.set.stageSize(); module.stage.right(); - module.animate(module.get.transform.right() ); + module.animate(transform); } else { module.queue('flip right');