I want to capture double click event in Backbone view
var HomePage = Backbone.View.extend({
initialize: function(){
this.render();
},
render: function(){
var template = _.template($('#app1').html());
this.$el.html(template);
},
events: {
'click #btn1': function(){
alert('Single Click');
},
'dblclick #btn1': function(){
alert('Double click');
}
}
});
var view1 = new HomePage({
el: '#container'
});
Double click does not work in backbone. How do we capture it?
Similar to
$('#btn1').on('dblclick', function(){
alert('Double click');
});