_handleResponse: function (data) {
navigator.geolocation.getCurrentPosition(function(position) {
lat = position.coords.latitude,
lng = position.coords.longitude;
this.push('thread.messages', {
latlong: lat+","+lng,
});
}, function() {
console.warn('ERROR(' + err.code + '): ' + err.message);
});
}
In the above, I get an error saying push
is not a function. How should I handle this?