Skip to content

Commit

Permalink
Merge pull request #662 from yabwe/empty-selection-fix
Browse files Browse the repository at this point in the history
Fix updateOnEmptySelection option
  • Loading branch information
nmielnik committed Jun 2, 2015
2 parents 047fb71 + 0e55d66 commit e44b0e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/selection.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ var Selection;

getSelectionRange: function (ownerDocument) {
var selection = ownerDocument.getSelection();
if (selection.rangeCount === 0 || true === selection.isCollapsed) {
if (selection.rangeCount === 0) {
return null;
}
return selection.getRangeAt(0);
Expand Down

0 comments on commit e44b0e5

Please sign in to comment.