1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 08:07:58 +01:00

Fix doc typo.

This commit is contained in:
Kris Maglione
2011-06-27 18:33:12 -04:00
parent d2c479f8a1
commit b5b504f051
4 changed files with 69 additions and 7 deletions

View File

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