Commit 0c73c43e authored by Sean Hammond's avatar Sean Hammond Committed by GitHub

Merge pull request #549 from hypothesis/remove-window-annotator-export

Stop exporting the main annotation layer object as `window.annotator`
parents 9099f077 0033f774
......@@ -61,10 +61,9 @@ $.noConflict(true)(function() {
config.pluginClasses = pluginClasses;
window.annotator = new Klass(document.body, config);
var annotator = new Klass(document.body, config);
appLinkEl.addEventListener('destroy', function () {
appLinkEl.parentElement.removeChild(appLinkEl);
window.annotator.destroy();
window.annotator = undefined;
annotator.destroy();
});
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment