mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-25 03:08:42 +00:00
Fix bug in ContentBranchNode that caused renderContents to be called not enough
Change-Id: Idff61d405404eccb43c0f36cbfc7eba5af30bad9
This commit is contained in:
parent
151c325c0d
commit
a13713e3a4
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue