Button: set menu when button isn't rendered.

This commit is contained in:
Julia Radzhabova 2016-10-20 11:52:14 +03:00
parent fb0e00edb9
commit 7b084a98bb

View file

@ -494,9 +494,10 @@ define([
}, },
setMenu: function (m) { setMenu: function (m) {
if (this.rendered && m && _.isObject(m) && _.isFunction(m.render)){ if (m && _.isObject(m) && _.isFunction(m.render)){
this.menu = m; this.menu = m;
this.menu.render(this.cmpEl); if (this.rendered)
this.menu.render(this.cmpEl);
} }
} }
}); });