View Full Version : el is undefined error on removing window widget

25 May 2011, 1:51 PM
Hi, I have a Ext.window widget that is a child component to a Viewport 'center' panel. I want to be able to do a remove to destroy the window. I keep getting an error in ext-all-debug-comments.js line 3663 the el is undefined.

var cenPanel = Ext.getCmp('centerPanel');
cenPanel.remove('someWindow', true);

In Firebug I get the following javascript error:

el is undefined
out = (v = el.style[prop]) ? v :

Otherwise it seems to be doing what I want. How can I prevent the error?


26 May 2011, 6:37 AM
Any idea on what may be causing this error? I still haven't figured it out.

26 May 2011, 8:03 AM
I found something that seems to work. If I hide the window first, then give it a 2 second timeout and then remove the window with the destroy option, the window is removed without the Ext error.