Read the statement by Michael Teeuw here.
updateDom animationSpeed
-
Hello - I’m developing my first module and when I want to update the dom, I call the following methods:
this.updateDom(animationSpeed); this.scheduleUpdate();
If I set the
animationSpeed
to something like 3 seconds, the text I added to the dom fades to nothing, which is not what I want. I want the text to stay persisted on the screen. If I set it to 0, the changes don’t show up at all. If I set it to a really really large value, the text does stay, but it seems to overload my processor’s CPU. How do I use theupdateDom
method to persist text on the screen? Thanks so much.-Russ
-
@russifer remove animation then?
-
@broberg I did remove the animation speed value, so instead didn’t pass anything into updateDom, but that causes the updates not to occur at all. The new text never appears on screen.
-
@russifer you might want to post or link your whole module, that makes debugging for others easier to find your mistake