js/calc.js
/**
	 * @private
	 * Loops recursively through the dependent objects of objectChanged until all dependants are resolved.
	 * */
@private
Loops recursively through the dependent objects of objectChanged until all dependants are resolved.
@private Loops recursively through the dependent objects of objectChanged until all dependants are resolved .
function updateDependent(objectChanged)
	{
		if (objectChanged.dependants.length > 0)
		{
			console.log('updateDependent');
			for (var co in objectChanged.dependants)
			{
				var c = objectChanged.dependants[co];
				if (c != _currentOriginator)
				{
					if (c.exp && c.exp != "")
						setExpression(c.id, c.exp, true);
				}
				else
				{
					alert( "Cyclic reference detected at: " + _currentOriginator.id + "<->" + objectChanged.id + ". Reset this field.");
					_currentOriginator.exp = "";
				}
			}
		}
	}
function updateDependent ( objectChanged ) { if ( objectChanged . dependants . length > 0 ) { console . log ( 'updateDependent' ) ; for ( var co in objectChanged . dependants ) { var c = objectChanged . dependants [ co ] ; if ( c != _currentOriginator ) { if ( c . exp && c . exp != "" ) setExpression ( c . id , c . exp , true ) ; } else { alert ( "Cyclic reference detected at: " + _currentOriginator . id + "<->" + objectChanged . id + ". Reset this field." ) ; _currentOriginator . exp = "" ; } } } }
@private
 Loops recursively through the dependent objects of objectChanged until all dependants are resolved.
@private Loops recursively through the dependent objects of objectChanged until all dependants are resolved .