From 9ab693af9b19c5ffa0866781c8b65bc9a56c3848 Mon Sep 17 00:00:00 2001 From: nightwing Date: Thu, 26 Nov 2015 00:29:31 +0400 Subject: [PATCH] do not break tree menu if c9.readonly is undefined --- plugins/c9.ide.tree/tree.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/plugins/c9.ide.tree/tree.js b/plugins/c9.ide.tree/tree.js index 477b0540..6ba0063e 100644 --- a/plugins/c9.ide.tree/tree.js +++ b/plugins/c9.ide.tree/tree.js @@ -341,15 +341,6 @@ define(function(require, exports, module) { } }), 300, plugin); - mnuFilesSettings.on("prop.visible", function(e) { - - }, plugin); - - // todo - winFilesViewer.on("prop.visible", function(e) { - - }, plugin); - // After an item in the tree has been clicked on, this saves that // selection in the settings model // @todo optimize this with a timeout if needed @@ -612,7 +603,7 @@ define(function(require, exports, module) { if (!hasNetwork && !item.enableOffline) { disabled = true; } - else if (item.write == c9.readonly) { + else if (item.write && c9.readonly) { disabled = true; } else if (match == "clipboard") {