mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-22 20:55:46 +01:00
Make further use of default parameters.
--HG-- extra : rebase_source : ab666bce7ed7e47c8f1e2bc4145f553da990d319
This commit is contained in:
@@ -628,10 +628,10 @@ var Bookmarks = Module("bookmarks", {
|
||||
},
|
||||
|
||||
completion: function initCompletion() {
|
||||
completion.bookmark = function bookmark(context, tags, extra) {
|
||||
completion.bookmark = function bookmark(context, tags, extra = {}) {
|
||||
context.title = ["Bookmark", "Title"];
|
||||
context.format = bookmarks.format;
|
||||
iter(extra || {}).forEach(function ([k, v]) {
|
||||
iter(extra).forEach(function ([k, v]) {
|
||||
if (v != null)
|
||||
context.filters.push(function (item) item.item[k] != null && this.matchString(v, item.item[k]));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user