Class: nt.Collections.FoodSearch

nt.Collections.FoodSearch

new nt.Collections.FoodSearch()

Collection of foods searched
Source:

Extends

  • Backbone.Collection

Members

model

Reference to this collection's model.
Source:

Methods

comparator() → {number}

Each food item is sorted by its original insertion order.
Source:
Returns:
Sort order
Type
number

nextOrder() → {number}

This generates the next order number for new items.
Source:
Returns:
Next order number
Type
number

parse()

Override parse to return only "hits" from the response
Source:

url()

Nutritionix API /search will return an array of matching foods
Source: