From 7ce8644ad96ef85691e832bb71848327c5f7bd52 Mon Sep 17 00:00:00 2001 From: wangningx Date: Sun, 18 Jan 2015 06:18:58 +0800 Subject: [PATCH] need check .log console is a object in IE8, after press F12, then console.log() works....fuck IE... --- src/stomp.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stomp.coffee b/src/stomp.coffee index 69788a9..20188aa 100644 --- a/src/stomp.coffee +++ b/src/stomp.coffee @@ -162,7 +162,7 @@ class Client # $("#debug").append(str + "\n"); # }; debug: (message) -> - window?.console?.log message + window?.console?.log?.log message # Utility method to get the current timestamp (Date.now is not defined in IE8) now= ->