OO.ui.MenuLayout.prototype.clearMenuPanel = function () {
    this.menuPanel = null;
    this.$menu.empty();
};