src/grid-filter.js
function (item) {
            var searchTerms = self.viewModel.attr('searchTerms').attr(),
              searchTerm = item && (item.id || item.name || item);
            searchTerms.splice(searchTerms.indexOf(searchTerm), 1);
            // We are using searchTerms's setter to execute the filter, so have to set the property (not just update):
            self.viewModel.attr('searchTerms', searchTerms);
          }
function (item) {
            var searchTerms = self.viewModel.attr('searchTerms').attr(),
              searchTerm = item && (item.id || item.name || item);
            searchTerms.splice(searchTerms.indexOf(searchTerm), 1);
            // We are using searchTerms's setter to execute the filter, so have to set the property (not just update):
            self.viewModel.attr('searchTerms', searchTerms);
          }
function ( item ) { var searchTerms = self . viewModel . attr ( 'searchTerms' ) . attr ( ) , searchTerm = item && ( item . id || item . name || item ) ; searchTerms . splice ( searchTerms . indexOf ( searchTerm ) , 1 ) ; // We are using searchTerms's setter to execute the filter, so have to set the property (not just update): self . viewModel . attr ( 'searchTerms' , searchTerms ) ; }
onDelete is used to remove items from searchTerms in the scope. It is called internally
by the jquery.tokenInput plugin when a tag gets removed from the input box.
onDelete is used to remove items from searchTerms in the scope . It is called internally by the jquery . tokenInput plugin when a tag gets removed from the input box .