Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Accessing response data in Model.prototype.destroy success callback

$
0
0
Hi there,

is there any chance of accessing the response data of the server in the Model.prototype.destroy success callback? At the moment I can only access the model itself

Use-Case: I know its not very restful, but currently our server returns some notifications, when an object is deleted ("Object bla was successfully deleted") which will then be displayed by CanJs.

I think I have to overwrite the destroy method of the model and change how the deferred is resolved but I can not find a way of doing this.

Greetings,

Ro

Viewing all articles
Browse latest Browse all 3491

Trending Articles