PDA

View Full Version : Ext.Msg, Ext.MessageBox : undefined ! :o



Araberen
29 Nov 2011, 5:01 PM
Hi,

Weird! I'm using Ext.Msg for a while without a problem... and now, it puts me sometimes that Ext.Msg is undefined (but Ext is still well defined).

Depending on the order of my actions, it gets undefined or not. In my opinion, the problem comes clearly from my code, that I'm still analyzing to understand...

But how is it even possible? Of course, I'm never overwriting Ext.Msg or other Ext base stuff (at least, not explicitly).

:-?

evant
29 Nov 2011, 5:07 PM
Are you using dynamic loading? If so, are you explicitly requiring it?

Araberen
29 Nov 2011, 5:11 PM
I solved the problem by adding a requires: [ 'Ext.MessageBox' ] in my object.
But still, I do not understand why I need it...

Whatever is the order of my actions, I'm always creating an Ext.Window (with Ext.create) before using any Ext.MessageBox. And until now, I never had to manually include Ext.Msg.

:s

PS : So I guess I'm using dynamic loading...