1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-17 20:15:45 +01:00

add some missing argCount specs to commands

This commit is contained in:
Doug Kearns
2008-10-06 13:07:57 +00:00
parent 6afe44a1f3
commit 413e01da41
8 changed files with 35 additions and 30 deletions

View File

@@ -287,11 +287,9 @@ liberator.Bookmarks = function () //{{{
"Delete a bookmark",
function (args)
{
var url = args;
if (!url)
url = liberator.buffer.URL;
let url = args || liberator.buffer.URL;
let deletedCount = liberator.bookmarks.remove(url);
var deletedCount = liberator.bookmarks.remove(url);
liberator.echo(deletedCount + " bookmark(s) with url `" + url + "' deleted", liberator.commandline.FORCE_SINGLELINE);
},
{ completer: function (filter) [0, liberator.bookmarks.get(filter)] });