From 57d81aea8d128232a7850b8c4c75381c34635aa3 Mon Sep 17 00:00:00 2001 From: Corey Johnson Date: Sat, 27 Aug 2011 19:13:34 -0700 Subject: [PATCH] i still love you web console! --- src/bootstrap.coffee | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/bootstrap.coffee b/src/bootstrap.coffee index e7daa6055..2a9a7d3c6 100644 --- a/src/bootstrap.coffee +++ b/src/bootstrap.coffee @@ -1,6 +1,10 @@ # This file is the first thing loaded on startup. -console.log = (thing) -> OSX.NSLog thing.toString() if thing? +console.originalLog = console.log +console.log = (thing) -> + OSX.NSLog thing.toString() if thing? + console.originalLog(thing) + # load require() function root = OSX.NSBundle.mainBundle.resourcePath