Index: trunk/parsers/wikidom/lib/synth/bases/es.ViewContainerItem.js |
— | — | @@ -17,9 +17,11 @@ |
18 | 18 | if ( typeof tagName !== 'string' ) { |
19 | 19 | tagName = 'div'; |
20 | 20 | } |
21 | | - this.$ = $( '<' + tagName + '/>' ) |
22 | | - .addClass( 'editSurface-' + typeName ) |
23 | | - .data( typeName, this ); |
| 21 | + |
| 22 | + if ( !this.$ ) { |
| 23 | + this.$ = $( '<' + tagName + '/>' ); |
| 24 | + } |
| 25 | + this.$.addClass( 'editSurface-' + typeName ).data( typeName, this ); |
24 | 26 | }; |
25 | 27 | |
26 | 28 | es.ViewContainerItem.prototype.getModel = function() { |
Index: trunk/parsers/wikidom/lib/synth/bases/es.ViewContainer.js |
— | — | @@ -26,9 +26,10 @@ |
27 | 27 | if ( typeof tagName !== 'string' ) { |
28 | 28 | tagName = 'div'; |
29 | 29 | } |
30 | | - this.$ = $( '<' + tagName + '/>' ) |
31 | | - .addClass( 'editSurface-' + typeName ) |
32 | | - .data( typeName, this ); |
| 30 | + if ( !this.$ ) { |
| 31 | + this.$ = $( '<' + tagName + '/>' ); |
| 32 | + } |
| 33 | + this.$.addClass( 'editSurface-' + typeName ).data( typeName, this ); |
33 | 34 | var container = this; |
34 | 35 | function recycleItemView( itemModel, autoCreate ) { |
35 | 36 | var itemView = container.lookupItemView( itemModel ); |
Index: trunk/parsers/wikidom/lib/synth/views/es.ListBlockView.js |
— | — | @@ -2,7 +2,7 @@ |
3 | 3 | * Creates an es.ParagraphBlockView object. |
4 | 4 | */ |
5 | 5 | es.ListBlockView = function( model ) { |
6 | | - es.ViewContainer.call( this, model, 'items' ); |
| 6 | + es.ViewContainer.call( this, model, 'list' ); |
7 | 7 | es.BlockView.call( this, model, 'list' ); |
8 | 8 | }; |
9 | 9 | |