From 080c5a19e68f467198227f82475ab0d8c07edfe0 Mon Sep 17 00:00:00 2001 From: Fabien Duthu Date: Sun, 31 Jul 2016 21:14:45 +0200 Subject: [PATCH] Added missing clearWithArgs option to the @Cordova decorator --- src/plugins/estimote-beacons.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/plugins/estimote-beacons.ts b/src/plugins/estimote-beacons.ts index cabf9d0ee..befd3a144 100644 --- a/src/plugins/estimote-beacons.ts +++ b/src/plugins/estimote-beacons.ts @@ -332,7 +332,8 @@ export class EstimoteBeacons { */ @Cordova({ observable: true, - clearFunction: 'stopRangingBeaconsInRegion' + clearFunction: 'stopRangingBeaconsInRegion', + clearWithArgs: true }) static startRangingBeaconsInRegion(region: BeaconRegion): Observable { return; } @@ -364,7 +365,8 @@ export class EstimoteBeacons { */ @Cordova({ observable: true, - clearFunction: 'stopRangingSecureBeaconsInRegion' + clearFunction: 'stopRangingSecureBeaconsInRegion', + clearWithArgs: true }) static startRangingSecureBeaconsInRegion(region: BeaconRegion): Observable { return; } @@ -396,6 +398,7 @@ export class EstimoteBeacons { @Cordova({ observable: true, clearFunction: 'stopMonitoringForRegion', + clearWithArgs: true, successIndex: 1, errorIndex: 2 }) @@ -426,6 +429,7 @@ export class EstimoteBeacons { @Cordova({ observable: true, clearFunction: 'stopSecureMonitoringForRegion', + clearWithArgs: true, successIndex: 1, errorIndex: 2 })