| Index: tools/dom/templates/html/impl/impl_Geolocation.darttemplate
|
| diff --git a/tools/dom/templates/html/impl/impl_Geolocation.darttemplate b/tools/dom/templates/html/impl/impl_Geolocation.darttemplate
|
| index 52dac0cd9e743d36ca663350e1e6009660674227..04511b3395eaae741881cc3880add99742499091 100644
|
| --- a/tools/dom/templates/html/impl/impl_Geolocation.darttemplate
|
| +++ b/tools/dom/templates/html/impl/impl_Geolocation.darttemplate
|
| @@ -75,6 +75,7 @@ $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
|
| }
|
|
|
| Geoposition _ensurePosition(domPosition) {
|
| +$if DART2JS
|
| try {
|
| // Firefox may throw on this.
|
| if (domPosition is Geoposition) {
|
| @@ -82,7 +83,11 @@ $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
|
| }
|
| } catch(e) {}
|
| return new _GeopositionWrapper(domPosition);
|
| +$else
|
| + return domPosition;
|
| +$endif
|
| }
|
| +
|
| $!MEMBERS}
|
|
|
| $if DART2JS
|
|
|