X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/7a654f8d43fdb43d78b63d90528bed6e86b608cc..3789b528d8dd8aad4558e38e22d775bcab1cbd36:/src/layout/container/boxOverflow/Menu.js diff --git a/src/layout/container/boxOverflow/Menu.js b/src/layout/container/boxOverflow/Menu.js index 278648ab..40c127fc 100644 --- a/src/layout/container/boxOverflow/Menu.js +++ b/src/layout/container/boxOverflow/Menu.js @@ -42,6 +42,10 @@ Ext.define('Ext.layout.container.boxOverflow.Menu', { */ me.menuItems = []; }, + + onRemove: function(comp){ + Ext.Array.remove(this.menuItems, comp); + }, handleOverflow: function(calculations, targetSize) { var me = this, @@ -102,7 +106,7 @@ Ext.define('Ext.layout.container.boxOverflow.Menu', { * @private */ hideTrigger: function() { - if (this.menuTrigger != undefined) { + if (this.menuTrigger !== undefined) { this.menuTrigger.hide(); } },