1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 22:38:00 +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; this.lastActivated = this.top.runCount;
} }
if (!this.itemCache[this.key]) { if (!this.itemCache[this.key]) {
let res = this._generate.call(this) || []; let res = this._generate.call(this);
if (res != null) if (res != null)
this.itemCache[this.key] = res; this.itemCache[this.key] = res;
} }
@@ -356,7 +356,8 @@ const CompletionContext = Class("CompletionContext", {
if (this.cache.backgroundLock != lock) if (this.cache.backgroundLock != lock)
return; return;
this.incomplete = false; this.incomplete = false;
this.completions = items; if (items != null)
this.completions = items;
}); });
} }
}, },

View File

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