From 6e73a8a4424af6f3c43f949fa4a76175225ab94f Mon Sep 17 00:00:00 2001 From: Corey Johnson Date: Sat, 3 Sep 2011 10:38:04 -0700 Subject: [PATCH] clean up inspector creator --- src/osx.coffee | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/osx.coffee b/src/osx.coffee index 678a339cf..276563412 100644 --- a/src/osx.coffee +++ b/src/osx.coffee @@ -35,9 +35,8 @@ Chrome = else throw "I DON'T KNOW HOW TO DEAL WITH #{position}" - inspector: (webView) -> - webView ?= WindowController.webView - @_inspector ?= OSX.WebInspector.alloc.initWithWebView webView + inspector:-> + @_inspector ?= WindowController.webView.inspector # path - Optional. The String path to the file to base it on. createWindow: (path) ->