mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 20:17:59 +01:00
Fix lingering reference to util.computedStyle.
This commit is contained in:
@@ -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");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user