title: Can I get the current state of a twitter bootstrap popover?
body: <p>I currently call a script to dynamically add content to my popover but I don't need to make this call when a user clicks again to close it.  Is it possible to get the state and close it when it's visible?</p>
  
  <p>This is what I have so far:</p>
  
  <pre><code>$('.knownissue').on('click', function() {
  
      var info = $(this).attr('id').substr(5).split(':');
      var el = $(this);
  
      // How do I check to see if the popover is visible
      // so I can simply close it and exit?
  
      $.post('functions/get_known_issues.php?tcid='+info[0]+'&amp;tcdate=' + info[1], function(data) {
          if (data.st) {
              el.attr('data-content', data.issue);
              el.popover('toggle');
          }
      }, "json");
  
  });
  </code></pre>