Skip to content

Commit

Permalink
fix(geolocation): set callback order to reverse on getCurrentPosition
Browse files Browse the repository at this point in the history
  • Loading branch information
ihadeed committed Mar 8, 2016
1 parent ce6adcc commit 1fac387
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/plugins/geolocation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,9 @@ export class Geolocation {
* @param {GeolocationOptions} options The [geolocation options](https://developer.mozilla.org/en-US/docs/Web/API/PositionOptions).
* @return Returns a Promise that resolves with the [position](https://developer.mozilla.org/en-US/docs/Web/API/Position) of the device, or rejects with an error.
*/
@Cordova()
@Cordova({
callbackOrder: 'reverse'
})
static getCurrentPosition(options?: GeolocationOptions){
// This Promise is replaced by one from the @Cordova decorator that wraps
// the plugin's callbacks. We provide a dummy one here so TypeScript
Expand Down

0 comments on commit 1fac387

Please sign in to comment.