PDA

View Full Version : Ext.ComponentMgr



schoudry
25 Aug 2013, 5:31 PM
Hi,


I am on Extjs 3.4


Trying to get a component by id using Ext.getCmp("myid") in a setInterval() method, and it always returns undefined.. If i use firebug and call the same method Ext.getCmp() i get the object, but a setInterval running at the same time returns undefined..

The count of items in Ext.ComponentMgr.all.length is also not the same ( print to console in setInterval and check the size using firebug); the object exists and using firebug i can see that...

Extjs defines multiple component managers? i don't think so, but somehow its a simple straightforward api call and doesn't work

The following api call doesn't work either

CQ.Ext.ComponentMgr.onAvailable('myid', function(){
alert("Hello");
});

slemmon
27 Aug 2013, 7:09 AM
Can you give a full test case of the issue you're seeing?