forked from 0x2620/oxjs
Ox.getPositionById() -> Ox.getIndexById()
This commit is contained in:
parent
4ca01b2bfa
commit
8097cc7812
19 changed files with 23 additions and 30 deletions
|
|
@ -205,7 +205,7 @@ Ox.MainMenu = function(options, self) {
|
|||
};
|
||||
|
||||
that.replaceMenu = function(id, menu) {
|
||||
var position = Ox.getPositionById(self.options.menus, id);
|
||||
var position = Ox.getIndexById(self.options.menus, id);
|
||||
self.options.menus[position] = menu;
|
||||
removeMenu(position);
|
||||
addMenu(menu, position);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue