title: Can't pause carousel without button
body: <p>I am trying to pause a carousel with the following code:</p>
  
  <pre><code>$('#carousel').carousel("pause");
  </code></pre>
  
  <p>However, this doesn't work. When I put it in a function for a button like this:</p>
  
  <pre><code>$("#myBtn2").click(function(){
      $("#carousel").carousel("pause");
  });
  </code></pre>
  
  <p>It works! Why is this? And how can I get it to work without having to press a button?!</p>