kopia lustrzana https://github.com/c9/core
Merge pull request +10932 from c9/fix/panel
don't crash when there is not a next panelpull/227/head
commit
e5ed5e3279
|
@ -585,11 +585,12 @@ define(function(require, module, exports) {
|
|||
next = next.selectNodes("tab|hsplitbox|vsplitbox")[op]();
|
||||
}
|
||||
|
||||
// move all pages to another pane
|
||||
getTabs().forEach(function(tab) {
|
||||
tab.attachTo(next.cloud9pane, null, true);
|
||||
});
|
||||
|
||||
if (next) {
|
||||
// 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);
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue