code: function ttAdapter() {
      var that = this;
  
      return this.remote ? withAsync : withoutAsync;
  
      function withAsync(query, sync, async) {
        return that.search(query, sync, async);
      }
  
      function withoutAsync(query, sync) {
        return that.search(query, sync);
      }
    }
docs: ### super secret stuff used for integration with jquery plugin