aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/action_view/helpers/javascripts/prototype.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_view/helpers/javascripts/prototype.js b/actionpack/lib/action_view/helpers/javascripts/prototype.js
index 5f2f9edb9c..f03a817c60 100644
--- a/actionpack/lib/action_view/helpers/javascripts/prototype.js
+++ b/actionpack/lib/action_view/helpers/javascripts/prototype.js
@@ -58,8 +58,8 @@ Try = {
Toggle = {
display: function() {
- for (var i = 0; i < elements.length; i++) {
- var element = $(elements[i]);
+ for (var i = 0; i < arguments.length; i++) {
+ var element = $(arguments[i]);
element.style.display =
(element.style.display == 'none' ? '' : 'none');
}