Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jamiechong opened this issue May 13, 2015 · 0 comments
Open

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

jamiechong opened this issue May 13, 2015 · 0 comments

Comments

@jamiechong
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant