mirror of
https://github.com/discourse/discourse.git
synced 2025-03-03 09:49:42 +00:00
No need to call it Discourse.TopicRoute
-- that is done automatically
by the compatibility layer. cc @ZogStrIP
This commit is contained in:
parent
220f2424b5
commit
81eedf3a12
@ -5,7 +5,7 @@ var isTransitioning = false,
|
||||
|
||||
import ShowFooter from "discourse/mixins/show-footer";
|
||||
|
||||
Discourse.TopicRoute = Discourse.Route.extend(ShowFooter, {
|
||||
var TopicRoute = Discourse.Route.extend(ShowFooter, {
|
||||
redirect: function() { return this.redirectIfLoginRequired(); },
|
||||
|
||||
queryParams: {
|
||||
@ -235,5 +235,5 @@ Discourse.TopicRoute = Discourse.Route.extend(ShowFooter, {
|
||||
|
||||
});
|
||||
|
||||
RSVP.EventTarget.mixin(Discourse.TopicRoute);
|
||||
export default Discourse.TopicRoute;
|
||||
RSVP.EventTarget.mixin(TopicRoute);
|
||||
export default TopicRoute;
|
||||
|
Loading…
x
Reference in New Issue
Block a user