This commit is contained in:
Fabian Jakobs 2010-12-15 17:32:06 +01:00
commit ac923b5813
2 changed files with 3 additions and 2 deletions

View file

@ -66,7 +66,7 @@ if (typeof(window) === 'undefined') {
// For each of the console functions, copy them if they exist, stub if not
NAMES.forEach(function(name) {
if (window.console && window.console[name]) {
exports[name] = window.console[name].bind(window.console);
exports[name] = Function.prototype.bind.call(window.console[name], window.console);
} else {
exports[name] = noop;
}