Joined November 2013
·
Posted to
Using custom headers with Backbone.sync
over 1 year
ago
Thanks for the reply. Really appreciate it.
I am using Require with Backbone, so am a little unsure of where the new sync code should sit to overload the original. (Certainly where I've put it, it doesn't seem to work! ;) )
Cheers,
Ben
Posted to
Using custom headers with Backbone.sync
over 1 year
ago
Thanks. This is great. Quick question: How does the collection fetch / save know to use this overloaded function rather than the original?
(And do you have the auth.js? Ta).
Thanks.
Aha. Yes. Now you've put it like that, it's obvious - overide the whole file.
Thanks again for the help.