jenkins-bot has submitted this change and it was merged.

Change subject: Fix bug in ContentBranchNode that caused renderContents to be 
called not enough
......................................................................


Fix bug in ContentBranchNode that caused renderContents to be called not enough

Change-Id: Idff61d405404eccb43c0f36cbfc7eba5af30bad9
---
M modules/ve/ce/ve.ce.ContentBranchNode.js
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Catrope: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/modules/ve/ce/ve.ce.ContentBranchNode.js 
b/modules/ve/ce/ve.ce.ContentBranchNode.js
index cbd9ba8..540d962 100644
--- a/modules/ve/ce/ve.ce.ContentBranchNode.js
+++ b/modules/ve/ce/ve.ce.ContentBranchNode.js
@@ -32,7 +32,7 @@
        // 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();
                }

-- 
To view, visit https://gerrit.wikimedia.org/r/59965
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Idff61d405404eccb43c0f36cbfc7eba5af30bad9
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Inez <[email protected]>
Gerrit-Reviewer: Catrope <[email protected]>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to