src/basis/data/AbstractData.js
function(subscriptionType){
    var curSubscriptionType = this.subscribeTo;
    var newSubscriptionType = subscriptionType & SUBSCRIPTION.ALL;
    var delta = curSubscriptionType ^ newSubscriptionType;

    if (delta)
    {
      this.subscribeTo = newSubscriptionType;

      if (this.active)
        SUBSCRIPTION.changeSubscription(this, curSubscriptionType, newSubscriptionType);

      return true;
    }

    return false;
  }
function(subscriptionType){
    var curSubscriptionType = this.subscribeTo;
    var newSubscriptionType = subscriptionType & SUBSCRIPTION.ALL;
    var delta = curSubscriptionType ^ newSubscriptionType;

    if (delta)
    {
      this.subscribeTo = newSubscriptionType;

      if (this.active)
        SUBSCRIPTION.changeSubscription(this, curSubscriptionType, newSubscriptionType);

      return true;
    }

    return false;
  }
function ( subscriptionType ) { var curSubscriptionType = this . subscribeTo ; var newSubscriptionType = subscriptionType & SUBSCRIPTION . ALL ; var delta = curSubscriptionType ^ newSubscriptionType ; if ( delta ) { this . subscribeTo = newSubscriptionType ; if ( this . active ) SUBSCRIPTION . changeSubscription ( this , curSubscriptionType , newSubscriptionType ) ; return true ; } return false ; }
Set new value for subscriptionType property.
@param {number} subscriptionType New value for {basis.data.Object#subscribeTo} property.
@return {boolean} Returns true if {basis.data.Object#subscribeTo} was changed.
Set new value for subscriptionType property .