Skip to content

Instantly share code, notes, and snippets.

@olivierchatry
Created May 18, 2015 09:26
Show Gist options
  • Select an option

  • Save olivierchatry/f37d3670594da0f2e3a2 to your computer and use it in GitHub Desktop.

Select an option

Save olivierchatry/f37d3670594da0f2e3a2 to your computer and use it in GitHub Desktop.
export default Ember.Component.extend({
world: Ember.inject.service()
model: null
activityAction: -> (
@currentModel.set 'activity.action.type', 'move'
return MoveAction.create(activity: @currentModel, world: @get('world'))
).property("model")
fromPoint: -> (
return @get('activityAction.fromPoint')
).property('activityAction')
setActionType: -> (
@set('model.activity.action.type', 'move')
).observes('model')
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment