summaryrefslogtreecommitdiff
path: root/MobileCydia.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-02-20 01:09:36 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2011-02-20 01:09:36 -0800
commit781001d7dc0daae06425654cc65ac758157917dd (patch)
tree50ae28e8cbf967b76e275513568876bffafea894 /MobileCydia.mm
parent26e6829b74dd3ae2fc50dba47f6721aedb6d6b34 (diff)
Factor confirmation controller variables to a single sub-object.
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r--MobileCydia.mm11
1 files changed, 6 insertions, 5 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index bfea21c..484d0ed 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -4504,11 +4504,12 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
- (void) webView:(WebView *)view didClearWindowObject:(WebScriptObject *)window forFrame:(WebFrame *)frame {
[super webView:view didClearWindowObject:window forFrame:frame];
- [window setValue:[changes_ Cydia$webScriptObjectInContext:window] forKey:@"changes"];
- [window setValue:[issues_ Cydia$webScriptObjectInContext:window] forKey:@"issues"];
- [window setValue:[sizes_ Cydia$webScriptObjectInContext:window] forKey:@"sizes"];
-
- [window setValue:self forKey:@"queue"];
+ [window setValue:[[NSDictionary dictionaryWithObjectsAndKeys:
+ changes_, @"changes",
+ issues_, @"issues",
+ sizes_, @"sizes",
+ self, @"queue",
+ nil] Cydia$webScriptObjectInContext:window] forKey:@"cydiaConfirm"];
}
- (id) initWithDatabase:(Database *)database {