Skip to content

Commit

Permalink
Merge pull request #14 from snewcomer/master
Browse files Browse the repository at this point in the history
[RUN]: loop around addObject and removeObject for acceptance tests
  • Loading branch information
peec authored Jul 22, 2016
2 parents cdda8cd + 13e5d1f commit 278c669
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 278c669

Please sign in to comment.