]> git.za3k.com Git - petchat.git/commitdiff
Clear chat when going to them again master
authorZachary Vance <vanceza@gmail.com>
Tue, 7 Jul 2015 19:49:08 +0000 (12:49 -0700)
committerZachary Vance <vanceza@gmail.com>
Tue, 7 Jul 2015 19:49:08 +0000 (12:49 -0700)
chat.js

diff --git a/chat.js b/chat.js
index 4409c07c1626e23b31e4cab9e989a61d6c4b98b8..04761021751704249cdba9a34fb8578b4bb76157 100644 (file)
--- a/chat.js
+++ b/chat.js
@@ -159,7 +159,7 @@ Chatroom.prototype = {
         content.scrollTop(content.height());
     },
     clear: function() {
-        this.chat.find(".conent").empty();
+        this.chat.find(".content").empty();
     },
     bind: function(chat) {
         this.chat = chat;