Commit babdd6e0 by kimth

Remove render from capa constructor

parent 8210bfdf
......@@ -5,7 +5,7 @@ class @Problem
@id = @el.data('problem-id')
@element_id = @el.attr('id')
@url = @el.data('url')
@render()
#@render()
$: (selector) ->
$(selector, @el)
......
......@@ -10,7 +10,10 @@
return
try
new window[moduleType](element)
xmodule = new window[moduleType](element)
if moduleType == 'Problem'
console.log('XModule.loadModule: Rendering problem')
#xmodule.render()
catch error
console.error "Unable to load #{moduleType}: #{error.message}" if console
......
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