Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Geolocation with Dart in Firefox getCurrentPosition not a function #6733

Closed
DartBot opened this issue Nov 15, 2012 · 4 comments
Closed

Geolocation with Dart in Firefox getCurrentPosition not a function #6733

DartBot opened this issue Nov 15, 2012 · 4 comments
Assignees
Labels
web-libraries Issues impacting dart:html, etc., libraries
Milestone

Comments

@DartBot
Copy link

DartBot commented Nov 15, 2012

This issue was originally filed by @terrasea


What steps will reproduce the problem?

  1. write the dart code
        window.navigator.geolocation.getCurrentPosition((Geoposition position) {
            window.alert(position.coords.latitude.toString());
        });
  2. run this through dart2js
  3. run the resulting javascript in Firefox

Should see an alert with the latitude displayed in it, instead got a Javascript error

    Error: TypeError: getCurrentPosition$1 is not a function

Firefox version is 16.0.2, Dart Editor version is 0.2.3_r14669 and Dart SDK version is 0.2.3.0_r14669.

OS is Gentoo Linux with mixed masked and unmasked packages, in case that helps.

Please provide any additional information below.

@dgrove
Copy link
Contributor

dgrove commented Nov 15, 2012

Set owner to @blois.
Added Area-HTML, Triaged labels.

@DartBot
Copy link
Author

DartBot commented Nov 18, 2012

@blois
Copy link
Contributor

blois commented Nov 19, 2012

Added this to the M2 milestone.

@blois
Copy link
Contributor

blois commented Nov 20, 2012

Added Fixed label.

@DartBot DartBot added Type-Defect web-libraries Issues impacting dart:html, etc., libraries labels Nov 20, 2012
@DartBot DartBot added this to the M2 milestone Nov 20, 2012
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
web-libraries Issues impacting dart:html, etc., libraries
Projects
None yet
Development

No branches or pull requests

3 participants