Button: set menu when button isn't rendered.
This commit is contained in:
parent
fb0e00edb9
commit
7b084a98bb
|
@ -494,9 +494,10 @@ define([
|
|||
},
|
||||
|
||||
setMenu: function (m) {
|
||||
if (this.rendered && m && _.isObject(m) && _.isFunction(m.render)){
|
||||
if (m && _.isObject(m) && _.isFunction(m.render)){
|
||||
this.menu = m;
|
||||
this.menu.render(this.cmpEl);
|
||||
if (this.rendered)
|
||||
this.menu.render(this.cmpEl);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue