From 973852f58116b724a4f9d847ecee52b696538e51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Sat, 21 Apr 2012 15:50:06 +0200 Subject: [PATCH] Fix: In file/js/be.bastelstu.WCF.Chat.coffee, the variable "be" can't be assigned with ?= because it has not been defined. --- file/js/be.bastelstu.WCF.Chat.coffee | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/file/js/be.bastelstu.WCF.Chat.coffee b/file/js/be.bastelstu.WCF.Chat.coffee index 653af84..d941791 100644 --- a/file/js/be.bastelstu.WCF.Chat.coffee +++ b/file/js/be.bastelstu.WCF.Chat.coffee @@ -7,17 +7,16 @@ # @package be.bastelstu.wcf.chat ### -be ?= {} -be.bastelstu ?= {} -be.bastelstu.WCF ?= {} - -consoleMock = console -consoleMock ?= +window.consoleMock = console +window.consoleMock ?= log: () ->, warn: () ->, error: () -> - (($, window, console) -> + window.be ?= {} + be.bastelstu ?= {} + be.bastelstu.WCF ?= {} + be.bastelstu.WCF.Chat = # Tims Chat stops loading when this reaches zero # TODO: We need an explosion animation