From 92088a920b471e70c4bd26058660761c53094db4 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 26 Mar 2005 23:43:29 +0000 Subject: Effects can just be used through the callbacks git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1014 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- railties/html/javascripts/prototype.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'railties/html/javascripts/prototype.js') diff --git a/railties/html/javascripts/prototype.js b/railties/html/javascripts/prototype.js index 18027b3e91..5042e3304d 100644 --- a/railties/html/javascripts/prototype.js +++ b/railties/html/javascripts/prototype.js @@ -197,19 +197,13 @@ Ajax.Updater.prototype = (new Ajax.Base()).extend({ }, updateContent: function() { - this.container.innerHTML = this.request.transport.responseText; - - if (this.options.insertion) { + if (!this.options.insertion) { this.container.innerHTML = this.request.transport.responseText; } else { new this.options.insertion(this.container, this.request.transport.responseText); } - if (this.options.effect) { - new this.options.effect(this.container); - } - if (this.onComplete) { setTimeout((function() {this.onComplete(this.request)}).bind(this), 10); } -- cgit v1.2.3