diff options
author | Brad Leege <bleege@gmail.com> | 2015-03-27 15:40:54 -0500 |
---|---|---|
committer | Brad Leege <bleege@gmail.com> | 2015-03-27 15:40:54 -0500 |
commit | 5c6809fc367416268794be0445ae17f23bb2cb8f (patch) | |
tree | 36667d4bb3fc5c77ef639155a6d97c0ffa65bb1a | |
parent | 8dc42df41115735f939243b2d77633f013794ecd (diff) | |
parent | 2f92fa9125abce77a4473f1b1ebbd2040b4ce73b (diff) | |
download | qtlocation-mapboxgl-5c6809fc367416268794be0445ae17f23bb2cb8f.tar.gz |
Merge pull request #1146 from mapbox/1144-back-to-boolean
Back To Bool
-rw-r--r-- | platform/ios/MGLMapboxEvents.m | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/platform/ios/MGLMapboxEvents.m b/platform/ios/MGLMapboxEvents.m index d3015056b3..5478936026 100644 --- a/platform/ios/MGLMapboxEvents.m +++ b/platform/ios/MGLMapboxEvents.m @@ -223,22 +223,6 @@ NSString *const MGLEventGestureRotateStart = @"Rotation"; // use of +pushEvent:withAttributes:. // - (void) pushEvent:(NSString *)event withAttributes:(NSDictionary *)attributeDictionary { - // conve+rt any BOOL types to string values written out like JS - NSMutableDictionary *newAttributeDictionary = [NSMutableDictionary dictionaryWithCapacity:[attributeDictionary count]]; - NSString *key; - NSObject *value; - for (key in attributeDictionary) { - value = attributeDictionary[key]; - if ([value isKindOfClass:[NSNumber class]]) { - // if of character type, treat as bool - if (strncmp([(NSNumber *)value objCType], "c", 1) == 0) { - value = ([(NSNumber *)value boolValue] ? @"true" : @"false"); - } - } - newAttributeDictionary[key] = value; - } - attributeDictionary = newAttributeDictionary; - __weak MGLMapboxEvents *weakSelf = self; dispatch_async(_serialQueue, ^{ |