我在新的 Sencha 7.4现代版的这部分代码中得到了一个错误。请参见代码中我的注解。
onChildTrigger: function(view, location) {
var e = location.event,
isFocusingEvent = (e.type === ((e.pointerType === 'touch') ? 'tap' : 'touchstart'));
// i am getting an error here
// shouldn't it be e.target.id ?
if (event.target.id === location.child.id) {
this.handleLocationChange(location, {
event: e
});
return;
}
if (isFocusingEvent) {
this.handleChildTrigger(view, location);
} else {
this.doHandleChildTrigger(view, location);
}
},
我可以在哪里报告关于 Sencha 框架的bug?论坛说他们转移到了stackoverflow?
1条答案
按热度按时间t2a7ltrp1#
如上所述,您输入了错误的
event
。下面的代码非常有效: