Skip to content

Commit

Permalink
Fixed browser built-in undo issue
Browse files Browse the repository at this point in the history
  • Loading branch information
benweet committed Dec 15, 2014
1 parent 848164f commit edfd8a1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion public/res/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit edfd8a1

Please sign in to comment.