This commit is contained in:
Max Lynch
2015-11-30 13:27:25 -06:00
parent 2d70c6a3d4
commit 118da948cb
21 changed files with 293 additions and 36 deletions
+13 -12
View File
@@ -7,32 +7,33 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
}
};
var plugin_1 = require('./plugin');
var Device = (function () {
function Device() {
var Geolocation = (function () {
function Geolocation() {
}
Device.getCurrentPosition = function (options) { };
Geolocation.getCurrentPosition = function (options) { };
;
Device.watchPosition = function (options) { };
Geolocation.watchPosition = function (options) { };
;
Object.defineProperty(Device, "getCurrentPosition",
Object.defineProperty(Geolocation, "getCurrentPosition",
__decorate([
plugin_1.Cordova()
], Device, "getCurrentPosition", Object.getOwnPropertyDescriptor(Device, "getCurrentPosition")));
Object.defineProperty(Device, "watchPosition",
], Geolocation, "getCurrentPosition", Object.getOwnPropertyDescriptor(Geolocation, "getCurrentPosition")));
Object.defineProperty(Geolocation, "watchPosition",
__decorate([
plugin_1.Cordova({
callbackOrder: 'reverse',
observable: true,
clearFunction: 'clearWatch()'
})
], Device, "watchPosition", Object.getOwnPropertyDescriptor(Device, "watchPosition")));
Device = __decorate([
], Geolocation, "watchPosition", Object.getOwnPropertyDescriptor(Geolocation, "watchPosition")));
Geolocation = __decorate([
plugin_1.Plugin({
name: 'Geolocation',
plugin: 'cordova-plugin-geolocation',
pluginRef: 'navigator.geolocation'
})
], Device);
return Device;
], Geolocation);
return Geolocation;
})();
exports.Device = Device;
exports.Geolocation = Geolocation;
//# sourceMappingURL=geolocation.js.map