From c88ce78e322eefeb359798b900cb112c47aebf0d Mon Sep 17 00:00:00 2001 From: rolux Date: Sun, 18 May 2014 02:42:41 +0200 Subject: [PATCH] menu button: handle items update --- source/Ox.UI/js/Menu/MenuButton.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/Ox.UI/js/Menu/MenuButton.js b/source/Ox.UI/js/Menu/MenuButton.js index aedcec74..1df6bbbb 100644 --- a/source/Ox.UI/js/Menu/MenuButton.js +++ b/source/Ox.UI/js/Menu/MenuButton.js @@ -41,6 +41,9 @@ Ox.MenuButton = function(options, self) { }) .options(options || {}) .update({ + items: function() { + self.$menu.options({items: self.options.items}); + }, title: function() { if (self.options.type == 'text') { self.$title.html(self.options.title);