Skip to content
Browse files

Reverted to pre-jQuery 1.7 event binding syntax for compatibility wit…

…h older versions.
  • Loading branch information...
1 parent 2cacf3c commit a6b96d11983ac604d14e6a9a7309bba8016859a5 @mleibman committed Feb 26, 2012
Showing with 14 additions and 14 deletions.
  1. +14 −14 slick.grid.js
View
28 slick.grid.js
@@ -267,23 +267,23 @@ if (typeof Slick === "undefined") {
bindAncestorScrollEvents();
$container
- .on("resize.slickgrid", resizeCanvas);
+ .bind("resize.slickgrid", resizeCanvas);
$viewport
- .on("scroll.slickgrid", handleScroll);
+ .bind("scroll.slickgrid", handleScroll);
$headerScroller
- .on("contextmenu.slickgrid", handleHeaderContextMenu)
- .on("click.slickgrid", handleHeaderClick);
+ .bind("contextmenu.slickgrid", handleHeaderContextMenu)
+ .bind("click.slickgrid", handleHeaderClick);
$canvas
- .on("keydown.slickgrid", handleKeyDown)
- .on("click.slickgrid", handleClick)
- .on("dblclick.slickgrid", handleDblClick)
- .on("contextmenu.slickgrid", handleContextMenu)
- .on("draginit", handleDragInit)
- .on("dragstart", handleDragStart)
- .on("drag", handleDrag)
- .on("dragend", handleDragEnd)
- .on("mouseenter", ".slick-cell", handleMouseEnter)
- .on("mouseleave", ".slick-cell", handleMouseLeave);
+ .bind("keydown.slickgrid", handleKeyDown)
+ .bind("click.slickgrid", handleClick)
+ .bind("dblclick.slickgrid", handleDblClick)
+ .bind("contextmenu.slickgrid", handleContextMenu)
+ .bind("draginit", handleDragInit)
+ .bind("dragstart", handleDragStart)
+ .bind("drag", handleDrag)
+ .bind("dragend", handleDragEnd)
+ .delegate(".slick-cell", "mouseenter", handleMouseEnter)
+ .delegate(".slick-cell", "mouseleave", handleMouseLeave);
}
}

0 comments on commit a6b96d1

Please sign in to comment.
Something went wrong with that request. Please try again.