mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
very minor fixes
This commit is contained in:
parent
26ab5f7408
commit
7baae71363
Notes:
Gabriel Wicke
2012-02-27 16:40:01 +00:00
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue