流行后,Sencha Touch控制器监听器不会触发

时间:2012-08-11 20:12:06

标签: sencha-touch-2 listener

我的控制器监听器第一次加载视图时工作,但不是第二次弹回视图后。我已尝试在视图上设置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
    }
},

0 个答案:

没有答案