From 1270e031fb26724faa664076410c1fa26a31458e Mon Sep 17 00:00:00 2001 From: jlukic Date: Thu, 4 Jun 2015 13:45:58 -0400 Subject: [PATCH] Fix missing return from $.each in transition --- src/definitions/modules/transition.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/definitions/modules/transition.js b/src/definitions/modules/transition.js index 88bb5715c..2ca84e746 100644 --- a/src/definitions/modules/transition.js +++ b/src/definitions/modules/transition.js @@ -516,18 +516,25 @@ $.fn.transition = function() { }, direction: function(animation) { // quickest manually specified direction + var + direction + ; animation = animation || settings.animation; if(typeof animation === 'string') { animation = animation.split(' '); $.each(animation, function(index, word){ if(word === className.inward) { - return className.inward; + direction = className.inward; } else if(word === className.outward) { - return className.outward; + direction = className.outward; } }); } + // return found direction + if(direction) { + return direction; + } // slower backup if( !module.can.transition() ) { return 'static';