blob: 90660b7285dbc39c68b4b4c18919a68802672137 [file] [log] [blame]
Akron48b1e4d2015-06-17 18:47:01 +02001/**
Akroncd42a142019-07-12 18:55:37 +02002 * Menu showing all predefined virtual corpora.
Akron48b1e4d2015-06-17 18:47:01 +02003 * 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)
Akron0b489ad2018-02-02 16:49:32 +01009 .upgradeTo(this)
10 ._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)
Akron0b489ad2018-02-02 16:49:32 +010018 this._cb(id, name);
Akron48b1e4d2015-06-17 18:47:01 +020019 }
20 };
21});