fixing old variable name

This commit is contained in:
Alex Yatskov 2017-05-20 18:34:13 -07:00
parent b04c4d8be7
commit 52f092f0d2

View File

@ -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) {