From f70d4fe6985c7796a2bb7ef3c604acced63cd0af Mon Sep 17 00:00:00 2001 From: mcmlxxix <> Date: Tue, 27 Mar 2012 21:46:00 +0000 Subject: [PATCH] fix typo in clear method --- exec/load/json-chat.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exec/load/json-chat.js b/exec/load/json-chat.js index 3d483c3dda..fbd39155c3 100644 --- a/exec/load/json-chat.js +++ b/exec/load/json-chat.js @@ -52,8 +52,8 @@ function JSONChat(usernum,jsonclient,host,port) { var chan = this.channels[target.toUpperCase()]; this.client.write("chat","channels." + chan.name + ".history",[],2); chan.messages = []; - if(this.view) { - var tab = this.view.getTab(target) + if(this.chatView) { + var tab = this.chatView.getTab(target) if(tab) tab.frame.clear(); } -- GitLab