Index: trunk/parsers/wikidom/tests/synth/test.js |
— | — | @@ -157,7 +157,6 @@ |
158 | 158 | // TODO: Events for appending, prepending, inserting and removing |
159 | 159 | } ); |
160 | 160 | |
161 | | - |
162 | 161 | test( 'es.ViewContainer', function() { |
163 | 162 | var modelContainer = new es.ModelContainer(), |
164 | 163 | modelItem1 = new es.ModelContainerItem(), |
Index: trunk/parsers/wikidom/lib/synth/models/es.CommentBlockModel.js |
— | — | @@ -29,8 +29,8 @@ |
30 | 30 | /** |
31 | 31 | * Creates a view for this model |
32 | 32 | */ |
33 | | -es.BlockModel.prototype.createView = function() { |
34 | | - return new es.BlockView( this ); |
| 33 | +es.CommentBlockModel.prototype.createView = function() { |
| 34 | + return new es.CommentBlockView( this ); |
35 | 35 | }; |
36 | 36 | |
37 | 37 | /** |
Index: trunk/parsers/wikidom/lib/synth/models/es.ListBlockModel.js |
— | — | @@ -72,6 +72,13 @@ |
73 | 73 | /* Methods */ |
74 | 74 | |
75 | 75 | /** |
| 76 | + * Creates a view for this model |
| 77 | + */ |
| 78 | +es.ListBlockModel.prototype.createView = function() { |
| 79 | + return new es.ListBlockView( this ); |
| 80 | +}; |
| 81 | + |
| 82 | +/** |
76 | 83 | * Gets the length of all content. |
77 | 84 | * |
78 | 85 | * @method |
Index: trunk/parsers/wikidom/lib/synth/models/es.HeadingBlockModel.js |
— | — | @@ -30,6 +30,13 @@ |
31 | 31 | /* Methods */ |
32 | 32 | |
33 | 33 | /** |
| 34 | + * Creates a view for this model |
| 35 | + */ |
| 36 | +es.HeadingBlockModel.prototype.createView = function() { |
| 37 | + return new es.HeadingBlockView( this ); |
| 38 | +}; |
| 39 | + |
| 40 | +/** |
34 | 41 | * Gets the length of all content. |
35 | 42 | * |
36 | 43 | * @method |
Index: trunk/parsers/wikidom/lib/synth/models/es.HorizontalRuleBlockModel.js |
— | — | @@ -24,6 +24,13 @@ |
25 | 25 | /* Methods */ |
26 | 26 | |
27 | 27 | /** |
| 28 | + * Creates a view for this model |
| 29 | + */ |
| 30 | +es.HorizontalRuleBlockModel.prototype.createView = function() { |
| 31 | + return new es.HorizontalRuleBlockView( this ); |
| 32 | +}; |
| 33 | + |
| 34 | +/** |
28 | 35 | * Gets the length of all content - always 0. |
29 | 36 | * |
30 | 37 | * @method |