(type)
| 15556 | } |
| 15557 | |
| 15558 | function consoleLog(type) { |
| 15559 | var console = $window.console || {}, |
| 15560 | logFn = console[type] || console.log || noop; |
| 15561 | |
| 15562 | return function() { |
| 15563 | var args = []; |
| 15564 | forEach(arguments, function(arg) { |
| 15565 | args.push(formatError(arg)); |
| 15566 | }); |
| 15567 | // Support: IE 9 only |
| 15568 | // console methods don't inherit from Function.prototype in IE 9 so we can't |
| 15569 | // call `logFn.apply(console, args)` directly. |
| 15570 | return Function.prototype.apply.call(logFn, console, args); |
| 15571 | }; |
| 15572 | } |
| 15573 | }]; |
| 15574 | } |
| 15575 |
no test coverage detected