Closed herkyl closed 9 years ago
I noticed when I delegate the model's sync function to ampersand-sync beforeSend gets called
Model = require 'ampersand-model'
sync = require 'ampersand-sync'
model = Model.extend
ajaxConfig:
beforeSend: ->
debugger
sync: ->
sync.apply @, arguments
Getting ampersand-sync to a more recent version fixed this same issue for me. Has to do with AmpersandJS/ampersand-sync#23.
When defining a beforeSend in the ajaxConfig it never gets called