This commit is contained in:
Corey Johnson & Nathan Sobo
2011-12-15 10:01:11 -08:00
parent 583d0d749c
commit 3309549dc5
2 changed files with 5 additions and 3 deletions

View File

@@ -5,11 +5,11 @@
#import <WebKit/WebKit.h>
@interface AtomController ()
- (void)createWebView;
@property (nonatomic, retain) JSCocoa *jscocoa;
@property (nonatomic, retain, readwrite) NSString *url;
@property (nonatomic, retain, readwrite) NSString *bootstrapScript;
- (void)createWebView;
@end
@interface WebView (Atom)

View File

@@ -8,7 +8,6 @@ _ = require 'underscore'
# window:load - Same as window.onLoad. Final event of app startup.
windowAdditions =
url: $atomController.url?.toString()
onerror: -> @showConsole true
startup: ->
if not @resource = atom.router.open @url
@@ -35,6 +34,9 @@ windowAdditions =
save: ->
@resource.save()
onerror: ->
@showConsole true
handleKeyEvent: ->
atom.keybinder.handleEvent arguments...