aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/url_helper.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2008-06-21 14:54:10 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2008-06-21 14:54:10 -0700
commitf4ccc179530d5b9436da87d3c221dfa8fa89119a (patch)
tree6ace7c7bd35cef137e84057a566cdb97dbf5b53b /actionpack/lib/action_view/helpers/url_helper.rb
parent9a0e4437199a233105348938e490808fc0688626 (diff)
downloadrails-f4ccc179530d5b9436da87d3c221dfa8fa89119a.tar.gz
rails-f4ccc179530d5b9436da87d3c221dfa8fa89119a.tar.bz2
rails-f4ccc179530d5b9436da87d3c221dfa8fa89119a.zip
Performance: javascript helper tweaks to speed up escaping and reduce object allocations when building options strings
Diffstat (limited to 'actionpack/lib/action_view/helpers/url_helper.rb')
-rw-r--r--actionpack/lib/action_view/helpers/url_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/url_helper.rb b/actionpack/lib/action_view/helpers/url_helper.rb
index baecd304cd..d5b7255642 100644
--- a/actionpack/lib/action_view/helpers/url_helper.rb
+++ b/actionpack/lib/action_view/helpers/url_helper.rb
@@ -535,7 +535,7 @@ module ActionView
when method
"#{method_javascript_function(method, url, href)}return false;"
when popup
- popup_javascript_function(popup) + 'return false;'
+ "#{popup_javascript_function(popup)}return false;"
else
html_options["onclick"]
end