diff options
author | Sam Stephenson <sam@37signals.com> | 2005-11-21 01:54:36 +0000 |
---|---|---|
committer | Sam Stephenson <sam@37signals.com> | 2005-11-21 01:54:36 +0000 |
commit | f212c88315a15922df408395ba3d4b85187019f5 (patch) | |
tree | a3de55c8741aad0d863e0d67644cf75d52355001 /actionpack/lib/action_view | |
parent | a0293c80f0ad06de4b80f50cd47868ff50aa7590 (diff) | |
download | rails-f212c88315a15922df408395ba3d4b85187019f5.tar.gz rails-f212c88315a15922df408395ba3d4b85187019f5.tar.bz2 rails-f212c88315a15922df408395ba3d4b85187019f5.zip |
Pass multiple arguments to Element.show and Element.hide in JavaScriptGenerator instead of using iterators
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3116 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_view')
-rw-r--r-- | actionpack/lib/action_view/helpers/prototype_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_view/helpers/prototype_helper.rb b/actionpack/lib/action_view/helpers/prototype_helper.rb index 1ba607a90f..94de4613ce 100644 --- a/actionpack/lib/action_view/helpers/prototype_helper.rb +++ b/actionpack/lib/action_view/helpers/prototype_helper.rb @@ -435,12 +435,12 @@ module ActionView # Shows hidden DOM elements with the given +ids+. def show(*ids) - record "#{ids.inspect}.each(Element.show)" + record "Element.show(#{ids.map {|id| id.inspect} * ', '})" end # Hides the visible DOM elements with the given +ids+. def hide(*ids) - record "#{ids.inspect}.each(Element.hide)" + record "Element.hide(#{ids.map {|id| id.inspect} * ', '})" end private |