function(element, attr, modelAttr) {
          if (!isInit) {
            return;
          }
          var newValue = getSwitchAttrValue(modelAttr);
          element.bootstrapSwitch(attr, newValue);
        }
function(element, attr, modelAttr) {
          if (!isInit) {
            return;
          }
          var newValue = getSwitchAttrValue(modelAttr);
          element.bootstrapSwitch(attr, newValue);
        }
function ( element , attr , modelAttr ) { if ( ! isInit ) { return ; } var newValue = getSwitchAttrValue ( modelAttr ) ; element . bootstrapSwitch ( attr , newValue ) ; }
Set a bootstrapSwitch parameter according to the angular-bound attribute.
The parameter will be changed only if the switch has already been initialized
(to avoid creating it before the model is ready).

@param element   The switch to apply the parameter modification to
@param attr      The name of the switch parameter
@param modelAttr The name of the angular-bound parameter
Set a bootstrapSwitch parameter according to the angular - bound attribute . The parameter will be changed only if the switch has already been initialized ( to avoid creating it before the model is ready ) .