mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-31 21:42:26 +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) {
|
if (flags & this.APPEND_TO_MESSAGES) {
|
||||||
let message = isObject(data) ? data : { message: data };
|
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));
|
this._messageHistory.add(update({ highlight: highlightGroup }, message));
|
||||||
data = message.message;
|
data = message.message;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -59,12 +59,13 @@ var updateAddons = Class("UpgradeListener", AddonListener, {
|
|||||||
|
|
||||||
},
|
},
|
||||||
onUpdateAvailable: function (addon, install) {
|
onUpdateAvailable: function (addon, install) {
|
||||||
|
util.dump("onUpdateAvailable");
|
||||||
this.upgrade.push(addon);
|
this.upgrade.push(addon);
|
||||||
install.addListener(this);
|
install.addListener(this);
|
||||||
install.install();
|
install.install();
|
||||||
},
|
},
|
||||||
onUpdateFinished: function (addon, error) {
|
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)
|
if (!this.remaining.length)
|
||||||
this.dactyl.echomsg(
|
this.dactyl.echomsg(
|
||||||
this.upgrade.length
|
this.upgrade.length
|
||||||
|
|||||||
Reference in New Issue
Block a user