Skip to content

Commit

Permalink
Adds a workaround for consoleLog to work on IE8
Browse files Browse the repository at this point in the history
  • Loading branch information
pjparra committed Dec 4, 2013
1 parent 8c2ed24 commit bcbf940
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ng/log.js
Expand Up @@ -141,7 +141,8 @@ function $LogProvider(){
var console = $window.console || {},
logFn = console[type] || console.log || noop;

if (logFn.apply) {
// IE8 breaks if we try to call apply on logFn, which happens to be an object
if (!isObject(logFn) && logFn.apply) {
return function() {
var args = [];
forEach(arguments, function(arg) {
Expand Down

1 comment on commit bcbf940

@pjparra
Copy link
Owner Author

@pjparra pjparra commented on bcbf940 Dec 5, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The original bug seems to occur only on IE11 in IE8 mode.

Please sign in to comment.