Commit a3b4747b authored by yann300's avatar yann300

don't display explorer at all if no file

parent fa7f8151
......@@ -410,9 +410,6 @@ function expandPathTo (li) {
fileExplorer.prototype.init = function () {
var files = this.files.listAsTree()
if (!Object.keys(files).length) {
files[this.files.type] = {} // default
}
var element = this.treeView.render(files)
element.className = css.fileexplorer
element.events = this.events
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment