mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
Set Controller earlier so it can be used while loading pages.
This commit is contained in:
committed by
Pieter de Bie
parent
09cc80522d
commit
0724dc8eaa
+4
-1
@@ -43,11 +43,14 @@
|
||||
|
||||
# pragma mark Delegate methods
|
||||
|
||||
- (void) webView:(id) v didFinishLoadForFrame:(id) frame
|
||||
- (void)webView:(WebView *)sender didStartProvisionalLoadForFrame:(WebFrame *)frame
|
||||
{
|
||||
id script = [view windowScriptObject];
|
||||
[script setValue: self forKey:@"Controller"];
|
||||
}
|
||||
|
||||
- (void) webView:(id) v didFinishLoadForFrame:(id) frame
|
||||
{
|
||||
finishedLoading = YES;
|
||||
if ([self respondsToSelector:@selector(didLoad)])
|
||||
[self performSelector:@selector(didLoad)];
|
||||
|
||||
Reference in New Issue
Block a user