From 384ea1226cf258f9d08efb48638af814e5902c49 Mon Sep 17 00:00:00 2001 From: jlukic Date: Fri, 12 Jun 2015 12:31:31 -0400 Subject: [PATCH] Remove some unnecessary voodoo --- src/definitions/modules/transition.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/definitions/modules/transition.js b/src/definitions/modules/transition.js index 809e2672f..9fc0c0a3a 100644 --- a/src/definitions/modules/transition.js +++ b/src/definitions/modules/transition.js @@ -280,10 +280,11 @@ $.fn.transition = function() { module.save.animation(animationClass); // override display if necessary so animation appears visibly - module.remove.hidden(); module.set.display(); + module.remove.hidden(); module.remove.direction(); + $module .addClass(animationClass) .one(animationEnd + '.complete' + eventNamespace, module.complete) @@ -316,8 +317,6 @@ $.fn.transition = function() { displayType = module.get.displayType(), overrideStyle = style + 'display: ' + displayType + ' !important;' ; - $module.css('display', ''); - module.refresh(); if( $module.css('display') !== displayType ) { module.verbose('Setting inline visibility to', displayType); $module