Stereobit / dragend

dragend JS – a touch ready, full responsive, content swipe script
http://stereobit.github.com/dragend/
MIT License
485 stars 114 forks source link

dragend not working when js is loaded in head #20

Closed Stereobit closed 10 years ago

Stereobit commented 10 years ago

because document.body is undefined

Chris-WF commented 10 years ago

I had the same issue and worked around it by loading the script after the page:

$.getScript("dragend-0.2.0_rc3.js", function(){
    $("#example").dragend({});
 });
Stereobit commented 10 years ago

Fixed.