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

Destroy deleted models

$
0
0
I have a solution where an object model is being kept in sync via pub/sub (Faye) between various clients. This all works fine with creates and updates, where I can just fetch the models from the server when triggered. However, on destroy events it is not so clear, where I need to call destroy on already destroyed model.

How can I best do this 'soft' destroy (delete it from the client without calling the server)? I am experimenting with removing the id attribute before calling destroy, but this seems very hacky and no luck so far.

Thanks,
MIchel



Viewing all articles
Browse latest Browse all 3491

Trending Articles