[ticket/11103] Only lookup $(target) once

PHPBB3-11103
This commit is contained in:
Nathan Guse 2013-01-15 12:30:26 -06:00
parent f089e099fe
commit 623b9af38b

View file

@ -498,9 +498,9 @@ $('#notification_list_button').click(function(e) {
e.preventDefault();
});
$('#phpbb').click(function(e) {
var target = e.target;
var target = $(e.target);
if (!$(target).is('#notification_list') && !$(target).is('#notification_list_button') && !$(target).parents().is('#notification_list')) {
if (!target.is('#notification_list') && !target.is('#notification_list_button') && !target.parents().is('#notification_list')) {
$('#notification_list').hide();
}
});