	endAttempt: function (iTarget, iTentative)	{				// This is an implementation of the End Attempt Process (UP.4)		if (iTarget != null)		{			var children = iTarget.getChildren(false);						// Is the activity a tracked leaf			if (children == null && iTarget.getIsTracked())			{				// If the attempt was not suspended, perform attempt cleanup				if (!iTarget.getIsSuspended())				{					if (!iTarget.getSetCompletion())					{						// If the content hasn't set this value, set it						if (!iTarget.getProgressStatus(false))						{							iTarget.setProgress(TRACK_COMPLETED);						}					}										if (!iTarget.getSetObjective())					{						// If the content hasn't set this value, set it						if (!iTarget.getObjStatus(false, true))						{							iTarget.setObjSatisfied(TRACK_SATISFIED);						}					}				}			}			else if (children != null)			{				// The activity is a cluster, check if any of its children are				// suspended.								// Only set suspended state if this is a 'real' termiantion				if (!iTentative)				{					iTarget.setIsSuspended(false);					for (var i = 0; i < children.length; i++)					{						var act = children[i];						if (act.getIsSuspended())						{							iTarget.setIsSuspended(true);							break;						}					}										// If the cluster is not suspended check for selection and					// randomization 					if (!iTarget.getIsSuspended())					{						if (iTarget.getSelectionTiming() == TIMING_EACHNEW)						{							this.doSelection(iTarget);							iTarget.setSelection(true);						}												if (iTarget.getRandomTiming() == TIMING_EACHNEW)						{							this.doRandomize(iTarget);							iTarget.setRandomized(true);						}					}				}			}						// The activity becomes inactive if this is a 'real' termination			if (!iTentative)			{				iTarget.setIsActive(false);								if (iTarget.getIsTracked())				{					// Make sure satisfaction is updated according to measure					iTarget.triggerObjMeasure();				}								// Invoke rollup				this.invokeRollup(iTarget, null);            			}		}	},
6251	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6251/ebdb8ea432053e3eed7a5ec32e46f06704042fc4/ADLSequencer.js/buggy/Modules/Scorm2004/scripts/adl2js/ADLSequencer.js