kornelski / slip

Slip.js — UI library for manipulating lists via swipe and drag gestures
BSD 2-Clause "Simplified" License
2.44k stars 213 forks source link

Example index.html generates error #89

Open deqing opened 7 years ago

deqing commented 7 years ago

Downloaded your index.html and found following error when trying to drag instant list item:

Uncaught TypeError: e.target.classList.indexOf is not a function

Then I realized that should be using contains, not indexOf in the index.html code.

If you are happy I can fix the example. Please let me know your thoughts, thanks!

kornelski commented 7 years ago

Yes, a fix is welcome.