1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-26 02:15:46 +01:00

Make the status bar properly customizable and remove some useless vertical space in the navbar.

This commit is contained in:
Kris Maglione
2014-02-16 22:48:07 -08:00
parent d9c39262a6
commit 5aceb5f61d
5 changed files with 24 additions and 9 deletions

View File

@@ -113,6 +113,9 @@ var Overlay = Module("Overlay", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReferen
cleanup: function cleanup(reason) {
for (let doc in util.iterDocuments()) {
for (let callback in values(this.getData(doc, "cleanup")))
util.trapErrors(callback, doc, reason);
for (let elem in values(this.getData(doc, "overlayElements")))
if (elem.parentNode)
elem.parentNode.removeChild(elem);
@@ -121,9 +124,6 @@ var Overlay = Module("Overlay", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReferen
if (getAttr(elem, ns, name) === value)
setAttr(elem, ns, name, orig);
for (let callback in values(this.getData(doc, "cleanup")))
util.trapErrors(callback, doc, reason);
this.unlisten(doc, true);
delete doc[this.id];