(type)
| 14947 | } |
| 14948 | |
| 14949 | function consoleLog(type) { |
| 14950 | var console = $window.console || {}, |
| 14951 | logFn = console[type] || console.log || noop; |
| 14952 | |
| 14953 | return function() { |
| 14954 | var args = []; |
| 14955 | forEach(arguments, function(arg) { |
| 14956 | args.push(formatError(arg)); |
| 14957 | }); |
| 14958 | // Support: IE 9 only |
| 14959 | // console methods don't inherit from Function.prototype in IE 9 so we can't |
| 14960 | // call `logFn.apply(console, args)` directly. |
| 14961 | return Function.prototype.apply.call(logFn, console, args); |
| 14962 | }; |
| 14963 | } |
| 14964 | }]; |
| 14965 | } |
| 14966 |
no test coverage detected