Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Badly initialized object #768

Closed
marcandre opened this issue Mar 11, 2015 · 2 comments
Closed

Badly initialized object #768

marcandre opened this issue Mar 11, 2015 · 2 comments

Comments

@marcandre
Copy link

The following code produces an error:

(new Hammer(document.body)).off('swipeleft', function(){})
//=> TypeError: Cannot read property 'splice' of undefined
@sculove
Copy link
Contributor

sculove commented Mar 17, 2015

When you didn't attach an event, you will see this error.
I think that Hammerjs has to handle exception.

I pushed codes that fix it.
#770

@sculove
Copy link
Contributor

sculove commented Aug 10, 2015

I resend pr that separate unrelated changes
#839

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants