vigetlabs / blendid

A delicious blend of gulp tasks combined into a configurable asset pipeline and static site builder
MIT License
4.97k stars 683 forks source link

Edge/IE11 Issue #521

Open schellenbergk opened 6 years ago

schellenbergk commented 6 years ago

Hello,

I've started cross browser testing on my project and everything works fine (when i run yarn run blendid) on most of the browsers however Edge/IE11, am I missing something?

export default class Table {
  constructor(el) {  // <--- Edge (Object doesn't support property or method 'ToString'), IE11 ('Symbol' is undefined)
    this.el = el;

    let x = el.getElementsByClassName('-x');
    for(let close of x){   // <--- This line seems to be causing it
      //....
    }

  }
}
benjtinsley commented 6 years ago

@schellenbergk looks like this may be an issue with using a for of loop, which is not supported in IE. maybe a polyfill for this would fix?