mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-06 06:44:12 +01:00
Replace expression closures (function declarations).
Expression closures are to be axed. See https://bugzil.la/1083458.
This commit is contained in:
@@ -119,7 +119,9 @@ var Config = Module("config", ConfigBase, {
|
||||
commands.add(["sideb[ar]", "sb[ar]", "sbop[en]"],
|
||||
"Open the sidebar window",
|
||||
function (args) {
|
||||
function compare(a, b) util.compareIgnoreCase(a, b) == 0
|
||||
function compare(a, b) {
|
||||
return util.compareIgnoreCase(a, b) == 0;
|
||||
}
|
||||
let title = document.getElementById("sidebar-title");
|
||||
|
||||
dactyl.assert(args.length || title.value || args.bang && config.lastSidebar,
|
||||
|
||||
Reference in New Issue
Block a user