mirror of
https://github.com/jashkenas/backbone.git
synced 2026-04-30 03:00:06 -04:00
Be sure to return the value of beforeSend
This commit is contained in:
@@ -1397,7 +1397,7 @@
|
||||
var beforeSend = options.beforeSend;
|
||||
options.beforeSend = function(xhr) {
|
||||
xhr.setRequestHeader('X-HTTP-Method-Override', type);
|
||||
if (beforeSend) beforeSend.apply(this, arguments);
|
||||
if (beforeSend) return beforeSend.apply(this, arguments);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user