Merge pull request #1134 from MITx/fix/cdodge/code-mirror-on-course-info

dispose of  when we close the editor
This commit is contained in:
chrisndodge
2012-12-12 11:10:43 -08:00

View File

@@ -158,6 +158,7 @@ CMS.Views.ClassInfoUpdateView = Backbone.View.extend({
self.$currentPost.find('form').hide();
window.$modalCover.unbind('click');
window.$modalCover.hide();
this.$codeMirror = null;
},
// Dereferencing from events to screen elements
@@ -271,5 +272,6 @@ CMS.Views.ClassInfoHandoutsView = Backbone.View.extend({
this.$form.hide();
window.$modalCover.unbind('click');
window.$modalCover.hide();
this.$codeMirror = null;
}
});