(type)
| 14780 | } |
| 14781 | |
| 14782 | function consoleLog(type) { |
| 14783 | var console = $window.console || {}, |
| 14784 | logFn = console[type] || console.log || noop; |
| 14785 | |
| 14786 | return function() { |
| 14787 | var args = []; |
| 14788 | forEach(arguments, function(arg) { |
| 14789 | args.push(formatError(arg)); |
| 14790 | }); |
| 14791 | // Support: IE 9 only |
| 14792 | // console methods don't inherit from Function.prototype in IE 9 so we can't |
| 14793 | // call `logFn.apply(console, args)` directly. |
| 14794 | return Function.prototype.apply.call(logFn, console, args); |
| 14795 | }; |
| 14796 | } |
| 14797 | }]; |
| 14798 | } |
| 14799 |
no test coverage detected