From 781001d7dc0daae06425654cc65ac758157917dd Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sun, 20 Feb 2011 01:09:36 -0800 Subject: [PATCH] Factor confirmation controller variables to a single sub-object. --- MobileCydia.mm | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/MobileCydia.mm b/MobileCydia.mm index bfea21c9..484d0ede 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 { -- 2.45.2