问题
I'm wondering if anyone has found a fix for the issue, when the menu is initialized but has not been shown yet and the user makes edge swipes what leads to ST throwing errors: Uncaught TypeError: Cannot read property 'on' of undefined.
Please see here what I mean (open console and make edge swipes): https://fiddle.sencha.com/#fiddle/3vq
More about that: http://www.sencha.com/forum/showthread.php?281225
回答1:
Hot fix for Sencha Touch 2.4.1 side menu slide issue TOUCH-5328:
replace in touch\src\viewport\Default.js
line 1043
if (checkMenu.isHidden() !== false) {
with
if (checkMenu.isHidden() == false) {
回答2:
Converted the equality operator to the identity operator:
if (checkMenu.isHidden() === false) {
来源:https://stackoverflow.com/questions/26724942/sencha-touch-menu-and-edge-swipes-errors