Skip to content

Commit

Permalink
[RUN]: loop around addObject and removeObject for acceptance tests
Browse files Browse the repository at this point in the history
  • Loading branch information
snewcomer committed Jun 22, 2016
1 parent cdda8cd commit 13e5d1f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions addon/mixins/transition-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,19 @@ export default Mixin.create({

addClass(className, $element) {
if (!this.get('isDestroying')) {
this.get('transitionClasses').addObject(className);
run(() => {
this.get('transitionClasses').addObject(className);
});
} else {
$element.addClass(className);
}
},

removeClass(className, $element) {
if (!this.get('isDestroying')) {
this.get('transitionClasses').removeObject(className);
run(() => {
this.get('transitionClasses').removeObject(className);
});
} else {
$element.removeClass(className);
}
Expand Down

0 comments on commit 13e5d1f

Please sign in to comment.