My Shitty Code

Embracing the Messiness in Search of Epic Solutions

Tag: Backbone

  • Backbone: model.destroy() Always Call “error” Callback Function

    PROBLEM Let’s assume we invoke person.destroy() to delete a person:- … and let’s assume when person.destroy() is invoked, it will call /person/{personId} DELETE. Here’s how the Spring MVC controller API might look like:- When we execute person.destroy(), the error callback function will always get called even though the HTTP status is a 200 OK. Why? […]