]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
docs: fix typo in SmoothScroll click handler 11519/head
authorNicolas Coden <nicolas@ncoden.fr>
Fri, 28 Sep 2018 21:01:00 +0000 (23:01 +0200)
committerNicolas Coden <nicolas@ncoden.fr>
Fri, 28 Sep 2018 21:24:53 +0000 (23:24 +0200)
js/foundation.smoothScroll.js

index ce8eda91956f467f65054972df73d4c45db39bef..0cd211fe19592a16256922c2518d61da294ac7e2 100644 (file)
@@ -50,7 +50,7 @@ class SmoothScroll extends Plugin {
      * @private
      */
     _handleLinkClick(e) {
-        // Follow the link it does not point to an anchor.
+        // Follow the link if it does not point to an anchor.
         if (!$(e.currentTarget).is('a[href^="#"]')) return;
 
         const arrival = e.currentTarget.getAttribute('href');