rem: if (isCurveMode) calcFunctionCurves(courbe); 
add: calcFunctionCurves(courbe); 
context: function MyNormalize(courbe){	if (courbe.np < 2)		return;	var minX = courbe.domain[1]	var maxX = courbe.domain[0];	var minY = courbe.range[1]	var maxY = courbe.range[0];	var i;		// process in one loop	for (i = 0 ; i < courbe.np; i++) {		if (courbe.pa[i].valy < minY)			minY = courbe.pa[i].valy;		if (courbe.pa[i].valy > maxY)			maxY = courbe.pa[i].valy;		if (courbe.pa[i].valx < minX)			minX = courbe.pa[i].valx;		if (courbe.pa[i].valx > maxX)			maxX = courbe.pa[i].valx;	}		if (minX == maxX && minY == maxY)		return;	//two points at the same xy min/max	if (minX == maxX)		ApplyNormalizeY(courbe, minY, maxY);	// points have the same X min/max position so process only a normalize on Y	else if (minY == maxY)		ApplyNormalizeX(courbe, minX, maxX);	// points have the same Y min/max position so process only a normalize on X	else	{		// most front case		var rangeX = (courbe.domain[1] - courbe.domain[0]) / (maxX - minX);		var offsetX = 0 - minX;		var rangeY = (courbe.range[1] - courbe.range[0]) / (maxY - minY);		var offsetY = 0 - minY;				for (i = 0; i < courbe.np; i++) {			courbe.pa[i].valx = (courbe.pa[i].valx + offsetX) * rangeX - (0 - courbe.domain[0]);			courbe.pa[i].x = val2x(courbe, courbe.pa[i].valx);			courbe.pa[i].valy = (courbe.pa[i].valy + offsetY) * rangeY - (0 - courbe.range[0]);			courbe.pa[i].y = val2y(courbe, courbe.pa[i].valy);		}				if (isCurveMode)			calcFunctionCurves(courbe); 	// added - MR	}	DoNotify();	askForDrawFunctions();}
meta: 6421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6421/fd3c2db7ec5622784168e75eedd5145b47e8b8b7/ej.function.js/clean/ejies-jsui/ej.function.js