Skip to content

Instantly share code, notes, and snippets.

@fredsterss
Created July 8, 2012 21:16
Show Gist options
  • Save fredsterss/3072836 to your computer and use it in GitHub Desktop.
Save fredsterss/3072836 to your computer and use it in GitHub Desktop.
getSteps: () ->
# hold the steps for this test in a collection
@stepCollection = new StepCollection({ testId: @testModel.get('_id') })
# when a step is added to the collection create a new step view
@stepCollection.bind 'all', @added
# fetch the collection
@stepCollection.fetch({ add: true })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment