Files
edx-platform/lms/static/coffee/src/courseware.coffee
2015-09-23 13:13:18 -04:00

22 lines
458 B
CoffeeScript

class @Courseware
@prefix: ''
constructor: ->
Logger.bind()
@render()
@start: ->
new Courseware
render: ->
XBlock.initializeBlocks($('.course-content'))
$('.course-content .histogram').each ->
id = $(this).attr('id').replace(/histogram_/, '')
try
histg = new Histogram id, $(this).data('histogram')
catch error
histg = error
if console?
console.log(error)
return histg