rem: String.prototype.parseColor = function() { color = "#"; if(this.slice(0,4) == "rgb(") { var cols = this.slice(4,this.length-1).split(','); var i=0; do { color += parseInt(cols[i]).toColorPart() } while (++i<3); } else { if(this.slice(0,1) == '#') { if(this.length==4) for(var i=1;i<4;i++) color += (this.charAt(i) + this.charAt(i)).toLowerCase(); if(this.length==7) color = this.toLowerCase(); } } return(color.length==7 ? color : (arguments[0] || this)); 
add: String.prototype.parseColor = function() { color = "#"; if(this.slice(0,4) == "rgb(") { var cols = this.slice(4,this.length-1).split(','); var i=0; do { color += parseInt(cols[i]).toColorPart() } while (++i<3); } else { if(this.slice(0,1) == '#') { if(this.length==4) for(var i=1;i<4;i++) color += (this.charAt(i) + this.charAt(i)).toLowerCase(); if(this.length==7) color = this.toLowerCase(); } } return(color.length==7 ? color : (arguments[0] || this)); 
context: String.prototype.parseColor = function() {  color = "#";  if(this.slice(0,4) == "rgb(") {    var cols = this.slice(4,this.length-1).split(',');    var i=0; do { color += parseInt(cols[i]).toColorPart() } while (++i<3);  } else {    if(this.slice(0,1) == '#') {      if(this.length==4) for(var i=1;i<4;i++) color += (this.charAt(i) + this.charAt(i)).toLowerCase();      if(this.length==7) color = this.toLowerCase();    }  }  return(color.length==7 ? color : (arguments[0] || this));}
meta: 2355	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2355/8a342036a177e27b9f776c900bbae999b6ce8e3c/effects.js/clean/tracks/public/javascripts/effects.js