-
-
Save joliss/246bbf7305e09ed7ce80 to your computer and use it in GitHub Desktop.
elementIsInserted - encapsulating because this.state === 'inDOM' might break in the future
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ember.View.reopen({ | |
elementIsInserted: Ember.computed(function() { | |
return this.getPath('renderStates.currentState.name') === 'inDOM'; | |
}).property().volatile() | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks, very helpful!