Skip to content

Commit

Permalink
Fix for jQuery 1.5.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
wvega committed May 21, 2016
1 parent 21ebd75 commit 25dbe89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jquery.timepicker.js
Expand Up @@ -369,7 +369,7 @@ if (typeof jQuery !== 'undefined') {
i.element.data('timepicker-event-namespace', Math.random());

$(document).bind('click.timepicker-' + i.element.data('timepicker-event-namespace'), function(event) {
if (i.element.is(event.target)) {
if (i.element.get(0) === event.target) {
i.element.data('timepicker-user-clicked-outside', false);
} else {
i.element.data('timepicker-user-clicked-outside', true).blur();
Expand Down

0 comments on commit 25dbe89

Please sign in to comment.