From: SassNinja Date: Sun, 16 Jul 2017 19:55:34 +0000 (+0200) Subject: loop hasReveal value through to removeContentClasses() X-Git-Tag: v6.4.2-rc2~1^2~17^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1cf7e1c8ca9de60dc4448af66b080d3d1b28c737;p=thirdparty%2Ffoundation%2Ffoundation-sites.git loop hasReveal value through to removeContentClasses() 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. --- diff --git a/js/foundation.offcanvas.js b/js/foundation.offcanvas.js index 2454b3fc9..0d84a9d17 100644 --- a/js/foundation.offcanvas.js +++ b/js/foundation.offcanvas.js @@ -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}`);