title: Autocomplete Combobox failed to select option
body: <p>I want to use jqueryui autocomplete combobox function to let user choose an option from the list.</p>
  
  <p>I followed this <a href="http://jsfiddle.net/gB32r/" rel="nofollow">example</a>, and here is my code in <a href="http://jsfiddle.net/Y9vK7/" rel="nofollow">jsfiddle</a>.</p>
  
  <p>And I get this error when I click the option from the list :</p>
  
  <pre><code>Uncaught TypeError: Cannot read property 'option' of undefined.
  </code></pre>
  
  <p>The error pointed to the line as below :</p>
  
  <pre><code>select: function(event, ui) {
       ui.item.option.selected = true;               &lt;-- This Line
       self._trigger("selected", event, {
       item: ui.item.option
    })
  },
  </code></pre>
  
  <p>What is the problem with the <code>option</code>?</p>
  
  <p><strong>Edit 2 :</strong></p>
  
  <p>Seems like the <code>ui.item</code> is not assigned to any value, because when I want to display the <code>ui.item</code> to console, it returns <code>undefined</code> instead of <code>object</code>.</p>
  
  <p>But, how can I fix this?</p>