You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When attempting to use IM with Zepto, several issues are encountered. In reviewing the lineage of Zepto support, it is not clear if it ever worked 100% but maintenance of Zepto support seemed to taper off around version 1.2.5 according to the Zepto Compatibility section of the readme.
It does not appear that Zepto is actively maintained any more so the focus of resolving these issues will target Zepto 1.2.0 (the latest version) only. Additionally, support for Zepto will likely be dropped as of ImageMapster 2.0 as the IM roadmap calls for IM to become a Native JS library with jQuery becoming a secondary usage option.
To Reproduce
Steps to reproduce the behavior:
UMD Wrapper does not detect Zepto
Execute grunt zepto to generate Zepto build
Configure tests to use Zepto
Open test runner page
Encounter Uncaught ReferenceError: jQuery is not defined
Change jquery.imagemapster.zepto.js to pass Zepto in to factory instead of jQuery for browser globals (factory(Zepto);)
Passive event listener detection throws exception
Open test runner page
Encounter Uncaught TypeError: Cannot set property 'touchstart' of undefined
Change jquery.imagemapster.zepto.js to bypass detecting passive listeners because Zepto does not support special events by wrapping jqueryextensions.js module with if (!window.Zepto) { ... } conditional
Open test runner page
Encounter Uncaught DOMException: Failed to execute 'querySelectorAll' on 'Document': '[object Object]'
The issues at this point just keep mounting :(
Expected behavior
IM fully supports Zepto v1.2.0 and no errors/exceptions are encountered.
Screenshots
N/A
Desktop (please complete the following information):
N/A
Smartphone (please complete the following information):
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered:
Describe the bug
When attempting to use IM with Zepto, several issues are encountered. In reviewing the lineage of Zepto support, it is not clear if it ever worked 100% but maintenance of Zepto support seemed to taper off around version 1.2.5 according to the Zepto Compatibility section of the readme.
It does not appear that Zepto is actively maintained any more so the focus of resolving these issues will target Zepto 1.2.0 (the latest version) only. Additionally, support for Zepto will likely be dropped as of ImageMapster 2.0 as the IM roadmap calls for IM to become a Native JS library with jQuery becoming a secondary usage option.
To Reproduce
Steps to reproduce the behavior:
grunt zepto
to generate Zepto buildUncaught ReferenceError: jQuery is not defined
factory(Zepto);
)Uncaught TypeError: Cannot set property 'touchstart' of undefined
if (!window.Zepto) { ... }
conditionalUncaught DOMException: Failed to execute 'querySelectorAll' on 'Document': '[object Object]'
Expected behavior
IM fully supports Zepto v1.2.0 and no errors/exceptions are encountered.
Screenshots
N/A
Desktop (please complete the following information):
N/A
Smartphone (please complete the following information):
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered: