Commit 84b08b5e by Chris Dodge

call remove() on CodeMirror

parent 0c68ba8b
......@@ -158,6 +158,8 @@ CMS.Views.ClassInfoUpdateView = Backbone.View.extend({
self.$currentPost.find('form').hide();
window.$modalCover.unbind('click');
window.$modalCover.hide();
if (this.$codeMirror != null)
this.$codeMirror.remove();
this.$codeMirror = null;
},
......@@ -272,6 +274,8 @@ CMS.Views.ClassInfoHandoutsView = Backbone.View.extend({
this.$form.hide();
window.$modalCover.unbind('click');
window.$modalCover.hide();
if (this.$codeMirror != null)
this.$codeMirror.remove();
this.$codeMirror = null;
}
});
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment