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>} * @returns {Promise<CompassHeading>}
*/ */
@Cordova({ @Cordova({
successIndex: 0, callbackOrder: 'reverse'
errorIndex: 1
}) })
static watchHeading(options? : CompassOptions) : Promise<CompassHeading> { static watchHeading(options? : CompassOptions) : Promise<CompassHeading> {
// This Promise is replaced by one from the @Cordova decorator that wraps // This Promise is replaced by one from the @Cordova decorator that wraps