X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/8ad03264f1a47afe5108b1252ec3ec139dc16d9a..05cab23f88a48c20cde89c7003afe3fa3d2e016d:/project/static/js/app.js diff --git a/project/static/js/app.js b/project/static/js/app.js index e8875c93..9de3c7f0 100644 --- a/project/static/js/app.js +++ b/project/static/js/app.js @@ -3,6 +3,14 @@ var editor; var panel_hooks; +// prevent a console.log from blowing things up if we are on a browser that +// does not support it +if (typeof console === 'undefined') { + window.console = {} ; + console.log = console.info = console.warn = console.error = function(){}; +} + + (function(){ // Classes var initializing = false, fnTest = /xyz/.test(function(){xyz;}) ? /\b_super\b/ : /.*/; @@ -173,5 +181,4 @@ Editor.Object = Class.extend({ Editor.Object._lastGuid = 0; - var panels = [];