rem: toHSLString: function () { var c = this.asHSL(); var ccc = MochiKit.Color.clampColorComponent; var rval = this._hslString; if (!rval) { var mid = ( ccc(c.h, 360).toFixed(0) + "," + ccc(c.s, 100).toPrecision(4) + "%" + "," + ccc(c.l, 100).toPrecision(4) + "%" ); var a = c.a; if (a >= 1) { a = 1; rval = "hsl(" + mid + ")"; } else { if (a <= 0) { a = 0; } rval = "hsla(" + mid + "," + a + ")"; } this._hslString = rval; } return rval; }, 
add: },toHSLString:function(){ var c=this.asHSL(); var ccc=MochiKit.Color.clampColorComponent; var rval=this._hslString; if(!rval){ var mid=(ccc(c.h,360).toFixed(0)+","+ccc(c.s,100).toPrecision(4)+"%"+","+ccc(c.l,100).toPrecision(4)+"%"); var a=c.a; if(a>=1){ a=1; rval="hsl("+mid+")"; }else{ if(a<=0){ a=0; } rval="hsla("+mid+","+a+")"; } this._hslString=rval; } return rval; },toRGBString:function(){ 
context:     toHSLString: function () {        var c = this.asHSL();        var ccc = MochiKit.Color.clampColorComponent;        var rval = this._hslString;        if (!rval) {            var mid = (                ccc(c.h, 360).toFixed(0)                + "," + ccc(c.s, 100).toPrecision(4) + "%"                + "," + ccc(c.l, 100).toPrecision(4) + "%"            );            var a = c.a;            if (a >= 1) {                a = 1;                rval = "hsl(" + mid + ")";            } else {                if (a <= 0) {                    a = 0;                }                rval = "hsla(" + mid + "," + a + ")";            }            this._hslString = rval;        }        return rval;    },
meta: 8607	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8607/ad067b3f5d648d6df90ec6fb2b79f0027612a307/MochiKit.js/buggy/trunk/lib/MochiKit.js