Created
May 18, 2015 09:26
-
-
Save olivierchatry/f37d3670594da0f2e3a2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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