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:
@@ -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,7 +356,8 @@ const CompletionContext = Class("CompletionContext", {
|
||||
if (this.cache.backgroundLock != lock)
|
||||
return;
|
||||
this.incomplete = false;
|
||||
this.completions = items;
|
||||
if (items != null)
|
||||
this.completions = items;
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user