Index: trunk/parsers/wikidom/lib/hype/bases/es.DocumentViewBranchNode.js |
— | — | @@ -21,7 +21,7 @@ |
22 | 22 | */ |
23 | 23 | es.DocumentViewBranchNode.prototype.renderContent = function() { |
24 | 24 | for ( var i = 0; i < this.length; i++ ) { |
25 | | - this[i].contentView.render(); |
| 25 | + this[i].renderContent(); |
26 | 26 | } |
27 | 27 | }; |
28 | 28 | |
— | — | @@ -52,7 +52,7 @@ |
53 | 53 | */ |
54 | 54 | es.DocumentViewBranchNode.prototype.clearSelection = function() { |
55 | 55 | for ( var i = 0; i < this.length; i++ ) { |
56 | | - this[i].contentView.clearSelection(); |
| 56 | + this[i].clearSelection(); |
57 | 57 | } |
58 | 58 | }; |
59 | 59 | |
Index: trunk/parsers/wikidom/demos/hype/es.js |
— | — | @@ -13,6 +13,38 @@ |
14 | 14 | { |
15 | 15 | 'type': 'paragraph', |
16 | 16 | 'content': { 'text': 'Test 333' } |
| 17 | + }, |
| 18 | + { |
| 19 | + 'type': 'list', |
| 20 | + 'children': [ |
| 21 | + { |
| 22 | + 'type': 'listItem', |
| 23 | + 'attributes': { |
| 24 | + 'styles': ['bullet'] |
| 25 | + }, |
| 26 | + 'content': { |
| 27 | + 'text': 'Test 4444' |
| 28 | + } |
| 29 | + }, |
| 30 | + { |
| 31 | + 'type': 'listItem', |
| 32 | + 'attributes': { |
| 33 | + 'styles': ['bullet', 'bullet'] |
| 34 | + }, |
| 35 | + 'content': { |
| 36 | + 'text': 'Test 55555' |
| 37 | + } |
| 38 | + }, |
| 39 | + { |
| 40 | + 'type': 'listItem', |
| 41 | + 'attributes': { |
| 42 | + 'styles': ['number'] |
| 43 | + }, |
| 44 | + 'content': { |
| 45 | + 'text': 'Test 666666' |
| 46 | + } |
| 47 | + } |
| 48 | + ] |
17 | 49 | } |
18 | 50 | ] |
19 | 51 | }; |
Index: trunk/parsers/wikidom/demos/hype/index.html |
— | — | @@ -28,12 +28,16 @@ |
29 | 29 | <script src="../../lib/hype/models/es.SurfaceModel.js"></script> |
30 | 30 | <script src="../../lib/hype/models/es.DocumentModel.js"></script> |
31 | 31 | <script src="../../lib/hype/models/es.ParagraphModel.js"></script> |
| 32 | + <script src="../../lib/hype/models/es.ListModel.js"></script> |
| 33 | + <script src="../../lib/hype/models/es.ListItemModel.js"></script> |
32 | 34 | |
33 | 35 | <!-- Views --> |
34 | 36 | <script src="../../lib/hype/views/es.SurfaceView.js"></script> |
35 | 37 | <script src="../../lib/hype/views/es.ContentView.js"></script> |
36 | 38 | <script src="../../lib/hype/views/es.DocumentView.js"></script> |
37 | 39 | <script src="../../lib/hype/views/es.ParagraphView.js"></script> |
| 40 | + <script src="../../lib/hype/views/es.ListView.js"></script> |
| 41 | + <script src="../../lib/hype/views/es.ListItemView.js"></script> |
38 | 42 | |
39 | 43 | <!-- Demo --> |
40 | 44 | <script src="es.js"></script> |