zoom.js icon indicating copy to clipboard operation
zoom.js copied to clipboard

Uncaught TypeError: Cannot read property '0' of undefined

Open weituotian opened this issue 7 years ago • 2 comments

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

weituotian avatar Aug 13 '17 16:08 weituotian

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.

evanart avatar Oct 02 '17 21:10 evanart

:heavy_check_mark: Try my version of zoom.js!

ghost avatar Oct 06 '17 11:10 ghost