awesome-cordova-plugins/dist/plugins/geolocation.js

39 lines
1.7 KiB
JavaScript
Raw Normal View History

2015-12-01 02:34:54 +08:00
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2015-11-30 09:54:45 +08: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-12-01 03:27:25 +08:00
var Geolocation = (function () {
function Geolocation() {
2015-11-30 09:54:45 +08:00
}
2015-12-01 03:27:25 +08:00
Geolocation.getCurrentPosition = function (options) { };
2015-12-01 02:34:54 +08:00
;
2015-12-01 03:27:25 +08:00
Geolocation.watchPosition = function (options) { };
2015-12-01 02:34:54 +08:00
;
2015-12-01 03:27:25 +08:00
Object.defineProperty(Geolocation, "getCurrentPosition",
2015-12-01 02:34:54 +08:00
__decorate([
plugin_1.Cordova()
2015-12-01 03:27:25 +08:00
], Geolocation, "getCurrentPosition", Object.getOwnPropertyDescriptor(Geolocation, "getCurrentPosition")));
Object.defineProperty(Geolocation, "watchPosition",
2015-12-01 02:34:54 +08:00
__decorate([
plugin_1.Cordova({
2015-12-01 03:27:25 +08:00
callbackOrder: 'reverse',
2015-12-01 02:34:54 +08:00
observable: true,
clearFunction: 'clearWatch()'
})
2015-12-01 03:27:25 +08:00
], Geolocation, "watchPosition", Object.getOwnPropertyDescriptor(Geolocation, "watchPosition")));
Geolocation = __decorate([
2015-11-30 09:54:45 +08:00
plugin_1.Plugin({
name: 'Geolocation',
plugin: 'cordova-plugin-geolocation',
pluginRef: 'navigator.geolocation'
})
2015-12-01 03:27:25 +08:00
], Geolocation);
return Geolocation;
2015-11-30 09:54:45 +08:00
})();
2015-12-01 03:27:25 +08:00
exports.Geolocation = Geolocation;
2015-12-01 02:34:54 +08:00
//# sourceMappingURL=geolocation.js.map