title: Jquery autocomplete custom data error no such method 'instance' for autocomplete widget instance
body: <p>I am adding the autocomplete functionality to text box.
  Referring <a href="https://jqueryui.com/autocomplete/#custom-data" rel="nofollow noreferrer">this</a> jQuery autocomplete custom data plugin.</p>
  
  <p>Without custom data code it is working fine. I have added following custom data code</p>
  
  <pre><code> .autocomplete( "instance" )._renderItem = function( ul, item ) {
                          return $( "&lt;li&gt;" )
                            .append( "&lt;a&gt;" + item.label + "&lt;br&gt;" + item.desc + "&lt;/a&gt;" )
                            .appendTo( ul );
                        };
  </code></pre>
  
  <p>it throws error as</p>
  
  <blockquote>
    <p>no such method 'instance' for autocomplete widget instance</p>
  </blockquote>
  
  <p>is there anything that I am missing.</p>
  
  <p>I am using jQuery v1.11.2 and jQuery UI - v1.10.3</p>