[Time Conductor] Test series wrapping

WTD-1515
This commit is contained in:
Victor Woeltjen
2015-09-15 10:58:10 -07:00
parent f29951140f
commit 493c63be44
4 changed files with 124 additions and 1 deletions

View File

@@ -43,7 +43,7 @@ define(
function binSearch(min, max, value) {
var mid = Math.floor((min + max) / 2);
return min >= max ? min :
return min > max ? min :
series.getDomainValue(mid) < value ?
binSearch(mid + 1, max, value) :
binSearch(min, mid - 1, value);