Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
fixing removeMenuItem on menu service
Browse files Browse the repository at this point in the history
Object menus had an unknown property menuItem that corresponded to link property (see addMenuItem).
  • Loading branch information
netusco committed May 9, 2014
1 parent 0e7ebb6 commit fca7e9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/modules/core/services/menus.client.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ angular.module('core').service('Menus', [

// Search for menu item to remove
for (var itemIndex in this.menus[menuId].items) {
if (this.menus[menuId].items[itemIndex].menuItemURL === menuItemURL) {
if (this.menus[menuId].items[itemIndex].link === menuItemURL) {
this.menus[menuId].items.splice(itemIndex, 1);
}
}
Expand All @@ -111,4 +111,4 @@ angular.module('core').service('Menus', [
//Adding the topbar menu
this.addMenu('topbar');
}
]);
]);

0 comments on commit fca7e9e

Please sign in to comment.