So I have this simple backbone setup:
$(function() {
var chooser = Backbone.View.extend({
el: $('#content'),
events: {
'mouseenter .class': 'showInfo'
},
showInfo: function(evt) {
console.log('YEAH!');
}
});
window.testview = new chooser();
});
However, I can only get click and mousemove events to work. I have tried hover, mouseenter, mouseout and they all seem to not be firing. I am not sure what could be wrong with such a simple setup. I have looked at this code for the past hour so maybe I missing something.
Assume the DOM is set up correctly.
Forgot to mention, I am using Backbone with Zepto. Downloaded Fed 6.