Remove transition class after it ends for editor content blocks
This commit is contained in:
@@ -147,7 +147,7 @@ define([
|
||||
|
||||
this.$el.addClass(className);
|
||||
this.$el.one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd animationend', function() {
|
||||
that.$el.removeClass('mailpoet_block_transition_out');
|
||||
that.$el.removeClass(className);
|
||||
promise.resolve();
|
||||
});
|
||||
return promise;
|
||||
|
@@ -262,7 +262,7 @@ define([
|
||||
|
||||
this.$el.addClass(className);
|
||||
this.$el.one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd animationend', function() {
|
||||
that.$el.removeClass('mailpoet_block_transition_out');
|
||||
that.$el.removeClass(className);
|
||||
promise.resolve();
|
||||
});
|
||||
return promise;
|
||||
|
@@ -222,7 +222,7 @@ define([
|
||||
|
||||
this.$el.addClass(className);
|
||||
this.$el.one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd animationend', function() {
|
||||
that.$el.removeClass('mailpoet_block_transition_out');
|
||||
that.$el.removeClass(className);
|
||||
promise.resolve();
|
||||
});
|
||||
return promise;
|
||||
|
Reference in New Issue
Block a user