title: jQuery UI Autocomplete: Determine if search window is open?
body: <p>I want to trigger a search in the onclick event of my input, but only if the search window isn't already open. Presently, I do this:</p>
  
  <pre><code>$(this).bind('click.ajaxselect', function(e) {
      if(!$(this).autocomplete('widget').is(':visible')) {
          $(this).autocomplete('search','');
      }
  });
  </code></pre>
  
  <p>But I'm not overly fond of using the <code>:visible</code> selector because it searches up through all the parents as well. Is there some property I can check?</p>
  
  <p><a href="http://jqueryui.com/demos/dialog/#method-isOpen" rel="noreferrer">Dialog has this <code>isOpen</code> method</a>, does autocomplete have something similar?</p>