Skip to content

Commit

Permalink
Add fallback console variable
Browse files Browse the repository at this point in the history
Versions of IE won't reliably expose the console variable.
  • Loading branch information
tiliv committed Nov 18, 2013
1 parent 887f4b8 commit 655e5ea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions datatableview/static/js/datatableview.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
/* For datatable view */
$(function(){
if (!window.console) {
console = {log: function() {}};
}
var options_name_map = {
'sortable': 'bSortable',
'sorting': 'aaSorting',
Expand Down
2 changes: 1 addition & 1 deletion datatableview/static/js/datatableview.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 655e5ea

Please sign in to comment.