View Full Version : 'Ext.elCache[...].events' is null or empty

24 Jan 2011, 12:31 AM
Always met this error, does anyone know where is my code wrong/bug?

I traced the error in the below code:

removeListener : function(el, eventName, fn, scope){
el = Ext.getDom(el);
var id = getId(el),
f = el && (Ext.elCache[id].events)[eventName] || [], -->Ext.elCache[id] is null

function addListener(el, ename, fn, task, wrap, scope){
el = Ext.getDom(el);
var id = getId(el),
es = Ext.elCache[id].events,-->Ext.elCache[id] is null


25 Jan 2011, 10:53 AM
are you destroying a component?!?

25 Jan 2011, 5:42 PM
I am testing our new website developed by Extjs, did colsing/opening tabs in tabpanel or windows and so on, and always met this error with no rules. Sometime I colsed a tab with this error, then I open another tab, the old tab is opened again, seems the resouse do not released. I am sufferring from it along time, and do not know where is wrong with our code.

plz advice.

25 Jan 2011, 6:16 PM
to me it happens only once, with a tinymce rte. I solved this by deleting the id that i defined myself for it. Because tinymce try to destroy itself, but he cannot just because ext destroy it before. so, when you can, try not use id... if really absolute necessity, try to use itemId. But try first with no id. This only to find if this is the cause. Then, you'll see something else after. Hope this can help.