Bug #24892
closedPagetree cause endless loop in ExtJS events
0%
Description
Steps to reproduce:
- Reload the Backend
- open javascript console
- execute this snippet
Ext.util.Observable.prototype.fireEvent = Ext.util.Observable.prototype.fireEvent.createInterceptor(function() { console.log(arguments); return true; });
- call page module, watch console output
(issue imported from #M17407)
Files
Updated by Eric Auchterberge almost 14 years ago
Patch solved the endless loop issue in my installation.
I was looking at all pagetree related issues because pagetree was not loading at all, the strange thing is that only after I executed your snippet in the console, to verify your new issue, pagetree appeared.
To resume, I've applied the patch and both issues (endless loop and in my case no pagetree load) are solved.
Updated by Steffen Kamper almost 14 years ago
as Steffen reported problems with first render, i researched it and removed the afterrender listener complete.
Now, everytime if items are added or removed, i add a doLayout call. This is done from the parent container, which is the correct way to do.
Please find attached patch version 2 and test it.
Updated by Eric Auchterberge almost 14 years ago
Yep, noticed the first render issue, even after applying first patch.
Tested the second patch on a new install, it fixes the endless looping and issues with first render (even seem to be a bit faster)
Updated by Steffen Kamper almost 14 years ago
Committed to trunk and 4_5 (rev 10379/10380)