Skip to content

Instantly share code, notes, and snippets.

@kuon
Created January 26, 2011 09:59
Show Gist options
  • Save kuon/796499 to your computer and use it in GitHub Desktop.
Save kuon/796499 to your computer and use it in GitHub Desktop.
01:18 < KU0N> Now, how can I notify a view from a model?
01:18 < KU0N> The thing is, I have a complex view that manage a timeline http://www.simile-widgets.org/timeline/
01:19 < KU0N> now, when a model is deleted, I need to notify that view so it can reload the timeline from the server
01:19 < KU0N> I must trigger the reload after the server finished deleting the object
01:19 < KU0N> so I have didDestroy called on my model by my datasource
01:20 < KU0N> now what would be the best way, from my model didDestroy method, to notify my view?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment