Page 1 of 1

javascript not working for multi-location on map

Posted: Wed Jul 16, 2014 2:33 pm
by Peter Abbruzzese

var locationHelper = {
checkLocation : function(prop) {
return prop == 'location';
},
aLocations : new Array()
};

It says "the array literal notation is preferable"
and its underlining the "(" after array.


javascript not working for multi-location on map

Posted: Wed Jul 16, 2014 5:48 pm
by Peter Abbruzzese

??


javascript not working for multi-location on map

Posted: Wed Jul 16, 2014 5:50 pm
by Kateryna Grynko

Hi Peter,

We've tested this code and it works for us. Where do you run it?


javascript not working for multi-location on map

Posted: Wed Jul 16, 2014 5:53 pm
by Kateryna Grynko

Hi Peter,

This code works for us.
This is just a recommendation to use code[]/code instead of codenew Array()/code.