Closed MSchmidt closed 12 years ago
Yes, this is definitely something I want to include in the future when I get a sec :)
+1
+1
+1 again
I tried my hand at implementing it myself, here's the pull request.
What is the point of this? Wouldn't you want events to be called, why else would you bind them?
You can add options to various methods model.save silent:true
, then on check for the option in your handlers.
Also Ajax has disabling Ajax features.
The question might of been submitted before those new features above. :)
I'm closing this since it has been included at some point.
Look at http://spinejs.com/docs/ajax for details.
Spine.Ajax.disable ->
record.destroy()
record.destroy({ajax: false})
It would be nice if there was a way to call the various methods on a model without triggering events. This could be an additional parameter:
Or maybe an option, so it could deal with optional validations as well:
What do you think? Or is this already possible and I just didn't see it?