extensions/amp-ad/0.1/amp-ad-xorigin-iframe-handler.js
/**
   * Cleans up listeners on the ad iframe.
   * @private
   */
Cleans up listeners on the ad iframe.
@private
Cleans up listeners on the ad iframe . @private
cleanup_() {
    this.unlisteners_.forEach(unlistener => unlistener());
    this.unlisteners_.length = 0;
    if (this.embedStateApi_) {
      this.embedStateApi_.destroy();
      this.embedStateApi_ = null;
    }
    if (this.positionObserver_) {
      if (this.iframe) {
        this.positionObserver_.unobserve(this.iframe);
      }
    }
    if (this.inaboxPositionApi_) {
      this.inaboxPositionApi_.destroy();
      this.inaboxPositionApi_ = null;
    }
    if (this.positionObserverHighFidelityApi_) {
      this.positionObserverHighFidelityApi_.destroy();
      this.positionObserverHighFidelityApi_ = null;
    }
    if (this.intersectionObserver_) {
      this.intersectionObserver_.destroy();
      this.intersectionObserver_ = null;
    }
  }
cleanup_ ( ) { this . unlisteners_ . forEach ( unlistener => unlistener ( ) ) ; this . unlisteners_ . length = 0 ; if ( this . embedStateApi_ ) { this . embedStateApi_ . destroy ( ) ; this . embedStateApi_ = null ; } if ( this . positionObserver_ ) { if ( this . iframe ) { this . positionObserver_ . unobserve ( this . iframe ) ; } } if ( this . inaboxPositionApi_ ) { this . inaboxPositionApi_ . destroy ( ) ; this . inaboxPositionApi_ = null ; } if ( this . positionObserverHighFidelityApi_ ) { this . positionObserverHighFidelityApi_ . destroy ( ) ; this . positionObserverHighFidelityApi_ = null ; } if ( this . intersectionObserver_ ) { this . intersectionObserver_ . destroy ( ) ; this . intersectionObserver_ = null ; } }
Cleans up listeners on the ad iframe.
Cleans up listeners on the ad iframe .