# File lib/action_view/helpers/javascript_helper.rb, line 104
      def link_to_function(name, function, html_options={})
        ActiveSupport::Deprecation.warn("link_to_function is deprecated and will be removed from Rails 4.0")

        onclick = "#{"#{html_options[:onclick]}; " if html_options[:onclick]}#{function}; return false;"
        href = html_options[:href] || '#'

        content_tag(:a, name, html_options.merge(:href => href, :onclick => onclick))
      end