Akron | e4961b1 | 2017-05-10 21:04:46 +0200 | [diff] [blame] | 1 | define(['menu/prefix'], function (prefixClass) { |
2 | return { | ||||
3 | |||||
4 | /** | ||||
5 | * Create prefix object for the hint helper menu. | ||||
6 | */ | ||||
7 | create : function (params) { | ||||
8 | return Object.create(prefixClass). | ||||
9 | upgradeTo(this)._init(params); | ||||
10 | }, | ||||
11 | |||||
12 | /** | ||||
13 | * Override the prefix action. | ||||
14 | */ | ||||
15 | onclick : function (e) { | ||||
16 | var m = this.menu(); | ||||
17 | var value = this.value(); | ||||
18 | m.release(value, "string"); | ||||
19 | } | ||||
20 | }; | ||||
21 | }); |