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/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=45c541a6c7f3e8c03616d79a62322b7c57c9f89f;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); }