Issue with Replace Class on Drag/Drop #191

Closed
mrgcohen opened this Issue Dec 29, 2011 · 1 comment

Projects

None yet

2 participants

@mrgcohen

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:

Before:
m.className=m.className.replace(t,"")

After:
if(m)m.className=m.className.replace(t,"")

This would only be an issue in Old IE.

Otherwise love the polyfill!

@lojjic
Owner
lojjic commented Dec 29, 2011

Thanks for the bug report. I'll get this fixed.

@mrgcohen mrgcohen closed this Dec 29, 2011
@mrgcohen mrgcohen reopened this Dec 29, 2011
@lojjic lojjic pushed a commit that closed this issue Dec 31, 2011
Jason Johnston Make sure the element still exists after the add/removeClass delay. F…
…ixes #191.
0c0087f
@lojjic lojjic closed this in 0c0087f Dec 31, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment