我正在尝试做一个交互式表格,当用户的鼠标悬停在单元格上时显示一个弹出窗口
{{#each App.PuberController}}
  {{#view App.PuberView contentBinding="App.PuberController" tagName="tr" }}
    <td>{{#if logo}}<img {{bindAttr src="logo"}} />{{else}}No logo{{/if}}</td>
    <td>{{title}}</td>
    <td>{{type}}</td>
  {{/view}}
{{/each}}
和,
App.PuberController = Ember.ArrayController.create({
  content: [...]
});
App.PuberView = Ember.View.extend({
  content: null,
  mouseEnter: function(evt) {
    //Here I want to access content of the object
  }
})
例如,我想在 mouseEnter 函数()中有当前对象的名称。在 1.0 pre 版本之前,我可以这样做
this.getPath('content.title');
但它不再起作用了......