Skip to content

Commit

Permalink
removed unused code block
Browse files Browse the repository at this point in the history
  • Loading branch information
Chrissi2812 authored Mar 6, 2019
1 parent adec9ef commit 50a2cee
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/domcoords.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,10 +239,6 @@ export function coordsAtPos(view, pos) {
let side, rect
if (node.nodeType == 3) {
if (offset < node.nodeValue.length) {
rect = singleRect(textRange(node, offset, 0), -1)
side = "left"
}
if ((!rect || rect.left == rect.right) && offset) {
rect = singleRect(textRange(node, offset - 1, offset), 1)
side = "right"
}
Expand Down

0 comments on commit 50a2cee

Please sign in to comment.