Skip to content

Instantly share code, notes, and snippets.

@csaunders
Created October 20, 2013 02:21
Show Gist options
  • Save csaunders/7064113 to your computer and use it in GitHub Desktop.
Save csaunders/7064113 to your computer and use it in GitHub Desktop.
cancelChanges: ->
model = @get('model')
if transaction = model.get('transaction')
transaction.rollback()
else
alert "Could not roll back changes"
@set('isEditing', false)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment