context: 	this.watchInFlight = function(){		var totalCount = 0;		var doneCount = 0;		for(var param in this._state){			totalCount++;			var currentState = this._state[param];			if(currentState.isDone){				doneCount++;				delete this._state[param];			}else if(!currentState.isFinishing){				var listener = currentState.kwArgs;				try{					if(currentState.checkString && eval("typeof(" + currentState.checkString + ") != 'undefined'")){						currentState.isFinishing = true;						this._finish(currentState, "load");						doneCount++;						delete this._state[param];					}else if(listener.timeoutSeconds && listener.timeout){						if(currentState.startTime + (listener.timeoutSeconds * 1000) < (new Date()).getTime()){							currentState.isFinishing = true;							this._finish(currentState, "timeout");							doneCount++;							delete this._state[param];						}					}else if(!listener.timeoutSeconds){						//Increment the done count if no timeout is specified, so						//that we turn off the timer if all that is left in the state						//list are things we can't clean up because they fail without						//getting a callback.						doneCount++;					}				}catch(e){					currentState.isFinishing = true;					this._finish(currentState, "error", {status: this.DsrStatusCodes.Error, response: e});				}			}		}			if(doneCount >= totalCount){			clearInterval(this.inFlightTimer);			this.inFlightTimer = null;		}	}
meta: 4707	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4707/50c3492c4c3c825dbd3401e134a19ed46799c456/ScriptSrcIO.js/clean/www/resources/dojo-ajax/src/io/ScriptSrcIO.js