menu.getItem
This commit is contained in:
parent
815db9c74a
commit
5d741a5752
1 changed files with 21 additions and 0 deletions
|
@ -1987,6 +1987,16 @@ requires
|
|||
}
|
||||
};
|
||||
|
||||
that.getItem = function(id) {
|
||||
var item;
|
||||
$.each(that.menus, function(i, menu) {
|
||||
item = menu.getItem(id);
|
||||
if(!Ox.isUndefined(item))
|
||||
return false;
|
||||
});
|
||||
return item;
|
||||
};
|
||||
|
||||
return that;
|
||||
|
||||
};
|
||||
|
@ -2413,6 +2423,17 @@ requires
|
|||
|
||||
};
|
||||
|
||||
that.getItem = function(id) {
|
||||
var _item;
|
||||
$.each(this.items, function(i, item) {
|
||||
if(item.options('id') == id) {
|
||||
_item = item;
|
||||
return false;
|
||||
}
|
||||
});
|
||||
return _item;
|
||||
};
|
||||
|
||||
that.hasEnabledItems = function() {
|
||||
var ret = false;
|
||||
$.each(that.items, function(i, item) {
|
||||
|
|
Loading…
Reference in a new issue