It's a common case in our BEMDOM blocks to have a code like this:
// myblock.js
this.afterCurrentEvent(function() {
this.domElem && this.doSomething();
});
We defiantly should make the kind of check like the one above as i-bem__dom functionality as we did with i-bem in bem-core library.
NOTE: this.domElem is the only true way to check if block still haven't been destructed (#507).
It's a common case in our BEMDOM blocks to have a code like this:
We defiantly should make the kind of check like the one above as
i-bem__domfunctionality as we did withi-bemin bem-core library.NOTE:
this.domElemis the only true way to check if block still haven't been destructed (#507).