After creating an instance of MessageBox like this
var msgBox = Ext.create('Ext.window.MessageBox',{draggable: false});
-actually draggable false was set through an override to Ext.window.Window, I'm putting it like this to make it easier to reproduce.
- also I do prefer the singleton syntax but there are already a ton of instances created like this in the code I'm working on.
msgBox.alert("I am a bug, try to close me to reproduce");
Trying to close this MessabeBox calls the hide method:
hide: function() {
var me = this;
me.dd.endDrag();
me.progressBar.reset();
me.removeCls(me.cfg.cls);
me.callParent(arguments);
},
which throws the following error:
Cannot read property 'endDrag' of undefined
Am I missing something or this is a bug?
UPDATE:
I'm using ExtJs 4.1.1 (but also happens in Extjs 4.2.1 (fixed on 4.2.2))
Any ideas or comments ?