I found when I used this polyfill in a sortable JQuery element it bombed on changing the class back to the original because the element was undefined. To prevent error I wrapped in if:
This would only be an issue in Old IE.
Otherwise love the polyfill!
Thanks for the bug report. I'll get this fixed.
Make sure the element still exists after the add/removeClass delay. F…