mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-21 00:23:00 +08:00
fix: fix callback order
This commit is contained in:
parent
7f7ba3b52a
commit
5fda6d49cc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user