index.js
function () {
    var el = this.el;
    this.lastPosition = el.getAttribute('position');
    this.lastRotation = el.getAttribute('rotation');
    this.lastScale = el.getAttribute('scale');

    this.lerpingPosition = false;
    this.lerpingRotation = false;
    this.lerpingScale = false;

    this.timeOfLastUpdate = 0;
  }
function () {
    var el = this.el;
    this.lastPosition = el.getAttribute('position');
    this.lastRotation = el.getAttribute('rotation');
    this.lastScale = el.getAttribute('scale');

    this.lerpingPosition = false;
    this.lerpingRotation = false;
    this.lerpingScale = false;

    this.timeOfLastUpdate = 0;
  }
Called once when component is attached. Generally for initial setup.