]> git.saurik.com Git - cydia.git/commitdiff
Rename cydia.divert() to cydia.addInternalRedirect().
authorJay Freeman (saurik) <saurik@saurik.com>
Tue, 1 Mar 2011 22:34:00 +0000 (14:34 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Mon, 7 Mar 2011 10:41:34 +0000 (02:41 -0800)
MobileCydia.mm

index e26cd8774ea5fe82192ff1633732a22d05cc3028..9ab0c64ab9e67f557b22ab4bcb15125c62f39258 100644 (file)
@@ -3970,14 +3970,14 @@ static NSMutableSet *Diversions_;
     if (false);
     else if (selector == @selector(addBridgedHost:))
         return @"addBridgedHost";
+    else if (selector == @selector(addInternalRedirect::))
+        return @"addInternalRedirect";
     else if (selector == @selector(addPipelinedHost:scheme:))
         return @"addPipelinedHost";
     else if (selector == @selector(addTrivialSource:))
         return @"addTrivialSource";
     else if (selector == @selector(close))
         return @"close";
-    else if (selector == @selector(divert::))
-        return @"divert";
     else if (selector == @selector(du:))
         return @"du";
     else if (selector == @selector(stringWithFormat:arguments:))
@@ -4054,7 +4054,7 @@ static NSMutableSet *Diversions_;
     return [feature isEqualToString:@"window.open"];
 }
 
-- (void) divert:(NSString *)from :(NSString *)to {
+- (void) addInternalRedirect:(NSString *)from :(NSString *)to {
     [CydiaWebViewController performSelectorOnMainThread:@selector(addDiversion:) withObject:[[[Diversion alloc] initWithFrom:from to:to] autorelease] waitUntilDone:NO];
 }