diff --git a/source/Ox.UI/js/Menu/Ox.Menu.js b/source/Ox.UI/js/Menu/Ox.Menu.js index a7bc12df..1614e013 100644 --- a/source/Ox.UI/js/Menu/Ox.Menu.js +++ b/source/Ox.UI/js/Menu/Ox.Menu.js @@ -126,14 +126,11 @@ Ox.Menu = function(options, self) { } if (item.options('checked') !== null) { if (item.options('group')) { - //Ox.print('has group', item.options('group')) toggled = self.optionGroups[item.options('group')].toggle(position); - //Ox.print('toggled', toggled) if (toggled.length) { toggled.forEach(function(pos) { that.items[pos].toggleChecked(); }); - //Ox.print('--triggering change event--'); menu.triggerEvent('change', { id: item.options('group'), checked: $.map(self.optionGroups[item.options('group')].checked(), function(v, i) { @@ -297,6 +294,7 @@ Ox.Menu = function(options, self) { } function getItemPositionById(id) { + // fixme: this exists in ox.js by now var position; Ox.forEach(that.items, function(item, i) { if (item.options('id') == id) { diff --git a/source/Ox.UI/js/Panel/Ox.SplitPanel.js b/source/Ox.UI/js/Panel/Ox.SplitPanel.js index 782672ff..03c10899 100644 --- a/source/Ox.UI/js/Panel/Ox.SplitPanel.js +++ b/source/Ox.UI/js/Panel/Ox.SplitPanel.js @@ -432,11 +432,11 @@ Ox.SplitPanel_ = function(options, self) { element.collapsed = !element.collapsed; css['margin' + Ox.toTitleCase(self.edges[0][index])] = element.collapsed ? -size : 0; - Ox.print('css', css); that.animate(css, 250, function() { element.element.triggerEvent('toggle', {collapsed: element.collapsed}); triggerEvents('resize', pos); }); + self.$resizebars[pos == 0 ? 0 : 1].options({collapsed: element.collapsed}); } }