viewerViewDidFinish (viewer, usedContent, usedSettingsVersion) {
    // check if viewer is still part of the pipe
    if (!this.containsBrick(viewer)) {
      // do nothing
      return
    }

    // mark brick as no longer busy
    this.setBrickMeta(viewer, 'busy', false)

    let settingsVersion = this.getBrickMeta(viewer, 'settingsVersion')
    let bucket = this.getBucketIndexForBrick(viewer)

    // there were views skipped when the current content or brick
    //  settings changed during last view
    if (!this.getContent(bucket).isEqualTo(usedContent) ||
        settingsVersion !== usedSettingsVersion) {
      // repeat view
      this.triggerViewerView(viewer)
    }
  }
/**
   * Triggered when viewer did finish viewing content. Triggers new view when
   * the content has changed during previous view.
   * @protected
   * @param {Viewer} viewer
   * @param {Chain} usedContent
   * @param {number} usedSettingsVersion
   */
Triggered when viewer did finish viewing content. Triggers new view when
the content has changed during previous view.
@protected
@param {Viewer} viewer
@param {Chain} usedContent
@param {number} usedSettingsVersion
Triggered when viewer did finish viewing content . Triggers new view when the content has changed during previous view . @protected @param { Viewer } viewer @param { Chain } usedContent @param { number } usedSettingsVersion
viewerViewDidFinish (viewer, usedContent, usedSettingsVersion) {
    if (!this.containsBrick(viewer)) {
      return
    }
    this.setBrickMeta(viewer, 'busy', false)
    let settingsVersion = this.getBrickMeta(viewer, 'settingsVersion')
    let bucket = this.getBucketIndexForBrick(viewer)
    if (!this.getContent(bucket).isEqualTo(usedContent) ||
        settingsVersion !== usedSettingsVersion) {
      this.triggerViewerView(viewer)
    }
  }
viewerViewDidFinish ( viewer , usedContent , usedSettingsVersion ) { if ( ! this . containsBrick ( viewer ) ) { return } this . setBrickMeta ( viewer , 'busy' , false ) let settingsVersion = this . getBrickMeta ( viewer , 'settingsVersion' ) let bucket = this . getBucketIndexForBrick ( viewer ) if ( ! this . getContent ( bucket ) . isEqualTo ( usedContent ) || settingsVersion !== usedSettingsVersion ) { this . triggerViewerView ( viewer ) } }
Triggered when viewer did finish viewing content.
Triggered when viewer did finish viewing content .
// check if viewer is still part of the pipe // do nothing // mark brick as no longer busy // there were views skipped when the current content or brick //  settings changed during last view // repeat view