Skip to content

Commit

Permalink
fix: fix callback order
Browse files Browse the repository at this point in the history
  • Loading branch information
ihadeed committed Mar 6, 2016
1 parent 9766aab commit 5944bd1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/plugins/deviceorientation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ export class DeviceOrientation {
* @returns {Promise<CompassHeading>}
*/
@Cordova({
successIndex: 0,
errorIndex: 1
callbackOrder: 'reverse'
})
static watchHeading(options? : CompassOptions) : Promise<CompassHeading> {
// This Promise is replaced by one from the @Cordova decorator that wraps
Expand Down

0 comments on commit 5944bd1

Please sign in to comment.