-
19 Oct 2009 7:01 PM #1
[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); } } }
-
19 Oct 2009 8:50 PM #2
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!
-
20 Oct 2009 8:33 AM #3Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Redwood City, California
- Posts
- 3,651
- Vote Rating
- 14
Ext-core svn77 resolves this issue. But in the future, please include a test case as Evan stated.
-
21 Oct 2009 4:10 AM #4
I ran into this problem as well, but unfortunately r77 doesn't fix it for me. However the below patch does:
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.Code:removeListener : function(element, eventName, fn, scope){ var el = Ext.getDom(element), f = ((el && elHash[el.id]) || {})[eventName] || [], wrap, i, l, k;
Best regards,
Papandreou
-
21 Oct 2009 10:50 AM #5Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Redwood City, California
- Posts
- 3,651
- Vote Rating
- 14
Tommy ran into this today as well and it fixed that in svn79.
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote
