1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-28 22:15:44 +01:00

Fix brokenness.

This commit is contained in:
Kris Maglione
2015-02-25 12:10:35 -08:00
parent a8b1b278e2
commit e819e7616d
4 changed files with 11 additions and 5 deletions

View File

@@ -492,8 +492,11 @@ var CompletionContext = Class("CompletionContext", {
// Item formatters
this.processor = Array.slice(this.process);
if (!this.anchored)
this.processor[0] = function processor_0(item, text) self.process[0].call(self, item,
this.processor[0] = function processor_0(item, text) {
return self.process[0].call(
self, item,
template.highlightFilter(item.text, self.filter, null, item.isURI));
};
try {
// Item prototypes
@@ -659,7 +662,10 @@ var CompletionContext = Class("CompletionContext", {
}
catch (e) {
util.reportError(e);
util.dump(util.prettifyJSON(this.createRow(this.items[idx]), null, true));
try {
util.dump(util.prettifyJSON(this.createRow(this.items[idx]), null, true));
}
catch (e) {}
cache[idx] = DOM.fromJSON(
["div", { highlight: "CompItem", style: "white-space: nowrap" },
["li", { highlight: "CompResult" }, this.text + "\u00a0"],