Fix Issue#41 resulting from a reference to active session being returned even after closing all the editor instances

This commit is contained in:
Lorefnon
2012-10-09 03:53:56 +05:30
parent 6e75deb3b2
commit ae620b9ee4

View File

@@ -75,6 +75,7 @@ var editor = {
exterminate: function(){
$('#editor-region').html('').append($("<div>").attr('id', 'editor'));
this.instances = [];
this.active_instance = null;
},
remove_session: function(session, replacement_session){