r112277 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r112276‎ | r112277 | r112278 >
Date:00:05, 24 February 2012
Author:tparscal
Status:deferred
Tags:
Comment:
very minor fixes
Modified paths:
  • /trunk/extensions/VisualEditor/modules/ve/es/ve.es.Content.js (modified) (history)
  • /trunk/extensions/VisualEditor/modules/ve/es/ve.es.Node.js (modified) (history)

Diff [purge]

Index: trunk/extensions/VisualEditor/modules/ve/es/ve.es.Node.js
@@ -91,10 +91,13 @@
9292
9393 ve.Node.traverseUpstream( node, function( node ) {
9494 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+ ) {
9699 return false;
97100 }
98 - splitableNode = ve.es.DocumentNode.splitRules[ elementType ].self ? node : null
 101+ splitableNode = ve.es.DocumentNode.splitRules[ elementType ].self ? node : null;
99102 } );
100103 return splitableNode;
101104 };
Index: trunk/extensions/VisualEditor/modules/ve/es/ve.es.Content.js
@@ -16,7 +16,7 @@
1717 * @param {Object} options List of options
1818 * @param {Boolean} options.pre Line breaks should be respected
1919 * @property {jQuery} $
20 - * @property {ve.ContentModel} model
 20+ * @property {ve.ModelNode} model
2121 * @property {Array} boundaries
2222 * @property {Array} lines
2323 * @property {Integer} width

Status & tagging log