summaryrefslogtreecommitdiff
path: root/ext/fg/js/source-image.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-image.js
parent871acf7c2d75b349e55b761d5513223cf716464e (diff)
Better range handling.
Diffstat (limited to 'ext/fg/js/source-image.js')
-rw-r--r--ext/fg/js/source-image.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/ext/fg/js/source-image.js b/ext/fg/js/source-image.js
index bbc0ba46..319f25fe 100644
--- a/ext/fg/js/source-image.js
+++ b/ext/fg/js/source-image.js
@@ -32,8 +32,14 @@ class TextSourceImage {
return this.img.getAttribute('alt') || '';
}
- setLength(length) {
+ setStartOffset(length) {
+ // NOP
+ return 0;
+ }
+
+ setEndOffset(length) {
this.length = length;
+ return length;
}
containsPoint(point) {