Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Friend-LGA committed Apr 9, 2017
1 parent a485036 commit 3d9ea37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions LGAlertView/LGAlertView.m
Original file line number Diff line number Diff line change
Expand Up @@ -3025,7 +3025,7 @@ - (void)destructiveAction:(id)sender {

- (void)actionActionAtIndex:(NSUInteger)index title:(NSString *)title {
if (self.actionHandler) {
self.actionHandler(self, title, index);
self.actionHandler(self, index, title);
}

if (self.delegate && [self.delegate respondsToSelector:@selector(alertView:clickedButtonAtIndex:title:)]) {
Expand All @@ -3042,7 +3042,7 @@ - (void)actionActionAtIndex:(NSUInteger)index title:(NSString *)title {
if (self.dismissOnAction) {
[self dismissAnimated:self.shouldDismissAnimated completionHandler:^{
if (self.didDismissAfterActionHandler) {
self.didDismissAfterActionHandler(self, title, index);
self.didDismissAfterActionHandler(self, index, title);
}

if (self.delegate && [self.delegate respondsToSelector:@selector(alertView:didDismissAfterClickedButtonAtIndex:title:)]) {
Expand Down

0 comments on commit 3d9ea37

Please sign in to comment.