@@ -120,6 +120,9 @@
if (this.options.disabled || this.options.readonly || this.options.indeterminate) {
return this.$element;
}
+ if (this.options.state && this.$element.is(':radio')) {
+ return this.$element;
+ }
value = !!value;
this.$element.prop("checked", value).trigger("change.bootstrapSwitch", skip);
@@ -73,6 +73,7 @@ do ($ = window.jQuery, window) ->
state: (value, skip) ->
return @options.state if typeof value is "undefined"
return @$element if @options.disabled or @options.readonly or @options.indeterminate
+ return @$element if @options.state and @$element.is ':radio'
value = not not value