mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 16:20:52 +00:00
Fix weird bug that was suddenly happening on the live site
When closing annotation nodes, we weren't popping them off annotationStack. Not sure where this came from, but the code was definitely bad and this fixes it. Change-Id: I6d805e9aca3778666212135f76ff34c6baacbbc8
This commit is contained in:
parent
c889292adf
commit
68c5430872
|
@ -550,6 +550,7 @@ ve.dm.Converter.prototype.getDomFromData = function( data ) {
|
|||
}
|
||||
// Close any remaining annotation nodes
|
||||
while ( domElement.veAnnotationHash !== undefined ) {
|
||||
delete annotationStack[domElement.veAnnotationHash];
|
||||
delete domElement.veAnnotationHash;
|
||||
domElement = domElement.parentNode;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue