What does Polymer.flush() do?

Viewed 2512

What exactly does the Polymer.flush() function do? I have used it in writing tests for a polymer component using paper-dialog. It says here in the documentation that it has to be called immediately after any dom mutations. Can anyone explain what is happening here behind scenes and some other scenarios where this function is needed?

1 Answers
Related