Browse files

Fix in popover.

  • Loading branch information...
1 parent c87d4fc commit 13d5a8a0639be3b036a2fb9ba0862ac90beeafae @mirceapasoi mirceapasoi committed Sep 25, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 popover.js
View
6 popover.js
@@ -19,10 +19,10 @@ $.fn.popover = function(options) {
// Document click closes active popover
$.fn.popover.openedPopup = null;
- $(document).bind("click", function() {
+ $(document).bind("click", function(event) {
if ($.fn.popover.openedPopup != null
- && ($(event.target).parents(".popover").length === 0)
- && (!$(event.target).hasClass('popover-button'))) {
+ && ($(event.target).parents(".popover").length === 0)
+ && (!$(event.target).hasClass('popover-button'))) {
$.fn.popover.openedPopup.trigger('hidePopover');
}
});

0 comments on commit 13d5a8a

Please sign in to comment.