mirror of
https://github.com/liriliri/eruda.git
synced 2026-04-13 10:48:35 +08:00
Add: Destroy api #35
This commit is contained in:
@@ -83,6 +83,13 @@ export default class Elements extends Tool
|
||||
if (this._origAddEvent) winEventProto.addEventListener = this._origAddEvent;
|
||||
if (this._origRmEvent) winEventProto.removeEventListener = this._origRmEvent;
|
||||
}
|
||||
destroy()
|
||||
{
|
||||
super.destroy();
|
||||
|
||||
this._select.disable();
|
||||
this.restoreEventTarget();
|
||||
}
|
||||
_back()
|
||||
{
|
||||
if (this._curEl === this._htmlEl) return;
|
||||
|
||||
Reference in New Issue
Block a user