Browse Source

getRange: handle start == stop

Andrew Dolgov 1 year ago
parent
commit
cf6f867feb
1 changed files with 3 additions and 0 deletions
  1. 3 0
      js/Headlines.js

+ 3 - 0
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;