src/Window.js
function adjustRange(w, bisect) {
  var r0 = w.i0,
      r1 = w.i1 - 1,
      c = w.compare,
      d = w.data,
      n = d.length - 1;

  if (r0 > 0 && !c(d[r0], d[r0-1])) w.i0 = bisect.left(d, d[r0]);
  if (r1 < n && !c(d[r1], d[r1+1])) w.i1 = bisect.right(d, d[r1]);
}
function adjustRange(w, bisect) {
  var r0 = w.i0,
      r1 = w.i1 - 1,
      c = w.compare,
      d = w.data,
      n = d.length - 1;

  if (r0 > 0 && !c(d[r0], d[r0-1])) w.i0 = bisect.left(d, d[r0]);
  if (r1 < n && !c(d[r1], d[r1+1])) w.i1 = bisect.right(d, d[r1]);
}
function adjustRange ( w , bisect ) { var r0 = w . i0 , r1 = w . i1 - 1 , c = w . compare , d = w . data , n = d . length - 1 ; if ( r0 > 0 && ! c ( d [ r0 ] , d [ r0 - 1 ] ) ) w . i0 = bisect . left ( d , d [ r0 ] ) ; if ( r1 < n && ! c ( d [ r1 ] , d [ r1 + 1 ] ) ) w . i1 = bisect . right ( d , d [ r1 ] ) ; }
if frame type is 'range', adjust window for peer values
if frame type is range adjust window for peer values