Permalink
Browse files

Fix monkey-patch; use apply on console and pass arguments

  • Loading branch information...
1 parent 0069cae commit 5915a02e553980d5ce5b864ea86d9c64440232a6 @gbraad committed Jan 8, 2015
Showing with 2 additions and 2 deletions.
  1. +2 −2 js/console.js
View
@@ -5,5 +5,5 @@ console.log = function(msg) {
var output = document.getElementById("prompt-output");
if(output)
output.innerHTML = msg;
- real_console_log(msg);
-}
+ real_console_log.apply(console, arguments);
+}

0 comments on commit 5915a02

Please sign in to comment.