Browse Source

variable should be declared

Daniel Kutik 12 years ago
parent
commit
15a7472f3d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      example/index.html

+ 1 - 1
example/index.html

@@ -175,7 +175,7 @@
           }
         }, false);
         rtc.on(chat.event, function() {
-          data = chat.recv.apply(this, arguments);
+          var data = chat.recv.apply(this, arguments);
           console.log(data.color);
           addToChat(data.messages, data.color.toString(16));
         });