diff options
author | Dustin L. Howett <dustin@howett.net> | 2010-10-05 18:07:13 -0400 |
---|---|---|
committer | Dustin L. Howett <dustin@howett.net> | 2010-10-05 18:07:13 -0400 |
commit | 719d6c2f7d9313210e285eb92e80b77606a28493 (patch) | |
tree | 2adef5ff58c548258649d023e281240a1abfc874 /UICaboodle | |
parent | 19f0811d048f0f0eef58452b118a96075ed0c764 (diff) |
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.
Diffstat (limited to 'UICaboodle')
-rw-r--r-- | UICaboodle/BrowserView.mm | 6 |
1 files changed, 5 insertions, 1 deletions
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 { |