1
0
mirror of https://github.com/flarum/core.git synced 2025-08-06 16:36:47 +02:00

Initialize item-lists on init event; allow items to be hidden

This commit is contained in:
Toby Zerner
2015-03-05 12:06:40 +10:30
parent 109fe23607
commit 98476757ae
4 changed files with 17 additions and 13 deletions

View File

@@ -7,7 +7,7 @@ import SeparatorItem from 'flarum/components/ui/separator-item';
export default Ember.Mixin.create({
itemLists: [],
initItemLists: Ember.on('didInsertElement', function() {
initItemLists: Ember.on('init', function() {
var self = this;
this.get('itemLists').forEach(function(name) {
self.initItemList(name);