From 72edcd332d07ce10d730b35272fc6c15de37264f Mon Sep 17 00:00:00 2001 From: nightwing Date: Mon, 5 Jan 2015 00:34:25 +0400 Subject: [PATCH] tweak mode_creator --- tool/mode_creator.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/tool/mode_creator.js b/tool/mode_creator.js index e79c54c6..7a2aea59 100644 --- a/tool/mode_creator.js +++ b/tool/mode_creator.js @@ -53,7 +53,6 @@ util.bindDropdown("doc", function(value) { doclist.loadDoc(value, function(session) { if (session) { editor2.setSession(session); - session.getUndoManager().markClean(); updateSaveButtonState(null, editor2); } }); @@ -81,7 +80,6 @@ util.bindDropdown(modeEl, function(value) { }); editor1.setSession(modeSessions[value]); - session.getUndoManager().markClean(); updateSaveButtonState(null, editor1); schedule(); });