diff options
Diffstat (limited to 'UICaboodle/BrowserView.m')
-rw-r--r-- | UICaboodle/BrowserView.m | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/UICaboodle/BrowserView.m b/UICaboodle/BrowserView.m index 08dd698..0f95a04 100644 --- a/UICaboodle/BrowserView.m +++ b/UICaboodle/BrowserView.m @@ -71,7 +71,9 @@ } + (NSString *) webScriptNameForSelector:(SEL)selector { - if (selector == @selector(getPackageById:)) + if (selector == @selector(close)) + return @"close"; + else if (selector == @selector(getPackageById:)) return @"getPackageById"; else if (selector == @selector(setAutoPopup:)) return @"setAutoPopup"; @@ -161,6 +163,10 @@ return value; } +- (void) close { + [indirect_ close]; +} + - (void) setAutoPopup:(BOOL)popup { [indirect_ setAutoPopup:popup]; } @@ -517,6 +523,10 @@ [book_ close]; } +- (void) close { + [book_ close]; +} + - (void) webView:(WebView *)sender didClearWindowObject:(WebScriptObject *)window forFrame:(WebFrame *)frame { [window setValue:cydia_ forKey:@"cydia"]; } |