code: function dispose() {
              if (!this.disposed) {
                  if (this.removeListener) {
                      this.removeListener.call(this);
                      this.removeListener = void 0;
                  }
  
                  if (this.targetUrl && this.target || this.removeDispose) {
                      try {
                          if (this.targetContainer) {
                              this.targetContainer.removeChild(this.target);
                          }
                          else {
                              document.body.removeChild(this.target);
                          }
                      }
                      catch(ex) {
                          /* istanbul ignore next  */
                          PostMessageUtilities.log("Error while trying to remove the iframe from the container", "ERROR", "PostMessageChannel");
                      }
                  }
  
                  // Remove load handler if needed
                  _removeTimer.call(this);
  
                  // Remove timer if needed
                  _removeLoadedHandler.call(this);
  
                  this.messageQueue.length = 0;
                  this.messageQueue = void 0;
                  this.channel = void 0;
                  this.onready = void 0;
                  this.disposed = true;
              }
          }
docs: Method for disposing the object