mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-18 19:55:55 +00:00
7673a39878
GeneratedContentNode didn't track concurrent updates at all, so a race condition was possible: if the node was updated a second time before the first update had been rendered, the second update might render first and then be overwritten by the other one. To prevent this, we track the promise associated with the current render. If a new update is launched while a previous one is still pending we attempt to abort the old one by calling .abort() on it, and ignore any future resolution or rejection from it. Also allow rerenders based on non-model data by calling .update( { config object } ); Change-Id: I8feefd9e8fb6c41d06b8b20131e3be5e37954e83 |
||
---|---|---|
.. | ||
ve.ce.AlienNode.js | ||
ve.ce.BreakNode.js | ||
ve.ce.CenterNode.js | ||
ve.ce.DefinitionListItemNode.js | ||
ve.ce.DefinitionListNode.js | ||
ve.ce.DivNode.js | ||
ve.ce.DocumentNode.js | ||
ve.ce.GeneratedContentNode.js | ||
ve.ce.HeadingNode.js | ||
ve.ce.ImageNode.js | ||
ve.ce.InternalItemNode.js | ||
ve.ce.InternalListNode.js | ||
ve.ce.ListItemNode.js | ||
ve.ce.ListNode.js | ||
ve.ce.ParagraphNode.js | ||
ve.ce.PreformattedNode.js | ||
ve.ce.TableCaptionNode.js | ||
ve.ce.TableCellNode.js | ||
ve.ce.TableNode.js | ||
ve.ce.TableRowNode.js | ||
ve.ce.TableSectionNode.js | ||
ve.ce.TextNode.js |