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
called if an unsuccessful destroy
{undefined}
Destroys the instance by calling jQuery.Model.destroy with the id of the instance.
If OpenAjax.hub is available, after a successful destroy "modelName.destroyed" is published with the model instance.