Fix: Clear log

This commit is contained in:
surunzi
2016-05-09 17:25:40 +08:00
parent ce7675fa89
commit 7b4f6cc75c

View File

@@ -20,6 +20,7 @@ export default class Log extends util.Emitter
clear()
{
this._logs = [];
this._lastLog = {};
this._render();
}
@@ -195,7 +196,9 @@ export default class Log extends util.Emitter
var lastLog = this._lastLog;
if (lastLog.type === log.type && lastLog.val === log.val)
if (log.type !== 'html' &&
lastLog.type === log.type &&
lastLog.val === log.val)
{
lastLog.times++;
lastLog.showTimes = true;