(function() {

  this.def_tag('MODAL_TAG',"NODE_TAG",function(__scope,__class){

    if(!this.__ctor__){this.__ctor__= function MODAL_TAG(){__class.__super__.__ctor__.apply(this, arguments)}; this.__ctor__.prototype = this.prototype; }

    this.prototype.show = function() {
      var _this = this;
      __class.__super__.prototype.show.apply(this, arguments);
      return __tagid('curtain').enable(function() {
        return _this.cancel();
      });
    }; __method_added(this,"show");

    this.prototype.hide = function() {
      __class.__super__.prototype.hide.apply(this, arguments);
      return __tagid('curtain').disable().hide();
    }; __method_added(this,"hide");

    this.prototype.submit = function() {
      return this;
    }; __method_added(this,"submit");

    this.prototype.cancel = function() {
      this.hide();
      return this;
    }; __method_added(this,"cancel");

  });

}).call($$base);

