new nt.Collections.NutritionTracker()
Collection of foods being tracked
- Source:
Extends
- Backbone.Collection
Members
localStorage
Save all of the food items in localStorage.
- Source:
model
Reference to this collection's model.
- Source:
Methods
calculateSum()
Returns the sum value of the attribute passed
- Source:
comparator()
Each food item is sorted by date
- Source:
getModelsByDate()
Returns a group of models with the same date
- Source:
initialize()
Set default tracker date for today
- Source: