Skip to content

Commit

Permalink
Get rid of lazyInit in declMod
Browse files Browse the repository at this point in the history
  • Loading branch information
tadatuta committed Jul 23, 2018
1 parent 37a7f2d commit 5939780
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions common.blocks/checkbox/_type/checkbox_type_button.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ provide(Checkbox.declMod({ modName : 'type', modVal : 'button' }, /** @lends che
}
}
}, /** @lends checkbox */{
lazyInit : true,
onInit : function() {

this._events(Button).on({ modName : 'js', modVal : 'inited' }, functions.noop);
return this.__base.apply(this, arguments);
}
Expand Down
1 change: 0 additions & 1 deletion common.blocks/menu/__item/_type/menu__item_type_link.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ provide(MenuItem.declMod({ modName : 'type', modVal : 'link' }, /** @lends menu_
this.setMod('hovered');
}
}, /** @lends menu__item */{
lazyInit : true,
onInit : function() {
this._domEvents().on('focusin', this.prototype._onFocus);
return this.__base.apply(this, arguments);
Expand Down
1 change: 0 additions & 1 deletion common.blocks/popup/_autoclosable/popup_autoclosable.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ provide(Popup.declMod({ modName : 'autoclosable', modVal : true }, /** @lends po
this.delMod('visible');
}
}, /** @lends popup */{
lazyInit : true,
onInit : function() {
// TODO: checkme!
// this._domEvents(bemDom.doc).on(KEYDOWN_EVENT, onDocKeyPress);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ provide(RadioGroup.declMod({ modName : 'mode', modVal : 'radio-check' }, /** @le
this._checkedRadio === e.target && this.setVal(undef);
}
}, /** @lends radio-group */{
lazyInit : true,
onInit : function() {
this._events(Radio).on(
{ modName : 'checked', modVal : '' },
Expand Down
1 change: 0 additions & 1 deletion common.blocks/radio/_type/radio_type_button.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ provide(Radio.declMod({ modName : 'type', modVal : 'button' }, /** @lends radio.
}
}
}, /** @lends radio */{
lazyInit : true,
onInit : function() {
this._events(Button).on({ modName : 'js', modVal : 'inited' }, Functions.noop);
return this.__base.apply(this, arguments);
Expand Down

0 comments on commit 5939780

Please sign in to comment.