// Copyright (c) 2006-2008 by Martin Stubenschrott <stubenschrott@vimperator.org>
// Copyright (c) 2007-2011 by Doug Kearns <dougkearns@gmail.com>
-// Copyright (c) 2008-2012 Kris Maglione <maglione.k@gmail.com>
+// Copyright (c) 2008-2013 Kris Maglione <maglione.k@gmail.com>
//
// This work is licensed for reuse under an MIT license. Details are
// given in the LICENSE.txt file included with this file.
find: function find(url) {
let res = [];
for (let [k, v] in this._qmarks)
- if (dactyl.parseURLs(v).some(function (u) String.replace(u, /#.*/, "") == url))
+ if (dactyl.parseURLs(v).some(u => String.replace(u, /#.*/, "") == url))
res.push(k);
return res;
},
if (filter.length > 0) {
let pattern = util.charListToRegexp(filter, "a-zA-Z0-9");
- marks = marks.filter(function (qmark) pattern.test(qmark));
+ marks = marks.filter(qmark => pattern.test(qmark));
dactyl.assert(marks.length >= 0, _("quickmark.noMatching", filter.quote()));
}
context.title = ["Extra Completions"];
context.completions = [
[quickmarks.get(args[0]), _("option.currentValue")]
- ].filter(function ([k, v]) k);
+ ].filter(([k, v]) => k);
});
context.fork("url", 0, completion, "url");
}
completion: function initCompletion() {
completion.quickmark = function (context) {
context.title = ["QuickMark", "URL"];
- context.generate = function () Iterator(quickmarks._qmarks);
+ context.generate = () => Iterator(quickmarks._qmarks);
};
},
mappings: function initMappings() {