| author | cobled@FRVILN0H401086.emea.lucent.com |
| Thu, 24 Jan 2013 16:58:55 +0100 | |
| changeset 27 | 8ca7f2cea729 |
| permissions | -rw-r--r-- |
| 27 | 1 |
// Avoid `console` errors in browsers that lack a console. |
2 |
if (!(window.console && console.log)) { |
|
3 |
(function() { |
|
4 |
var noop = function() {}; |
|
5 |
var methods = ['assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error', 'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log', 'markTimeline', 'profile', 'profileEnd', 'markTimeline', 'table', 'time', 'timeEnd', 'timeStamp', 'trace', 'warn']; |
|
6 |
var length = methods.length; |
|
7 |
var console = window.console = {}; |
|
8 |
while (length--) { |
|
9 |
console[methods[length]] = noop; |
|
10 |
} |
|
11 |
}()); |
|
12 |
} |
|
13 |
||
14 |
// Place any jQuery/helper plugins in here. |