src/core/component.js
function wrapPlay (playMethod) {
  return function play () {
    var sceneEl = this.el.sceneEl;
    var shouldPlay = this.el.isPlaying && !this.isPlaying;
    if (!this.initialized || !shouldPlay) { return; }
    playMethod.call(this);
    this.isPlaying = true;
    this.eventsAttach();
    // Add tick behavior.
    if (!hasBehavior(this)) { return; }
    sceneEl.addBehavior(this);
  };
}
function wrapPlay (playMethod) {
  return function play () {
    var sceneEl = this.el.sceneEl;
    var shouldPlay = this.el.isPlaying && !this.isPlaying;
    if (!this.initialized || !shouldPlay) { return; }
    playMethod.call(this);
    this.isPlaying = true;
    this.eventsAttach();
    // Add tick behavior.
    if (!hasBehavior(this)) { return; }
    sceneEl.addBehavior(this);
  };
}
function wrapPlay ( playMethod ) { return function play ( ) { var sceneEl = this . el . sceneEl ; var shouldPlay = this . el . isPlaying && ! this . isPlaying ; if ( ! this . initialized || ! shouldPlay ) { return ; } playMethod . call ( this ) ; this . isPlaying = true ; this . eventsAttach ( ) ; // Add tick behavior. if ( ! hasBehavior ( this ) ) { return ; } sceneEl . addBehavior ( this ) ; } ; }
Wrapper for defined play method.
Play component by adding tick behavior and calling user's play method.

@param playMethod {function}
Wrapper for defined play method . Play component by adding tick behavior and calling user s play method .