views:

47

answers:

1

The language Google Desktop gadgets use resembles JavaScript, but it's different in subtle ways. For example, I saw this line in a gadget:

options(HISTORY_OPTIONS_NAME) = items_.join("|");

which looks like it's assigning to a function call. That's just not OK in JavaScript... what language is this? And what exactly is that line doing?

+1  A: 

As far as I know, the gadgets use JavaScript. Where did you get this line from? Are you sure it's not

options[HISTORY_OPTIONS_NAME] = items_.join("|");

(note brackets)

Matti Virkkunen
Daniel DiPaolo
That file does indeed have the mysterious line in it though, and it's definitely illegal in JavaScript. Is that file just broken?
Matti Virkkunen
@Daniel: yea thats just the code i looked at. i think it works.. i put an alert in after that line, and it gets called and nothing complains.
Claudiu