39 lines
1.7 KiB
JavaScript
Raw Normal View History

2015-11-30 12:34:54 -06:00
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2015-11-29 19:54:45 -06:00
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") return Reflect.decorate(decorators, target, key, desc);
switch (arguments.length) {
case 2: return decorators.reduceRight(function(o, d) { return (d && d(o)) || o; }, target);
case 3: return decorators.reduceRight(function(o, d) { return (d && d(target, key)), void 0; }, void 0);
case 4: return decorators.reduceRight(function(o, d) { return (d && d(target, key, o)) || o; }, desc);
}
};
var plugin_1 = require('./plugin');
2015-11-30 13:27:25 -06:00
var Geolocation = (function () {
function Geolocation() {
2015-11-29 19:54:45 -06:00
}
2015-11-30 13:27:25 -06:00
Geolocation.getCurrentPosition = function (options) { };
2015-11-30 12:34:54 -06:00
;
2015-11-30 13:27:25 -06:00
Geolocation.watchPosition = function (options) { };
2015-11-30 12:34:54 -06:00
;
2015-11-30 13:27:25 -06:00
Object.defineProperty(Geolocation, "getCurrentPosition",
2015-11-30 12:34:54 -06:00
__decorate([
plugin_1.Cordova()
2015-11-30 13:27:25 -06:00
], Geolocation, "getCurrentPosition", Object.getOwnPropertyDescriptor(Geolocation, "getCurrentPosition")));
Object.defineProperty(Geolocation, "watchPosition",
2015-11-30 12:34:54 -06:00
__decorate([
plugin_1.Cordova({
2015-11-30 13:27:25 -06:00
callbackOrder: 'reverse',
2015-11-30 12:34:54 -06:00
observable: true,
clearFunction: 'clearWatch()'
})
2015-11-30 13:27:25 -06:00
], Geolocation, "watchPosition", Object.getOwnPropertyDescriptor(Geolocation, "watchPosition")));
Geolocation = __decorate([
2015-11-29 19:54:45 -06:00
plugin_1.Plugin({
name: 'Geolocation',
plugin: 'cordova-plugin-geolocation',
pluginRef: 'navigator.geolocation'
})
2015-11-30 13:27:25 -06:00
], Geolocation);
return Geolocation;
2015-11-29 19:54:45 -06:00
})();
2015-11-30 13:27:25 -06:00
exports.Geolocation = Geolocation;
2015-11-30 12:34:54 -06:00
//# sourceMappingURL=geolocation.js.map