anchor.diff:                      }
                   };
   
  -                var nextState = function (transitionName, currentState) {
  +                var nextStateValue = function (transitionName, currentState) {
                       var currentStateStr = currentState ? 'enabled' : 'disabled';
  -                    return transitions[currentStateStr][transitionName];
  +                    return values[currentStateStr][transitionName];
                   };
   
                   return {
  -                    nextState: nextState
  +                    nextStateValue: nextStateValue
                   };
               })();
   
  
positive.code:                 $(el).data('switchery', switchery);
              });
  
              var stateMachine = (function () {
                  var transitions = {
                      enabled: {
                          metricCollection: 'Enable metric collection',
                          tracing: 'Enable tracing'
  
negative.code:                     value: $this.prop('checked')
                  };
  
                  var nextStateValue = StateHolder.nextStateValue(data.name, data.value);
                  $this.parent().next().text(nextStateValue);
  
                  if (data.name === 'metricCollection') {
                      $('.alert.alert-danger').hide();
                  }
  
                  $.get("mskSwitchKillSetting", data).always(function () {
                      $this.data('switchery').enable();
  