blob: 2ecb3b71a7ae34bf1cf6a50fcb1256619c3e4c03 [file] [log] [blame]
Akron48b1e4d2015-06-17 18:47:01 +02001/**
2 * Menu showing all predefined virtual collections.
3 * THIS IS EXPERIMENTAL AND MAY BE REMOVED!
4 */
5define(['vc/menu', 'api'], function (menuClass, itemClass) {
6 return {
7 create : function (params) {
8 return Object.create(menuClass)
9 .upgradeTo(this)
Akron1ff3ac22016-04-28 16:30:45 +020010 ._init(itemClass, undefined, undefined, params);
Akron48b1e4d2015-06-17 18:47:01 +020011 },
12
13 /**
14 * A click event was released
15 */
16 release : function (id, name) {
17 if (this._cb !== undefined)
18 this._cb(id, name);
19 }
20 };
21});