summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorKris Maglione <maglione.k@gmail.com>2011-04-05 17:34:58 -0400
committerKris Maglione <maglione.k@gmail.com>2011-04-05 17:34:58 -0400
commit52b7a5364d77cea362f80f80f304a142449b681f (patch)
treedbf7b2ded0367b4b02c2bd37684795728b488fb0 /common
parent4ac814d4f929b11c13f4d6e3395f352dff2d012c (diff)
downloadpentadactyl-52b7a5364d77cea362f80f80f304a142449b681f.tar.gz
Fix Minefield button on Windows® with Personas garbage installed.
Diffstat (limited to 'common')
-rw-r--r--common/content/events.js18
1 files changed, 10 insertions, 8 deletions
diff --git a/common/content/events.js b/common/content/events.js
index 5997d70f..bd21c653 100644
--- a/common/content/events.js
+++ b/common/content/events.js
@@ -1490,14 +1490,16 @@ var Events = Module("events", {
key === "<Esc>" || key === "<C-[>",
isHidden: function isHidden(elem, aggressive) {
- for (let e = elem; e instanceof Element; e = e.parentNode) {
- if (util.computedStyle(e).visibility !== "visible" ||
- aggressive && !/set$/.test(e.localName)
- && e.boxObject && e.boxObject.height === 0)
- return true;
- else if (e.namespaceURI == XUL && e.localName === "panel")
- break;
- }
+ if (util.computedStyle(elem).visibility !== "visible")
+ return true;
+
+ if (aggressive)
+ for (let e = elem; e instanceof Element; e = e.parentNode) {
+ if (!/set$/.test(e.localName) && e.boxObject && e.boxObject.height === 0)
+ return true;
+ else if (e.namespaceURI == XUL && e.localName === "panel")
+ break;
+ }
return false;
},