Skip to content

Commit

Permalink
Fix #533: simplify selector event registration
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenneth G. Franqueiro committed Jun 21, 2013
1 parent 310458a commit 36b91d4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions selector.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,7 @@ function(kernel, arrayUtil, on, aspect, has, put){
function setupSelectionEvents(){
// register one listener at the top level that receives events delegated
grid._hasSelectorInputListener = true;
listeners.push(aspect.before(grid, "_initSelectionEvents", function(){
// listen for clicks and keydown as the triggers
this.on(".dgrid-selector:click,.dgrid-selector:keydown", onSelect);
}));
listeners.push(grid.on(".dgrid-selector:click,.dgrid-selector:keydown", onSelect));
var handleSelect = grid._handleSelect;
grid._handleSelect = function(event){
// ignore the default select handler for events that originate from the selector column
Expand Down

0 comments on commit 36b91d4

Please sign in to comment.