bespokejs / bespoke

DIY Presentation Micro-Framework
http://markdalgleish.com/projects/bespoke.js/
MIT License
4.68k stars 443 forks source link

IE9 issue. Unable to get property 'add' of undefined or null reference #23

Closed synthview closed 11 years ago

synthview commented 11 years ago

Hello, I've put your bespoke.js + the js you've used on your demo page on my page but I have this error with IE9-

Unable to get property 'add' of undefined or null reference on the line: el.classList.add(moduleName + '-' + cls);

any idea?

markdalgleish commented 11 years ago

IE9 does't support classList, so you'll need a polyfill like classList.js.

synthview commented 11 years ago

it worked!! Many thanks!

ebrahimsblog commented 6 years ago

it worked!! Many thanks!

jerfink commented 6 years ago

perfect