DOMListener() calls setStateFromDOM() which calls setState() which calls updateAndTriggerWatchers(). Since none of these functions can exit early, updateAndTriggerWatchers() will always be called by virtue of the setStateFromDOM() call and thus doesn't need to be explicitly invoked.
DOMListener()
callssetStateFromDOM()
which callssetState()
which callsupdateAndTriggerWatchers()
. Since none of these functions can exit early,updateAndTriggerWatchers()
will always be called by virtue of thesetStateFromDOM()
call and thus doesn't need to be explicitly invoked.