]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
tab to space 1022/head
authorshinriyo <shinriyo@gmail.com>
Wed, 26 Mar 2014 01:04:07 +0000 (10:04 +0900)
committershinriyo <shinriyo@gmail.com>
Wed, 26 Mar 2014 01:04:07 +0000 (10:04 +0900)
tab to space and indent fix

demos/websocket/static/chat.js

index 8ff1b4bd9a2f606407636dae7ccd8efcdd4630d6..b4bb18a935962cad3700f4e9004ff12484c4797f 100644 (file)
@@ -51,10 +51,10 @@ var updater = {
 
     start: function() {
         var url = "ws://" + location.host + "/chatsocket";
-       updater.socket = new WebSocket(url);
-       updater.socket.onmessage = function(event) {
-           updater.showMessage(JSON.parse(event.data));
-       }
+        updater.socket = new WebSocket(url);
+        updater.socket.onmessage = function(event) {
+            updater.showMessage(JSON.parse(event.data));
+        }
     },
 
     showMessage: function(message) {