UNPKG

@airgram/vue

Version:
54 lines (53 loc) 1.8 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var AirgramDollar = /** @class */ (function () { function AirgramDollar(vm) { this.vm = vm; // this._authStateUnsubscribe = this.on('updateAuthorizationState', (authState: AuthorizationStateUnion) => { // this._authState = authState // }) } Object.defineProperty(AirgramDollar.prototype, "airgram", { get: function () { return this.provider.airgram; }, enumerable: true, configurable: true }); Object.defineProperty(AirgramDollar.prototype, "api", { get: function () { return this.airgram.api; }, enumerable: true, configurable: true }); Object.defineProperty(AirgramDollar.prototype, "provider", { // public get authState (): AuthorizationStateUnion | { _: null } { // return this._authState // } get: function () { return this.vm.$_airgramProvider; }, enumerable: true, configurable: true }); AirgramDollar.prototype._destroy = function () { // if (this._authStateUnsubscribe) { // this._authStateUnsubscribe() // } }; AirgramDollar.prototype.emit = function (update) { return this.airgram.emit(update); }; AirgramDollar.prototype.off = function (eventName, handler) { this.provider.off(eventName, handler); }; AirgramDollar.prototype.on = function (eventName, handler) { return this.provider.on(eventName, handler); }; AirgramDollar.prototype.once = function (eventName, handler) { return this.provider.once(eventName, handler); }; return AirgramDollar; }()); exports.AirgramDollar = AirgramDollar;