1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-11 02:44:13 +01:00

Some ensurance against :downloads cleanup handler not being called.

This commit is contained in:
Kris Maglione
2011-01-17 23:30:24 -05:00
parent 74d00cd222
commit 96467a553d

View File

@@ -248,7 +248,7 @@ var DownloadList = Class("DownloadList",
else {
this.addDownload(download.id);
this.modules.commandline.updateOutputHeight(true);
this.modules.commandline.updateOutputHeight(false);
this.nodes.list.scrollIntoView(false);
}
}
@@ -282,7 +282,10 @@ var Downloads = Module("downloads", {
modules.commandline.echo(function (doc) {
let downloads = DownloadList(doc, modules);
// Temporary and dangerous hack:
modules.modes.getStack(0).params = downloads;
Object.defineProperty(modules.modes.getStack(0), "params", {
get: function params() downloads,
set: function params(val) { throw FailedAssertion("Not replacing mode change handler", 1) }
});
return downloads.nodes.list;
});
});