Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git CalabashJS/CalabashJSLib/LPWebQuery.m CalabashJS/CalabashJSLib/LPWebQuery.m
- index a9593c1..a7e49d7 100644
- --- CalabashJS/CalabashJSLib/LPWebQuery.m
- +++ CalabashJS/CalabashJSLib/LPWebQuery.m
- @@ -6,6 +6,10 @@
- // Copyright (c) 2012 Trifork. All rights reserved.
- //
- +#ifndef DEBUG
- +#define DEBUG 0
- +#endif
- +
- #import "LPWebQuery.h"
- #import "LPJSONUtils.h"
- @implementation LPWebQuery
- @@ -63,8 +67,8 @@
- CGPoint screenCenter = CGPointMake(webViewPoint.x + center.x, webViewPoint.y + center.y);
- if (!CGPointEqualToPoint(CGPointZero, center) && [webView pointInside:center withEvent:nil])
- {
- - NSDictionary *centerDict = (NSDictionary*)CGPointCreateDictionaryRepresentation(screenCenter);
- - [dres setValue:[centerDict autorelease] forKey:@"center"];
- + NSDictionary *centerDict = (__bridge_transfer NSDictionary*)CGPointCreateDictionaryRepresentation(screenCenter);
- + [dres setValue:centerDict forKey:@"center"];
- [dres setValue:webView forKey:@"webView"];
- [result addObject:dres];
- if (DEBUG)
Add Comment
Please, Sign In to add comment