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 7f7ba3b commit 5fda6d4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/plugins/devicemotion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ export class DeviceMotion {
* @returns {Observable<accelerationData>}
*/
@Cordova({
successIndex: 0,
errorIndex: 1
callbackOrder: 'reverse'
})
static watchAcceleration (options? : accelerometerOptions) : Promise<accelerationData> {
// This Promise is replaced by one from the @Cordova decorator that wraps
Expand Down

0 comments on commit 5fda6d4

Please sign in to comment.