rem: dojo.event.connect(td, "onmousedown", this, "click"); 
add: dojo.event.connect(td, "onmousedown", this, "onClick"); 
context: 	buildRendering: function () {		this.domNode = document.createElement("table");//		dojo.body().appendChild(this.domNode);		dojo.html.disableSelection(this.domNode);		dojo.event.connect(this.domNode, "onmousedown", function (e) {			e.preventDefault();		});		with (this.domNode) { // set the table's properties			cellPadding = "0"; cellSpacing = "1"; border = "1";			style.backgroundColor = "white"; //style.position = "absolute";		}		var colors = this.palettes[this.palette];		for (var i = 0; i < colors.length; i++) {			var tr = this.domNode.insertRow(-1);			for (var j = 0; j < colors[i].length; j++) {				if (colors[i][j].length == 3) {					colors[i][j] = colors[i][j].replace(/(.)(.)(.)/, "$1$1$2$2$3$3");				}				var td = tr.insertCell(-1);				with (td.style) {					backgroundColor = "#" + colors[i][j];					border = "1px solid gray";					width = height = "15px";					fontSize = "1px";				}				td.color = "#" + colors[i][j];				td.onmouseover = function (e) { this.style.borderColor = "white"; }				td.onmouseout = function (e) { this.style.borderColor = "gray"; }				dojo.event.connect(td, "onmousedown", this, "click");				td.innerHTML = "&nbsp;";			}		}		if(dojo.render.html.ie){			this.bgIframe = document.createElement("<iframe frameborder='0' src='javascript:void(0);'>");			with(this.bgIframe.style){				position = "absolute";				left = top = "0px";				display = "none";			}			dojo.body().appendChild(this.bgIframe);			dojo.html.setOpacity(this.bgIframe, 0);		}	},
meta: 4707	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4707/50c3492c4c3c825dbd3401e134a19ed46799c456/ColorPalette.js/clean/www/resources/dojo-ajax/src/widget/ColorPalette.js