fix inconsistent event sequence when deleting a file from the tree

pull/117/merge
nightwing 2015-07-09 10:31:25 +04:00
rodzic 592a36bcbb
commit b6db4698a8
1 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -131,7 +131,11 @@ define(function(require, module, exports) {
function removeTab(e) {
if (!e.error) {
var tab = findTab(e.path);
tab && tab.unload();
if (tab) {
tab.document.meta.$ignoreSave = true;
tab.close();
delete tab.document.meta.$ignoreSave;
}
}
}
fs.on("afterUnlink", removeTab);