I have the following code.
Ext.define(foo.MyComponent, {
   extend: 'Ext.Component',
   tpl: new XTemplte({'blah blah'}),
   data: {},
   initComponent: function(){
       this.callParent(arguments);
       this.on('click', function () {alert(1)});
   }
});
This is rendering properly. But the click event I am attaching inside initComponent is not getting registered. Am I missing something? I am using ExtJS 4.2.1
