]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Fix typo in error message 12104/head
authorJannis Vajen <jvajen@gmail.com>
Mon, 29 Jun 2020 11:45:53 +0000 (13:45 +0200)
committerGitHub <noreply@github.com>
Mon, 29 Jun 2020 11:45:53 +0000 (13:45 +0200)
js/foundation.toggler.js

index cdfd261400171e460da1ec0d8791faa2a9aaef01..dc565f7bbfad9dac1aa502dc2d2d20457665ef74 100644 (file)
@@ -60,7 +60,7 @@ class Toggler extends Plugin {
     else {
       input = this.options.toggler;
       if (typeof input !== 'string' || !input.length) {
-        throw new Error(`The 'toogler' option containing the target class is required, got "${input}"`);
+        throw new Error(`The 'toggler' option containing the target class is required, got "${input}"`);
       }
       // Allow for a . at the beginning of the string
       this.className = input[0] === '.' ? input.slice(1) : input;