From e3760fb52d45076cf83c1884f9c9aaaa84371dff Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Fri, 19 Aug 2011 01:48:51 -0700 Subject: [PATCH] init --- HTML/atomicity.coffee | 2 +- HTML/osx.coffee | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/HTML/atomicity.coffee b/HTML/atomicity.coffee index 6be604427..71131035d 100644 --- a/HTML/atomicity.coffee +++ b/HTML/atomicity.coffee @@ -1,4 +1,4 @@ -console.log = OSX.NSLog +Chrome.init() editor = ace.edit "editor" editor.setTheme "ace/theme/twilight" diff --git a/HTML/osx.coffee b/HTML/osx.coffee index 225702e8b..02bc36c53 100644 --- a/HTML/osx.coffee +++ b/HTML/osx.coffee @@ -4,6 +4,9 @@ canon = require 'pilot/canon' # Handles the UI chrome Chrome = + init: -> + console.log = OSX.NSLog + # Returns null or a file path. openPanel: -> panel = OSX.NSOpenPanel.openPanel