menu button: handle items update

This commit is contained in:
rolux 2014-05-18 02:42:41 +02:00
parent 0f1fb7b154
commit c88ce78e32

View file

@ -41,6 +41,9 @@ Ox.MenuButton = function(options, self) {
}) })
.options(options || {}) .options(options || {})
.update({ .update({
items: function() {
self.$menu.options({items: self.options.items});
},
title: function() { title: function() {
if (self.options.type == 'text') { if (self.options.type == 'text') {
self.$title.html(self.options.title); self.$title.html(self.options.title);