Removes duplicate Controller definition

This commit is contained in:
Robin Ward 2014-04-11 12:51:09 -04:00
parent 0b42228663
commit 1ae6c726dc
2 changed files with 3 additions and 1 deletions

View file

@ -7,6 +7,9 @@
@module Discourse
**/
Discourse.DiscoveryController = Discourse.ObjectController.extend({
loading: false,
loadingSpinner: false,
scheduledSpinner: null,
showMoreUrl: function(period) {
var url = '', category = this.get('category');

View file

@ -137,7 +137,6 @@ function buildCategoryRoute(filter, params) {
// Finally, build all the routes with the helpers we created
Discourse.addInitializer(function() {
Discourse.DiscoveryController = Em.Controller.extend({});
Discourse.DiscoveryCategoryRoute = buildCategoryRoute('latest');
Discourse.DiscoveryCategoryNoneRoute = buildCategoryRoute('latest', {no_subcategories: true});