blob: 84f6ae9f985e6d2a7ca01b2210d9604ca713dc3d [file] [log] [blame]
/**
* Menu showing all predefined virtual collections.
* THIS IS EXPERIMENTAL AND MAY BE REMOVED!
*/
define(['vc/menu', 'api'], function (menuClass, itemClass) {
return {
create : function (params) {
return Object.create(menuClass)
.upgradeTo(this)
._init(itemClass, undefined, undefined, params);
},
/**
* A click event was released
*/
release : function (id, name) {
if (this._cb !== undefined)
this._cb(id, name);
}
};
});