|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
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.