From 8dee02e234d3927cad0eef7f1fad1b07466d89bf Mon Sep 17 00:00:00 2001 From: Max Lynch Date: Thu, 9 Jun 2016 15:50:54 -0500 Subject: [PATCH] fix(deviceorientation): cancelFunction renamed to clearFunction --- src/plugins/deviceorientation.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/deviceorientation.ts b/src/plugins/deviceorientation.ts index c0a9be5c2..a923d68b9 100644 --- a/src/plugins/deviceorientation.ts +++ b/src/plugins/deviceorientation.ts @@ -89,7 +89,7 @@ export class DeviceOrientation { @Cordova({ callbackOrder: 'reverse', observable: true, - cancelFunction: 'clearWatch' + clearFunction: 'clearWatch' }) static watchHeading(options?: CompassOptions): Observable { return; }