1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 const EventEmitter
= require("resource://devtools/shared/event-emitter.js");
9 loader
.lazyRequireGetter(
12 "resource://devtools/client/storage/ui.js",
17 constructor(panelWin
, toolbox
, commands
) {
18 EventEmitter
.decorate(this);
20 this._toolbox
= toolbox
;
21 this._commands
= commands
;
22 this._panelWin
= panelWin
;
26 return this._panelWin
;
30 * open is effectively an asynchronous constructor
33 this.UI
= new StorageUI(this._panelWin
, this._toolbox
, this._commands
);
41 * Destroy the storage inspector.
44 if (this._destroyed
) {
47 this._destroyed
= true;
53 this._panelWin
= null;
57 exports
.StoragePanel
= StoragePanel
;