mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-15 20:53:32 +01:00
Replace expression closures (function declarations).
Expression closures are to be axed. See https://bugzil.la/1083458.
This commit is contained in:
@@ -162,10 +162,12 @@ var Sanitizer = Module("sanitizer", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakRef
|
||||
override: true
|
||||
});
|
||||
|
||||
function ourItems(persistent) [
|
||||
item for (item of values(self.itemMap))
|
||||
if (!item.builtin && (!persistent || item.persistent) && item.name !== "all")
|
||||
];
|
||||
function ourItems(persistent) {
|
||||
return [
|
||||
item for (item of values(self.itemMap))
|
||||
if (!item.builtin && (!persistent || item.persistent) && item.name !== "all")
|
||||
];
|
||||
}
|
||||
|
||||
function prefOverlay(branch, persistent, local) {
|
||||
return update(Object.create(local),
|
||||
|
||||
Reference in New Issue
Block a user