jQuery.Model.prototype.setup  function     

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"
model.setup(attributes) -> undefined
{Object}

a hash of attributes

{undefined}
© Jupiter IT - JavaScriptMVC Training and Support