(type)
| 14982 | } |
| 14983 | |
| 14984 | function consoleLog(type) { |
| 14985 | var console = $window.console || {}, |
| 14986 | logFn = console[type] || console.log || noop; |
| 14987 | |
| 14988 | return function() { |
| 14989 | var args = []; |
| 14990 | forEach(arguments, function(arg) { |
| 14991 | args.push(formatError(arg)); |
| 14992 | }); |
| 14993 | // Support: IE 9 only |
| 14994 | // console methods don't inherit from Function.prototype in IE 9 so we can't |
| 14995 | // call `logFn.apply(console, args)` directly. |
| 14996 | return Function.prototype.apply.call(logFn, console, args); |
| 14997 | }; |
| 14998 | } |
| 14999 | }]; |
| 15000 | } |
| 15001 |
no test coverage detected