Answer the question
In order to leave comments, you need to log in
Why does the destroy only work on exactly half of the models in the collection?
_.each(todos.models, function(num) {
num.destroy()
})
Answer the question
In order to leave comments, you need to log in
The .destroy() method is missing callbacks in the options hash:
num.destroy({
success: function(model, response) {...},
error: function(err) {...}
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question