标签:
Sencha Touch 2.3.2和2.4.0在安卓2.3上面用会报错,具体报错信息如下:
解决办法是:
打开文件:你的file:///android_asset/www/sencha-touch-all-debug.js
找到第76728行:
if (Ext.feature.has.Touch) { // bind handlers that are only invoked when the browser has touchevents me.onTargetTouchMove = me.onTargetTouchMove.bind(me); me.onTargetTouchEnd = me.onTargetTouchEnd.bind(me); }
改成:
if (Ext.feature.has.Touch) { // bind handlers that are only invoked when the browser has touchevents me.onTargetTouchMove = Ext.Function.bind(me.onTargetTouchMove, me); me.onTargetTouchEnd = Ext.Function.bind(me.onTargetTouchEnd, me); }
这样就可以测试成功了。
[Cordova+Sencha Touch] 移动开发1 sencha 2.4.0 + 在 安卓2.3.6上使用报错 - has no method 'bind'
标签:
原文地址:http://www.cnblogs.com/ToFlying/p/4320268.html