I intentionally left that method out because it is the least correct way to
fix the problem anymore.

-Karl Tiedt

On Tue, Nov 22, 2016 at 8:09 AM, Abhilash Sathe <abhilashsa...@gmail.com>
wrote:

> var self = this  and then in place of this I used self. Problem Solved !
> Yes, scope was the problem.
>
> On Tuesday, November 22, 2016 at 9:13:29 PM UTC+5:30, Abhilash Sathe wrote:
>>
>> 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?
>>
>> Follow Polymer on Google+: plus.google.com/107187849809354688692
> ---
> You received this message because you are subscribed to the Google Groups
> "Polymer" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to polymer-dev+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/polymer-dev/ead3a5df-27e4-4f2f-979f-74a6f0888833%40googlegroups.com
> <https://groups.google.com/d/msgid/polymer-dev/ead3a5df-27e4-4f2f-979f-74a6f0888833%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

Follow Polymer on Google+: plus.google.com/107187849809354688692
--- 
You received this message because you are subscribed to the Google Groups 
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to polymer-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/polymer-dev/CADNgbTGXsEvswkR63cmv%2B_AxfL2X%3DGT%2BNZqe-9WLf4Zf5q3MDQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to