diff options
author | Felix Nagel <info@felixnagel.com> | 2014-06-18 02:49:30 +0200 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2015-01-29 18:01:29 -0500 |
commit | 2e2787dcfefb22fb96edf260cac04ffb37f93676 (patch) | |
tree | a2bfb0d49167dd6573112df0d2251e6028a71e80 | |
parent | b9d8f624ba899b76e0672e0a70bc74f333467f1e (diff) | |
download | jquery-ui-2e2787dcfefb22fb96edf260cac04ffb37f93676.tar.gz jquery-ui-2e2787dcfefb22fb96edf260cac04ffb37f93676.zip |
Calendar: Fix hover event setting and removing
-rw-r--r-- | ui/calendar.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ui/calendar.js b/ui/calendar.js index 3b15287eb..8e228146a 100644 --- a/ui/calendar.js +++ b/ui/calendar.js @@ -73,8 +73,7 @@ return $.widget( "ui.calendar", { "keydown .ui-calendar-calendar": "_handleKeydown" }); - // TODO Use hoverable (no delegation support)? convert to _on? - this.element.delegate( ".ui-calendar-header button, .ui-calendar-calendar a", "mouseenter.calendar mouseleave.calendar", function() { + this.element.on( "mouseenter.calendar mouseleave.calendar", ".ui-calendar-header button, .ui-calendar-calendar a", function() { $( this ).toggleClass( "ui-state-hover" ); }); |