title: Autocomplete friend list on social engine is not working properly
body: <p>I am developing a suggestion functionality for a SocialEngine website. I have written following code on a textbox to give suggestions on the basis of text inserted. But the inject method is not being called for all the results returned by controller. It is skipping some of them. I expect it to call once for each result. Here is the code - </p>
  
  <pre><code>new Autocompleter.Request.JSON('global_search_field', '&lt;?php echo $this-&gt;url(array('module' =&gt; 'user', 'controller' =&gt; 'public', 'action' =&gt; 'suggest','message' =&gt; true), 'default', false) ?&gt;', {          
          'minLength': 1,
          'delay' : 50,
          'className': 'message-autosuggest',
          'injectChoice': function(token){
               console.log("called");
            if(token.type == 'user'){
              console.log("User");
              var choice = new Element('li', {
                'class': 'autocompleter-choices',
                'id':token.guid
              });
              new Element('div', {
                'html': '&lt;a id="'+token.id+'" href="'+token.url+'"&gt;'+token.photo+this.markQueryValue(token.label)+'&lt;/a&gt;',
                'class': 'autocompleter-choice'
              }).inject(choice);
            }
            else {
                console.log("Heading");
              var choice = new Element('li', {
                'class': 'autocompleter-choices',
                'id':token.guid
              });
  
              new Element('div', {
                  'html': '&lt;a class="menu-heading" style="margin:-9px;" id="'+token.id+'" &gt;'+this.markQueryValue(token.id)+'&lt;/a&gt;',
                  'class': 'autocompleter-choice'
              }).inject(choice);
            }
            this.addChoiceEvents(choice).inject(this.choices);
              choice.store('autocompleteChoice', token);     
          },
          'onPush' : function(){
           if( $('toValues').value.split(',').length &gt;= maxRecipients ){
              $('to').disabled = true;
            }
          }
      });
  </code></pre>
  
  <p>I have checked the data returned from controller, it is returning multiple results, but some how injector is only getting called for less number of results.</p>
  
  <p><strong>Update -</strong> 
  Injector method is being called for first 10 values returned from controller only</p>