kopia lustrzana https://github.com/c9/core
amlPane.destroy must be called for last pane too
rodzic
33e8b0ca57
commit
b209b31c6d
|
@ -586,33 +586,32 @@ define(function(require, module, exports) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (next) {
|
if (next) {
|
||||||
// move all pages to another pane
|
// move all pages to another pane if there is one
|
||||||
getTabs().forEach(function(tab) {
|
getTabs().forEach(function(tab) {
|
||||||
tab.attachTo(next.cloud9pane, null, true);
|
tab.attachTo(next.cloud9pane, null, true);
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
// destroy aml element
|
||||||
|
amlPane.destroy(true, true);
|
||||||
|
|
||||||
// destroy aml element
|
// Clean up tree
|
||||||
amlPane.destroy(true, true);
|
if (last) {
|
||||||
|
var place = parent.nextSibling;
|
||||||
|
var grandpa = parent.parentNode;
|
||||||
|
parent.removeChild(last);
|
||||||
|
if (parent != options.container)
|
||||||
|
parent.destroy(true, true);
|
||||||
|
grandpa.insertBefore(last, place);
|
||||||
|
|
||||||
// Clean up tree
|
queue = [grandpa]
|
||||||
if (last) {
|
|
||||||
var place = parent.nextSibling;
|
|
||||||
var grandpa = parent.parentNode;
|
|
||||||
parent.removeChild(last);
|
|
||||||
if (parent != options.container)
|
|
||||||
parent.destroy(true, true);
|
|
||||||
grandpa.insertBefore(last, place);
|
|
||||||
|
|
||||||
queue = [grandpa]
|
var size = grandpa.$vbox ? "height" : "width";
|
||||||
|
last.setAttribute(size, parent[size]);
|
||||||
var size = grandpa.$vbox ? "height" : "width";
|
size = grandpa.$vbox ? "width" : "height";
|
||||||
last.setAttribute(size, parent[size]);
|
last.setAttribute(size, "");
|
||||||
size = grandpa.$vbox ? "width" : "height";
|
}
|
||||||
last.setAttribute(size, "");
|
else {
|
||||||
}
|
queue = [parent];
|
||||||
else {
|
|
||||||
queue = [parent];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (last && last.parentNode.localName == "bar") {
|
if (last && last.parentNode.localName == "bar") {
|
||||||
|
|
Ładowanie…
Reference in New Issue