diff options
author | Alex Yatskov <alex@foosoft.net> | 2016-04-23 21:13:34 -0700 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2016-04-23 21:13:34 -0700 |
commit | c8d0ef50046dde2e3214a242674dff3c6dbf2a45 (patch) | |
tree | f9372d8ee8ba2f6f64938ad384ffe8249062f83f /ext/fg/js/range.js | |
parent | defe4e5759354178c8a16d9df0bee0817abae99b (diff) |
WIP
Diffstat (limited to 'ext/fg/js/range.js')
-rw-r--r-- | ext/fg/js/range.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/fg/js/range.js b/ext/fg/js/range.js index a5c38e39..cf568a9c 100644 --- a/ext/fg/js/range.js +++ b/ext/fg/js/range.js @@ -79,7 +79,7 @@ class Range { } - static fromPos(point) { + static fromPoint(point) { const range = document.caretRangeFromPoint(point.x, point.y); return range === null ? null : new Range(range); } |