1
0
mirror of https://github.com/flarum/core.git synced 2025-08-10 02:17:37 +02:00

Rework discussion/post components

This commit is contained in:
Toby Zerner
2015-01-07 17:22:34 +10:30
parent d4e573b629
commit ff6c7455f5
13 changed files with 45 additions and 95 deletions

View File

@@ -7,7 +7,7 @@ export default Ember.Component.extend({
layoutName: 'components/ui/controls/item-list',
listItems: function() {
if (!this.get('items')) return [];
if (!Ember.isArray(this.get('items'))) return [];
var listItems = [];
this.get('items').forEach(function(item) {
if (item.tagName != 'li') {