aboutsummaryrefslogtreecommitdiff
path: root/js/controllers
diff options
context:
space:
mode:
authorJose Antonio Marquez Russo2012-02-18 19:40:43 -0800
committerJose Antonio Marquez Russo2012-02-18 19:40:43 -0800
commitc466bcf61351b50f678100ca14096f71a0a71bd0 (patch)
tree4ac283e0e7724e5ede21c1a1e97d121033578c72 /js/controllers
parente23708721a71ca4c71365f5f8e8ac7d6113926db (diff)
parent8fdce771bfcf662cf1acc16d45e4361ffd06c53e (diff)
downloadninja-c466bcf61351b50f678100ca14096f71a0a71bd0.tar.gz
Merge pull request #10 from ananyasen/FileIO
FileIO branch pull request
Diffstat (limited to 'js/controllers')
-rwxr-xr-xjs/controllers/document-controller.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/js/controllers/document-controller.js b/js/controllers/document-controller.js
index 1f339fe7..57289448 100755
--- a/js/controllers/document-controller.js
+++ b/js/controllers/document-controller.js
@@ -118,8 +118,10 @@ var DocumentController = exports.DocumentController = Montage.create(Component,
118 //TODO: Check for appropiate structures 118 //TODO: Check for appropiate structures
119 handleExecuteSave: { 119 handleExecuteSave: {
120 value: function(event) { 120 value: function(event) {
121 //Text and HTML document classes should return the same save object for fileSave 121 if(!!this.activeDocument){
122 this.application.ninja.ioMediator.fileSave(this.activeDocument.save(), this.fileSaveResult.bind(this)); 122 //Text and HTML document classes should return the same save object for fileSave
123 this.application.ninja.ioMediator.fileSave(this.activeDocument.save(), this.fileSaveResult.bind(this));
124 }
123 } 125 }
124 }, 126 },
125 //////////////////////////////////////////////////////////////////// 127 ////////////////////////////////////////////////////////////////////
@@ -459,5 +461,5 @@ var DocumentController = exports.DocumentController = Montage.create(Component,
459 value: function() { 461 value: function() {
460 return "userDocument_" + (this._iframeCounter++); 462 return "userDocument_" + (this._iframeCounter++);
461 } 463 }
462 } 464 }
463}); 465});