From ce8a166e653860218f38ccde56b0cb6fe28e79ad Mon Sep 17 00:00:00 2001 From: Sebastian Weyrauch Date: Fri, 2 Jun 2017 06:51:57 +0200 Subject: [PATCH] fixed the usage of transitionend in motion util --- js/foundation.util.motion.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/foundation.util.motion.js b/js/foundation.util.motion.js index 32989f06c..5dabb1a31 100644 --- a/js/foundation.util.motion.js +++ b/js/foundation.util.motion.js @@ -1,6 +1,7 @@ 'use strict'; import $ from 'jquery'; +import { transitionend } from './foundation.util.core'; /** * Motion module. @@ -83,7 +84,7 @@ function animate(isIn, element, animation, cb) { }); // Clean up the animation when it finishes - element.one(Foundation.transitionend(element), finish); + element.one(transitionend(element), finish); // Hides the element (for out animations), resets the element, and runs a callback function finish() { -- 2.47.2