src/core/component.js
function wrapPause (pauseMethod) {
  return function pause () {
    var sceneEl = this.el.sceneEl;
    if (!this.isPlaying) { return; }
    pauseMethod.call(this);
    this.isPlaying = false;
    this.eventsDetach();
    // Remove tick behavior.
    if (!hasBehavior(this)) { return; }
    sceneEl.removeBehavior(this);
  };
}
function wrapPause (pauseMethod) {
  return function pause () {
    var sceneEl = this.el.sceneEl;
    if (!this.isPlaying) { return; }
    pauseMethod.call(this);
    this.isPlaying = false;
    this.eventsDetach();
    // Remove tick behavior.
    if (!hasBehavior(this)) { return; }
    sceneEl.removeBehavior(this);
  };
}
function wrapPause ( pauseMethod ) { return function pause ( ) { var sceneEl = this . el . sceneEl ; if ( ! this . isPlaying ) { return ; } pauseMethod . call ( this ) ; this . isPlaying = false ; this . eventsDetach ( ) ; // Remove tick behavior. if ( ! hasBehavior ( this ) ) { return ; } sceneEl . removeBehavior ( this ) ; } ; }
Wrapper for defined pause method.
Pause component by removing tick behavior and calling user's pause method.

@param pauseMethod {function}
Wrapper for defined pause method . Pause component by removing tick behavior and calling user s pause method .