compare(version) {
    if (!(version instanceof firebaseui.auth.sni.Version)) {
      version = new firebaseui.auth.sni.Version(String(version));
    }
    var maxLength =
        Math.max(this.components_.length, version.components_.length);
    for (var i = 0; i < maxLength; i++) {
      var num1 = this.components_[i];
      var num2 = version.components_[i];
      if (num1 !== undefined && num2 !== undefined && num1 !== num2) {
        return num1 - num2;
      } else if (num1 === undefined) {
        return -1;
      } else if (num2 === undefined) {
        return 1;
      }
    }
    return 0;
  }
Compares the version with another one.

@param {firebaseui.auth.sni.Version|string} version The version to compare.
@return {number} -1, 0 or 1 if it's less than, equal to or greater than the
    other.