Skip to content

Commit

Permalink
Remove use of LimitedArray
Browse files Browse the repository at this point in the history
The mutation of the LimitedArray was triggering this error:
emberjs/ember.js#16157
  • Loading branch information
backspace committed May 8, 2018
1 parent 81a5e93 commit d14f117
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions app/services/flashes.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { run } from '@ember/runloop';
import Service from '@ember/service';
import LimitedArray from 'travis/utils/limited-array';
import { A } from '@ember/array';
import { computed } from 'ember-decorators/object';
import { alias } from 'ember-decorators/object/computed';
import { service } from 'ember-decorators/service';
Expand Down Expand Up @@ -39,10 +39,8 @@ export default Service.extend({
},

setup() {
this.set('flashes', LimitedArray.create({
limit: 1,
content: []
}));
// FIXME this was a limited array to prevent multiple simultaneous flashes
this.set('flashes', A());
},

@computed('flashes.[]')
Expand Down

0 comments on commit d14f117

Please sign in to comment.