In the Ember.View subclass method, I would like to make changes to the DOM only if the view element is already inserted into the DOM. How can I check this?
I know that I can create a helper property, for example:
didInsertElement: function() { this.set('elementIsInserted', true); } willDestroyElement: function() { this.set('elementIsInserted', false); }
But is there any canonical, built-in way?
I did not find anything skimming view.js , but maybe I am missing something.
source share