0
_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?

Abhilash
  • 3,016
  • 7
  • 34
  • 65

0 Answers0