如何使用mouseenter和mouseleave事件?

Roc*_*cky 3 ember.js

我正在使用http://cloud.github.com/downloads/emberjs/ember.js/ember-0.9.5.js,我不知道如何使用mouseenter和mouseleave事件.我的代码如下,click事件运行正常.如何使mouseenter和mouseleave事件起作用?

window.App = Ember.Application.create()

TestView = Ember.View.create
  template: Ember.Handlebars.compile 'This is the view'
  click: (evt) ->
    console.log 'clicked'
  mouseenter: (evt) ->
    console.log 'mouse enter'
  mouseleave: (evt) ->
    console.log 'mouse leave'

TestView.append()
Run Code Online (Sandbox Code Playgroud)

pan*_*atz 12

Ember.js中的事件由处理,Ember.EventDispatcher并且名称被转换为更多Ember.js,如果您愿意,请参阅此处.

你必须改变你的鼠标事件mouseEnter,并mouseLeavehttp://jsfiddle.net/pangratz666/QtZ2T/