Ox.OptionGroup needs new

This commit is contained in:
j 2011-06-19 20:25:37 +02:00
parent 9c1023ca1f
commit cb7a7b0f5d
4 changed files with 4 additions and 4 deletions

View file

@ -31,7 +31,7 @@ Ox.ButtonGroup = function(options, self) {
.addClass('OxButtonGroup');
if (self.options.selectable) {
self.optionGroup = Ox.OptionGroup(
self.optionGroup = new Ox.OptionGroup(
self.options.buttons,
self.options.min,
self.options.max,

View file

@ -28,7 +28,7 @@ Ox.CheckboxGroup = function(options, self) {
.options(options || {})
.addClass('OxCheckboxGroup');
self.optionGroup = Ox.OptionGroup(
self.optionGroup = new Ox.OptionGroup(
self.options.checkboxes,
self.options.min,
self.options.max);

View file

@ -66,7 +66,7 @@ Ox.Select = function(options, self) {
});
if (self.options.selectable) {
self.optionGroup = Ox.OptionGroup(
self.optionGroup = new Ox.OptionGroup(
self.options.items,
self.options.min,
self.options.max

View file

@ -186,7 +186,7 @@ Ox.Menu = function(options, self) {
group: item.group
});
});
self.optionGroups[item.group] = Ox.OptionGroup(
self.optionGroups[item.group] = new Ox.OptionGroup(
items[i],
'min' in item ? item.min : 1,
'max' in item ? item.max : 1