|
|
@ -236,7 +236,7 @@ BI.ButtonGroup = BI.inherit(BI.Widget, { |
|
|
|
setValueMap: function (map) { |
|
|
|
setValueMap: function (map) { |
|
|
|
map = map || {}; |
|
|
|
map = map || {}; |
|
|
|
BI.each(this.buttons, function (i, item) { |
|
|
|
BI.each(this.buttons, function (i, item) { |
|
|
|
if (BI.isNotNull(map[item.getValue()])) { |
|
|
|
if (BI.has(map, item.getValue())) { |
|
|
|
item.setSelected && item.setSelected(true); |
|
|
|
item.setSelected && item.setSelected(true); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
item.setSelected && item.setSelected(false); |
|
|
|
item.setSelected && item.setSelected(false); |
|
|
|