diff options
| author | RblSb <msrblsb@gmail.com> | 2021-07-04 03:59:50 +0300 |
|---|---|---|
| committer | RblSb <msrblsb@gmail.com> | 2021-07-05 17:04:25 +0300 |
| commit | ede45cea8706eb8540e466df9861c2af8ebf9c44 (patch) | |
| tree | 74a20a6f082173378f918b48b08542881f31749a /src/client/InputWithHistory.hx | |
| parent | 265b3e1fb56bb0e5f797b3b35227a616b108a0c3 (diff) | |
Reformat
Diffstat (limited to 'src/client/InputWithHistory.hx')
| -rw-r--r-- | src/client/InputWithHistory.hx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/client/InputWithHistory.hx b/src/client/InputWithHistory.hx index c4e8bf4..e7dfe83 100644 --- a/src/client/InputWithHistory.hx +++ b/src/client/InputWithHistory.hx @@ -1,19 +1,20 @@ package client; -import js.html.KeyboardEvent; import js.html.InputElement; +import js.html.KeyboardEvent; class InputWithHistory { - final element:InputElement; final maxItems:Int; final history:Array<String>; - final onEnter:(value:String)->Bool; + final onEnter:(value:String) -> Bool; var historyId = -1; public function new( - element:InputElement, ?history:Array<String>, maxItems:Int, - onEnter:(value:String)->Bool + element:InputElement, + ?history:Array<String>, + maxItems:Int, + onEnter:(value:String) -> Bool ) { this.element = element; if (history != null) this.history = history; @@ -65,5 +66,4 @@ class InputWithHistory { function onInput():Void { if (element.oninput != null) element.oninput(); } - } |
