rem: Log4js.attachEvent(this.tagFilterElement, 'click', function() {this.tagFilterElement.select()}.bind(this)); 
add: Log4js.attachEvent(this.tagFilterElement, 'click', function() {this.tagFilterElement.select();}.bind(this)); 
context:   	initialize : function() {				var doc = document;			var win = window;				if(!this.inline) {			window.top.consoleWindow = window.open("", this.logger.category, "left=0,top=0,width=700,height=700,scrollbars=no,status=no,resizable=no;toolbar=no");			window.top.consoleWindow.opener = self;			win = window.top.consoleWindow;			doc = win.document;			doc.open();			doc.write("<!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN ");			doc.write("  http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd>\n\n");			doc.write("<html><head><title>" + this.logger.category + "</title>\n");			doc.write("</head><body style=\"background-color:darkgray\"></body>\n");			win.blur();			win.focus();		}				this.docReference = doc;		this.winReference = win;				this.outputCount = 0;		this.tagPattern = ".*";	  		// I hate writing javascript in HTML... but what's a better alternative		this.logElement = doc.createElement('div');		doc.body.appendChild(this.logElement);		this.logElement.style.display = 'none';				this.logElement.style.position = "absolute";		this.logElement.style.left = '0px';		this.logElement.style.width = '100%';			this.logElement.style.textAlign = "left";		this.logElement.style.fontFamily = "lucida console";		this.logElement.style.fontSize = "100%";		this.logElement.style.backgroundColor = 'darkgray';      		this.logElement.style.opacity = 0.9;		this.logElement.style.zIndex = 2000; 			// Add toolbarElement		this.toolbarElement = doc.createElement('div');		this.logElement.appendChild(this.toolbarElement);     		this.toolbarElement.style.padding = "0 0 0 2px";			// Add buttons        		this.buttonsContainerElement = doc.createElement('span');		this.toolbarElement.appendChild(this.buttonsContainerElement); 			if(this.inline) {			var closeButton = doc.createElement('button');			closeButton.style.cssFloat = "right";			closeButton.style.styleFloat = "right"; // IE dom bug...doesn't understand cssFloat			closeButton.style.color = "black";			closeButton.innerHTML = "close";			closeButton.onclick = this.toggle.bind(this);			this.buttonsContainerElement.appendChild(closeButton);		}				var clearButton = doc.createElement('button');		clearButton.style.cssFloat = "right";		clearButton.style.styleFloat = "right"; // IE dom bug...doesn't understand cssFloat		clearButton.style.color = "black";		clearButton.innerHTML = "clear";		clearButton.onclick = this.logger.clear.bind(this.logger);		this.buttonsContainerElement.appendChild(clearButton);			//Add Level Filter		this.tagFilterContainerElement = doc.createElement('span');		this.toolbarElement.appendChild(this.tagFilterContainerElement);		this.tagFilterContainerElement.style.cssFloat = 'left';		this.tagFilterContainerElement.appendChild(doc.createTextNode("Level Filter"));				this.tagFilterElement = doc.createElement('input');		this.tagFilterContainerElement.appendChild(this.tagFilterElement);		this.tagFilterElement.style.width = '200px';                    		this.tagFilterElement.value = this.tagPattern;    		this.tagFilterElement.setAttribute('autocomplete', 'off'); // So Firefox doesn't flip out				Log4js.attachEvent(this.tagFilterElement, 'keyup', this.updateTags.bind(this));		Log4js.attachEvent(this.tagFilterElement, 'click', function() {this.tagFilterElement.select()}.bind(this));				// Add outputElement		this.outputElement = doc.createElement('div');		this.logElement.appendChild(this.outputElement);  		this.outputElement.style.overflow = "auto";              		this.outputElement.style.clear = "both";		this.outputElement.style.height = (this.inline) ? ("200px"):("650px");		this.outputElement.style.width = "100%";		this.outputElement.style.backgroundColor = 'black'; 			  		this.inputContainerElement = doc.createElement('div');		this.inputContainerElement.style.width = "100%";		this.logElement.appendChild(this.inputContainerElement);      				this.inputElement = doc.createElement('input');		this.inputContainerElement.appendChild(this.inputElement);  		this.inputElement.style.width = '100%';		this.inputElement.style.borderWidth = '0px'; // Inputs with 100% width always seem to be too large (I HATE THEM) they only work if the border, margin and padding are 0		this.inputElement.style.margin = '0px';		this.inputElement.style.padding = '0px';		this.inputElement.value = 'Type command here'; 		this.inputElement.setAttribute('autocomplete', 'off'); // So Firefox doesn't flip out			Log4js.attachEvent(this.inputElement, 'keyup', this.handleInput.bind(this));		Log4js.attachEvent(this.inputElement, 'click', function() {this.inputElement.select()}.bind(this));				if(this.inline){			window.setInterval(this.repositionWindow.bind(this), 500);			this.repositionWindow();				// Allow acess key link          			var accessElement = doc.createElement('button');			accessElement.style.position = "absolute";			accessElement.style.top = "-100px";			accessElement.accessKey = this.accesskey;			accessElement.onclick = this.toggle.bind(this);			doc.body.appendChild(accessElement);		} else {			this.show();		}	},
meta: 8932	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8932/afe31b5fce5f19f92def0be8e9e7d55a105da20e/log4js.js/clean/trunk/src/js/log4js.js