Skip to content

Instantly share code, notes, and snippets.

@philipusis
Created March 29, 2017 20:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save philipusis/988bf9c569102465c8bdbba32c0f079d to your computer and use it in GitHub Desktop.
Save philipusis/988bf9c569102465c8bdbba32c0f079d to your computer and use it in GitHub Desktop.
modules.define('attach', ['i-bem-dom', 'button'], function(provide, bemDom, Button) {
provide(bemDom.declBlock(this.name, {
onSetMod: {
'js': {
'inited' : function(modName, modVal) {
this._button = this.findChildBlock(Button);
}
}
}
}));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment