rem: for(i=1; i < np; i++) { 
add: for(var i= 1; i < np; i++) { 
context: function onidle(x,y,but,cmd,shift,capslock,option,ctrl){	// add a final argument to mouse dump which indicates whether option is held down and 	// the preceding value is the curve to be edited on click-drag	var OldIdlePoint = IdlePoint;	var pa = f[front]["pa"];	var np = f[front].np;	var MousePoint;		IdlePoint = -1;	SelectedCurve = -1;		if (AllowEdit == 0 || f[front].display == 0)		return;	y = yOffset(y);		//post("idle\n");		if(isCurveMode && option) {		DisplayCursor(8)				for(i=1; i < np; i++) {			if(x < pa[i].x) {				// check to see if y is between the prev.y and curr.y				var y0 = pa[i].y;				var y1 = pa[i-1].y;								if(y0 < y1) {					if(y >= y0 && y <= y1) SelectedCurve = i;				} else {					if(y >= y1 && y <= y0) SelectedCurve = i;				}												break;			}		}				MousePoint = SelectedCurve;	}	else	{		for(i=0; i< np; i++) {			if ( (Math.abs(x - pa[i].x) < Tolerance) && (Math.abs(y - pa[i].y) < Tolerance) ) {				if (ClickMove == 1)					DisplayCursor(5);							IdlePoint = i;				if ( IdlePoint != OldIdlePoint) {	// que quand c'est diffrent...					RedrawOrNot(IdlePoint);					break;							}			}		}				MousePoint = IdlePoint;	}		if (MouseReportState)		outlet(DUMPOUT, "mouseidle", 	ejies.clip(x2val(f[front], x), f[front].domain[0], f[front].domain[1]),										ejies.clip(y2val(f[front], y), f[front].range[0], f[front].range[1]),										but, IdlePoint);	// TODO ici il faut peut-rte tester "option"	if (IdlePoint == -1 && shift == 1) {		DisplayCursor(1);	} else if (IdlePoint == -1 && shift == 0 && ClickAdd == 1) { // TODO: pareil		DisplayCursor(6);	}		RedrawOrNot(IdlePoint);}
meta: 6421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6421/fd3c2db7ec5622784168e75eedd5145b47e8b8b7/ej.function.js/clean/ejies-jsui/ej.function.js