diff --git a/source/UI/js/Form/ButtonGroup.js b/source/UI/js/Form/ButtonGroup.js index b4ff9ef1..d8eb06ab 100644 --- a/source/UI/js/Form/ButtonGroup.js +++ b/source/UI/js/Form/ButtonGroup.js @@ -31,9 +31,9 @@ Ox.ButtonGroup = function(options, self) { .options(options || {}) .update({ value: function() { - var values = Ox.makeArray(self.options.value); + var positions = [], + values = Ox.makeArray(self.options.value); - var positions = []; Ox.forEach(values, function(value) { var position = Ox.getIndexById( self.options.buttons, value