always load in a new instance of the edit module. It appeared as though on multiple edits (w/o refreshing page) without creating a new data model, we were always referencing stale content from the previous edit

This commit is contained in:
Chris Dodge
2012-10-02 11:06:28 -04:00
parent d108af8848
commit ad7771fe5a

View File

@@ -15,10 +15,9 @@ class CMS.Views.ModuleEdit extends Backbone.View
$component_editor: => @$el.find('.component-editor')
loadDisplay: ->
XModule.loadModule(@$el.find('.xmodule_display'))
XModule.loadModule(@$el.find('.xmodule_display'))
loadEdit: ->
if !@module
@module = XModule.loadModule(@$el.find('.xmodule_edit'))
metadata: ->