Browse code

Merge branch 'master' into history

Cinan Rakosnik authored on 26/05/2013 at 20:20:50
Showing 1 changed files
... ...
@@ -1,6 +1,13 @@
1 1
 this.App =
2
-  debug: (msg) ->
3
-    console.log msg
2
+  debug: () ->
3
+    return if arguments.length == 0
4
+
5
+    if arguments.length == 1
6
+      message = arguments[0]
7
+    else
8
+      message = arguments
9
+
10
+    console.log message
4 11
 
5 12
   stripJid: (jid) ->
6 13
     r = new RegExp('(^.*)\/.*$')