Reuse former session of second split. Add destroy function that stops some timeouts.

This commit is contained in:
Julian Viereck 2011-05-20 23:30:09 +02:00
commit 87003ac4ed
6 changed files with 25 additions and 5 deletions

View file

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