ember-cli-jstree actionreceiver为null

时间:2015-07-22 22:48:58

标签: ember.js jstree

我的环境版本如下: 版本:1.13.1 节点:0.12.4 npm:2.12.1 安装ember-cli-jstree时,我以这种方式使用组件:

//hbs file
{{ember-jstree
  actionReceiver=jstreeActionReceiver
  data=data
  eventDidBecomeReady="handleTreeDidBecomeReady"
  }}
and

//controller
App.MyController = Ember.Controller.extend({
jstreeActionReceiver: null,
data:[],
action:{
handleTreeDidBecomeReady:function(){
      console.log(this.get('jstreeActionReceiver'));       
      }
}
})

jstreeActionReceiver为空,那么我犯了什么错误?

0 个答案:

没有答案