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

Change-Id: Idff61d405404eccb43c0f36cbfc7eba5af30bad9
This commit is contained in:
Inez Korczyński 2013-04-18 16:11:59 -07:00
parent 151c325c0d
commit a13713e3a4

View file

@ -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();
}