Closed dnagir closed 12 years ago
I like it, gives people a simple and obvious way to hook into the sync.
A couple comments:
model.trigger('sync:start') should happen inside the beforeSend method. model.trigger('sync:end') should probably be in a complete method, jquery calls complete after the error and success callbacks.
I added in sync events with commit f16dad1082
Let me know if you run into any issues with it.
Thanks. Much better commit.
This allows binding directly to the model: