diff --git a/modules/ve/es/ve.es.Content.js b/modules/ve/es/ve.es.Content.js index 19df22eba3..f92e514930 100644 --- a/modules/ve/es/ve.es.Content.js +++ b/modules/ve/es/ve.es.Content.js @@ -16,7 +16,7 @@ * @param {Object} options List of options * @param {Boolean} options.pre Line breaks should be respected * @property {jQuery} $ - * @property {ve.ContentModel} model + * @property {ve.ModelNode} model * @property {Array} boundaries * @property {Array} lines * @property {Integer} width diff --git a/modules/ve/es/ve.es.Node.js b/modules/ve/es/ve.es.Node.js index afc790834a..7f7b533bcd 100644 --- a/modules/ve/es/ve.es.Node.js +++ b/modules/ve/es/ve.es.Node.js @@ -91,10 +91,13 @@ ve.es.Node.getSplitableNode = function( node ) { ve.Node.traverseUpstream( node, function( node ) { var elementType = node.model.getElementType(); - if ( splitableNode != null && ve.es.DocumentNode.splitRules[ elementType ].children === true ) { + if ( + splitableNode !== null && + ve.es.DocumentNode.splitRules[ elementType ].children === true + ) { return false; } - splitableNode = ve.es.DocumentNode.splitRules[ elementType ].self ? node : null + splitableNode = ve.es.DocumentNode.splitRules[ elementType ].self ? node : null; } ); return splitableNode; };