I'm trying to make something pretty simple, but I get a weird result. I have an event trigger that I use to pass the json object, but when it goes to the other side, this is a function ... I warn the result and it shows this:
warning example:
alert('value of lattitude? ' + map.currentLatLng.lat);
result:
lattice value? function () {return this [a];}
I tried to configure a trigger with or without a literal shell:
$('body').trigger('updateLocation', [{lat:38.905003, lng:-77.066497}]); $('body').trigger('updateLocation', {lat:38.905003, lng:-77.066497});
What am I doing wrong?
source share