very minor fixes

This commit is contained in:
Trevor Parscal 2012-02-24 00:05:29 +00:00
parent 26ab5f7408
commit 7baae71363
Notes: Gabriel Wicke 2012-02-27 16:40:01 +00:00
2 changed files with 6 additions and 3 deletions

View file

@ -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

View file

@ -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;
};