merge changes

This commit is contained in:
Rolux 2010-02-19 21:43:22 +05:30
commit 0aec06616b

View file

@ -2282,6 +2282,15 @@ requires
}; };
that.getItem = function(id) {
var item;
$.each(that.menus, function(i, menu) {
item = menu.getItem(id);
return !item;
});
return item;
};
that.removeMenu = function() { that.removeMenu = function() {
}; };
@ -2736,16 +2745,25 @@ requires
} }
} }
that.addItemAfter = function(item) { that.addItem = function(item, position)
that.addItemAfter = function(item, id) {
}; };
that.addItemBefore = function(item) { that.addItemBefore = function(item, id) {
}; };
that.getItem = function(id) { that.getItem = function(id) {
var item;
$.each(this.items, function(i, v) {
if (v.options("id") == id) {
item = v;
return false;
}
});
return item;
}; };
that.hasEnabledItems = function() { that.hasEnabledItems = function() {