Skip to content

Commit

Permalink
update to use actions object on controller
Browse files Browse the repository at this point in the history
  • Loading branch information
Noel Rappin committed Sep 6, 2013
1 parent 0edab8b commit c8019c9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/assets/javascripts/controllers/index_controller.js
Expand Up @@ -2,7 +2,10 @@ TimeTravel.IndexController = Ember.ArrayController.extend({
itemController: "indexTrip",
selectedTrip: false,

selectTrip: function(trip) {
this.set('selectedTrip', trip)
actions: {
selectTrip: function(trip) {
this.set('selectedTrip', trip)
}
}

});

0 comments on commit c8019c9

Please sign in to comment.