title: Navigator vibrate break the code on ios browsers
body: <p>I want to use <code>navigator.vibrate</code> on my page.</p>
  
  <p>This is my code:</p>
  
  <pre><code>    var canVibrate = "vibrate" in navigator || "mozVibrate" in navigator;
      if (canVibrate &amp;&amp; !("vibrate" in navigator))
      {
          navigator.vibrate = navigator.mozVibrate;
      }
  
      $(document).on('click', '.answer', function (eve) {
          $this = $(this);
  
          navigator.vibrate(222);
  
          // some other code ...
  </code></pre>
  
  <p>This works on <strong><em>Android</em></strong> devices but on iOS (I tested on Firfox, Chrome and Safari on some iOS devices) the code will be broken at this line.</p>
  
  <p>Why is that?</p>