Merge pull request #1093 from MITx/bugfix/dave/pearson_compat

Don't log errors to console if there is no console (like IE8 and below).
This commit is contained in:
David Ormsbee
2012-12-01 09:18:22 -08:00

View File

@@ -18,5 +18,6 @@ class @Courseware
histg = new Histogram id, $(this).data('histogram')
catch error
histg = error
console.log(error)
if console?
console.log(error)
return histg