JSFiddle - React, Tailwind, and code Playground
by incutonez
JavaScript
Ext.onReady(function() {
Ext.define('TestBlah', {
extend: 'Ext.panel.Panel',
counter: 0,
counters: [],
initComponent: function() {
alert("counter: " + this.counter); // should show 0
alert("counters: " + this.counters); // should show nothing
this.counter++;
this.counters.push(1);
this.callParent();
}
});
var one = Ext.create('TestBlah');
var two = Ext.create('TestBlah');
});