@softvisio/ext
Version:
ExtJS patches
20 lines (18 loc) • 550 B
JavaScript
import Ext_Gadget from './Ext/Gadget.js';
import ElementParser from './common/ElementParser.js';
export default class EWCComponent extends Ext_Gadget {
constructor() {
super ([], []);
this.xtype = 'component';
}
}
try {
if (window.customElements.get('ext-component') == undefined) {
window.customElements.define('ext-component', ElementParser.withParsedCallback(EWCComponent));
}
}
catch(e) {
if (window.customElements.get('ext-component') == undefined) {
window.customElements.define('ext-component', EWCComponent);
}
}