Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext User
    Join Date
    Feb 2008
    Posts
    11
    Vote Rating
    0
    woomboom is on a distinguished road

      0  

    Exclamation [CLOSED][ext-core-svn74] Ext.lib.Event.purgeElement causing error

    [CLOSED][ext-core-svn74] Ext.lib.Event.purgeElement causing error


    Using code from svn @ r5496 I am seeing an error that happens often. It breaks in Ext.lib.Event.purgeElement saying l is null. I applied the following override to fix:

    Code:
    Ext.lib.Event.purgeElement = function(el, recurse, eventName) {
    	var me = this,
    		i, l, v, len;
    	l = me.getListeners(el, eventName) || []; 
    	for (i = 0, len = l.length; i < len; i++) {
    		v = l[i];
    		if(v) {
    			me.removeListener(el, v.type, v.fn, v.idx);
    		}
    	}
    
    	if (recurse && el && el.childNodes) {
    		for (i = 0, len = el.childNodes.length; i < len; i++) {
    			me.purgeElement(el.childNodes[i], recurse, eventName);
    		}
    	}
    }

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    17,067
    Vote Rating
    660
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    Can you post a simple test case to demonstrate the issue?
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  3. #3
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    18
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    Ext-core svn77 resolves this issue. But in the future, please include a test case as Evan stated.

  4. #4
    Ext JS Premium Member
    Join Date
    Feb 2009
    Posts
    57
    Vote Rating
    0
    papandreou is on a distinguished road

      0  

    Default


    Quote Originally Posted by Jamie Avins View Post
    Ext-core svn77 resolves this issue. But in the future, please include a test case as Evan stated.
    I ran into this problem as well, but unfortunately r77 doesn't fix it for me. However the below patch does:

    Code:
            removeListener : function(element, eventName, fn, scope){
                var el = Ext.getDom(element),
                    f = ((el && elHash[el.id]) || {})[eventName] || [],
                    wrap, i, l, k;
    I'm sorry I don't have the time to make a test case. My problem occurred when an Ext.Window (containing a FormPanel with a GridPanel and some combo boxes) was closed using the X.

    Best regards,
    Papandreou

  5. #5
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    18
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    Tommy ran into this today as well and it fixed that in svn79.