> It really depends on whether you need to store or use a color by itself.
> If not, and you always use it in this manner (create object then immediately
> convert to string) don't see why you would want an object, and not just a
> parseColorToString function.
>

This. It can just be a function. If you want some internal functions,
do something like this:

parseColorToString = (function () {
  function privateFunction() {}
  var privateVar;

  return function () {
    return 'rgb(0,0,0)';
  };
})();

-- 
Nick Morgan
http://skilldrick.co.uk
@skilldrick

Save our in-boxes! http://emailcharter.org

-- 
To view archived discussions from the original JSMentors Mailman list: 
http://www.mail-archive.com/[email protected]/

To search via a non-Google archive, visit here: 
http://www.mail-archive.com/[email protected]/

To unsubscribe from this group, send email to
[email protected]

Reply via email to