remove unecessary parenths
This commit is contained in:
parent
db1511a11d
commit
044ba97263
|
@ -35,7 +35,7 @@
|
||||||
// do nothing if the area is animated
|
// do nothing if the area is animated
|
||||||
if (!area.is(':animated')) {
|
if (!area.is(':animated')) {
|
||||||
|
|
||||||
// button slides up the area
|
// button toggles the area
|
||||||
if (button === event.target) {
|
if (button === event.target) {
|
||||||
if (area.is(':visible')) {
|
if (area.is(':visible')) {
|
||||||
area.slideUp();
|
area.slideUp();
|
||||||
|
@ -46,7 +46,7 @@
|
||||||
// all other areas that have not been clicked but are open
|
// all other areas that have not been clicked but are open
|
||||||
// should be slid up
|
// should be slid up
|
||||||
} else {
|
} else {
|
||||||
var closest = ($(event.target).closest(areaSelector));
|
var closest = $(event.target).closest(areaSelector);
|
||||||
if (area.is(':visible') && closest[0] !== area[0]) {
|
if (area.is(':visible') && closest[0] !== area[0]) {
|
||||||
area.slideUp();
|
area.slideUp();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue