Skip to content

Commit

Permalink
Fixes Wizcorp#248 - phonegap-2.4.0 terminates in IOS
Browse files Browse the repository at this point in the history
With 2.4.0, NSJSONSerialization is used, thus objects returned are immutable: http://developer.apple.com/library/ios/#documentation/Foundation/Reference/NSJSONSerialization_Class/Reference/Reference.html

Any NSDictionaries from the arguments should be considered immutable.
  • Loading branch information
shazron committed Feb 21, 2013
1 parent 4993bdf commit 2830753
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion native/ios/FacebookConnectPlugin.m
Expand Up @@ -281,7 +281,7 @@ - (void) showDialog:(CDVInvokedUrlCommand*)command
// Save the callback ID
self.dialogCallbackId = command.callbackId;

NSMutableDictionary *options = [command.arguments lastObject];
NSMutableDictionary *options = [[command.arguments lastObject] mutableCopy];
NSString* method = [[NSString alloc] initWithString:[options objectForKey:@"method"]];
if ([options objectForKey:@"method"]) {
[options removeObjectForKey:@"method"];
Expand Down

0 comments on commit 2830753

Please sign in to comment.