Index: trunk/extensions/VisualEditor/modules/ve/es/ve.es.Node.js |
— | — | @@ -91,10 +91,13 @@ |
92 | 92 | |
93 | 93 | ve.Node.traverseUpstream( node, function( node ) { |
94 | 94 | var elementType = node.model.getElementType(); |
95 | | - if ( splitableNode != null && ve.es.DocumentNode.splitRules[ elementType ].children === true ) { |
| 95 | + if ( |
| 96 | + splitableNode !== null && |
| 97 | + ve.es.DocumentNode.splitRules[ elementType ].children === true |
| 98 | + ) { |
96 | 99 | return false; |
97 | 100 | } |
98 | | - splitableNode = ve.es.DocumentNode.splitRules[ elementType ].self ? node : null |
| 101 | + splitableNode = ve.es.DocumentNode.splitRules[ elementType ].self ? node : null; |
99 | 102 | } ); |
100 | 103 | return splitableNode; |
101 | 104 | }; |
Index: trunk/extensions/VisualEditor/modules/ve/es/ve.es.Content.js |
— | — | @@ -16,7 +16,7 @@ |
17 | 17 | * @param {Object} options List of options |
18 | 18 | * @param {Boolean} options.pre Line breaks should be respected |
19 | 19 | * @property {jQuery} $ |
20 | | - * @property {ve.ContentModel} model |
| 20 | + * @property {ve.ModelNode} model |
21 | 21 | * @property {Array} boundaries |
22 | 22 | * @property {Array} lines |
23 | 23 | * @property {Integer} width |