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

Re : Destroy deleted models

$
0
0
So I need to manually trigger a destroyed event on the Photo#y? How do I do that? I would guess Photo.store[y].trigger('destroyed') but I don't think there is a trigger method on can.Observes? Can you please elaborate.

[edit]

This thread could have been so much shorter. Just call 'destroyed' instead of 'destroy' and it works beautifully.

Viewing all articles
Browse latest Browse all 3491

Latest Images

Trending Articles



Latest Images