我的控制器监听器第一次加载视图时工作,但不是第二次弹回视图后。我已尝试在视图上设置autoDestroy:false但这不能解决问题。
在弹出窗口后重新启动控制器事件侦听器需要更改什么?
onNestedlistItemTap1: function(nestedlist, list, index, target, record, e, options) {
if(record.isLeaf()) {
console.log(this.getMainWrapper().getActiveView().id); <-- id of the view; after pop is blank
this.getNavContainer().animateActiveItem(record.data.depth, {
type: 'flip'
}); <-- doesn't work after pop
}
},