]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
loop hasReveal value through to removeContentClasses()
authorSassNinja <kai.falkowski@gmail.com>
Sun, 16 Jul 2017 19:55:34 +0000 (21:55 +0200)
committerSassNinja <kai.falkowski@gmail.com>
Sun, 16 Jul 2017 19:55:34 +0000 (21:55 +0200)
Since the removeContentClasses function gets called within the addContentClasses function,
the hasReveal value must be included to make sure the reveal classes gets updated correctly.

js/foundation.offcanvas.js

index 2454b3fc91ea01c8a303bffb622b068fb8780e09..0d84a9d17cd41047f31cd491d1da0b5bc93055f2 100644 (file)
@@ -190,7 +190,7 @@ class OffCanvas extends Plugin {
    * @private
    */
   _addContentClasses(hasReveal) {
-    this._removeContentClasses();
+    this._removeContentClasses(hasReveal);
     this.$content.addClass(`has-transition-${this.options.transition} has-position-${this.position}`);
     if (hasReveal === true) {
       this.$content.addClass(`has-reveal-${this.position}`);