mirror of
https://github.com/keymanapp/keyman.git
synced 2026-10-12 17:07:31 +00:00
change(common/core/web): use of shorter arrow func from comment
This commit is contained in:
parent
e57ba467fe
commit
13e4293fbf
1 changed files with 1 additions and 3 deletions
|
|
@ -162,9 +162,7 @@ namespace com.keyman.text {
|
|||
let KEYSTROKE_EPSILON = Math.exp(-5);
|
||||
|
||||
// Sort the distribution into probability-descending order.
|
||||
keyDistribution.sort(function(a, b) {
|
||||
return b.p - a.p;
|
||||
});
|
||||
keyDistribution.sort((a, b) => b.p - a.p);
|
||||
|
||||
let activeLayout = this.activeKeyboard.layout(keyEvent.device.formFactor);
|
||||
alternates = [];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue