Actually pass the options to the watch and get methods
authorJaroslav Tulach <jtulach@netbeans.org>
Wed, 25 Jun 2014 11:11:34 +0200
changeset 72531ff0f826084
parent 724 627ef86d9273
child 726 522f8ee41295
Actually pass the options to the watch and get methods
geo/src/main/java/org/netbeans/html/geo/impl/JsG.java
     1.1 --- a/geo/src/main/java/org/netbeans/html/geo/impl/JsG.java	Wed Jun 25 10:49:24 2014 +0200
     1.2 +++ b/geo/src/main/java/org/netbeans/html/geo/impl/JsG.java	Wed Jun 25 11:11:34 2014 +0200
     1.3 @@ -80,10 +80,10 @@
     1.4          "if (timeout >= 0) options.timeout = timeout;\n" +
     1.5          "if (maximumAge >= 0) options.maximumAge = maximumAge;\n" +
     1.6          "if (onlyOnce) {\n" +
     1.7 -        "  navigator.geolocation.getCurrentPosition(ok, fail);\n" +
     1.8 +        "  navigator.geolocation.getCurrentPosition(ok, fail, options);\n" +
     1.9          "  return 0;\n" +
    1.10          "} else {\n" +
    1.11 -        "  return navigator.geolocation.watchPosition(ok, fail);\n" +
    1.12 +        "  return navigator.geolocation.watchPosition(ok, fail, options);\n" +
    1.13          "}\n"
    1.14      )
    1.15      protected long start(