]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
fixed the usage of transitionend in motion util 10110/head
authorSebastian Weyrauch <git@dev-lab.de>
Fri, 2 Jun 2017 04:51:57 +0000 (06:51 +0200)
committerSebastian Weyrauch <git@dev-lab.de>
Fri, 2 Jun 2017 04:51:57 +0000 (06:51 +0200)
js/foundation.util.motion.js

index 32989f06c8dfd17b531480cc353486e076713c08..5dabb1a311ffa6e04460f4491ccf634196cb59cf 100644 (file)
@@ -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() {