aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/javascripts/effects.js
diff options
context:
space:
mode:
authorThomas Fuchs <thomas@fesch.at>2006-03-09 09:59:29 +0000
committerThomas Fuchs <thomas@fesch.at>2006-03-09 09:59:29 +0000
commit130001c377e7abf17ea2f4f856cab30882a60f92 (patch)
tree5ab77da8250ccdf1e19d4ee5679ddfa52564ce17 /actionpack/lib/action_view/helpers/javascripts/effects.js
parent57565b350609449f17013baea2fbd7e20f393522 (diff)
downloadrails-130001c377e7abf17ea2f4f856cab30882a60f92.tar.gz
rails-130001c377e7abf17ea2f4f856cab30882a60f92.tar.bz2
rails-130001c377e7abf17ea2f4f856cab30882a60f92.zip
Update to latest script.aculo.us trunk, fixes possible issue with Effect.Appear on IE
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3824 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_view/helpers/javascripts/effects.js')
-rw-r--r--actionpack/lib/action_view/helpers/javascripts/effects.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/actionpack/lib/action_view/helpers/javascripts/effects.js b/actionpack/lib/action_view/helpers/javascripts/effects.js
index 3abb0eed04..c1befe5397 100644
--- a/actionpack/lib/action_view/helpers/javascripts/effects.js
+++ b/actionpack/lib/action_view/helpers/javascripts/effects.js
@@ -86,9 +86,12 @@ Element.childrenWithClassName = function(element, className) {
}
Element.forceRerendering = function(element) {
- var n = document.createTextNode(' ');
- $(element).appendChild(n);
- Element.remove(n);
+ try {
+ element = $(element);
+ var n = document.createTextNode(' ');
+ element.appendChild(n);
+ element.removeChild(n);
+ } catch(e) {}
}
Array.prototype.call = function() {