mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-05-02 00:07:23 +08:00
Yea toast
This commit is contained in:
Vendored
+17
-4
@@ -1,4 +1,4 @@
|
||||
if (typeof __decorate !== "function") __decorate = function (decorators, target, key, desc) {
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
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);
|
||||
@@ -10,9 +10,21 @@ var plugin_1 = require('./plugin');
|
||||
var Device = (function () {
|
||||
function Device() {
|
||||
}
|
||||
__decorate([
|
||||
plugin_1.Cordova()
|
||||
], Device, "getCurrentPosition");
|
||||
Device.getCurrentPosition = function (options) { };
|
||||
;
|
||||
Device.watchPosition = function (options) { };
|
||||
;
|
||||
Object.defineProperty(Device, "getCurrentPosition",
|
||||
__decorate([
|
||||
plugin_1.Cordova()
|
||||
], Device, "getCurrentPosition", Object.getOwnPropertyDescriptor(Device, "getCurrentPosition")));
|
||||
Object.defineProperty(Device, "watchPosition",
|
||||
__decorate([
|
||||
plugin_1.Cordova({
|
||||
observable: true,
|
||||
clearFunction: 'clearWatch()'
|
||||
})
|
||||
], Device, "watchPosition", Object.getOwnPropertyDescriptor(Device, "watchPosition")));
|
||||
Device = __decorate([
|
||||
plugin_1.Plugin({
|
||||
name: 'Geolocation',
|
||||
@@ -23,3 +35,4 @@ var Device = (function () {
|
||||
return Device;
|
||||
})();
|
||||
exports.Device = Device;
|
||||
//# sourceMappingURL=geolocation.js.map
|
||||
Reference in New Issue
Block a user