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:
@@ -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];
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user