Assigning listeners in config does not apply the handlers to a panel
Code:
Ext.define('MyApp.view.Add', {
extend: 'Ext.Panel',
config: {
fullscreen: true,
layout: 'card',
items: [
{
xtype: 'panel',
layout: {
type: 'vbox',
pack: 'center',
align: 'center'
},
items: [
{
xtype: 'panel',
html: 'Justin Beefer'
}
]
}
],
listeners: {
painted: function() {
console.log('foo');
}
}
},
When creating a new instance, the listeners won' tbe fired, however when using on()/addListener() upon the instance, then the events work. What's going on?