code: function () {
      var self = this;
  
      delete $.noty.store[self.options.id]; // deleting noty from store
  
      if (self.options.theme.callback && self.options.theme.callback.onClose) {
        self.options.theme.callback.onClose.apply(self);
      }
  
      if (!self.options.dismissQueue) {
        // Queue render
        $.noty.ontap = true;
  
        $.notyRenderer.render();
      }
  
      if (self.options.maxVisible > 0 && self.options.dismissQueue) {
        $.notyRenderer.render();
      }
    }
docs: end close clean up