cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shaz...@apache.org
Subject [7/9] ios commit: Change _state after creating error string
Date Tue, 19 May 2015 23:21:18 GMT
Change _state after creating error string


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

Branch: refs/heads/4.0.x
Commit: 94a4cb2d686ac080f7d0a7b69e85b68c6046eb63
Parents: d302e8a
Author: Connor Pearson <cjp822@gmail.com>
Authored: Wed May 13 11:31:06 2015 -0400
Committer: Connor Pearson <cjp822@gmail.com>
Committed: Wed May 13 11:31:06 2015 -0400

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


http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/94a4cb2d/CordovaLib/Classes/CDVWebViewDelegate.m
----------------------------------------------------------------------
diff --git a/CordovaLib/Classes/CDVWebViewDelegate.m b/CordovaLib/Classes/CDVWebViewDelegate.m
index 514827e..387b605 100644
--- a/CordovaLib/Classes/CDVWebViewDelegate.m
+++ b/CordovaLib/Classes/CDVWebViewDelegate.m
@@ -251,10 +251,10 @@ static NSString *stripFragment(NSString* url)
 
                 default:
                     {
-                        _loadCount = 0;
-                        _state = STATE_WAITING_FOR_LOAD_START;
                         NSString* description = [NSString stringWithFormat:@"CDVWebViewDelegate:
Navigation started when state=%ld", (long)_state];
                         NSLog(@"%@", description);
+                        _loadCount = 0;
+                        _state = STATE_WAITING_FOR_LOAD_START;
                         if ([_delegate respondsToSelector:@selector(webView:didFailLoadWithError:)])
{
                             NSDictionary* errorDictionary = @{NSLocalizedDescriptionKey :
description};
                             NSError* error = [[NSError alloc] initWithDomain:@"CDVWebViewDelegate"
code:1 userInfo:errorDictionary];


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message