diff --git a/lib/proportions.js b/lib/proportions.js index 84d8cd9..83cdb21 100644 --- a/lib/proportions.js +++ b/lib/proportions.js @@ -167,7 +167,7 @@ define(['d3-interpolate', 'snabbdom', 'filters/genericnode', 'helper'], h2.classList.add('proportion-header'); h2.textContent = _.t(heading); h2.onclick = function onclick() { - table.classList.toggle('hide'); + table.elm.classList.toggle('hide'); }; el.appendChild(h2); el.appendChild(table.elm);