ember.js - calling set on destroyed object setInterval in acceptance tests -


i know there 5 topics same name here, seems unrelated case: i'm getting error in acceptance tests, , reason countdown component built ember.run.later.

maybe know how cure that?

just should stop timer upon element destruction. ember, of course, doesn't handle himself.

startcountdown: function() {   let handler;   //...    handler = setinterval(...);   this.set('handler', handler); }    teardown: function() {     clearinterval(this.get('handler'));   }.on('willdestroyelement') 

Comments

Popular posts from this blog

java - Solr query version issue: Invalid version or the data in not in 'javabin' format -

Hard vs. Soft Water: What's The Difference?

The Ten Most Livable Cities In The World