mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-04 18:04:12 +01:00
whitespace fixes
This commit is contained in:
@@ -179,7 +179,7 @@ function Commands() //{{{
|
||||
return NaN;
|
||||
}
|
||||
|
||||
function quote(q, list) list.reduce(function (acc, [k,v]) {
|
||||
function quote(q, list) list.reduce(function (acc, [k, v]) {
|
||||
v = "\\" + (v || k);
|
||||
return function (str) acc(String.replace(str, k, v, "g"))
|
||||
}, function (val) q + val + q);
|
||||
@@ -783,7 +783,7 @@ function Commands() //{{{
|
||||
arguments: [cmd.name],
|
||||
literalArg: cmd.replacementText
|
||||
}
|
||||
for ([k,cmd] in Iterator(exCommands))
|
||||
for ([k, cmd] in Iterator(exCommands))
|
||||
if (cmd.isUserCommand && cmd.replacementText)
|
||||
]
|
||||
});
|
||||
|
||||
@@ -487,7 +487,7 @@ function Completion() //{{{
|
||||
var completer = obj[func].liberatorCompleter;
|
||||
}
|
||||
catch (e) {}
|
||||
if (!completer)
|
||||
if (!completer)
|
||||
completer = this.completers[func];
|
||||
if (!completer)
|
||||
return [0, []];
|
||||
@@ -800,7 +800,7 @@ function Completion() //{{{
|
||||
return {
|
||||
start: 0,
|
||||
get completions() { return bookmarks.get(filter) },
|
||||
createRow: function (item)
|
||||
createRow: function (item)
|
||||
<ul class="hl-CompItem">
|
||||
<li class="hl-CompIcon"><img src={item.icon || ""}/></li>
|
||||
<li class="hl-CompResult">{util.clip(item.title || "", 50)}</li>
|
||||
|
||||
@@ -95,7 +95,7 @@ function Highlights(name, store, serial)
|
||||
Highlight.prototype.toString = function () "Highlight(" + this.class + ")\n\t" + [k + ": " + util.escapeString(v || "undefined") for ([k, v] in this)].join("\n\t");
|
||||
|
||||
function keys() [k for ([k, v] in Iterator(highlight))].sort();
|
||||
this.__iterator__ = function () (highlight[v] for ([k,v] in Iterator(keys())));
|
||||
this.__iterator__ = function () (highlight[v] for ([k, v] in Iterator(keys())));
|
||||
|
||||
this.get = function (k) highlight[k];
|
||||
this.set = function (key, newStyle, force, append)
|
||||
|
||||
Reference in New Issue
Block a user