Another very simple question.
I have some code like this:
var a = {\"foo\":\"bar\"};
Which creates an object called a
a
You must set it in two steps:
var a = {}; a[propName] = 'bar';