allow easier interactivity debugging (see
https://github.com/groue/GRMustache/blob/master/Guides/runtime/context_stack.md)
Showing
1 changed file
with
5 additions
and
1 deletions
@@ -258,7 +258,11 @@ RMTilePoint RMInteractiveSourceNormalizedTilePointForMapView(CGPoint point, RMMa | @@ -258,7 +258,11 @@ RMTilePoint RMInteractiveSourceNormalizedTilePointForMapView(CGPoint point, RMMa | ||
258 | NSMutableDictionary *infoObject = [NSJSONSerialization JSONObjectWithData:[[interactivityDictionary objectForKey:@"keyJSON"] dataUsingEncoding:NSUTF8StringEncoding] | 258 | NSMutableDictionary *infoObject = [NSJSONSerialization JSONObjectWithData:[[interactivityDictionary objectForKey:@"keyJSON"] dataUsingEncoding:NSUTF8StringEncoding] |
259 | options:NSJSONReadingMutableContainers | 259 | options:NSJSONReadingMutableContainers |
260 | error:nil]; | 260 | error:nil]; |
261 | - | 261 | + |
262 | +#ifdef DEBUG | ||
263 | + [GRMustache preventNSUndefinedKeyExceptionAttack]; | ||
264 | +#endif | ||
265 | + | ||
262 | switch (outputType) | 266 | switch (outputType) |
263 | { | 267 | { |
264 | case RMInteractiveSourceOutputTypeTeaser: | 268 | case RMInteractiveSourceOutputTypeTeaser: |
-
Please register or login to post a comment