mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-03 15:04:12 +01:00
Fix bugs. Closes issue #528.
This commit is contained in:
@@ -725,6 +725,9 @@ var CommandLine = Module("commandline", {
|
||||
|
||||
if (flags & this.APPEND_TO_MESSAGES) {
|
||||
let message = isObject(data) ? data : { message: data };
|
||||
|
||||
// Make sure the memoized message property is an instance property.
|
||||
message.message;
|
||||
this._messageHistory.add(update({ highlight: highlightGroup }, message));
|
||||
data = message.message;
|
||||
}
|
||||
|
||||
@@ -59,12 +59,13 @@ var updateAddons = Class("UpgradeListener", AddonListener, {
|
||||
|
||||
},
|
||||
onUpdateAvailable: function (addon, install) {
|
||||
util.dump("onUpdateAvailable");
|
||||
this.upgrade.push(addon);
|
||||
install.addListener(this);
|
||||
install.install();
|
||||
},
|
||||
onUpdateFinished: function (addon, error) {
|
||||
this.remaining = this.remaining.filter(function (a) a != addon);
|
||||
this.remaining = this.remaining.filter(function (a) a.type != addon.type || a.id != addon.id);
|
||||
if (!this.remaining.length)
|
||||
this.dactyl.echomsg(
|
||||
this.upgrade.length
|
||||
|
||||
Reference in New Issue
Block a user