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

i-bem__dom: afterCurrentEvent should guarantee block existence #549

Open
narqo opened this issue Sep 18, 2014 · 1 comment
Open

i-bem__dom: afterCurrentEvent should guarantee block existence #549

narqo opened this issue Sep 18, 2014 · 1 comment

Comments

@narqo
Copy link
Member

narqo commented Sep 18, 2014

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).

@narqo narqo added the JS label Sep 18, 2014
@deeonis
Copy link
Contributor

deeonis commented Feb 25, 2015

BEM-2124

@deeonis deeonis added the TODO label Feb 25, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants