diff --git a/modules/ve/ce/ve.ce.ContentBranchNode.js b/modules/ve/ce/ve.ce.ContentBranchNode.js index 674f825a85..f5cb3d4015 100644 --- a/modules/ve/ce/ve.ce.ContentBranchNode.js +++ b/modules/ve/ce/ve.ce.ContentBranchNode.js @@ -24,6 +24,13 @@ ve.ce.ContentBranchNode = function VeCeContentBranchNode( model, $element ) { var lastTransaction; // Events + // Main purpose of code below is to increase performance by ensuring that renderContents() is + // called exactly once after transaction is processed. Case when childUpdate event is received + // multiple times is for instance when entire paragraph with multiple nodes inside it + // (e.g.
123