Reuse former session of second split. Add destroy function that stops some timeouts.
This commit is contained in:
parent
55328f3690
commit
87003ac4ed
6 changed files with 25 additions and 5 deletions
|
|
@ -103,6 +103,7 @@ var Split = function(container, theme, splits) {
|
|||
} else {
|
||||
while (this.$splits > splits) {
|
||||
editor = this.$editors[this.$splits - 1];
|
||||
editor.destroy();
|
||||
this.$container.removeChild(editor.container);
|
||||
this.$editors.pop();
|
||||
this.$splits --;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue