title: Select2 TypeError: data.results is undefined
body: <p>Am trying to use Select2 to load remote data using ajax / json but i keep getting an error as:</p>
  
  <blockquote>
    <p>TypeError: data.results is undefined</p>
  </blockquote>
  
  <p>My code is :</p>
  
  <pre><code>$('#tags').select2({
                  ajax: {
                      url: 'http://localhost:8090/getallusers',
                      dataType: 'json',
                      quietMillis: 100,
                      data: function (term) {
                          return {
                              term: term
                          };
                      },
                      results: function (data) {
                          return data;
                          }
  
                      }
  
              });
  </code></pre>
  
  <p>I really Don’t Understand the Problem !</p>