Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Commit

Permalink
Ensure disabling Hover Preview detaches its listener from whatever do…
Browse files Browse the repository at this point in the history
…cument

it was last attached to.
  • Loading branch information
peterflynn committed Apr 24, 2013
1 parent 1030dcf commit b7ac07a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extensions/default/HoverPreview/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ define(function (require, exports, module) {
editorHolder.removeEventListener("scroll", hidePreview, true);

// Cleanup doc "change" listener
onActiveEditorChange(null, null, null);
onActiveEditorChange(null, null, EditorManager.getActiveEditor());
$(EditorManager).off("activeEditorChange", onActiveEditorChange);

hidePreview();
Expand Down

0 comments on commit b7ac07a

Please sign in to comment.