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
var cls = match[0]
if (!el.classList.contains(css.active)) {
el.parentNode.querySelectorAll('li').forEach(function (x) {
x.classList.remove(css.active)
})
var nodes = el.parentNode.querySelectorAll('li')
for (var i = 0; i < nodes.length; ++i) {
nodes[i].classList.remove(css.active)
}
$('#optionViews').attr('class', '').addClass(cls)
el.classList.add(css.active)
}

Loading…
Cancel
Save