closed → reopened
Man, I wish trac would email me when tickets get updated. So I might be missing something, but looking at the code, beforeSend (and ajaxSend) is triggered after data is serialized, so I can't do this on beforeSend. Anyway, I want this to be global to all ajax requests, and not have to do it each time - if I wanted to do it each time I'd just add the data anyway. I also don't think you can modify the ajax settings in those events.
I don't think this is not useful for the common user - anyone who wants to send some piece of data with every request, such as the Rails authenticity token, or adding in some profiling data or something, would want this method.