kopia lustrzana https://github.com/c9/core
fix tests
rodzic
19e5f7a8aa
commit
ee57e15889
|
@ -258,6 +258,7 @@ var EditableTree = function(tree) {
|
||||||
|
|
||||||
var ace = this.ace;
|
var ace = this.ace;
|
||||||
this.ace = null;
|
this.ace = null;
|
||||||
|
ace.renderer.freeze();
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
// doing this after timeout to allow rename event focus something else
|
// doing this after timeout to allow rename event focus something else
|
||||||
var wasFocused = ace.isFocused();
|
var wasFocused = ace.isFocused();
|
||||||
|
|
|
@ -113,17 +113,16 @@ define(function(require, exports, module) {
|
||||||
|
|
||||||
ondisk[name] = 1;
|
ondisk[name] = 1;
|
||||||
|
|
||||||
|
if (orphans[path]) {
|
||||||
|
if (existing[name])
|
||||||
|
delete orphans[path];
|
||||||
|
orphanAppand.push(path);
|
||||||
|
}
|
||||||
|
|
||||||
if (existing[name])
|
if (existing[name])
|
||||||
updateNodeStat(path, stat, existing[name]);
|
updateNodeStat(path, stat, existing[name]);
|
||||||
else
|
else
|
||||||
toCreate.push(stat);
|
toCreate.push(stat);
|
||||||
|
|
||||||
if (orphans[path]) {
|
|
||||||
if (existing[name])
|
|
||||||
delete orphans[path];
|
|
||||||
else
|
|
||||||
orphanAppand.push(path);
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
Object.keys(existing).forEach(function(name) {
|
Object.keys(existing).forEach(function(name) {
|
||||||
|
|
Ładowanie…
Reference in New Issue