diff --git a/CHANGELOG.md b/CHANGELOG.md index a420241..c91176e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,12 @@ +## v1.7.0 (8 Oct 2019) + +* feat: resize [#89](https://github.com/liriliri/eruda/issues/89) +* feat(console): replace help button with filter +* feat(console): disable js execution +* feat(console): [utilities api](https://developers.google.cn/web/tools/chrome-devtools/console/utilities) +* fix(console): disable log collapsing for group +* fix(elements): select not working for desktop + ## v1.6.3 (1 Oct 2019) * fix(console): log border style diff --git a/package.json b/package.json index eb8a37c..44a4e15 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "eruda", - "version": "1.6.3", + "version": "1.7.0", "description": "Console for Mobile Browsers", "main": "eruda.js", "scripts": { diff --git a/src/Elements/Elements.js b/src/Elements/Elements.js index ce5c0cb..30e2874 100644 --- a/src/Elements/Elements.js +++ b/src/Elements/Elements.js @@ -23,7 +23,8 @@ import { isNaN, isNum, stringifyAll, - nextTick + nextTick, + Emitter } from '../lib/util' export default class Elements extends Tool { @@ -39,6 +40,8 @@ export default class Elements extends Tool { this._selectElement = false this._observeElement = true this._history = [] + + Emitter.mixin(this) } init($el, container) { super.init($el) @@ -71,11 +74,15 @@ export default class Elements extends Tool { return super.hide() } set(e) { + if (e === this._curEl) return + this._setEl(e) this.scrollToTop() this._render() this._updateHistory() + this.emit('change', e) + return this } overrideEventTarget() {