From 5944bd13d31bc137457496ac0e604eefbb4529a0 Mon Sep 17 00:00:00 2001 From: Ibrahim Hadeed Date: Sun, 6 Mar 2016 16:16:04 -0500 Subject: [PATCH] fix: fix callback order --- src/plugins/deviceorientation.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/plugins/deviceorientation.ts b/src/plugins/deviceorientation.ts index b5b8c3f5c..66159367e 100644 --- a/src/plugins/deviceorientation.ts +++ b/src/plugins/deviceorientation.ts @@ -75,8 +75,7 @@ export class DeviceOrientation { * @returns {Promise} */ @Cordova({ - successIndex: 0, - errorIndex: 1 + callbackOrder: 'reverse' }) static watchHeading(options? : CompassOptions) : Promise { // This Promise is replaced by one from the @Cordova decorator that wraps