actList = new Object(); 
actList = new Array(); 
	scanObjectives: function ()	{		// Walk the activity tree, recording all mapped global objectives		var walk =  this.mRoot;		var lookAt = new Array();				while (walk != null)		{			// Check if the activity has children			if (walk.hasChildren(true))			{				// Look at its children later				lookAt[lookAt.length] = walk;			}						// Check if the activity references global objectives			var objs = walk.getObjectives();						if (objs != null)			{				for (var i = 0; i < objs.length; i++)				{					var obj = objs[i];										if (obj.mMaps != null)					{						for (var j = 0; j < obj.mMaps.length; j++)						{							var map = obj.mMaps[j];							var target = map.mGlobalObjID;														// Make sure we haven't already added this objective							if (this.mObjSet == null)							{								this.mObjSet = new Array();								this.mObjSet[0] = target;							}							else							{								var found = false;																for (var k = 0; k < this.mObjSet.length && !found; k++)								{									var id = this.mObjSet[k];									found = (id == target);								}								if (!found)								{									this.mObjSet[this.mObjSet.length] = target;								}							}														// If this is a 'read' objective add it to our obj map							if (map.mReadStatus || map.mReadMeasure)							{								if (this.mObjMap == null)								{									this.mObjMap = new Object();								}																var actList = this.mObjMap[target];																if (actList == null)								{									actList = new Object();								}																actList[actList.length] = walk.getID();								this.mObjMap[target] = actList;							}						}					}				}			}						// Walk the current level of the tree			walk = walk.getNextSibling(true);						// If there is not another sibling			if (walk == null)			{				// Look one level deeper				if (lookAt.length != 0)				{					// Remove the activity from the 'lookat' list					walk = lookAt[0];					//delete lookAt[0];					lookAt.splice(0,1);					// Start at the first child of the activity					walk = walk.getChildren(true)[0];				}			}		}		this.mObjScan = true;	}
6251	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6251/13ee04e214149cc9fc055550730d017e420331db/SeqActivityTree.js/buggy/Modules/Scorm2004/scripts/adl2js/SeqActivityTree.js