From f880427c54a309600e21297eae3aade29888f226 Mon Sep 17 00:00:00 2001 From: Maximilian Mader Date: Mon, 27 May 2013 23:20:31 +0300 Subject: [PATCH] Adapt to latest WoltLab/WCF API changes See WoltLab/WCF@42d7d2cc --- file/js/be.bastelstu.Chat.litcoffee | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/file/js/be.bastelstu.Chat.litcoffee b/file/js/be.bastelstu.Chat.litcoffee index 83cf9e9..34db98e 100644 --- a/file/js/be.bastelstu.Chat.litcoffee +++ b/file/js/be.bastelstu.Chat.litcoffee @@ -370,10 +370,9 @@ Fetch new messages from the server and pass them to `handleMessages`. The userli type: 'POST' success: (data) -> remainingFailures = 3 - WCF.DOMNodeInsertedHandler.enable() handleMessages data.messages handleUsers data.users - WCF.DOMNodeInsertedHandler.disable() + WCF.DOMNodeInsertedHandler.execute() error: -> console.error "Message loading failed, #{--remainingFailures} remaining" if remainingFailures <= 0