fix: fix callback order

This commit is contained in:
Ibrahim Hadeed 2016-03-06 16:16:04 -05:00
parent 9766aab59f
commit 5944bd13d3

View File

@ -75,8 +75,7 @@ export class DeviceOrientation {
* @returns {Promise<CompassHeading>}
*/
@Cordova({
successIndex: 0,
errorIndex: 1
callbackOrder: 'reverse'
})
static watchHeading(options? : CompassOptions) : Promise<CompassHeading> {
// This Promise is replaced by one from the @Cordova decorator that wraps