src/basis/data/AbstractData.js
function(isActive){
    var proxyToken = this.activeRA_ && this.activeRA_.proxyToken;

    if (isActive === PROXY)
    {
      if (!proxyToken)
      {
        proxyToken = new basis.Token(this.subscriberCount > 0);
        this.addHandler(ABSTRACTDATA_ACTIVE_SYNC_HANDLER, proxyToken);
      }

      isActive = proxyToken;
    }
    else
    {
      if (proxyToken && isActive !== proxyToken)
      {
        this.removeHandler(ABSTRACTDATA_ACTIVE_SYNC_HANDLER, proxyToken);
        proxyToken = null;
      }
    }

    isActive = !!resolveValue(this, this.setActive, isActive, 'activeRA_');

    if (proxyToken && this.activeRA_)
      this.activeRA_.proxyToken = proxyToken;

    if (this.active != isActive)
    {
      this.active = isActive;
      this.emit_activeChanged();

      if (isActive)
        SUBSCRIPTION.subscribe(this, this.subscribeTo);
      else
        SUBSCRIPTION.unsubscribe(this, this.subscribeTo);

      return true;
    }

    return false;
  }
function(isActive){
    var proxyToken = this.activeRA_ && this.activeRA_.proxyToken;

    if (isActive === PROXY)
    {
      if (!proxyToken)
      {
        proxyToken = new basis.Token(this.subscriberCount > 0);
        this.addHandler(ABSTRACTDATA_ACTIVE_SYNC_HANDLER, proxyToken);
      }

      isActive = proxyToken;
    }
    else
    {
      if (proxyToken && isActive !== proxyToken)
      {
        this.removeHandler(ABSTRACTDATA_ACTIVE_SYNC_HANDLER, proxyToken);
        proxyToken = null;
      }
    }

    isActive = !!resolveValue(this, this.setActive, isActive, 'activeRA_');

    if (proxyToken && this.activeRA_)
      this.activeRA_.proxyToken = proxyToken;

    if (this.active != isActive)
    {
      this.active = isActive;
      this.emit_activeChanged();

      if (isActive)
        SUBSCRIPTION.subscribe(this, this.subscribeTo);
      else
        SUBSCRIPTION.unsubscribe(this, this.subscribeTo);

      return true;
    }

    return false;
  }
function ( isActive ) { var proxyToken = this . activeRA_ && this . activeRA_ . proxyToken ; if ( isActive === PROXY ) { if ( ! proxyToken ) { proxyToken = new basis . Token ( this . subscriberCount > 0 ) ; this . addHandler ( ABSTRACTDATA_ACTIVE_SYNC_HANDLER , proxyToken ) ; } isActive = proxyToken ; } else { if ( proxyToken && isActive !== proxyToken ) { this . removeHandler ( ABSTRACTDATA_ACTIVE_SYNC_HANDLER , proxyToken ) ; proxyToken = null ; } } isActive = ! ! resolveValue ( this , this . setActive , isActive , 'activeRA_' ) ; if ( proxyToken && this . activeRA_ ) this . activeRA_ . proxyToken = proxyToken ; if ( this . active != isActive ) { this . active = isActive ; this . emit_activeChanged ( ) ; if ( isActive ) SUBSCRIPTION . subscribe ( this , this . subscribeTo ) ; else SUBSCRIPTION . unsubscribe ( this , this . subscribeTo ) ; return true ; } return false ; }
Set new value for isActiveSubscriber property.
@param {boolean} isActive New value for {basis.data.Object#active} property.
@return {boolean} Returns true if {basis.data.Object#active} was changed.
Set new value for isActiveSubscriber property .