blob: 7e00d44cc61a155ae963946cd3dde2a9c8ef7b75 [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)
10 ._init(itemClass, undefined, params);
11 },
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});