jQuery.Model.prototype.destroy  function     

Destroys the instance by calling jQuery.Model.destroy with the id of the instance.

recipe.destroy(success, error);

If OpenAjax.hub is available, after a successful destroy "modelName.destroyed" is published with the model instance.

model.destroy(success, error) -> undefined
{optional:Function}

called if a successful destroy

{optional:Function}

called if an unsuccessful destroy

{undefined}
© Jupiter IT - JavaScriptMVC Training and Support