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

Commit

Permalink
Correct object reference
Browse files Browse the repository at this point in the history
Fixes #196
  • Loading branch information
Oliver Joseph Ash committed Jun 13, 2014
1 parent 97f8ead commit 517b22a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/selection.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ define(function () {
endMarker.parentNode.removeChild(endMarker.nextSibling);
}

if (!this.isCollapsed) {
if (! this.selection.isCollapsed) {
// Start marker
var rangeStart = this.range.cloneRange();
rangeStart.collapse(true);
Expand Down

0 comments on commit 517b22a

Please sign in to comment.