From 56951e9961054f0f70c094c552c7965fea90be66 Mon Sep 17 00:00:00 2001 From: ichuang Date: Thu, 6 Sep 2012 11:18:00 -0400 Subject: [PATCH] put try-catch around histogram coffeescript code --- lms/static/coffee/src/courseware.coffee | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lms/static/coffee/src/courseware.coffee b/lms/static/coffee/src/courseware.coffee index 1a8910bb28..096094ead9 100644 --- a/lms/static/coffee/src/courseware.coffee +++ b/lms/static/coffee/src/courseware.coffee @@ -14,4 +14,9 @@ class @Courseware XModule.loadModules('display') $('.course-content .histogram').each -> id = $(this).attr('id').replace(/histogram_/, '') - new Histogram id, $(this).data('histogram') + try + histg = new Histogram id, $(this).data('histogram') + catch error + histg = error + console.log(error) + return histg