1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 18:07:58 +01:00

Fix some :ext* completion problems in FF 3.6.

This commit is contained in:
Kris Maglione
2010-09-22 16:28:28 -04:00
parent 3bd07e77c7
commit 8cee13c9d4
2 changed files with 4 additions and 3 deletions

View File

@@ -335,7 +335,7 @@ const CompletionContext = Class("CompletionContext", {
this.lastActivated = this.top.runCount;
}
if (!this.itemCache[this.key]) {
let res = this._generate.call(this) || [];
let res = this._generate.call(this);
if (res != null)
this.itemCache[this.key] = res;
}
@@ -356,6 +356,7 @@ const CompletionContext = Class("CompletionContext", {
if (this.cache.backgroundLock != lock)
return;
this.incomplete = false;
if (items != null)
this.completions = items;
});
}

View File

@@ -1459,7 +1459,7 @@ const Dactyl = Module("dactyl", {
services.get("extensionManager").uninstallItem(this.id);
};
addon.appDisabled = false;
addon.__defineGetter__("userDisabled", function () getRdfProperty("userDisabled") == "true");
addon.__defineGetter__("userDisabled", function () getRdfProperty(addon, "userDisabled") == "true");
addon.__defineSetter__("userDisabled", function (val) {
services.get("extensionManager")[val ? "enableItem" : "disableItem"](this.id);
});