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) {
|
||||
// move all pages to another pane
|
||||
// move all pages to another pane if there is one
|
||||
getTabs().forEach(function(tab) {
|
||||
tab.attachTo(next.cloud9pane, null, true);
|
||||
});
|
||||
|
||||
// destroy aml element
|
||||
amlPane.destroy(true, true);
|
||||
}
|
||||
// destroy aml element
|
||||
amlPane.destroy(true, true);
|
||||
|
||||
// Clean up tree
|
||||
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
|
||||
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]);
|
||||
size = grandpa.$vbox ? "width" : "height";
|
||||
last.setAttribute(size, "");
|
||||
}
|
||||
else {
|
||||
queue = [parent];
|
||||
}
|
||||
queue = [grandpa]
|
||||
|
||||
var size = grandpa.$vbox ? "height" : "width";
|
||||
last.setAttribute(size, parent[size]);
|
||||
size = grandpa.$vbox ? "width" : "height";
|
||||
last.setAttribute(size, "");
|
||||
}
|
||||
else {
|
||||
queue = [parent];
|
||||
}
|
||||
|
||||
if (last && last.parentNode.localName == "bar") {
|
||||
|
|
Ładowanie…
Reference in New Issue