DescriptionMD WebUI: Make cr-lazy-render get() synchronous
dom-if and similar stamp their templates asynchronously, because it's
not a great idea to block execution to stamp out DOM as a result of
changes to properties. cr-lazy-render does not really share the same
concerns: it will only stamp when explicitly told to, and the caller
should be aware of how long this could take. As such, there is no
particular reason to prefer async stamping.
This CL changes all existing usage of cr-lazy-render to be synchronous,
which simplifies both application code and tests. An asynchronous API
could still be added in the future, if required.
BUG=642200
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
Committed: https://crrev.com/cede888c27275835e5aaadf5dac49379eb3ac106
Cr-Commit-Position: refs/heads/master@{#419407}
Patch Set 1 #Patch Set 2 : Simplify test more #
Total comments: 2
Patch Set 3 : Closure #Patch Set 4 : Rebase #Messages
Total messages: 20 (12 generated)
|