var fixedDefaultString = "#abcdef";
jQuery.Color.names["_default"] = fixedDefaultString;
var defaultColor = jQuery.Color("_default");
var parsedAsDefault = jQuery.Color("#abcdef");
var unparsed = jQuery.Color("I AM THE KING POTATO");
It would be nice to have a way to determine that unparsed is using the default, whereas parsedAsDefault is not. Ideally, it would be available after construction via something like .isParseable().
I'm unclear on what isParseable() should return in cases that do not involve parsing a string, however. For example:
jQuery.Color(100, 100, 100, 100).isParseable();
jQuery.Color().isParseable();
It would be nice to have a way to determine that
unparsedis using the default, whereasparsedAsDefaultis not. Ideally, it would be available after construction via something like.isParseable().I'm unclear on what
isParseable()should return in cases that do not involve parsing astring, however. For example: