Open belozer opened 6 years ago
findOn(node: BemDomEntity|Element|NodeList|HTMLCollection): ?BemDomEntity
example Link.findOn(domNodes); Link.findOn(this._elem('link'));
Link.findOn(domNodes);
Link.findOn(this._elem('link'));
current bemDom.getEntity(domNodes, Link); this._elem('link').findMixedBlock(Link);
bemDom.getEntity(domNodes, Link);
this._elem('link').findMixedBlock(Link);
From history v3 and old versions this.findBlockOn('link', 'link');
this.findBlockOn('link', 'link');
@veged @tadatuta
upd Example with _events
_events
this._events(Button); this._events(Button.findOn(this._elem('add-address')));
this._events(Button);
this._events(Button.findOn(this._elem('add-address')));
vs this._events(Button); this._events(this._elem('add-address').findMixedBlock(Button));
this._events(this._elem('add-address').findMixedBlock(Button));
static method: findOn
findOn(node: BemDomEntity|Element|NodeList|HTMLCollection): ?BemDomEntity
example
Link.findOn(domNodes);
Link.findOn(this._elem('link'));
current
bemDom.getEntity(domNodes, Link);
this._elem('link').findMixedBlock(Link);
From history v3 and old versions
this.findBlockOn('link', 'link');
@veged @tadatuta
upd Example with
_events
this._events(Button);
this._events(Button.findOn(this._elem('add-address')));
vs
this._events(Button);
this._events(this._elem('add-address').findMixedBlock(Button));