View Full Version : autoRef does not work...

19 Jul 2010, 11:26 AM

I don't know if I am doing something wrong or maybe something is broken!
I have a toolbar. In the toolbar I have a button with a menu. In that menu there is a menu item. I want to do an operation when I click it. So I give it an autoRef name.

Then I export the project
inside my project file ".js" I do the following:

MyViewport = Ext.extend(MyViewportUi, {
initComponent: function() {
this.HelpAbout.on('click',this.HelpAboutClick, this);
,'HelpAboutClick': function(){

But the firebug tells me that "this.HelpAbout is undefined"...!
I checked inside the ui.js file and I see the following code exported by the designer:

xtype: 'menuitem',
text: 'About',
iconCls: 'About',
ref: '../../../../HelpAbout'

What am I missing?
Thanks in advance...

19 Jul 2010, 11:58 AM
Hi Mihai,

There is a thread on this topic already. It is a bug in Ext JS. I posted a patch to Ext JS to fix the issue until it is resolved in an Ext JS release.


19 Jul 2010, 8:52 PM
hahaha! Bloody hell!
I thought something was up hehehe! The sad part is that I did read about it a few weeks ago...! hmmm!

Thank you so much - it worked like a charm!