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

Javascript error when snap option is missing a targets array #562

Closed
alexplumb opened this issue Nov 29, 2017 · 0 comments
Closed

Javascript error when snap option is missing a targets array #562

alexplumb opened this issue Nov 29, 2017 · 0 comments

Comments

@alexplumb
Copy link

The build process seems to be causing an issue. See the following lines:

https://github.com/taye/interact.js/blob/v1.3.0/dist/interact.js#L4843 and https://github.com/taye/interact.js/blob/v1.3.0/dist/interact.js#L4856

The second line should read for (var _i3 = 0; _i3 < len; _i3++) {

The error that I'm seeing is:
Uncaught TypeError: Cannot read property 'length' of null

Note that adding an empty array to the snap object is my current workaround to this issue.

@taye taye added this to the v1.3.1 milestone Nov 29, 2017
@taye taye closed this as completed in 295126c Nov 30, 2017
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