incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fil...@apache.org
Subject [5/5] ios commit: As per Beckys suggestion, iteration over watch dictionary needs to be done properly
Date Tue, 08 May 2012 19:53:39 GMT
As per Beckys suggestion, iteration over watch dictionary needs to be done properly


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/a166a1ee
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/tree/a166a1ee
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/diff/a166a1ee

Branch: refs/heads/master
Commit: a166a1ee361fb9eaf1310aeaa4f3d2ac98f7fe87
Parents: 4afae86
Author: Fil Maj <maj.fil@gmail.com>
Authored: Thu Mar 29 12:54:59 2012 -0700
Committer: Fil Maj <maj.fil@gmail.com>
Committed: Tue May 8 12:55:54 2012 -0700

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


http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/blob/a166a1ee/CordovaLib/Classes/CDVLocation.m
----------------------------------------------------------------------
diff --git a/CordovaLib/Classes/CDVLocation.m b/CordovaLib/Classes/CDVLocation.m
index 194f033..6e890c2 100755
--- a/CordovaLib/Classes/CDVLocation.m
+++ b/CordovaLib/Classes/CDVLocation.m
@@ -247,8 +247,8 @@
         [self.locationData.locationCallbacks removeAllObjects];
     }
     if (self.locationData.watchCallbacks.count > 0) {
-        for (NSString *callbackId in self.locationData.watchCallbacks) {
-            [self returnLocationInfo:callbackId];
+        for (NSString *timerId in self.locationData.watchCallbacks) {
+            [self returnLocationInfo:[self.locationData.watchCallbacks objectForKey: timerId
]];
         }
     } else {
         // No callbacks waiting on us anymore, turn off listening.


Mime
View raw message