rem: this._events.elementAt(0)._earliestOverlapIndex = 0; 
add: var l = this._events.length(); for (var i = 0; i < l; i++) { var evt = this._events.elementAt(i); evt._earliestOverlapIndex = i; } 
context: Timeline.EventIndex.prototype._index = function() {    /*     *  For each event, we want to find the earliest preceding     *  event that overlaps with it, if any.     */        this._events.elementAt(0)._earliestOverlapIndex = 0;        var toIndex = 1;        var l = this._events.length();    for (var i = 0; i < l; i++) {        var evt = this._events.elementAt(i);        var end = evt.getEnd().getTime();                while (toIndex < l) {            var evt2 = this._events.elementAt(toIndex);            var start2 = evt2.getStart().getTime();                        if (start2 < end) {                evt2._earliestOverlapIndex = i;                toIndex++;            } else {                evt2._earliestOverlapIndex = toIndex;                break;            }        }    }};
meta: 7652	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/7652/45a4cab321947748bd8ef9ff80d840735ecbb442/data-structure.js/clean/src/main/webapp/api/scripts/util/data-structure.js