Skip to content

Commit

Permalink
fix to prevent race condition that leaves ghost in the dom (#433)
Browse files Browse the repository at this point in the history
  • Loading branch information
ibarrick authored and miguelcobain committed Jul 12, 2016
1 parent f341cc5 commit c2db72b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/mixins/translate3d-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export default Mixin.create({
dialogClone.removeClass('md-transition-in');
dialogClone.addClass('md-transition-out');
dialogClone.attr('style', toStyle);
run.next(() => {
window.requestAnimationFrame(() => {
this.waitTransitionEnd(dialogClone).then(() => {
containerClone.remove();
this.onTranslateToEnd($(this.get('origin')));
Expand Down

0 comments on commit c2db72b

Please sign in to comment.