drapcode-builder
Version:
Drapcode Builder Library
14 lines (10 loc) • 365 B
JavaScript
import ComponentView from './ComponentTextView';
export default ComponentView.extend({
render(...args) {
ComponentView.prototype.render.apply(this, args);
// I need capturing instead of bubbling as bubbled clicks from other
// children will execute the link event
this.el.addEventListener('click', this.prevDef, true);
return this;
}
});