From 719d6c2f7d9313210e285eb92e80b77606a28493 Mon Sep 17 00:00:00 2001 From: "Dustin L. Howett" Date: Tue, 5 Oct 2010 18:07:13 -0400 Subject: Fix the default custom button behaviour for commercial packages. My understanding of the previous system was flawed enough to cause this- now, the custom button's behaviour is in _customButtonClicked, and the default customButtonClicked calls it instead of reloadButtonClicked. This is based on the original {_,__}rightButtonClicked methods. --- UICaboodle/BrowserView.mm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'UICaboodle/BrowserView.mm') diff --git a/UICaboodle/BrowserView.mm b/UICaboodle/BrowserView.mm index 1615795..50c31e4 100644 --- a/UICaboodle/BrowserView.mm +++ b/UICaboodle/BrowserView.mm @@ -1592,13 +1592,17 @@ static Class $UIWebBrowserView; [self reloadURL]; } +- (void) _customButtonClicked { + [self reloadButtonClicked]; +} + - (void) customButtonClicked { #if !AlwaysReload if (function_ != nil) [self callFunction:function_]; else #endif - [self reloadButtonClicked]; + [self _customButtonClicked]; } - (void) setPageActive:(BOOL)active { -- cgit v1.2.3