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 12:16:10 -05:00
parent 7ffb30d0c9
commit 3b326048f9

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