1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 22:07:58 +01:00
This commit is contained in:
Kris Maglione
2011-07-27 08:55:20 -04:00
parent fbf080a62c
commit ece2ad9b96
2 changed files with 4 additions and 4 deletions

View File

@@ -671,12 +671,12 @@ var Buffer = Module("buffer", {
null, null, null, persist)); null, null, null, persist));
persist.progressListener = update(Object.create(downloadListener), { persist.progressListener = update(Object.create(downloadListener), {
onStateChange: function onStateChange(progress, request, flags, status) { onStateChange: util.wrapCallback(function onStateChange(progress, request, flags, status) {
if (callback && (flags & Ci.nsIWebProgressListener.STATE_STOP) && status == 0) if (callback && (flags & Ci.nsIWebProgressListener.STATE_STOP) && status == 0)
dactyl.trapErrors(callback, self, uri, file, progress, request, flag, status); dactyl.trapErrors(callback, self, uri, file, progress, request, flags, status);
return onStateChange.superapply(this, arguments); return onStateChange.superapply(this, arguments);
} })
}); });
persist.saveURI(uri, null, null, null, null, file); persist.saveURI(uri, null, null, null, null, file);

View File

@@ -1417,7 +1417,7 @@ var Events = Module("events", {
keyup: function onKeyUp(event) { keyup: function onKeyUp(event) {
if (event.type == "keydown") if (event.type == "keydown")
this.keyEvents.push(event); this.keyEvents.push(event);
else else if (!this.processor)
this.keyEvents = []; this.keyEvents = [];
let pass = this.passing && !event.isMacro || let pass = this.passing && !event.isMacro ||