lib/jschat/http/public/javascripts/app/ui/commands.js in jschat-0.1.5 vs lib/jschat/http/public/javascripts/app/ui/commands.js in jschat-0.2.0
- old
+ new
@@ -25,14 +25,16 @@
'/clear': function() {
$('messages').innerHTML = '';
},
'/lastlog': function() {
+ this.pausePollers = true;
$('messages').innerHTML = '';
JsChat.Request.get('/lastlog', function(transport) {
this.displayMessages(transport.responseText);
$('names').innerHTML = '';
this.updateNames();
+ this.pausePollers = false;
}.bind(this));
},
'/(name|nick)\\s+(.*)': function(name) {
name = name[2];