aboutsummaryrefslogtreecommitdiff
path: root/js/io/document/text-document.js
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-02-05 22:48:26 -0800
committerJose Antonio Marquez2012-02-05 22:48:26 -0800
commit17bda238bc6973832394c0ba8fb08da09557931e (patch)
tree4f703c7d30f01cf4cc24ba8737cab4e1beca7d38 /js/io/document/text-document.js
parent20803c71179bcffeaeaba4375bd06155d21dafe6 (diff)
parent62a5cad735a87d584272c6d4bf67328f2d4fa456 (diff)
downloadninja-17bda238bc6973832394c0ba8fb08da09557931e.tar.gz
Merge branch 'refs/heads/AnanyaFileIO' into FileIO
Diffstat (limited to 'js/io/document/text-document.js')
-rwxr-xr-xjs/io/document/text-document.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/js/io/document/text-document.js b/js/io/document/text-document.js
index a768779f..683c513c 100755
--- a/js/io/document/text-document.js
+++ b/js/io/document/text-document.js
@@ -95,6 +95,7 @@ var TextDocument = exports.TextDocument = Montage.create(baseDocumentModule.Base
95 save:{ 95 save:{
96 value:function(removeCodeMirrorDivFlag){ 96 value:function(removeCodeMirrorDivFlag){
97 this.editor.save(); 97 this.editor.save();
98 this.dirtyFlag=false;
98 if(removeCodeMirrorDivFlag === true){ 99 if(removeCodeMirrorDivFlag === true){
99 var codemirrorDiv = this.textArea.parentNode.querySelector(".CodeMirror"); 100 var codemirrorDiv = this.textArea.parentNode.querySelector(".CodeMirror");
100 if(!!codemirrorDiv){codemirrorDiv.parentNode.removeChild(codemirrorDiv);} 101 if(!!codemirrorDiv){codemirrorDiv.parentNode.removeChild(codemirrorDiv);}