]> git.saurik.com Git - cydia.git/blobdiff - UICaboodle/BrowserView.m
I hate subtle issues.
[cydia.git] / UICaboodle / BrowserView.m
index 08dd698b131b76f7ff789a9d496ca2104b07859a..0f95a049e2efe19be8d336b138a561d3b58cb9c4 100644 (file)
@@ -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";
     return value;
 }
 
+- (void) close {
+    [indirect_ close];
+}
+
 - (void) setAutoPopup:(BOOL)popup {
     [indirect_ setAutoPopup:popup];
 }
     [book_ close];
 }
 
+- (void) close {
+    [book_ close];
+}
+
 - (void) webView:(WebView *)sender didClearWindowObject:(WebScriptObject *)window forFrame:(WebFrame *)frame {
     [window setValue:cydia_ forKey:@"cydia"];
 }