From: zuber <marek@stepniowski.com>
Date: Thu, 1 Oct 2009 13:40:52 +0000 (+0200)
Subject: Definiowanie console, jeżeli nie zostało wcześniej zdefiniowane (nie chcemy, żeby... 
X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/3913c541b2e25e10d9c80feef9d32b80d2bad82b?hp=9a96182c20b31868159f4ddd25bbb46abc4173e3

Definiowanie console, jeżeli nie zostało wcześniej zdefiniowane (nie chcemy, żeby użytkownikom bez Fiebuga/Safari nie działały strony).
---

diff --git a/project/static/js/app.js b/project/static/js/app.js
index e8875c93..2210654b 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/ : /.*/;