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

Uncaught TypeError: Cannot read property '0' of undefined #90

Open
weituotian opened this issue Aug 13, 2017 · 2 comments
Open

Uncaught TypeError: Cannot read property '0' of undefined #90

weituotian opened this issue Aug 13, 2017 · 2 comments

Comments

@weituotian
Copy link

Uncaught TypeError: Cannot read property '0' of undefined
    at o._touchStart (zoom.min.js:8)
    at HTMLDocument.i (jquery-1.9.1.min.js:3)
    at HTMLDocument.dispatch (jquery-1.9.1.min.js:3)
    at HTMLDocument.v.handle (jquery-1.9.1.min.js:3)
o._touchStart @ zoom.min.js:8
i @ jquery-1.9.1.min.js:3
dispatch @ jquery-1.9.1.min.js:3
v.handle @ jquery-1.9.1.min.js:3

image

@evanart
Copy link

evanart commented Oct 2, 2017

Came across this issue too. Wrapping the function in () fixed it for me.

so instead of:

function ($) { "use strict";

....

} (jQuery);

make it:

(function ($) { "use strict";

....

}) (jQuery);

I'm no expert on this stuff but for whatever reason that fixed it for me.

@ghost
Copy link

ghost commented Oct 6, 2017

✔️ Try my version of zoom.js!

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