Color#setAlpha: comment out code using Math.min and Math.max, which was supposed to just be there to explain what is happening.

This commit is contained in:
Jonathan Puckey 2011-03-09 14:31:30 +01:00
parent bda24fbd54
commit b7902635bf

View file

@ -165,7 +165,7 @@ var Color = this.Color = Base.extend(new function() {
},
setAlpha: function(alpha) {
this._alpha = Math.min(Math.max(alpha, 0), 1);
// this._alpha = Math.min(Math.max(alpha, 0), 1);
this._alpha = alpha < 0 ? 0 : alpha > 1 ? 1 : alpha;
this._cssString = null;
},