From 044ba9726327669d7c03992b078b129d0510119d Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Fri, 23 May 2014 19:14:28 +0200 Subject: [PATCH] remove unecessary parenths --- core/js/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/js/app.js b/core/js/app.js index 8f3f04187b7..d6a3f9e2fb6 100644 --- a/core/js/app.js +++ b/core/js/app.js @@ -35,7 +35,7 @@ // do nothing if the area is animated if (!area.is(':animated')) { - // button slides up the area + // button toggles the area if (button === event.target) { if (area.is(':visible')) { area.slideUp(); @@ -46,7 +46,7 @@ // all other areas that have not been clicked but are open // should be slid up } else { - var closest = ($(event.target).closest(areaSelector)); + var closest = $(event.target).closest(areaSelector); if (area.is(':visible') && closest[0] !== area[0]) { area.slideUp(); }