1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 13:02:27 +01:00

whitespace fixes

This commit is contained in:
Doug Kearns
2008-11-13 15:45:30 +00:00
parent 551417f410
commit 074df859c5
3 changed files with 5 additions and 5 deletions

View File

@@ -179,7 +179,7 @@ function Commands() //{{{
return NaN; 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); v = "\\" + (v || k);
return function (str) acc(String.replace(str, k, v, "g")) return function (str) acc(String.replace(str, k, v, "g"))
}, function (val) q + val + q); }, function (val) q + val + q);
@@ -783,7 +783,7 @@ function Commands() //{{{
arguments: [cmd.name], arguments: [cmd.name],
literalArg: cmd.replacementText literalArg: cmd.replacementText
} }
for ([k,cmd] in Iterator(exCommands)) for ([k, cmd] in Iterator(exCommands))
if (cmd.isUserCommand && cmd.replacementText) if (cmd.isUserCommand && cmd.replacementText)
] ]
}); });

View File

@@ -487,7 +487,7 @@ function Completion() //{{{
var completer = obj[func].liberatorCompleter; var completer = obj[func].liberatorCompleter;
} }
catch (e) {} catch (e) {}
if (!completer) if (!completer)
completer = this.completers[func]; completer = this.completers[func];
if (!completer) if (!completer)
return [0, []]; return [0, []];
@@ -800,7 +800,7 @@ function Completion() //{{{
return { return {
start: 0, start: 0,
get completions() { return bookmarks.get(filter) }, get completions() { return bookmarks.get(filter) },
createRow: function (item) createRow: function (item)
<ul class="hl-CompItem"> <ul class="hl-CompItem">
<li class="hl-CompIcon"><img src={item.icon || ""}/></li> <li class="hl-CompIcon"><img src={item.icon || ""}/></li>
<li class="hl-CompResult">{util.clip(item.title || "", 50)}</li> <li class="hl-CompResult">{util.clip(item.title || "", 50)}</li>

View File

@@ -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"); 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(); 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.get = function (k) highlight[k];
this.set = function (key, newStyle, force, append) this.set = function (key, newStyle, force, append)