Created
December 20, 2011 02:58
-
-
Save Radagaisus/1500028 to your computer and use it in GitHub Desktop.
Loading Event for Backbone
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.old_sync = Backbone.sync | |
Backbone.sync = (method, model, options) => | |
old_sync(method, model, options) | |
model.trigger("loading") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment