From d5b429f4d1fad1f9b83e81d2d742d43ec39bd585 Mon Sep 17 00:00:00 2001 From: Ananya Sen Date: Wed, 4 Apr 2012 15:14:33 -0700 Subject: [CR] Keep Save related menu items always enabled, if there is an open document Signed-off-by: Ananya Sen --- js/document/text-document.js | 4 ---- 1 file changed, 4 deletions(-) (limited to 'js/document') diff --git a/js/document/text-document.js b/js/document/text-document.js index 54a53999..2574b67c 100755 --- a/js/document/text-document.js +++ b/js/document/text-document.js @@ -164,11 +164,7 @@ var TextDocument = exports.TextDocument = Montage.create(Component, { needsSave: { get: function() { return this._needsSave; }, set: function(value) { - var i=0, canSaveAll=false; this._needsSave = value; - - this.application.ninja.documentController.canSave = value;//for save menu state update - this.application.ninja.documentController.canSaveAll = value;//for save menu state update..currently save all is tried to the current document only } }, -- cgit v1.2.3