In my application I have a javascript function like below.
var params = {};
function getMethod(art) {
if (art == 'artwork') {
params['type'] = 'paper art';
}
params['medium'] = 'canvas';
params['entity'] = 'paper';
}
This function is working fine in Firefox. But Its failing in IE and Chrome.
Its breaking on params[‘type’]
giving error params is undefined.
Any idea what mistake I am doing here.
here is how i would use it: