diff --git a/location/location.impl.ts b/location/location.impl.ts index 8b8c5d5ef..0fa5a43f3 100644 --- a/location/location.impl.ts +++ b/location/location.impl.ts @@ -1,12 +1,13 @@ - -import promises = require("promises/promises"); +import promises = require("promises/promises"); import timer = require("timer/timer"); import types = require("location/location-types"); import locationManagerModule = require("location/location-manager"); // merge the exports of the types module with the exports of this file +import merger = require("utils/module-merge"); declare var exports; -require("utils/module-merge").merge(types, exports); +merger.merge(types, exports); +merger.merge(locationManagerModule, exports); export var getLocation = function (options?: types.Options): promises.Promise { var d = promises.defer(); @@ -73,33 +74,33 @@ export var getLocation = function (options?: types.Options): promises.Promise any, onError?: (error: Error) => any, options?: types.Options) { - this.nativeManager.startLocationMonitoring(onLocation, onError, options); - } +// // monitoring +// public startLocationMonitoring(onLocation: (location: types.Location) => any, onError?: (error: Error) => any, options?: types.Options) { +// this.nativeManager.startLocationMonitoring(onLocation, onError, options); +// } - public stopLocationMonitoring() { - this.nativeManager.stopLocationMonitoring(); - } +// public stopLocationMonitoring() { +// this.nativeManager.stopLocationMonitoring(); +// } - // other +// // other - get lastKnownLocation(): types.Location { - return this.nativeManager.lastKnownLocation; - } -} +// get lastKnownLocation(): types.Location { +// return this.nativeManager.lastKnownLocation; +// } +//}