1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-31 14:42:28 +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

@@ -1,4 +1,4 @@
// Copyright (c) 2008-2013 Kris Maglione <maglione.k at Gmail>
// Copyright (c) 2008-2014 Kris Maglione <maglione.k at Gmail>
//
// This work is licensed for reuse under an MIT license. Details are
// given in the LICENSE.txt file included with this file.
@@ -125,7 +125,7 @@ var Highlights = Module("Highlight", {
if (/^[[>+: ]/.test(args[1]))
obj.selector = this.selector(obj.class) + args[1];
else if (args[1])
obj.selector = this.selector(args[1]);
obj.selector = this.selector(args[1].replace(/^,/, ""));
if (old && old.value != old.defaultValue)
obj.value = old.value;

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];