Read the statement by Michael Teeuw here.
error loop
-
@jchenaud
MODULE_DOM_CREATEDis not so good time. Because, It would be emitted when Your DOM was created, but All of other DOMs are not rendered yet.DOM_OBJECTS_CREATEDis better.
If you want to usingposition, use.getDom(). A usual way to use position is, in.getDom()to initialize your rendering and to prepare the framework to draw.
And you can choose one of drawing tricks.-
getDom()shall take care of all the drawing. in.getDom()put all of your rendering framework and contents. and you can refresh your render by calling.updateDom() -
getDom()shall draw only framework, Contents should be drawn by your another function with HTML DOM manipulation. -
or
getDom()just return empty wrapper, Then, all of your rendering and refreshing will be performed by yourself.
Which is better? case-by-case.
For the last question; I cannot figure out. :)
-
