aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorelijahe2013-11-20 16:18:36 (EST)
committerSilenio Quarti2013-11-21 10:16:50 (EST)
commitc5ddfb2d7a227a5669297aaacc965e22afcd8f76 (patch)
tree09c9cbe2562068e42ba2fa6593a4791b754db831
parentca362547251502ccb27ed960d005119a50059ee4 (diff)
downloadorg.eclipse.orion.client-c5ddfb2d7a227a5669297aaacc965e22afcd8f76.zip
org.eclipse.orion.client-c5ddfb2d7a227a5669297aaacc965e22afcd8f76.tar.gz
org.eclipse.orion.client-c5ddfb2d7a227a5669297aaacc965e22afcd8f76.tar.bz2
Bug 422188 - [client] OutlineExplorer is not being destroyed
--Signed-off-by: Elijah El-Haddad <elijahe@ca.ibm.com>
-rw-r--r--bundles/org.eclipse.orion.client.ui/web/orion/outliner.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/bundles/org.eclipse.orion.client.ui/web/orion/outliner.js b/bundles/org.eclipse.orion.client.ui/web/orion/outliner.js
index c66fa82..62edaef 100644
--- a/bundles/org.eclipse.orion.client.ui/web/orion/outliner.js
+++ b/bundles/org.eclipse.orion.client.ui/web/orion/outliner.js
@@ -342,6 +342,10 @@ define([
this.generateOutline();
},
destroyViewMode: function(provider) {
+ if (this.explorer) {
+ this.explorer.destroy();
+ this.explorer = null;
+ }
},
/**
* Called when the inputManager's contentType has changed, so we need to look up the capable outline providers.