bespokejs / bespoke

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

Use classList.remove #3

Closed p01 closed 11 years ago

p01 commented 11 years ago

It's for modern browsers ( with polyfill for older ones ) or it's not :p

markdalgleish commented 11 years ago

In this case, classList.remove isn't enough because I need to remove classes based on regular expressions so I can remove all the 'bespoke-before-n' and 'bespoke-after-n' classes.

p01 commented 11 years ago

My bad I didn't catch this subtlety. Anyways, well done with Bespoke. Great approach.