"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
    p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) { 
 function r() { 
 this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
var Panel_1 = require("../views/Panel");
var LoginPanel = (function (_super) {
    __extends(LoginPanel, _super);
    function LoginPanel() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    Object.defineProperty(LoginPanel.prototype, "skinKey", {
        get: function () { return "Login"; },
        enumerable: true,
        configurable: true
    });
    LoginPanel.prototype.initEvents = function () {
        _super.prototype.initEvents.call(this);
        this.onTap(this.loginBtn, this.onTap_loginBtn);
    };
    LoginPanel.prototype.onTap_loginBtn = function () {
        if (window['requirelogin']) {
            window['requirelogin']();
            this.hidePanel();
        }
        else {
            this.hidePanel();
        }
    };
    LoginPanel.prototype.removeEvents = function () {
        _super.prototype.removeEvents.call(this);
        this.clearTap(this.loginBtn, this.onTap_loginBtn);
    };
    return LoginPanel;
}(Panel_1.default));
exports.default = LoginPanel;
__reflect(LoginPanel.prototype, "\"e:/zqty/egret/src/login/LoginPanel\".LoginPanel");
//# sourceMappingURL=LoginPanel.js.map