I create several elements in initComponent() The problem is that this.items somehow refers to a class variable, not an instance variable.
So, when I make two instances, I get two buttons.
items: [], initComponent: function() { this.items.push( { xtype: 'button', ... }) ; this.callParent( arguments ); }
Since I have to use push, every time new elements are introduced.
Is there some instance equivalent to this.items where I can change the definition before the button is created or do I need to check for duplicates manually?
source share