From: Daniel Ruf Date: Fri, 6 Dec 2019 23:19:51 +0000 (+0100) Subject: fix: correctly check breakpoint X-Git-Tag: v6.6.1^2~4^2 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=refs%2Fpull%2F11925%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git fix: correctly check breakpoint --- diff --git a/js/foundation.util.mediaQuery.js b/js/foundation.util.mediaQuery.js index b50176666..57b4d2401 100644 --- a/js/foundation.util.mediaQuery.js +++ b/js/foundation.util.mediaQuery.js @@ -187,12 +187,12 @@ var MediaQuery = { if (bpModifier === 'only') { return this.only(bpSize); } - // Up to the breakpoint (included) - if (bpModifier === 'down') { + // At least the breakpoint (included) + if (!bpModifier || bpModifier === 'up') { return this.atLeast(bpSize); } - // At leat the breakpoint (included) - if (!bpModifier || bpModifier === 'up') { + // Up to the breakpoint (included) + if (bpModifier === 'down') { return this.upTo(bpSize); }