diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2008-06-23 23:41:21 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-06-23 23:41:21 -0700 |
commit | b40947432540ad29abacaad9d9254bf70048190d (patch) | |
tree | c103285eea3b85d11583b8c2d42ceefbd4e19c90 /actionpack/lib/action_view/helpers/javascript_helper.rb | |
parent | 290e1e2fc53d80165cc876491ec0cbe18be376cf (diff) | |
download | rails-b40947432540ad29abacaad9d9254bf70048190d.tar.gz rails-b40947432540ad29abacaad9d9254bf70048190d.tar.bz2 rails-b40947432540ad29abacaad9d9254bf70048190d.zip |
link_to_function and button_to_function shouldn't modify their options hashes
Diffstat (limited to 'actionpack/lib/action_view/helpers/javascript_helper.rb')
-rw-r--r-- | actionpack/lib/action_view/helpers/javascript_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_view/helpers/javascript_helper.rb b/actionpack/lib/action_view/helpers/javascript_helper.rb index 31571de6c4..f89b6c2f70 100644 --- a/actionpack/lib/action_view/helpers/javascript_helper.rb +++ b/actionpack/lib/action_view/helpers/javascript_helper.rb @@ -80,7 +80,7 @@ module ActionView # return false;">Show me more</a> # def link_to_function(name, *args, &block) - html_options = args.extract_options!.symbolize_keys! + html_options = args.extract_options!.symbolize_keys function = block_given? ? update_page(&block) : args[0] || '' onclick = "#{"#{html_options[:onclick]}; " if html_options[:onclick]}#{function}; return false;" @@ -106,7 +106,7 @@ module ActionView # page[:details].visual_effect :toggle_slide # end def button_to_function(name, *args, &block) - html_options = args.extract_options!.symbolize_keys! + html_options = args.extract_options!.symbolize_keys function = block_given? ? update_page(&block) : args[0] || '' onclick = "#{"#{html_options[:onclick]}; " if html_options[:onclick]}#{function};" |