-
Notifications
You must be signed in to change notification settings - Fork 10k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move the reset
-calls to occur last in the toolbar-constructors
#15296
Conversation
@calixteman I believe that this should get rid of the soft-reload issues you've encountered. /botio-linux preview |
By invoking the `reset` methods *last* in the `Toolbar`/`SecondaryToolbar`-constructors, we ensure that the "toolbarreset"/"secondarytoolbarreset"-events are actually handle when the viewer loads. Note that previously those events were dispatched *before* the relevant event-listeners had been attached. With this small change we can avoid inconsistent initial toolbar-state, specifically in the case when the viewer is *reloaded* (since Firefox keeps the HTML-state on "soft" reloads).
7fa6725
to
047522a
Compare
From: Bot.io (Linux m4)ReceivedCommand cmd_preview from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.241.84.105:8877/941662b03d48fb6/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.241.84.105:8877/941662b03d48fb6/output.txt Total script time: 2.40 mins Published |
/botio integrationtest |
From: Bot.io (Linux m4)ReceivedCommand cmd_integrationtest from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.241.84.105:8877/32ecb06f4dc9690/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_integrationtest from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.193.163.58:8877/9f4ae62dc2ae4d5/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.241.84.105:8877/32ecb06f4dc9690/output.txt Total script time: 4.71 mins
|
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/9f4ae62dc2ae4d5/output.txt Total script time: 8.72 mins
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thank you.
By invoking the
reset
methods last in theToolbar
/SecondaryToolbar
-constructors, we ensure that the "toolbarreset"/"secondarytoolbarreset"-events are actually handle when the viewer loads. Note that previously those events were dispatched before the relevant event-listeners had been attached.With this small change we can avoid inconsistent initial toolbar-state, specifically in the case when the viewer is reloaded (since Firefox keeps the HTML-state on "soft" reloads).