Update ItemList API

This commit is contained in:
Toby Zerner 2015-10-30 22:44:51 +10:30
parent fc339254cf
commit 714464ab03
2 changed files with 3 additions and 3 deletions

View File

@ -29,7 +29,7 @@ export default class DiscussionPage extends BaseDiscussionPage {
sidebarItems() {
const items = super.sidebarItems();
delete items.scrubber;
items.remove('scrubber');
return items;
}

View File

@ -10,7 +10,7 @@ import Drawer from 'flarum/utils/Drawer';
import DiscussionPage from 'flarum/embed/components/DiscussionPage';
app.initializers.boot.content = app => {
app.initializers.replace('boot', () => {
m.route.mode = 'pathname';
override(m, 'route', function(original, root, arg1, arg2, vdom) {
@ -56,4 +56,4 @@ app.initializers.boot.content = app => {
basePath + '/',
mapRoutes(app.routes, basePath)
);
};
});