diff options
author | Sam Stephenson <sam@37signals.com> | 2005-10-26 22:07:27 +0000 |
---|---|---|
committer | Sam Stephenson <sam@37signals.com> | 2005-10-26 22:07:27 +0000 |
commit | f15819e8f0cece48ccd5117a37cf6d37374d1bb1 (patch) | |
tree | cb1105f01e88132643458b35774f68b3093eec97 /actionpack/lib/action_view/helpers/javascripts | |
parent | d6461bf9f5e82195d27eb198bcaef2b5a92464b8 (diff) | |
download | rails-f15819e8f0cece48ccd5117a37cf6d37374d1bb1.tar.gz rails-f15819e8f0cece48ccd5117a37cf6d37374d1bb1.tar.bz2 rails-f15819e8f0cece48ccd5117a37cf6d37374d1bb1.zip |
Bump to Prototype 1.4.0_rc2
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2755 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_view/helpers/javascripts')
-rw-r--r-- | actionpack/lib/action_view/helpers/javascripts/prototype.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/actionpack/lib/action_view/helpers/javascripts/prototype.js b/actionpack/lib/action_view/helpers/javascripts/prototype.js index 7fa1c7e33b..0ba70a77da 100644 --- a/actionpack/lib/action_view/helpers/javascripts/prototype.js +++ b/actionpack/lib/action_view/helpers/javascripts/prototype.js @@ -1,4 +1,4 @@ -/* Prototype JavaScript framework, version 1.4.0_rc1 +/* Prototype JavaScript framework, version 1.4.0_rc2 * (c) 2005 Sam Stephenson <sam@conio.net> * * THIS FILE IS AUTOMATICALLY GENERATED. When sending patches, please diff @@ -11,7 +11,7 @@ /*--------------------------------------------------------------------------*/ var Prototype = { - Version: '1.4.0_rc1', + Version: '1.4.0_rc2', emptyFunction: function() {}, K: function(x) {return x} @@ -787,7 +787,7 @@ Ajax.PeriodicalUpdater.prototype = Object.extend(new Ajax.Base(), { document.getElementsByClassName = function(className, parentElement) { var children = ($(parentElement) || document.body).getElementsByTagName('*'); return $A(children).inject([], function(elements, child) { - if (Element.hasClassName(child, className)) + if (child.className.match(new RegExp("(^|\\s)" + className + "(\\s|$)"))) elements.push(child); return elements; }); @@ -1131,7 +1131,7 @@ var Form = { }, getElements: function(form) { - var form = $(form); + form = $(form); var elements = new Array(); for (tagName in Form.Element.Serializers) { @@ -1143,7 +1143,7 @@ var Form = { }, getInputs: function(form, typeName, name) { - var form = $(form); + form = $(form); var inputs = form.getElementsByTagName('input'); if (!typeName && !name) @@ -1179,7 +1179,7 @@ var Form = { }, focusFirstElement: function(form) { - var form = $(form); + form = $(form); var elements = Form.getElements(form); for (var i = 0; i < elements.length; i++) { var element = elements[i]; @@ -1197,7 +1197,7 @@ var Form = { Form.Element = { serialize: function(element) { - var element = $(element); + element = $(element); var method = element.tagName.toLowerCase(); var parameter = Form.Element.Serializers[method](element); @@ -1207,7 +1207,7 @@ Form.Element = { }, getValue: function(element) { - var element = $(element); + element = $(element); var method = element.tagName.toLowerCase(); var parameter = Form.Element.Serializers[method](element); |