Setup is called when a new model instance is created.
It adds default attributes, then whatever attributes
are passed to the class.
Setup should never be called directly.
$.Model("Recipe")
var recipe = new Recipe({foo: "bar"});
recipe.foo //-> "bar"
recipe.attr("foo") //-> "bar"
Setup is called when a new model instance is created. It adds default attributes, then whatever attributes are passed to the class. Setup should never be called directly.