Peter Abbruzzese
Posts: 0
Joined: Tue Jul 01, 2014 3:27 pm

javascript not working for multi-location on map

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.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

javascript not working for multi-location on map

Hi Peter,

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

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

javascript not working for multi-location on map

Hi Peter,

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

Return to “Issues”