fnp
/
redakcja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9a96182
)
Definiowanie console, jeżeli nie zostało wcześniej zdefiniowane (nie chcemy, żeby...
author
zuber
<marek@stepniowski.com>
Thu, 1 Oct 2009 13:40:52 +0000
(15:40 +0200)
committer
zuber
<marek@stepniowski.com>
Thu, 1 Oct 2009 13:40:52 +0000
(15:40 +0200)
project/static/js/app.js
patch
|
blob
|
history
diff --git
a/project/static/js/app.js
b/project/static/js/app.js
index
e8875c9
..
2210654
100644
(file)
--- a/
project/static/js/app.js
+++ b/
project/static/js/app.js
@@
-3,6
+3,14
@@
var editor;
var panel_hooks;
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/ : /.*/;
(function(){
// Classes
var initializing = false, fnTest = /xyz/.test(function(){xyz;}) ? /\b_super\b/ : /.*/;