PDA

View Full Version : The error too much recusion on component.update()



alba231
20 May 2013, 10:50 PM
Hi.

I have a bug 'too much recursion' when try to call it before the owner's component was not rendered yet.
Example - http://jsfiddle.net/7AnwT/1/

evant
20 May 2013, 11:13 PM
update() triggers a layout on the component, so you can't call update inside afterlayout.

alba231
21 May 2013, 12:28 AM
Yes, I see.
So, this is not possible to update html of an element with standard Ext function. I must use window.setTimeout or change the design. Am I right?

evant
21 May 2013, 1:26 AM
You can, just not in afterlayout.