]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
fix: fix merge fail in off-canvas
authorNicolas Coden <nicolas@ncoden.fr>
Thu, 18 Jan 2018 08:54:27 +0000 (09:54 +0100)
committerNicolas Coden <nicolas@ncoden.fr>
Thu, 18 Jan 2018 08:54:27 +0000 (09:54 +0100)
js/foundation.offcanvas.js

index 5614084fbd0eadb2a4b214d9b07868811a9043f9..7685c11ce840c1ac88727b533eebd16335f7dc11 100644 (file)
@@ -122,9 +122,8 @@ class OffCanvas extends Plugin {
 
     // Get the revealOn option from the class / ensure the `reveal-on-*` class is set.
     if (this.options.isRevealed === true) {
-      if (this.options.revealOn)
       this.options.revealOn = this.options.revealOn || this.$element[0].className.match(/(reveal-for-medium|reveal-for-large)/g)[0].split('-')[2];
-      this.$element.first().addClass(`reveal-for-${this.options.revealOn}`);
+      if (this.options.revealOn) this.$element.first().addClass(`reveal-for-${this.options.revealOn}`);
       this._setMQChecker();
     }