This article is a mirror article of machine translation, please click here to jump to the original article.

View: 14183|Reply: 0

[Other] Uncaught TypeError: Cannot read property 'trigger' of undefined

[Copy link]
Posted on 11/25/2017 10:59:21 PM | | | |
When using mzui, an error is reported with the error "Uncaught TypeError: Cannot read property 'trigger' of undefined", and the error is as follows:



Remove pointermove pointerdown pointerstart
Cause:
Click tap, touchstart and pointerstart are executed, the code in tap is executed twice, look carefully, first click and trigger twice, indicating that two events are bound, and then check the touch.js code of zepto, and find that it is bound to three events touchend MSPointerUp pointerup, touchend is a touch-related event, MSPointerUp It's IE10's touch event, pointerup pointer event, so it should be Chrome didn't support pointerup events before, but now the new version supports it, and then it reports an error.

Specifically: https://github.com/madrobby/zepto/issues/1249


My solution:

Search for the two characters pointerdown and pointerup in mzui js and delete them!!!






Previous:Quartz.net Simple configuration tutorial
Next:I can't use the software and source code here, and the great god helped me adjust it, thank you
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com