(type)
| 15621 | } |
| 15622 | |
| 15623 | function consoleLog(type) { |
| 15624 | var console = $window.console || {}, |
| 15625 | logFn = console[type] || console.log || noop; |
| 15626 | |
| 15627 | return function() { |
| 15628 | var args = []; |
| 15629 | forEach(arguments, function(arg) { |
| 15630 | args.push(formatError(arg)); |
| 15631 | }); |
| 15632 | // Support: IE 9 only |
| 15633 | // console methods don't inherit from Function.prototype in IE 9 so we can't |
| 15634 | // call `logFn.apply(console, args)` directly. |
| 15635 | return Function.prototype.apply.call(logFn, console, args); |
| 15636 | }; |
| 15637 | } |
| 15638 | }]; |
| 15639 | } |
| 15640 |
no test coverage detected