Nils Diewald | 0e6992a | 2015-04-14 20:13:52 +0000 | [diff] [blame^] | 1 | // Field menu |
2 | define(['menu', 'menu/item'], function (menuClass, itemClass) { | ||||
3 | return { | ||||
4 | create : function (params) { | ||||
5 | return Object.create(menuClass) | ||||
6 | .upgradeTo(this) | ||||
7 | ._init(itemClass, undefined, params) | ||||
8 | } | ||||
9 | }; | ||||
10 | }); |