summaryrefslogtreecommitdiff
path: root/ext/fg/js/range.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-04-23 21:13:34 -0700
committerAlex Yatskov <alex@foosoft.net>2016-04-23 21:13:34 -0700
commitc8d0ef50046dde2e3214a242674dff3c6dbf2a45 (patch)
treef9372d8ee8ba2f6f64938ad384ffe8249062f83f /ext/fg/js/range.js
parentdefe4e5759354178c8a16d9df0bee0817abae99b (diff)
WIP
Diffstat (limited to 'ext/fg/js/range.js')
-rw-r--r--ext/fg/js/range.js2
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);
}