Akron | 48b1e4d | 2015-06-17 18:47:01 +0200 | [diff] [blame] | 1 | /** |
| 2 | * Menu showing all predefined virtual collections. |
| 3 | * THIS IS EXPERIMENTAL AND MAY BE REMOVED! |
| 4 | */ |
| 5 | define(['vc/menu', 'api'], function (menuClass, itemClass) { |
| 6 | return { |
| 7 | create : function (params) { |
| 8 | return Object.create(menuClass) |
| 9 | .upgradeTo(this) |
Akron | 1ff3ac2 | 2016-04-28 16:30:45 +0200 | [diff] [blame^] | 10 | ._init(itemClass, undefined, undefined, params); |
Akron | 48b1e4d | 2015-06-17 18:47:01 +0200 | [diff] [blame] | 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 | }); |