mirror of
https://github.com/jashkenas/backbone.git
synced 2026-04-30 03:00:06 -04:00
Fix #1365 - Destroy: new models execute success callback.
This commit is contained in:
@@ -840,4 +840,11 @@ $(document).ready(function() {
|
||||
model.destroy();
|
||||
});
|
||||
|
||||
test("#1365 - Destroy: New models execute success callback.", 2, function() {
|
||||
new Backbone.Model()
|
||||
.on('sync', function() { ok(false); })
|
||||
.on('destroy', function(){ ok(true); })
|
||||
.destroy({ success: function(){ ok(true); }});
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user