mirror of
https://github.com/discourse/discourse.git
synced 2025-05-06 18:32:57 +08:00
Removes duplicate Controller definition
This commit is contained in:
parent
0b42228663
commit
1ae6c726dc
@ -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');
|
||||
|
@ -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});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user