]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
docs: fix various typo in Touch methods and Reveal tests 11430/head
authorNicolas Coden <nicolas@ncoden.fr>
Sat, 6 Oct 2018 21:51:39 +0000 (23:51 +0200)
committerNicolas Coden <nicolas@ncoden.fr>
Sat, 6 Oct 2018 21:51:39 +0000 (23:51 +0200)
js/foundation.util.touch.js
test/visual/reveal/close-on-click.html

index a50f3c01e3caffa0a210794ab44db81d302bd0ab..33e42fe4868e83ee3576b1e0f351a2e1a48d929f 100644 (file)
@@ -19,7 +19,7 @@ function onTouchEnd(e) {
   this.removeEventListener('touchmove', onTouchMove);
   this.removeEventListener('touchend', onTouchEnd);
 
-  // If the touch did not moved, consider it as a "tap"
+  // If the touch did not move, consider it as a "tap"
   if (!didMoved) {
     var tapEvent = $.Event('tap', startEvent || e);
     $(this).trigger(tapEvent);
index 05b3cd7aff0ed257a83630cf9a60d4e9fa4ba7b6..a3a92995ac77fc452d2f79bd6f58826c3b4dbaec 100644 (file)
 
           <h1>Reveal: closeOnClick option</h1>
 
-          <p>This modal should not close when clicking/taping outside of it.</p>
+          <p>This modal should not close when clicking/tapping outside of it.</p>
           <p><button class="button" data-open="exampleModal1">Open modal</button></p>
 
           <div class="reveal" id="exampleModal1" data-reveal data-close-on-click="false">
-            <p>Clicking/taping outside of me SHOULD NOT close me.</p>
+            <p>Clicking/tapping outside of me SHOULD NOT close me.</p>
             <p><button class="button" data-close="exampleModal1">Close</button></p>
           </div>
 
           <hr>
 
-          <p>This modal should close when clicking (desktop) or taping without swiping (mobile) outside of it.</p>
+          <p>This modal should close when clicking (desktop) or tapping without swiping (mobile) outside of it.</p>
           <p><button class="button" data-open="exampleModal2">Open modal</button></p>
 
           <div class="reveal" id="exampleModal2" data-reveal data-close-on-click="true">
-            <p>Clicking (desktop) or taping without swiping (mobile) outside of me SHOULD close me.</p>
+            <p>Clicking (desktop) or tapping without swiping (mobile) outside of me SHOULD close me.</p>
             <p><button class="button" data-close="exampleModal2">Close</button></p>
           </div>