chore: small changes

This commit is contained in:
surunzi
2019-10-31 23:40:07 +08:00
parent 79ec650cae
commit 665b3599ba
2 changed files with 7 additions and 1 deletions

View File

@@ -9,8 +9,10 @@
<span {{{class 'icon-search search'}}}></span>
</div>
<div {{{class 'logs-container'}}}>
<div {{{class 'top-space'}}}></div>
<ul {{{class 'fake-logs'}}}></ul>
<ul {{{class 'logs'}}}></ul>
<div {{{class 'bottom-space'}}}></div>
</div>
<div {{{class 'js-input'}}}>
<div {{{class 'buttons'}}}>

View File

@@ -31,9 +31,13 @@ export default class Logger extends Emitter {
this._$container = $container
this._container = $container.get(0)
this._$el = $container.find('ul.eruda-logs')
this._el = this._$el.get(0)
this._$fakeEl = $container.find('ul.eruda-fake-logs')
this._fakeEl = this._$fakeEl.get(0)
this._el = this._$el.get(0)
this._$topSpace = $container.find('.eruda-top-space')
this._$bottomSpace = $container.find('.eruda-bottom-space')
this._topSpaceHeight = 0
this._bottomSpaceHeight = 0
this._logs = []
this._displayLogs = []
this._timer = {}