function(id) {
          // Turns off other statuses belonging to the same exclusion group.
          var eg = statusesMeta[id] && statusesMeta[id].exclusionGroup;
          if (eg) {
            var egStatuses = Object.keys(exclusionGroups[eg]);
            for (var i = 0; i < egStatuses.length; i++) {
              var item = egStatuses[i];
              if (item !== id) {
                this.turnOff(item);
              }
            }
          }
          return this.setOne(id, true);
        }
function(id) {
          
          var eg = statusesMeta[id] && statusesMeta[id].exclusionGroup;
          if (eg) {
            var egStatuses = Object.keys(exclusionGroups[eg]);
            for (var i = 0; i < egStatuses.length; i++) {
              var item = egStatuses[i];
              if (item !== id) {
                this.turnOff(item);
              }
            }
          }
          return this.setOne(id, true);
        }
function ( id ) { // Turns off other statuses belonging to the same exclusion group. var eg = statusesMeta [ id ] && statusesMeta [ id ] . exclusionGroup ; if ( eg ) { var egStatuses = Object . keys ( exclusionGroups [ eg ] ) ; for ( var i = 0 ; i < egStatuses . length ; i ++ ) { var item = egStatuses [ i ] ; if ( item !== id ) { this . turnOff ( item ) ; } } } return this . setOne ( id , true ) ; }
@function turnOn
@memberOf mobile-angular-ui.core.sharedState~SharedState
@description

Set shared state identified by `id` to `true`. If the
shared state has been initialized with `exclusionGroup`
option it will also turn off (set to `false`) all other
statuses from the same exclusion group.

@param  {string} id The unique name of this state
@function turnOn @memberOf mobile - angular - ui . core . sharedState~SharedState @description