bind: function(frameEl) {
this.node = frameEl;
- if (this.options.widget == 'select') {
+ if (this.options.widget != 'radio' && this.options.widget != 'checkbox') {
this.setUpdateEvents(frameEl.firstChild, 'change', 'click', 'blur');
this.setChangeEvents(frameEl.firstChild, 'change');
}
/** @override */
getValue: function() {
- if (this.options.widget == 'select')
+ if (this.options.widget != 'radio' && this.options.widget != 'checkbox')
return this.node.firstChild.value;
var radioEls = this.node.querySelectorAll('input[type="radio"]');
/** @override */
setValue: function(value) {
- if (this.options.widget == 'select') {
+ if (this.options.widget != 'radio' && this.options.widget != 'checkbox') {
if (value == null)
value = '';