PDA

View Full Version : Ext.Msg.hide() raise unusual error from core files.



extjs.mscit
20 Mar 2014, 9:27 AM
I use following to hide wait message. Sometimes it raise error and sometimes does not.

Ext.Msg.hide(); //Stop the wait message.

Error description.

TypeError: me.dd is undefined ext-all-debug.js (line 85996)






me.dd.endDrag();

scottmartin
20 Mar 2014, 10:03 AM
See if this helps in your case:


Ext.define('EXTJSIV-10566.window.MessageBox', {
override: 'Ext.window.MessageBox',

hide: function() {
var me = this,
cls = me.cfg.cls;

if (me.draggable) {
me.dd.endDrag();
}
me.progressBar.reset();
if (cls) {
me.removeCls(cls);
}
me.callSuper(arguments);
}
});

extjs.mscit
21 Mar 2014, 3:49 AM
I still have same error.

TypeError: me.dd is undefined



me.dd.endDrag();




When I trace it further, I found that "me.draggable" is set to true.
So It executes the same line.

Can I check different way?? like " if (me.dd) " then execute further.

scottmartin
21 Mar 2014, 5:05 AM
Please provide a working test case so we can have a look.

extjs.mscit
21 Mar 2014, 5:22 AM
Ext.override(Ext.window.MessageBox,
{
hide: function() {
var me = this;
// cls = me.cfg.cls; // raise error

if (me.dd) {
me.dd.endDrag();
}
me.progressBar.reset();
//if (cls) {
// me.removeCls(cls); // raise error
//}
//me.removeCls(me.cfg.cls); // raise error
me.callParent(arguments);
}
});

shookpa
10 Jul 2014, 7:21 AM
Hi Guys, I have the same error, do you have the fix for that? Thanks a lot!!!