function walk(collection, type) { var schem = remoteMapping[type]; var res = result[type]; for (var k in collection) { var item = collection[k]; if (item.dirty===0) {continue;} var data = []; for (var i=0, ni=schem.length; i<ni; i++) 
function walk(items) 
	function walk(collection, type) 	{		var schem = remoteMapping[type];		var res = result[type];		for (var k in collection) 		{			var item = collection[k];			if (item.dirty===0) {continue;}			var data = [];			for (var i=0, ni=schem.length; i<ni; i++) 			{				data.push(item[schem[i]]);			}			res.push(data);			switch (k)			{				case 'node':					walk(item.objectives, "objective");					if (item.dirty!==2) {continue;}					walk(item.comments, "comment");					walk(item.interactions, "interaction");					walk(item.correct_responses, "correct_response");					break;				case 'interaction':					walk(item.correct_responses, "correct_response");					walk(item.objectives, "objective");					break;			}		}	}
6251	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6251/d026bc0adc8e7e6952a80d68d91a81165bbf0c21/main.js/clean/Modules/Scorm2004/scripts/main.js