From 7baae7136356322479b22455270abcc9e622765a Mon Sep 17 00:00:00 2001 From: Trevor Parscal Date: Fri, 24 Feb 2012 00:05:29 +0000 Subject: [PATCH] very minor fixes --- modules/ve/es/ve.es.Content.js | 2 +- modules/ve/es/ve.es.Node.js | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) 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; };