rem: autoSaver.state = 1; 
add: var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1; var flashObj = InternetExplorer ? localstore : document.localstore; if ( flashObj ) { autoSaver.state = 1; } else { autoSaver.runs--; } 
context: function WikiAutoSave_doAutoSave(saveID) {	var autoSaver = WikiAutoSave_autoSaveObjects[saveID];	if ( autoSaver != null && autoSaver.running  ) 	{		try 		{			try 			{				if ( autoSaver.clearLog ) 				{				    clearLog();				}				else 				{					autoSaver.clearLog = true;				}			   if ( autoSaver.state == 0 ) {				 // let the dom settle down				 autoSaver.state = 1;			   } else  if ( autoSaver.state == 1 ) {			   	autoSaver.restoreContent();			   	log("Restored Content");				 autoSaver.state = 2;				 autoSaver.interval = 10000;			   } else {				autoSaver.saveContent();			   	log("Saveded Content");				}			//	autoSaver.runs--;			} 			catch (e)  			{ 				log("Error "+e);			}			if ( autoSaver.runs == 0 ) 			{				alert("Done all ");			}	 			else			{				window.setTimeout("WikiAutoSave_doAutoSave("+saveID+")",autoSaver.interval);						}		} 		catch (e)  		{ 			log("Error "+e);			autoSaver.runs = 0;		}			} else {	   log("Autosave failed, none found "+saveID);	}}
meta: 1235	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1235/17395e6600e0c88cbdb7590f7e3d50484f01bee0/autosave.js/clean/rwiki/rwiki-tool/tool/src/webapp/scripts/autosave.js