Skip to content

Commit

Permalink
Merge pull request karma-runner#538 from gfxmonk/console-log-apply-fix
Browse files Browse the repository at this point in the history
fix karma.js: Fix for IE's console.log's lack of `apply`
  • Loading branch information
vojtajina committed May 12, 2013
2 parents 1029bf2 + fa4b686 commit 9dde7f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static/karma.src.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ var Karma = function(socket, context, navigator, location) {

localConsole.log = function() {
contextWindow.__karma__.info({dump: Array.prototype.slice.call(arguments, 0)});
return browserConsoleLog.apply(localConsole, arguments);
return Function.prototype.apply.call(browserConsoleLog, localConsole, arguments);
};
};

Expand Down

0 comments on commit 9dde7f1

Please sign in to comment.