diff options
author | Struan Donald <struan@exo.org.uk> | 2013-03-25 15:57:26 +0000 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2013-03-25 17:13:56 +0000 |
commit | 73e3d5d4077636487f07be1beff3b2714ee2b276 (patch) | |
tree | 4b4529f36ab68ec7c2a9e51bcfafbd57d9336cc8 /iPhone/CordovaLib/Classes/CDVCommandQueue.m | |
parent | e5d7b3b62be5025f31c39b50ea3955398bc7cf40 (diff) |
upgrade to phonegap 2.5 for ios
Diffstat (limited to 'iPhone/CordovaLib/Classes/CDVCommandQueue.m')
-rwxr-xr-x | iPhone/CordovaLib/Classes/CDVCommandQueue.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/iPhone/CordovaLib/Classes/CDVCommandQueue.m b/iPhone/CordovaLib/Classes/CDVCommandQueue.m index d88a730..a8a58b7 100755 --- a/iPhone/CordovaLib/Classes/CDVCommandQueue.m +++ b/iPhone/CordovaLib/Classes/CDVCommandQueue.m @@ -87,14 +87,14 @@ for (NSUInteger i = 0; i < [_queue count]; ++i) { // Parse the returned JSON array. - NSArray* commandBatch = [[_queue objectAtIndex:i] cdvjk_mutableObjectFromJSONString]; + NSArray* commandBatch = [[_queue objectAtIndex:i] JSONObject]; // Iterate over and execute all of the commands. for (NSArray* jsonEntry in commandBatch) { CDVInvokedUrlCommand* command = [CDVInvokedUrlCommand commandFromJson:jsonEntry]; if (![self execute:command]) { #ifdef DEBUG - NSString* commandJson = [jsonEntry cdvjk_JSONString]; + NSString* commandJson = [jsonEntry JSONString]; static NSUInteger maxLogLength = 1024; NSString* commandString = ([commandJson length] > maxLogLength) ? [NSString stringWithFormat:@"%@[...]", [commandJson substringToIndex:maxLogLength]] : |