aboutsummaryrefslogtreecommitdiff
path: root/ext/fg/js/source-input.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-07-24 21:18:17 -0700
committerAlex Yatskov <alex@foosoft.net>2016-07-24 21:18:17 -0700
commit19cc8fda335f27229753038709f3765090e169e8 (patch)
tree49ee07eb15e84c78eca7e07ac81aa88a2c453f08 /ext/fg/js/source-input.js
parent871acf7c2d75b349e55b761d5513223cf716464e (diff)
Better range handling.
Diffstat (limited to 'ext/fg/js/source-input.js')
-rw-r--r--ext/fg/js/source-input.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/ext/fg/js/source-input.js b/ext/fg/js/source-input.js
index 0bea977b..9f5a76a0 100644
--- a/ext/fg/js/source-input.js
+++ b/ext/fg/js/source-input.js
@@ -32,8 +32,14 @@ class TextSourceInput {
return this.input.nodeName === 'BUTTON' ? this.input.innerHTML : this.input.value;
}
- setLength(length) {
+ setStartOffset(length) {
+ // NOP
+ return 0;
+ }
+
+ setEndOffset(length) {
this.length = length;
+ return length;
}
containsPoint(point) {