Р
Size: a a a
Р
ZT
ZT
И
И
modules.define(
'button',
['i-bem-dom', 'jquery', 'dom'],
function(provide, bemDom, $, dom, Button) {
provide(bemDom.declBlock(Button,{
_onPointerRelease : function(e) {
this._isPointerPressInProgress = false;
this._domEvents(bemDom.doc).un('pointerrelease', this._onPointerRelease);
if(e.originalEvent.type === 'pointerup' && dom.contains(this.findMixedElem('control').domElem, $(e.target))) {
this._focusedByPointer = true;
this._focus();
this._focusedByPointer = false;
this._domEvents().once('click', this._onPointerClick);
} else {
this._blur();
}
this.delMod('pressed');
},
_onPointerClick : function() {
this.__base();
},
}));
});
Р
modules.define(
'button',
['i-bem-dom', 'jquery', 'dom'],
function(provide, bemDom, $, dom, Button) {
provide(bemDom.declBlock(Button,{
_onPointerRelease : function(e) {
this._isPointerPressInProgress = false;
this._domEvents(bemDom.doc).un('pointerrelease', this._onPointerRelease);
if(e.originalEvent.type === 'pointerup' && dom.contains(this.findMixedElem('control').domElem, $(e.target))) {
this._focusedByPointer = true;
this._focus();
this._focusedByPointer = false;
this._domEvents().once('click', this._onPointerClick);
} else {
this._blur();
}
this.delMod('pressed');
},
_onPointerClick : function() {
this.__base();
},
}));
});
ZT
SB
SB
block-name__elem-name_mod-name_mod-value в bem-react-core чем-то чревато?