Skip to content

Instantly share code, notes, and snippets.

@etozzato
Created April 18, 2014 19:43
Show Gist options
  • Save etozzato/11061196 to your computer and use it in GitHub Desktop.
Save etozzato/11061196 to your computer and use it in GitHub Desktop.
push and pushObject on array
newColumn: ->
# NOPE!
# @get('newColumns').pushObject { title: @get('targetColumn'), type: @get('selectedNewColumn.id') }
_arr = @get('newColumns')
_arr.pushObject { title: @get('targetColumn'), type: @get('selectedNewColumn.id') }
@set('newColumns', _arr)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment