mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-04 19:14:12 +01:00
Replace expression closures (function expressions - named and dynamic this).
Expression closures are to be axed. See https://bugzil.la/1083458. Leaving deprecated() and literal() calls and method shorthand syntax conversions until after the ESR overlap.
This commit is contained in:
@@ -266,8 +266,10 @@ var Abbreviations = Module("abbreviations", {
|
||||
list: function (modes, lhs, hives) {
|
||||
hives = (hives || this.userHives).filter(h => !h.empty);
|
||||
|
||||
function abbrevs(hive)
|
||||
hive.merged.filter(ab => (ab.inModes(modes) && ab.lhs.startsWith(lhs)));
|
||||
function abbrevs(hive) {
|
||||
return hive.merged.filter(a => a.inModes(modes) &&
|
||||
a.lhs.startsWith(lhs));
|
||||
}
|
||||
|
||||
let list = ["table", {},
|
||||
["tr", { highlight: "Title" },
|
||||
|
||||
Reference in New Issue
Block a user