Merge pull request #55 from borntyping/patch-1
Log view does not limit the number of events
This commit is contained in:
commit
b3c3224c90
1 changed files with 3 additions and 0 deletions
|
@ -76,6 +76,9 @@
|
|||
// Accept events from a subscription and update the log.
|
||||
LogView.prototype.update = function(event) {
|
||||
this.log.append(this.lineTemplate(event));
|
||||
while (this.log[0].children.length > this.lines) {
|
||||
this.log[0].deleteRow(0);
|
||||
}
|
||||
if (this.tracking) { this.scrollToBottom(); };
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue