You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by fi...@apache.org on 2012/05/08 21:53:39 UTC
[5/5] ios commit: As per Beckys suggestion,
iteration over watch dictionary needs to be done properly
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 <ma...@gmail.com>
Authored: Thu Mar 29 12:54:59 2012 -0700
Committer: Fil Maj <ma...@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.