From ab2fc02dcb0743217cedeb845578b849eb638645 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Tue, 31 May 2011 23:37:20 +0200 Subject: Fix broken subsequent calls to message handlers. Fixes #104 But really, this is whole broken, and we need to eliminate direct calls and use event handlers internally. --- data/tweaks/bug-page-mod.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'data/tweaks/bug-page-mod.js') diff --git a/data/tweaks/bug-page-mod.js b/data/tweaks/bug-page-mod.js index 20f16ea..c72cf94 100644 --- a/data/tweaks/bug-page-mod.js +++ b/data/tweaks/bug-page-mod.js @@ -41,7 +41,7 @@ function TweakOnMessageHandler(msg, nextHandlerList) { processHistory(msg.data); break; default: - if (nextHandler) { + if (nextHandlerList) { var nextHandler = nextHandlerList.splice(0, 1); if (nextHandler[0]) { nextHandler[0](msg, nextHandlerList); -- cgit