fix IE comp

pull/1/head
yann300 7 years ago
parent 907649d925
commit 23343f1717
  1. 7
      src/app/tabs/tabbed-menu.js

@ -38,9 +38,10 @@ function tabbedMenu (container, appAPI, events, opts) {
if (!match) return if (!match) return
var cls = match[0] var cls = match[0]
if (!el.classList.contains(css.active)) { if (!el.classList.contains(css.active)) {
el.parentNode.querySelectorAll('li').forEach(function (x) { var nodes = el.parentNode.querySelectorAll('li')
x.classList.remove(css.active) for (var i = 0; i < nodes.length; ++i) {
}) nodes[i].classList.remove(css.active)
}
$('#optionViews').attr('class', '').addClass(cls) $('#optionViews').attr('class', '').addClass(cls)
el.classList.add(css.active) el.classList.add(css.active)
} }

Loading…
Cancel
Save