fix salesforce newfile plugin

pull/297/merge
nightwing 2017-06-02 12:31:21 +04:00
rodzic 1cfd183e2d
commit 661166ea43
1 zmienionych plików z 6 dodań i 2 usunięć

Wyświetl plik

@ -138,8 +138,12 @@ define(function(require, exports, module) {
toRemove.push(name);
});
if (!toCreate.length && !toRemove.length && !orphanAppand.length)
return;
if (!toCreate.length && !toRemove.length && !orphanAppand.length) {
// emit readdir event for empty folders, since other plugins may use that
// to display create new file buttons
if (node.children && node.children.length)
return;
}
var wasOpen = startUpdate(node);
node.children = null;