Updated Branches:
  refs/heads/master ddc14b1e3 -> 56697f7a8

[CB-1824] SIGABRT when view loads - reason: '-[__NSCFBoolean isEqualToString:]: 
unrecognized selector


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/commit/56697f7a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/tree/56697f7a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/diff/56697f7a

Branch: refs/heads/master
Commit: 56697f7a807f5699498638d4008c33958e09d268
Parents: ddc14b1
Author: Shazron Abdullah <[email protected]>
Authored: Wed Nov 7 14:11:32 2012 -0800
Committer: Shazron Abdullah <[email protected]>
Committed: Wed Nov 7 14:11:32 2012 -0800

----------------------------------------------------------------------
 CordovaLib/Classes/CDVViewController.m |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/blob/56697f7a/CordovaLib/Classes/CDVViewController.m
----------------------------------------------------------------------
diff --git a/CordovaLib/Classes/CDVViewController.m 
b/CordovaLib/Classes/CDVViewController.m
index a47d649..a8e20bc 100644
--- a/CordovaLib/Classes/CDVViewController.m
+++ b/CordovaLib/Classes/CDVViewController.m
@@ -216,8 +216,8 @@
     /*
      * Fire up CDVLocalStorage to work-around WebKit storage limitations: on 
all iOS 5.1+ versions for local-only backups, but only needed on iOS 5.1 for 
cloud backup.
      */
-    if (IsAtLeastiOSVersion(@"5.1") && (([backupWebStorage 
isEqualToString:@"local"]) ||
-            ([backupWebStorage isEqualToString:@"cloud"] && 
!IsAtLeastiOSVersion(@"6.0")))) {
+    if (IsAtLeastiOSVersion(@"5.1") && (([backupWebStorageType 
isEqualToString:@"local"]) ||
+            ([backupWebStorageType isEqualToString:@"cloud"] && 
!IsAtLeastiOSVersion(@"6.0")))) {
         [self registerPlugin:[[CDVLocalStorage alloc] 
initWithWebView:self.webView settings:[NSDictionary 
dictionaryWithObjectsAndKeys:
                     @"backupType", backupWebStorageType, nil]] 
withClassName:NSStringFromClass([CDVLocalStorage class])];
     }

Reply via email to