stickshift.js
function clearSelectionEvents(array) {
    while (array.length) {
      var last = lst(array);
      if (last.ranges) array.pop();
      else break;
    }
  }
function clearSelectionEvents(array) {
    while (array.length) {
      var last = lst(array);
      if (last.ranges) array.pop();
      else break;
    }
  }
function clearSelectionEvents ( array ) { while ( array . length ) { var last = lst ( array ) ; if ( last . ranges ) array . pop ( ) ; else break ; } }
Pop all selection events off the end of a history array. Stop at a change event.
Pop all selection events off the end of a history array . Stop at a change event .