src/components/avatar-replayer.js
function () {
    var self = this;

    if (!this.isReplaying || !this.replayData) { return; }

    this.isReplaying = false;
    Object.keys(this.replayData).forEach(function removeReplayer (key) {
      if (key === 'camera') {
        self.cameraEl.removeComponent('motion-capture-replayer');
      } else {
        el = document.querySelector('#' + key);
        if (!el) {
          warn('No element with id ' + key);
          return;
        }
        el.removeComponent('motion-capture-replayer');
      }
    });
  }
function () {
    var self = this;

    if (!this.isReplaying || !this.replayData) { return; }

    this.isReplaying = false;
    Object.keys(this.replayData).forEach(function removeReplayer (key) {
      if (key === 'camera') {
        self.cameraEl.removeComponent('motion-capture-replayer');
      } else {
        el = document.querySelector('#' + key);
        if (!el) {
          warn('No element with id ' + key);
          return;
        }
        el.removeComponent('motion-capture-replayer');
      }
    });
  }
function ( ) { var self = this ; if ( ! this . isReplaying || ! this . replayData ) { return ; } this . isReplaying = false ; Object . keys ( this . replayData ) . forEach ( function removeReplayer ( key ) { if ( key === 'camera' ) { self . cameraEl . removeComponent ( 'motion-capture-replayer' ) ; } else { el = document . querySelector ( '#' + key ) ; if ( ! el ) { warn ( 'No element with id ' + key ) ; return ; } el . removeComponent ( 'motion-capture-replayer' ) ; } } ) ; }
Remove motion-capture-replayer components.
Remove motion - capture - replayer components .