rem: this.httpRequest.onreadystatechange = function() { appender.onReadyStateChanged.call(appender); };  this.httpRequest.open("POST", this.loggingUrl, true);   this.httpRequest.setRequestHeader("Content-type", this.layout.getContentType());    this.httpRequest.setRequestHeader("REFERER", location.href); this.httpRequest.setRequestHeader("Content-length", content.length); this.httpRequest.setRequestHeader("Connection", "close"); this.httpRequest.send( content );  appender = this;  try { window.setTimeout(function(){ log4jsLogger.trace("> AjaxAppender.timeout"); appender.httpRequest.onreadystatechange = function(){return;}; appender.httpRequest.abort();  appender.isInProgress = false;  if(appender.loggingEventMap.length() > 0) { appender.send(); } log4jsLogger.trace("< AjaxAppender.timeout"); }, this.timeout); } catch (e) { log4jsLogger.fatal(e); } log4jsLogger.trace("> AjaxAppender.send"); 
context: 	send: function() {		log4jsLogger.trace("> AjaxAppender.send");				this.isInProgress = true;				var content = this.layout.getHeader();				for(var i = 0; i < this.loggingEventMap.length() && i < this.threshold; i++) {			content +=  this.layout.format(this.loggingEventMap.pull());		} 				content += this.layout.getFooter();				var appender = this;		if(this.httpRequest === null){			this.httpRequest = this.getXmlHttpRequest();		}		this.httpRequest.onreadystatechange = function() {			appender.onReadyStateChanged.call(appender);		};				this.httpRequest.open("POST", this.loggingUrl, true);		// set the request headers.		//this.httpRequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded");		this.httpRequest.setRequestHeader("Content-type", this.layout.getContentType());		//REFERER will be the top-level		// URI which may differ from the location of the error if		// it occurs in an included .js file		this.httpRequest.setRequestHeader("REFERER", location.href); 		this.httpRequest.setRequestHeader("Content-length", content.length);		this.httpRequest.setRequestHeader("Connection", "close");		this.httpRequest.send( content );				appender = this;				try {			window.setTimeout(function(){				log4jsLogger.trace("> AjaxAppender.timeout");				appender.httpRequest.onreadystatechange = function(){return;};				appender.httpRequest.abort();				//this.httpRequest = null;				appender.isInProgress = false;					if(appender.loggingEventMap.length() > 0) {					appender.send();				}				log4jsLogger.trace("< AjaxAppender.timeout");			}, this.timeout);		} catch (e) {			log4jsLogger.fatal(e);		}		log4jsLogger.trace("> AjaxAppender.send");	},
meta: 2141	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/2141/b0c58f09c3bf106450447263059885d62b3f736a/log4js.js/buggy/log4js/src/main/js/log4js.js