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