Try these changes to your code:
Add a null to the colors array:
var colors = [
null,
GimageSearch.COLOR_RED,
...
Test for null and set the 'ALL' color label:
var colorName =
(colors[i] == null)
? colorName = 'ALL'
: colors[i].substring(0,1).toUpperCase()
+ colors[i].substring(1);
colorSearcher.setUserDefinedLabel(colorName);
-- omr
--
You received this message because you are subscribed to the Google Groups
"Google AJAX APIs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-ajax-search-api?hl=en.