Skip to content

Commit

Permalink
Removing dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
rugoncalves committed Jul 23, 2024
1 parent 26c42fc commit 0b455b9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
2 changes: 0 additions & 2 deletions src/OSFramework/DataGrid/Feature/Auxiliar/MenuItem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ namespace OSFramework.DataGrid.Feature.Auxiliar {
public items: MenuItem[] = [];
/** The label or display name on the context menu */
public label: string;
/** Order of the element on a menu, calculated based on DOM element position */
public order: number;
/** Parent Id reference */
public parentMenuItemId: string;
/** Menu item string identifier */
Expand Down
12 changes: 6 additions & 6 deletions src/Providers/DataGrid/Wijmo/Features/ContextMenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,12 +272,12 @@ namespace Providers.DataGrid.Wijmo.Feature {
* Sort menu by its order
* @param items list of menu items
*/
private _sortMenuItems(items: OSFramework.DataGrid.Feature.Auxiliar.MenuItem[]) {
items.sort((a, b): number => {
this._sortMenuItems(a.items);
return a.order - b.order;
});
}
// private _sortMenuItems(items: OSFramework.DataGrid.Feature.Auxiliar.MenuItem[]) {
// items.sort((a, b): number => {
// this._sortMenuItems(a.items);
// return a.order - b.order;
// });
// }
public get contextMenuEvents(): OSFramework.DataGrid.Event.Feature.ContextMenuEventManager {
return this._contextMenuEvents;
}
Expand Down

0 comments on commit 0b455b9

Please sign in to comment.