Skip to content

Commit

Permalink
Make ACEView more DRY
Browse files Browse the repository at this point in the history
  • Loading branch information
faceleg committed Jan 31, 2013
1 parent d0f5e8f commit 72182da
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions ACEView/Source/ACEView.m
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,7 @@ - (void) executeScriptsWhenLoaded:(NSArray *)scripts {
}];
}
- (void) executeScriptWhenLoaded:(NSString *)script {
if ([webView isLoading]) {
[self performSelector:@selector(executeScriptWhenLoaded:) withObject:script afterDelay:0.2];
return;
}
[webView stringByEvaluatingJavaScriptFromString:script];
[self executeScriptsWhenLoaded:@[script]];
}

- (void) showFindInterface {
Expand Down

0 comments on commit 72182da

Please sign in to comment.