kopia lustrzana https://github.com/c9/core
fix inconsistent event sequence when deleting a file from the tree
rodzic
592a36bcbb
commit
b6db4698a8
|
@ -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);
|
||||
|
|
Ładowanie…
Reference in New Issue