Skip to content

Instantly share code, notes, and snippets.

@mitchlloyd
Created June 14, 2013 14:45
Show Gist options
  • Save mitchlloyd/5782436 to your computer and use it in GitHub Desktop.
Save mitchlloyd/5782436 to your computer and use it in GitHub Desktop.
(Blog snippet) Example of ember auto save that won't work
App.Document = DS.Model.extend
# some attributes here...
saveWhenDirty: (->
@get('store').commit() if @get('isDirty')
).property('isDirty')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment