blob: 2ecb3b71a7ae34bf1cf6a50fcb1256619c3e4c03 [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);
}
};
});