summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2019-03-07 10:38:50 +0300
committerAndrew Dolgov <[email protected]>2019-03-07 10:38:50 +0300
commitcf6f867febacceafb7c4cbc8ad991c2d0e802ade (patch)
tree5c8c5bf44d001a79d99d7d16367cac2e8c3e5859 /js
parentd876cca22a7a44e5f9b48881695db6c48c1808eb (diff)
getRange: handle start == stop
Diffstat (limited to 'js')
-rwxr-xr-xjs/Headlines.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/js/Headlines.js b/js/Headlines.js
index 6609c4bbf..f15d68f0e 100755
--- a/js/Headlines.js
+++ b/js/Headlines.js
@@ -1001,6 +1001,9 @@ define(["dojo/_base/declare"], function (declare) {
}
},
getRange: function (start, stop) {
+ if (start == stop)
+ return [start];
+
const rows = $$("#headlines-frame > div[id*=RROW]");
const results = [];
let collecting = false;