Skip to content

Commit

Permalink
Cleans up several ArrayController's to Controller
Browse files Browse the repository at this point in the history
* Except reviews and course rounds
  • Loading branch information
gschorkopf committed Aug 17, 2016
1 parent 7c04cc9 commit 09c47b6
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions app/controllers/course-rounds.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import Ember from 'ember';

// TODO: Change to just Controller
var CourseRoundsController = Ember.ArrayController.extend({
// Pagination
page: 1,
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/courses/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Ember from 'ember';

var CoursesIndexController = Ember.ArrayController.extend({
var CoursesIndexController = Ember.Controller.extend({
queryParams: ["page"],

pageBinding: "content.page",
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/friendable-users.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Ember from 'ember';

var FriendableUsersController = Ember.ArrayController.extend({
var FriendableUsersController = Ember.Controller.extend({
selection: null,
query: null,

Expand Down
2 changes: 1 addition & 1 deletion app/controllers/friends.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Ember from 'ember';
import pagedArray from 'ember-cli-pagination/computed/paged-array';

var FriendsController = Ember.ArrayController.extend({
var FriendsController = Ember.Controller.extend({
pagedContent: pagedArray("content", {infinite: true}),

hasNextPage: function() {
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/turns.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Ember from 'ember';

var TurnsController = Ember.ArrayController.extend({
var TurnsController = Ember.Controller.extend({
holeNumber: Ember.computed.alias('model.firstObject.holeNumber'),

holePar: Ember.computed.alias('model.firstObject.par'),
Expand Down

0 comments on commit 09c47b6

Please sign in to comment.