1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 22:07:58 +01:00

Fix lingering reference to util.computedStyle.

This commit is contained in:
Kris Maglione
2011-08-23 21:31:37 -04:00
parent 94249780e9
commit c7e3fa1711

View File

@@ -243,7 +243,7 @@ var CommandWidgets = Class("CommandWidgets", {
// Might possibly be better to use a deck and programmatically // Might possibly be better to use a deck and programmatically
// choose which element to select. // choose which element to select.
function check(node) { function check(node) {
if (util.computedStyle(node).display === "-moz-stack") { if (DOM(node).style.display === "-moz-stack") {
let nodes = Array.filter(node.children, function (n) !n.collapsed && n.boxObject.height); let nodes = Array.filter(node.children, function (n) !n.collapsed && n.boxObject.height);
nodes.forEach(function (node, i) node.style.opacity = (i == nodes.length - 1) ? "" : "0"); nodes.forEach(function (node, i) node.style.opacity = (i == nodes.length - 1) ? "" : "0");
} }