• Robert Knight's avatar
    Fix issues that could cause unexpected `onDocumentReady` firing · f7ab8ac0
    Robert Knight authored
    Fix various issues that could cause the callback to `onDocumentReady` to
    fire after the subscription had been canceled.
    
     - `pollOnUnload` was called twice for the initial document, once at the
       top level of the function and once by the first call to
       `checkForDocumentChange`. This resulted into "unload" listeners being
       added for the same window.
    
     - The initial async `checkForDocumentChange` call would still fire if
       the subscription was immediately canceled
    
     - If the current window's "unload" event fired after the subscription
       was canceled, polling would be restarted, effectively re-subscribing
       to document changes.
    f7ab8ac0
Name
Last commit
Last update
..
anchoring Loading commit data...
components Loading commit data...
config Loading commit data...
integrations Loading commit data...
test Loading commit data...
util Loading commit data...
.eslintrc.js Loading commit data...
adder.js Loading commit data...
annotation-counts.js Loading commit data...
bucket-bar-client.js Loading commit data...
bucket-bar.js Loading commit data...
features.js Loading commit data...
frame-observer.js Loading commit data...
guest.js Loading commit data...
highlighter.js Loading commit data...
hypothesis-injector.js Loading commit data...
icons.js Loading commit data...
index.js Loading commit data...
notebook.js Loading commit data...
range-util.js Loading commit data...
selection-observer.js Loading commit data...
sidebar-trigger.js Loading commit data...
sidebar.js Loading commit data...
toolbar.js Loading commit data...