From b7fb2483bff827cd561eec180e9ab62783ddc8c0 Mon Sep 17 00:00:00 2001 From: Guille Date: Fri, 8 Jul 2016 00:53:01 +0200 Subject: [PATCH] refactor(accelerometer): --- src/plugins/devicemotion.ts | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/plugins/devicemotion.ts b/src/plugins/devicemotion.ts index 200d49906..42246f972 100644 --- a/src/plugins/devicemotion.ts +++ b/src/plugins/devicemotion.ts @@ -1,5 +1,6 @@ -import {Plugin, Cordova} from './plugin'; -import {Observable} from 'rxjs/Observable'; +import { Cordova, Plugin } from './plugin'; +import { Observable } from 'rxjs/Observable'; + export interface AccelerationData { @@ -73,9 +74,7 @@ export class DeviceMotion { * @returns {Promise} Returns object with x, y, z, and timestamp properties */ @Cordova() - static getCurrentAcceleration(): Promise { - return; - } + static getCurrentAcceleration(): Promise { return; } /** * Watch the device acceleration. Clear the watch by unsubscribing from the observable. @@ -87,7 +86,5 @@ export class DeviceMotion { observable: true, clearFunction: 'clearWatch' }) - static watchAcceleration(options?: AccelerometerOptions): Observable { - return; - } + static watchAcceleration(options?: AccelerometerOptions): Observable { return; } }