context: function save(){	var i, j;	// c'est juste pour l'inspecteur : il contient le nom et les domain/range des fonctions	var tmpArray = new Array();	for (i = 0; i < NbCourbes; i++)		tmpArray[i] = fctns[i].name;	for (j = 0; j < NbCourbes; j++) {		// c'est stupide... j'ai invers range et domain dans 1.52		// NE PAS INVERSER c'est trop tard :-(		tmpArray[i++] = fctns[j].range[0];		tmpArray[i++] = fctns[j].range[1];		tmpArray[i++] = fctns[j].domain[0];		tmpArray[i++] = fctns[j].domain[1];	}		embedmessage("CreateNFunctions", NbCourbes, tmpArray);	// required for the number of color to save	embedmessage("legend", Legend);	embedmessage("grid", GridMode);	embedmessage("snap2grid", Snap2GridState);	embedmessage("hiddenpoint", HiddenPointDisplay);	embedmessage("clickadd", ClickAdd);	embedmessage("clickmove", ClickMove);	embedmessage("autosustain", AutoSustain);	embedmessage("timedisplay", TimeFlag);	embedmessage("autocursor", CursorChange);	embedmessage("bordersync", BorderSyncState);	embedmessage("ghost", Math.round(Ghostness * 100));	embedmessage("notifyrecalled", NotifyRecalledState);	embedmessage("mousereport", MouseReportState);			for (i = 0; i < NbCourbes; i++) {		embedmessage("SetColor", i, "brgb", Math.round(fctns[i].brgb[0] * 255), Math.round(fctns[i].brgb[1] * 255), Math.round(fctns[i].brgb[2] * 255) );		embedmessage("SetColor", i, "frgb", Math.round(fctns[i].frgb[0] * 255), Math.round(fctns[i].frgb[1] * 255), Math.round(fctns[i].frgb[2] * 255) );		embedmessage("SetColor", i, "rgb2", Math.round(fctns[i].rgb2[0] * 255), Math.round(fctns[i].rgb2[1] * 255), Math.round(fctns[i].rgb2[2] * 255) );		embedmessage("SetColor", i, "rgb3", Math.round(fctns[i].rgb3[0] * 255), Math.round(fctns[i].rgb3[1] * 255), Math.round(fctns[i].rgb3[2] * 255) );		embedmessage("SetColor", i, "rgb4", Math.round(fctns[i].rgb4[0] * 255), Math.round(fctns[i].rgb4[1] * 255), Math.round(fctns[i].rgb4[2] * 255) );		embedmessage("SetColor", i, "rgb5", Math.round(fctns[i].rgb5[0] * 255), Math.round(fctns[i].rgb5[1] * 255), Math.round(fctns[i].rgb5[2] * 255) );	}		embedmessage("redrawon");	// refresh de l'affichage aprs la lecture des arguments}
meta: 6421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6421/88df6a0b8b4a2372a89baf38cb59b5676710537b/ej.function.js/buggy/ejies-jsui/ej.function.js