Dear Core Team,

what about this method for Number.prototype:

Number.prototype.setInRange = function(from, to) {
        if (this < from)
                return from;
        if (this > to)
                return to;
        return this;
};

I use this one very very often, when the Range of a value must not be
exceeded. In my opinion this is probably more important than
Number.prototype.toColorParty because CSS supports something like
rgb(r,g,b), so a hex value is not important any more.

Take this proposal as positiv crit.

Best,

Andi


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype: Core" group.
To post to this group, send email to prototype-core@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to