Updated Branches: refs/heads/master f97fa5f29 -> 7588deb79
Fixed CB-497 - online and offline events are not being fired in 1.6.0 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/32e6f9b7 Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/tree/32e6f9b7 Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/diff/32e6f9b7 Branch: refs/heads/master Commit: 32e6f9b7f1c8b5209b0848c384e8ce0c3ec84bf9 Parents: f97fa5f Author: Shazron Abdullah <[email protected]> Authored: Fri Apr 13 07:07:20 2012 -0700 Committer: Shazron Abdullah <[email protected]> Committed: Fri Apr 13 07:56:49 2012 -0700 ---------------------------------------------------------------------- CordovaLib/Classes/CDVConnection.m | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/blob/32e6f9b7/CordovaLib/Classes/CDVConnection.m ---------------------------------------------------------------------- diff --git a/CordovaLib/Classes/CDVConnection.m b/CordovaLib/Classes/CDVConnection.m index f3bd758..902fab2 100644 --- a/CordovaLib/Classes/CDVConnection.m +++ b/CordovaLib/Classes/CDVConnection.m @@ -100,9 +100,9 @@ NetworkStatus status = [self.internetReach currentReachabilityStatus]; BOOL online = (status == ReachableViaWiFi) || (status == ReachableViaWWAN); if (online) { - [super writeJavascript:@"Cordova.fireDocumentEvent('online');"]; + [super writeJavascript:@"cordova.fireDocumentEvent('online');"]; } else { - [super writeJavascript:@"Cordova.fireDocumentEvent('offline');"]; + [super writeJavascript:@"cordova.fireDocumentEvent('offline');"]; } }
