web console is where it's at

(this also fixes the reported source of a console.log
in the web inspector)
This commit is contained in:
Chris Wanstrath 2011-08-30 00:15:55 -07:00
parent e1714c72e7
commit 1cd9f98478

View File

@ -1,11 +1,5 @@
# This file is the first thing loaded on startup.
console.originalLog = console.log
console.log = (thing) ->
OSX.NSLog thing.toString() if thing?
console.originalLog thing
# load require() function
root = OSX.NSBundle.mainBundle.resourcePath
code = OSX.NSString.stringWithContentsOfFile path = "#{root}/src/require.js"