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

Commit

Permalink
Merge pull request #57 from netusco/master
Browse files Browse the repository at this point in the history
Wrong property on removeMenuItem
  • Loading branch information
amoshaviv committed May 9, 2014
2 parents 0e7ebb6 + fca7e9e commit 4930d81
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 4930d81

Please sign in to comment.