From 36b91d4f9b536c8ac5f7fe579b66604c9141c8dd Mon Sep 17 00:00:00 2001 From: "Kenneth G. Franqueiro" Date: Fri, 21 Jun 2013 11:15:56 -0400 Subject: [PATCH] Fix #533: simplify selector event registration --- selector.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/selector.js b/selector.js index 767a47986..daf6f46bf 100644 --- a/selector.js +++ b/selector.js @@ -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