Merge pull request +10932 from c9/fix/panel

don't crash when there is not a next panel
pull/227/head
Nikolai Onken 2015-12-15 10:40:42 +01:00
commit e5ed5e3279
1 zmienionych plików z 6 dodań i 5 usunięć

Wyświetl plik

@ -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);