On Mon, Jun 14, 2010 at 4:13 PM, JoJo <[email protected]> wrote:
> this.field = new Hash({klass.staticVar: 999});
js object literals don't resolve variables into keys this way. Instead you
can do:
var obj = {};
obj[klass.staticVar] = 999;
this.field = new Hash(obj);
--
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" 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/prototype-scriptaculous?hl=en.