Last change
on this file since 76712b2 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
296 bytes
|
Line | |
---|
1 | // sigh... life is hard
|
---|
2 | if (!global.console) {
|
---|
3 | console = {}
|
---|
4 | }
|
---|
5 |
|
---|
6 | var fns = ['log', 'error', 'trace'];
|
---|
7 | for (var i=0 ; i<fns.length ; ++i) {
|
---|
8 | var fn = fns[i];
|
---|
9 | if (!console[fn]) {
|
---|
10 | console[fn] = function() {};
|
---|
11 | }
|
---|
12 | }
|
---|
13 |
|
---|
14 | if (!Array.isArray) {
|
---|
15 | Array.isArray = require('isarray');
|
---|
16 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.