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?

LEE
  • 3,335
  • 8
  • 40
  • 70

0 Answers0