]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Fix condition when close() should do nothing.
authorMarius Olbertz <marius.olbertz@gmail.com>
Thu, 13 Oct 2016 15:44:02 +0000 (17:44 +0200)
committerMarius Olbertz <marius.olbertz@gmail.com>
Thu, 13 Oct 2016 15:44:02 +0000 (17:44 +0200)
js/foundation.offcanvas.js

index 1ab73c8f83cd46ca5de30b503ecc77bd427a891b..521d9c4cde111009abbf9ad75f7a12acf9501859 100644 (file)
@@ -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;