diff --git a/public/js/app/routes/PostRoute.js b/public/js/app/routes/PostRoute.js index 9c8ad6e..ee10126 100644 --- a/public/js/app/routes/PostRoute.js +++ b/public/js/app/routes/PostRoute.js @@ -12,11 +12,11 @@ define(["app/app", return this.store.findOneQuery('post', params.postId, { maxComments: 'all' }) }, - actions: { - error: function (error) { - this.transitionTo('not-found') - } - }, + // actions: { + // error: function (error) { + // this.transitionTo('not-found') + // } + // }, setupController: function(controller, model) { this.controllerFor('pub-sub').set('channel', model) diff --git a/public/js/app/routes/TimelineCommentsRoute.js b/public/js/app/routes/TimelineCommentsRoute.js index b0c250b..c3f612c 100644 --- a/public/js/app/routes/TimelineCommentsRoute.js +++ b/public/js/app/routes/TimelineCommentsRoute.js @@ -9,11 +9,11 @@ define(["app/app", } }, - actions: { - error: function (error) { - this.transitionTo('not-found') - } - }, + // actions: { + // error: function (error) { + // this.transitionTo('not-found') + // } + // }, model: function(params) { return this.store.findOneQuery('timeline', params.username + '/comments', { offset: params.offset }) diff --git a/public/js/app/routes/TimelineIndexRoute.js b/public/js/app/routes/TimelineIndexRoute.js index bdd85d0..f04ba81 100644 --- a/public/js/app/routes/TimelineIndexRoute.js +++ b/public/js/app/routes/TimelineIndexRoute.js @@ -13,11 +13,11 @@ define(["app/app", return this.store.findOneQuery('timeline', params.username, { offset: params.offset }) }, - actions: { - error: function (error) { - this.transitionTo('not-found') - } - }, + // actions: { + // error: function (error) { + // this.transitionTo('not-found') + // } + // }, deactivate: function() { this.controllerFor('pub-sub').unsubscribe() diff --git a/public/js/app/routes/TimelineLikesRoute.js b/public/js/app/routes/TimelineLikesRoute.js index a338dc9..cfad1db 100644 --- a/public/js/app/routes/TimelineLikesRoute.js +++ b/public/js/app/routes/TimelineLikesRoute.js @@ -9,11 +9,11 @@ define(["app/app", } }, - actions: { - error: function (error) { - this.transitionTo('not-found') - } - }, + // actions: { + // error: function (error) { + // this.transitionTo('not-found') + // } + // }, model: function(params) { return this.store.findOneQuery('timeline', params.username + '/likes', { offset: params.offset }) diff --git a/public/js/app/routes/TimelineSubscribersRoute.js b/public/js/app/routes/TimelineSubscribersRoute.js index d70205d..321134f 100644 --- a/public/js/app/routes/TimelineSubscribersRoute.js +++ b/public/js/app/routes/TimelineSubscribersRoute.js @@ -3,11 +3,11 @@ define(["app/app", "use strict"; App.TimelineSubscribersRoute = Ember.Route.extend(App.TransitionalRoute, { - actions: { - error: function (error) { - this.transitionTo('not-found') - } - }, + // actions: { + // error: function (error) { + // this.transitionTo('not-found') + // } + // }, model: function(params) { return this.store.findQuery('subscriber', params.username) diff --git a/public/js/app/routes/TimelineSubscriptionsRoute.js b/public/js/app/routes/TimelineSubscriptionsRoute.js index 6497e46..e87a14e 100644 --- a/public/js/app/routes/TimelineSubscriptionsRoute.js +++ b/public/js/app/routes/TimelineSubscriptionsRoute.js @@ -3,11 +3,11 @@ define(["app/app", "use strict"; App.TimelineSubscriptionsRoute = Ember.Route.extend(App.TransitionalRoute, { - actions: { - error: function (error) { - this.transitionTo('not-found') - } - }, + // actions: { + // error: function (error) { + // this.transitionTo('not-found') + // } + // }, model: function(params) { return this.store.findQuery('subscription', params.username)