Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix issue with explorer when changing project

  • Loading branch information...
commit 92a9b1c5cb9528e78acd29c30c4ab0a51e246d81 1 parent e8ef36c
Per Thulin authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 js/Explorer.js
8 js/Explorer.js
View
@@ -139,7 +139,15 @@ function Explorer(happyEdit) {
}
};
+ self.reset = function() {
+ self.$view.innerHTML = '';
+ self.columns = [];
+ self.activeColumn = null;
+ self.columnIndex = 0;
+ };
+
happyEdit.eventSystem.addEventListener('filesystem_loaded', function(fs) {
+ self.reset();
self.addColumn('.');
self.selectIndex(0);
});
Please sign in to comment.
Something went wrong with that request. Please try again.