Fix undefined error when detching touch events
Merge pull request #4 from neilkumar/master

 Cannot read property 'document' of undefined