Inez has uploaded a new change for review.
https://gerrit.wikimedia.org/r/59965
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(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/VisualEditor
refs/changes/65/59965/1
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: newchange
Gerrit-Change-Id: Idff61d405404eccb43c0f36cbfc7eba5af30bad9
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Inez <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits