Skip to content

Commit

Permalink
Transformed apply() to make it work in IE8's with weird callable obje…
Browse files Browse the repository at this point in the history
…ct console methods. Fixes #21, fixes #27.
  • Loading branch information
pimterry committed Sep 18, 2013
1 parent 9014338 commit e978f8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/loglevel.js
Expand Up @@ -35,7 +35,7 @@
if (method.bind === undefined) {
if (Function.prototype.bind === undefined) {
return function() {
method.apply(console, arguments);
Function.prototype.apply.apply(method, [console, arguments]);
};
} else {
return Function.prototype.bind.call(console[methodName], console);
Expand Down

0 comments on commit e978f8b

Please sign in to comment.