I'm wondering why you use 'el.className = list;' instead of 'el.className = list.join(' ');' in function toggleClass, the previous code gives you a comma-separate class, eg. class="modal,fade,in", in Chrome and it leads the modal div displays incorrectly.
Hope to fix it ASAP.
I'm wondering why you use 'el.className = list;' instead of 'el.className = list.join(' ');' in function toggleClass, the previous code gives you a comma-separate class, eg. class="modal,fade,in", in Chrome and it leads the modal div displays incorrectly. Hope to fix it ASAP.