From: Sebastian Weyrauch Date: Fri, 2 Jun 2017 04:51:57 +0000 (+0200) Subject: fixed the usage of transitionend in motion util X-Git-Tag: v6.4.0-rc2~6^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F10110%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git fixed the usage of transitionend in motion util --- 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() {