aboutsummaryrefslogtreecommitdiff
path: root/ext/fg/js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-05-20 18:34:13 -0700
committerAlex Yatskov <alex@foosoft.net>2017-05-20 18:34:13 -0700
commit52f092f0d2709e4fb8b1c00a4aea1fba97920509 (patch)
tree8dc5659b28e33bb1d91e93a045e2d67e654287a7 /ext/fg/js
parentb04c4d8be79a476bf408eb3ad74648baf7ba8cf5 (diff)
fixing old variable name
Diffstat (limited to 'ext/fg/js')
-rw-r--r--ext/fg/js/source-range.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/fg/js/source-range.js b/ext/fg/js/source-range.js
index 5db0ffc7..58b6a415 100644
--- a/ext/fg/js/source-range.js
+++ b/ext/fg/js/source-range.js
@@ -37,14 +37,14 @@ class TextSourceRange {
const state = TextSourceRange.seekForward(this.rng.startContainer, this.rng.startOffset, length);
this.rng.setEnd(state.node, state.offset);
this.content = state.content;
- return length - state.length;
+ return length - state.remainder;
}
setStartOffset(length) {
const state = TextSourceRange.seekBackward(this.rng.startContainer, this.rng.startOffset, length);
this.rng.setStart(state.node, state.offset);
this.content = state.content;
- return length - state.length;
+ return length - state.remainder;
}
containsPoint(point) {