fix(menu): add/remove gesture listeners per enabled menu

This commit is contained in:
Adam Bradley
2016-02-15 13:23:01 -06:00
parent 9888a9c155
commit ff24152524
6 changed files with 123 additions and 73 deletions

View File

@@ -209,7 +209,7 @@ export class MenuController {
*/
isEnabled(menuId?: string): boolean {
let menu = this.get(menuId);
return menu && menu.isEnabled || false;
return menu && menu.enabled || false;
}
/**
@@ -235,6 +235,14 @@ export class MenuController {
return (this._menus.length ? this._menus[0] : null);
}
/**
* @return {Array<Menu>} Returns an array of all menu instances.
*/
getMenus(): Array<Menu> {
return this._menus;
}
/**
* @private
*/