Skip to content
This repository has been archived by the owner on Nov 27, 2019. It is now read-only.

Commit

Permalink
Add undo manager
Browse files Browse the repository at this point in the history
  • Loading branch information
frabcus committed Apr 2, 2014
1 parent d7d6c87 commit 822dbfa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions http/code.js
Expand Up @@ -90,6 +90,7 @@ var set_loaded_data = function(data) {
clear_alerts()
set_editor_mode(data)
editor.setValue(data)
editor.getSession().getUndoManager().reset() // or else the user can undo the setValue
update_dirty(false)
done_initial_load()
}
Expand Down

0 comments on commit 822dbfa

Please sign in to comment.