Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.

Commit

Permalink
Bug 593079, clearing some handlers better
Browse files Browse the repository at this point in the history
  • Loading branch information
potch committed Sep 2, 2010
1 parent 4829b0a commit 4e385a4
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions media/js/amo2009/global.js
Expand Up @@ -490,10 +490,12 @@ function makeBlurHideCallback(el) {
var hider = function(e) {
_root = el.get(0);
// Bail if the click was somewhere on the popup.
if (e && e.type == 'click' &&
_root == e.target ||
_.indexOf($(e.target).parents(), _root) != -1) {
return;
if (e) {
if (e.type == 'click' &&
_root == e.target ||
_.indexOf($(e.target).parents(), _root) != -1) {
return;
}
}
el.hide();
el.unbind();
Expand Down

0 comments on commit 4e385a4

Please sign in to comment.