diff options
-rw-r--r-- | slick.grid.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/slick.grid.js b/slick.grid.js index c8bbdee..4403ca5 100644 --- a/slick.grid.js +++ b/slick.grid.js @@ -509,11 +509,11 @@ if (typeof Slick === "undefined") { }
function createColumnHeaders() {
- function hoverBegin() {
+ function onMouseEnter() {
$(this).addClass("ui-state-hover");
}
- function hoverEnd() {
+ function onMouseLeave() {
$(this).removeClass("ui-state-hover");
}
@@ -554,7 +554,9 @@ if (typeof Slick === "undefined") { .appendTo($headers);
if (options.enableColumnReorder || m.sortable) {
- header.hover(hoverBegin, hoverEnd);
+ header
+ .on('mouseenter', onMouseEnter)
+ .on('mouseleave', onMouseLeave);
}
if (m.sortable) {
|