From a13713e3a45126437a8ddd86dfa684f779c29d95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Inez=20Korczyn=CC=81ski?= Date: Thu, 18 Apr 2013 16:11:59 -0700 Subject: [PATCH] Fix bug in ContentBranchNode that caused renderContents to be called not enough Change-Id: Idff61d405404eccb43c0f36cbfc7eba5af30bad9 --- modules/ve/ce/ve.ce.ContentBranchNode.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ve/ce/ve.ce.ContentBranchNode.js b/modules/ve/ce/ve.ce.ContentBranchNode.js index cbd9ba8907..540d962a68 100644 --- a/modules/ve/ce/ve.ce.ContentBranchNode.js +++ b/modules/ve/ce/ve.ce.ContentBranchNode.js @@ -32,7 +32,7 @@ ve.ce.ContentBranchNode = function VeCeContentBranchNode( model, $element ) { // have in mind that this transaction here is not being used in any other way than just as // a flag to figure out if renderContents should be executed or not. this.on( 'childUpdate', ve.bind( function( transaction ) { - if ( lastTransaction !== transaction ) { + if ( !lastTransaction || lastTransaction !== transaction ) { lastTransaction = transaction; this.renderContents(); }