Skip to content

Commit

Permalink
Method typo
Browse files Browse the repository at this point in the history
  • Loading branch information
rickfillion committed May 26, 2011
1 parent 358c412 commit f8ae041
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Source/Framework/Classes/MKMapView.m
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ - (void)insertOverlay:(id < MKOverlay >)overlay atIndex:(NSUInteger)index
return;
}

WebScriptObject *overlayScriptObject = [overlayView overlayScriptObjectFromMapSriptObject:webScriptObject];
WebScriptObject *overlayScriptObject = [overlayView overlayScriptObjectFromMapScriptObject:webScriptObject];
if ([overlayScriptObject isKindOfClass:[WebUndefined class]])
{
NSLog(@"Error creating internal representation of overlay view for overlay: %@", overlay);
Expand Down Expand Up @@ -426,7 +426,7 @@ - (void)addAnnotation:(id < MKAnnotation >)annotation
return;
}

WebScriptObject *annotationScriptObject = [annotationView overlayScriptObjectFromMapSriptObject:webScriptObject];
WebScriptObject *annotationScriptObject = [annotationView overlayScriptObjectFromMapScriptObject:webScriptObject];
if ([annotationScriptObject isKindOfClass:[WebUndefined class]])
{
NSLog(@"Error creating internal representation of annotation view for annotation: %@", annotation);
Expand Down Expand Up @@ -610,7 +610,7 @@ - (void)locationManager:(CLLocationManager *)manager didFailWithError:(NSError *
- (void)webView:(WebView *)sender didClearWindowObject:(WebScriptObject *)windowScriptObject forFrame:(WebFrame *)frame
{
[windowScriptObject setValue:windowScriptObject forKey:@"WindowScriptObject"];
[windowScriptObject setValue:self forKey:@"MKMapView"];
//[windowScriptObject setValue:self forKey:@"MKMapView"];
}

- (void)webView:(WebView *)sender didStartProvisionalLoadForFrame:(WebFrame *)frame
Expand Down
2 changes: 1 addition & 1 deletion Source/Framework/Classes/MKView.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@


- (void)draw:(WebScriptObject *)overlayScriptObject;
- (WebScriptObject *)overlayScriptObjectFromMapSriptObject:(WebScriptObject *)mapScriptObject;
- (WebScriptObject *)overlayScriptObjectFromMapScriptObject:(WebScriptObject *)mapScriptObject;

@end
2 changes: 1 addition & 1 deletion Source/Framework/Classes/MKView.m
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ - (void)draw:(WebScriptObject *)overlayScriptObject
}
}

- (WebScriptObject *)overlayScriptObjectFromMapSriptObject:(WebScriptObject *)mapScriptObject
- (WebScriptObject *)overlayScriptObjectFromMapScriptObject:(WebScriptObject *)mapScriptObject
{
NSString *script = [NSString stringWithFormat:@"new %@()", [self viewPrototypeName]];
WebScriptObject *object = (WebScriptObject *)[mapScriptObject evaluateWebScript:script];
Expand Down

0 comments on commit f8ae041

Please sign in to comment.