Skip to content
Snippets Groups Projects
Commit f70d4fe6 authored by mcmlxxix's avatar mcmlxxix
Browse files

fix typo in clear method

parent d49c8b24
Branches
Tags
No related merge requests found
...@@ -52,8 +52,8 @@ function JSONChat(usernum,jsonclient,host,port) { ...@@ -52,8 +52,8 @@ function JSONChat(usernum,jsonclient,host,port) {
var chan = this.channels[target.toUpperCase()]; var chan = this.channels[target.toUpperCase()];
this.client.write("chat","channels." + chan.name + ".history",[],2); this.client.write("chat","channels." + chan.name + ".history",[],2);
chan.messages = []; chan.messages = [];
if(this.view) { if(this.chatView) {
var tab = this.view.getTab(target) var tab = this.chatView.getTab(target)
if(tab) if(tab)
tab.frame.clear(); tab.frame.clear();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment