incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shaz...@apache.org
Subject [1/2] ios commit: Fixed CB-497 - online and offline events are not being fired in 1.6.0
Date Fri, 13 Apr 2012 14:57:25 GMT
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 <shazron@apache.org>
Authored: Fri Apr 13 07:07:20 2012 -0700
Committer: Shazron Abdullah <shazron@apache.org>
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');"];
 	}
 }
 


Mime
View raw message