Fixed browser built-in undo issue

This commit is contained in:
benweet 2014-12-15 21:49:51 +00:00
parent 848164fdf1
commit edfd8a1603

View File

@ -1073,8 +1073,10 @@ define([
else {
// Remove outdated sections
sectionsToRemove.forEach(function(section) {
// section can be already removed
// section may be already removed
section.elt.parentNode === contentElt && contentElt.removeChild(section.elt);
// To detect sections that come back with built-in undo
section.elt.generated = false;
});
if(insertBeforeSection !== undefined) {