aboutsummaryrefslogtreecommitdiff
path: root/js/document/text-document.js
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-03-28 13:58:06 -0700
committerJose Antonio Marquez2012-03-28 13:58:06 -0700
commit95249b524ada7d20abf24408a857cccec8aea19a (patch)
tree88c96e3f87729a873af7fc88379f4935e83306ed /js/document/text-document.js
parent57696598cd39d4aa31b5106cba29dd2b6d02c6d9 (diff)
parent3fd2cdb59027b3f973b9165db9db4fdd22026941 (diff)
downloadninja-95249b524ada7d20abf24408a857cccec8aea19a.tar.gz
Merge branch 'refs/heads/Ninja-Internal' into FileIO
Diffstat (limited to 'js/document/text-document.js')
-rwxr-xr-xjs/document/text-document.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/js/document/text-document.js b/js/document/text-document.js
index 88464d87..54a53999 100755
--- a/js/document/text-document.js
+++ b/js/document/text-document.js
@@ -163,7 +163,13 @@ var TextDocument = exports.TextDocument = Montage.create(Component, {
163 163
164 needsSave: { 164 needsSave: {
165 get: function() { return this._needsSave; }, 165 get: function() { return this._needsSave; },
166 set: function(value) { this._needsSave = value } 166 set: function(value) {
167 var i=0, canSaveAll=false;
168 this._needsSave = value;
169
170 this.application.ninja.documentController.canSave = value;//for save menu state update
171 this.application.ninja.documentController.canSaveAll = value;//for save menu state update..currently save all is tried to the current document only
172 }
167 }, 173 },
168 174
169 callback: { 175 callback: {