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

suggest: Move hack about refocusing to mixin #12

Open
narqo opened this issue Dec 6, 2015 · 0 comments
Open

suggest: Move hack about refocusing to mixin #12

narqo opened this issue Dec 6, 2015 · 0 comments

Comments

@narqo
Copy link
Owner

narqo commented Dec 6, 2015

Those hacks are copy&pasted to every composite block with input and popup. One possible solution here could be a silly mixin, which implemented common functionality.

BemDom.declMix('control_has-popup', {
  // protected methods to work with block refocusing
});

BemDom.decl({ block : 'suggest', baseMix : ['control_has-popup'], {
  // I know I'am ugly, but I glow in the dark
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant