fix: fix callback order

This commit is contained in:
Ibrahim Hadeed 2016-03-06 16:17:07 -05:00
parent 7f7ba3b52a
commit 5fda6d49cc

View File

@ -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