vendor/assets/javascripts/uikit/components/slideset.js in uikit2-rails-0.1.2 vs vendor/assets/javascripts/uikit/components/slideset.js in uikit2-rails-0.1.3
- old
+ new
@@ -1,6 +1,6 @@
-/*! UIkit 2.23.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
+/*! UIkit 2.24.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
(function(addon) {
var component;
if (window.UIkit) {
@@ -394,11 +394,11 @@
// helpers
function coreAnimation(cls, current, next, dir) {
- var d = UI.$.Deferred(),
+ var d = UI.$.Deferred(),
delay = (this.options.delay === false) ? Math.floor(this.options.duration/2) : this.options.delay,
$this = this, clsIn, clsOut, release, i;
dir = dir || 1;
@@ -454,10 +454,14 @@
for (i=0;i<current.length;i++) {
(function (index, ele){
setTimeout(function(){
- ele.css('display', 'none').css('display', '').css('opacity', 0).addClass(clsOut+' uk-animation-reverse');
+
+ ele.css('display', 'none').css('display', '').css('opacity', 0).on(UI.support.animation.end, function(){
+ ele.removeClass(clsOut);
+ }).addClass(clsOut+' uk-animation-reverse');
+
}.bind(this), i * delay);
})(i, current.eq(dir == 1 ? i:(current.length - i)-1));
}