View Full Version : [NOREPRO] [4.0.2a] me.tools.close is undefined

30 Sep 2011, 5:25 AM

I would like to have all MessageBox windows without close button on the top right, so in Ext 3.x I did something like that:

Ext.window.MessageBox.prototype.closable = false;

However, in Ext 4.0.2a, I get following error:

me.tools.close is undefined

and that error is in line:

if (cfg.closable === false) { me.tools.close.hide(); } else { me.tools.close.show(); }

in ext-all.

30 Sep 2011, 10:07 AM
Hi @saprot,

thanks for submitting your report.
Please would you mind filling out the bug report template (http://www.sencha.com/forum/showthread.php?138165-How-to-report-a-bug) and provide a test case?

Thanks a lot!!!!

30 Sep 2011, 1:07 PM
Ext version tested:

Ext 4.0.2a
Browser versions tested against:

Firefox 7.0 with Firebug
Chrome 14

me.tools.close is undefined when setting Ext.window.MessageBox.prototype.closable = false;
Steps to reproduce the problem:

add Ext.window.MessageBox.prototype.closable = false; somewhere before showing a Ext.window.MessageBox
create a Ext.window.MessageBox
The result that was expected:

Ext.window.MessageBox with "close" tool not shown. It works in Ext 3.x
The result that occurs instead:

Firebug produces an error me.tools.show is undefined and MessageBox is not shown
Test Case:
Ext.window.MessageBox.prototype.closable = false;

title:'Save Changes?',
msg: 'You are closing a tab that has unsaved changes. Would you like to save your changes?',
buttons: Ext.Msg.YESNOCANCEL,
icon: Ext.Msg.QUESTION

30 Sep 2011, 2:27 PM
Thanks a lot for providing the bug infos in the template!
I've verified that is an actual bug and i've filed in our system.

30 Sep 2011, 3:44 PM
Confirmed in 4.0.2a, however this issue has already been resolved in a recent patch release.