From: Marius Olbertz Date: Thu, 13 Oct 2016 15:44:02 +0000 (+0200) Subject: Fix condition when close() should do nothing. X-Git-Tag: v6.3-rc1~26^2~2^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cbd76eab8b87e574af4ae7a9ae948266a9ab1a12;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Fix condition when close() should do nothing. --- diff --git a/js/foundation.offcanvas.js b/js/foundation.offcanvas.js index 1ab73c8f8..521d9c4cd 100644 --- a/js/foundation.offcanvas.js +++ b/js/foundation.offcanvas.js @@ -259,7 +259,7 @@ class OffCanvas { * @fires OffCanvas#closed */ close(cb) { - if (!this.$element.hasClass('is-open') || this.isRevealed) { return; } + if (!(this.$element.hasClass('is-open') || this.isRevealed)) { return; } var _this = this;