indexiatech / ember-idx-button

An ambitious button with async & styling support for Ember.js
http://indexiatech.github.io/ember-idx-button
Apache License 2.0
11 stars 3 forks source link

Error: Assertion Failed: calling set on destroyed object #4

Open jamiechong opened 9 years ago

jamiechong commented 9 years ago

I get this error when the button component was destroyed within the async promise. Pseudocode example:

{{#if someCondition}}
{{em-button default="Submit" on-click="makeAsync"}}
{{/if}}

If, while the async code is running someCondition becomes false the button is destroyed and then I get this error. I suggest doing something in the willDestroyElement event of the Ember Component to avoid this.