Results 1 to 4 of 4

Thread: 'Ext.elCache[...].events' is null or empty

  1. #1
    Sencha User
    Join Date
    Oct 2010
    Posts
    6

    Default 'Ext.elCache[...].events' is null or empty

    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

    and
    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

    Thanks.

  2. #2
    Sencha User jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    DC Area =)
    Posts
    16,364

    Default

    are you destroying a component?!?

  3. #3
    Sencha User
    Join Date
    Oct 2010
    Posts
    6

    Default

    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.

  4. #4
    Sencha User
    Join Date
    Oct 2010
    Posts
    157

    Default

    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.

Similar Threads

  1. Ext.elCache[...].events' is null or not an object
    By just_a_kid in forum Ext 3.x: Help & Discussion
    Replies: 5
    Last Post: 30 Nov 2010, 1:06 AM
  2. [OPEN-1350] [3.3.0] Ext.elCache throws exception in IE
    By simonwg in forum Ext 3.x: Bugs
    Replies: 0
    Last Post: 20 Oct 2010, 6:20 PM
  3. set datefield to null/empty
    By nnextjs in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 4 Feb 2009, 12:05 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •