index.js
function _tick() {
    var config = this._config;
    var now = Date.now();
    var dt = now - this._before;

    if (!this._started) {
      // The ticker has been stopped
      return;
    }

    if (config.async) {
      config.task(this._tock, dt);
    } else {
      config.task(dt);
      this._tock();
    }
  }
function _tick() {
    var config = this._config;
    var now = Date.now();
    var dt = now - this._before;

    if (!this._started) {
      // The ticker has been stopped
      return;
    }

    if (config.async) {
      config.task(this._tock, dt);
    } else {
      config.task(dt);
      this._tock();
    }
  }
function _tick ( ) { var config = this . _config ; var now = Date . now ( ) ; var dt = now - this . _before ; if ( ! this . _started ) { // The ticker has been stopped return ; } if ( config . async ) { config . task ( this . _tock , dt ) ; } else { config . task ( dt ) ; this . _tock ( ) ; } }
The first part of an iteration that determines how to call the task
The first part of an iteration that determines how to call the task