Index: trunk/parsers/wikidom/lib/synth/bases/es.ViewContainer.js |
— | — | @@ -74,6 +74,11 @@ |
75 | 75 | container.emit( 'remove', itemView ); |
76 | 76 | container.emit( 'update' ); |
77 | 77 | } ); |
| 78 | + // Auto-add views for existing items |
| 79 | + var itemModels = this.containerModel.items(); |
| 80 | + for ( var i = 0; i < itemModels.length; i++ ) { |
| 81 | + this.views.push( this.createItemView( itemModels[i] ) ); |
| 82 | + } |
78 | 83 | }; |
79 | 84 | |
80 | 85 | es.ViewContainer.prototype.lookupItemView = function( itemModel ) { |