_fetchTrackedState() {
    if (!this._canUseApi()) {
      return;
    }

    this.isBusy = true;

    httpJsonp({
      url: this._getApiMethodUrl('isTracked'),
      callbackProp: 'callback',
      callback: data => {
        const { value } = data;
        if (value !== undefined) {
          this.isTracked = value;
        }
      },
      error: e => {
        // eslint-disable-next-line no-console
        console.error('An error occurred when accessing `isTracked` API method.', e);
      },
      complete: () => {
        this.isBusy = false;
      },
    });
  }
/**
   * Retrieves the tracked state from the API.
   *
   * @private
   */
Retrieves the tracked state from the API.
@private
Retrieves the tracked state from the API . @private
_fetchTrackedState() {
    if (!this._canUseApi()) {
      return;
    }
    this.isBusy = true;
    httpJsonp({
      url: this._getApiMethodUrl('isTracked'),
      callbackProp: 'callback',
      callback: data => {
        const { value } = data;
        if (value !== undefined) {
          this.isTracked = value;
        }
      },
      error: e => {
        console.error('An error occurred when accessing `isTracked` API method.', e);
      },
      complete: () => {
        this.isBusy = false;
      },
    });
  }
_fetchTrackedState ( ) { if ( ! this . _canUseApi ( ) ) { return ; } this . isBusy = true ; httpJsonp ( { url : this . _getApiMethodUrl ( 'isTracked' ) , callbackProp : 'callback' , callback : data => { const { value } = data ; if ( value !== undefined ) { this . isTracked = value ; } } , error : e => { console . error ( 'An error occurred when accessing `isTracked` API method.' , e ) ; } , complete : ( ) => { this . isBusy = false ; } , } ) ; }
Retrieves the tracked state from the API.
Retrieves the tracked state from the API .
// eslint-disable-next-line no-console