Skip to content

Commit

Permalink
No need to namespace events on elements that we remove on destroy.
Browse files Browse the repository at this point in the history
  • Loading branch information
mleibman committed Aug 31, 2012
1 parent b2c85c8 commit 127944b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions slick.grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -290,19 +290,19 @@ if (typeof Slick === "undefined") {
$container
.bind("resize.slickgrid", resizeCanvas);
$viewport
.bind("scroll.slickgrid", handleScroll);
.bind("scroll", handleScroll);
$headerScroller
.bind("contextmenu.slickgrid", handleHeaderContextMenu)
.bind("click.slickgrid", handleHeaderClick)
.bind("contextmenu", handleHeaderContextMenu)
.bind("click", handleHeaderClick)
.delegate(".slick-header-column", "mouseenter", handleHeaderMouseEnter)
.delegate(".slick-header-column", "mouseleave", handleHeaderMouseLeave);
$focusSink
.bind("keydown.slickgrid", handleKeyDown);
.bind("keydown", handleKeyDown);
$canvas
.bind("keydown.slickgrid", handleKeyDown)
.bind("click.slickgrid", handleClick)
.bind("dblclick.slickgrid", handleDblClick)
.bind("contextmenu.slickgrid", handleContextMenu)
.bind("keydown", handleKeyDown)
.bind("click", handleClick)
.bind("dblclick", handleDblClick)
.bind("contextmenu", handleContextMenu)
.bind("draginit", handleDragInit)
.bind("dragstart", handleDragStart)
.bind("drag", handleDrag)
Expand Down

0 comments on commit 127944b

Please sign in to comment.