Skip to content

Commit

Permalink
added cleanup of range state in selection
Browse files Browse the repository at this point in the history
  • Loading branch information
spocke committed Feb 26, 2018
1 parent 4b56e84 commit 92975f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/main/ts/api/dom/Selection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ export const Selection = function (dom, win: Window, serializer, editor: Editor)
};

const destroy = () => {
win = null;
win = selectedRange = explicitRange = null;
controlSelection.destroy();
};

Expand Down

0 comments on commit 92975f3

Please sign in to comment.