src/jquery-tokeninput/jquery-tokeninput.js
function excludeCurrent(results) {
          if ($(input).data("settings").excludeCurrent) {
              var currentTokens = $(input).data("tokenInputObject").getTokens(),
                  trimmedList = [];
              if (currentTokens.length) {
                  $.each(results, function(index, value) {
                      var notFound = true;
                      $.each(currentTokens, function(cIndex, cValue) {
                          if (value[$(input).data("settings").propertyToSearch] == cValue[$(input).data("settings").propertyToSearch]) {
                              notFound = false;
                              return false;
                          }
                      });

                      if (notFound) {
                          trimmedList.push(value);
                      }
                  });
                  results = trimmedList;
              }
          }

          return results;
      }
function excludeCurrent(results) {
          if ($(input).data("settings").excludeCurrent) {
              var currentTokens = $(input).data("tokenInputObject").getTokens(),
                  trimmedList = [];
              if (currentTokens.length) {
                  $.each(results, function(index, value) {
                      var notFound = true;
                      $.each(currentTokens, function(cIndex, cValue) {
                          if (value[$(input).data("settings").propertyToSearch] == cValue[$(input).data("settings").propertyToSearch]) {
                              notFound = false;
                              return false;
                          }
                      });

                      if (notFound) {
                          trimmedList.push(value);
                      }
                  });
                  results = trimmedList;
              }
          }

          return results;
      }
function excludeCurrent ( results ) { if ( $ ( input ) . data ( "settings" ) . excludeCurrent ) { var currentTokens = $ ( input ) . data ( "tokenInputObject" ) . getTokens ( ) , trimmedList = [ ] ; if ( currentTokens . length ) { $ . each ( results , function ( index , value ) { var notFound = true ; $ . each ( currentTokens , function ( cIndex , cValue ) { if ( value [ $ ( input ) . data ( "settings" ) . propertyToSearch ] == cValue [ $ ( input ) . data ( "settings" ) . propertyToSearch ] ) { notFound = false ; return false ; } } ) ; if ( notFound ) { trimmedList . push ( value ) ; } } ) ; results = trimmedList ; } } return results ; }
exclude existing tokens from dropdown, so the list is clearer
exclude existing tokens from dropdown so the list is clearer