]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
fix: correctly check breakpoint 11925/head
authorDaniel Ruf <mac1@daniel-ruf.de>
Fri, 6 Dec 2019 23:19:51 +0000 (00:19 +0100)
committerDaniel Ruf <mac1@daniel-ruf.de>
Fri, 6 Dec 2019 23:28:22 +0000 (00:28 +0100)
js/foundation.util.mediaQuery.js

index b50176666db80480652987762e00230fa6697653..57b4d24019539dda06a7885c3cf31433f8945454 100644 (file)
@@ -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);
     }