code: function () {
          var self = this;
  
          if (!self.fire('close').isDefaultPrevented()) {
            self.remove();
            addRemove(false, self);
          }
  
          return self;
        }
docs: Closes the float panel. This will remove the float panel from page and fire the close event.
  
  @method close