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

Fix failing tests.

--HG--
branch : groups
This commit is contained in:
Kris Maglione
2011-02-05 03:37:20 -05:00
parent 3b5f2fc07f
commit 01935dbb64
4 changed files with 11 additions and 14 deletions

View File

@@ -306,15 +306,10 @@ var Buffer = Module("buffer", {
statusline.updateUrl(message);
}),
onProgressChange: util.wrapCallback(function onProgressChange(webProgress, request, curSelfProgress, maxSelfProgress, curTotalProgress, maxTotalProgress) {
try {
onProgressChange.superapply(this, arguments);
if (webProgress && webProgress.DOMWindow)
webProgress.DOMWindow.dactylProgress = curTotalProgress / maxTotalProgress;
statusline.progress = curTotalProgress / maxTotalProgress;
}
catch (e) {
util.reportError(e);
}
onProgressChange.superapply(this, arguments);
if (webProgress && webProgress.DOMWindow)
webProgress.DOMWindow.dactylProgress = curTotalProgress / maxTotalProgress;
statusline.progress = curTotalProgress / maxTotalProgress;
}),
// happens when the users switches tabs
onLocationChange: util.wrapCallback(function onLocationChange(webProgress, request, uri) {