code: function() {
          if (this.miniViewers) {
            for (var key in this.miniViewers) {
              this.miniViewers[key].destroy();
            }
          }
  
          if (this.element) {
              this.element.parentNode.removeChild(this.element);
          }
      }
docs: Overrides Viewer.destroy