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:
Catrope 2012-08-06 13:51:51 -07:00
parent c889292adf
commit 68c5430872

View file

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