Commit 0c68ba8b by Chris Dodge

dispose of when we close the editor

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