How to get a correct event target in Backbone.js View that is listen to an event of jqGrid?
问题 I use jqGrid together with Backbone.js and I have the view that represents the grid. The code is below: var GridView = Backbone.View.extend({ initialize: function(){ _.bindAll(this); }, beforeSelectRow:function(e){ return $(e.target).is('img') ? false : true; }, render: function(){ var self = this; this.$el.load( this.collection.url + 'grid/', function(){ self.$jqGrid = self.$('.jqGrid'); self.$jqGrid.on('jqGridBeforeSelectRow',self.beforeSelectRow); } ); return this; } }); The grid's row can