update lib to allow set value through javascrpti if switcher is readonly or disabled

This commit is contained in:
Pierre Verkest
2015-10-01 23:16:04 +02:00
parent 7decad6070
commit af3d1ac503
2 changed files with 2 additions and 3 deletions

View File

@@ -135,9 +135,6 @@
if (typeof value === "undefined") {
return this.options.state;
}
if (this.options.disabled || this.options.readonly) {
return this.$element;
}
if (this.options.state && !this.options.radioAllOff && this.$element.is(":radio")) {
return this.$element;
}