mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-04 03:25:47 +01:00
Default arguments ftw.
This commit is contained in:
@@ -65,10 +65,7 @@ var Group = Class("Group", {
|
||||
get builtin() this.modules.contexts.builtinGroups.indexOf(this) >= 0,
|
||||
|
||||
}, {
|
||||
compileFilter: function (patterns, default_ = false) {
|
||||
if (arguments.length < 2)
|
||||
default_ = false;
|
||||
|
||||
compileFilter: function (patterns, default_=false) {
|
||||
function siteFilter(uri)
|
||||
let (match = array.nth(siteFilter.filters, f => f(uri), 0))
|
||||
match ? match.result : default_;
|
||||
|
||||
Reference in New Issue
Block a user