1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 05:57:59 +01:00

Manually add list of global object properties to global objects.

--HG--
extra : rebase_source : 53318cbfe4a044e6bbf9facb1ce6bc5933ba6fd9
This commit is contained in:
Kris Maglione
2010-09-25 12:28:55 -04:00
parent 8f34359ab8
commit 0956c9a83b
5 changed files with 30 additions and 10 deletions

View File

@@ -347,9 +347,15 @@ const CompletionContext = Class("CompletionContext", {
this.lastActivated = this.top.runCount;
}
if (!this.itemCache[this.key]) {
let res = this._generate.call(this);
if (res != null)
this.itemCache[this.key] = res;
try {
let res = this._generate.call(this);
if (res != null)
this.itemCache[this.key] = res;
}
catch (e) {
dactyl.reportError(e);
this.message = "Error: " + e;
}
}
return this.itemCache[this.key];
},