From 6568697655d510ef1c4858d0a3861f0a4d24d621 Mon Sep 17 00:00:00 2001 From: martingg88 Date: Mon, 7 Sep 2015 22:29:04 +0800 Subject: [PATCH] prevent event from bubbling up. --- dist/jquery.animatecss.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dist/jquery.animatecss.js b/dist/jquery.animatecss.js index 32bb217..bff9f22 100644 --- a/dist/jquery.animatecss.js +++ b/dist/jquery.animatecss.js @@ -67,7 +67,8 @@ } }; complete = function(element) { - return element.one(transitionEnd, function() { + return element.one(transitionEnd, function(event) { + event.stopPropagation(); return callback(element); }); };