From 5fda6d49cc6ccb6be3772522b356bc87ec957fad Mon Sep 17 00:00:00 2001 From: Ibrahim Hadeed Date: Sun, 6 Mar 2016 16:17:07 -0500 Subject: [PATCH] fix: fix callback order --- src/plugins/devicemotion.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/plugins/devicemotion.ts b/src/plugins/devicemotion.ts index 4ea6ad3d7..6f9b0158f 100644 --- a/src/plugins/devicemotion.ts +++ b/src/plugins/devicemotion.ts @@ -70,8 +70,7 @@ export class DeviceMotion { * @returns {Observable} */ @Cordova({ - successIndex: 0, - errorIndex: 1 + callbackOrder: 'reverse' }) static watchAcceleration (options? : accelerometerOptions) : Promise { // This Promise is replaced by one from the @Cordova decorator that wraps