prototype: Fix Ajax.PeriodicalUpdater for compatibility with Ajax.Response. Closes #9321.

This commit is contained in:
Sam Stephenson 2007-08-21 16:18:07 +00:00
parent 001b54865c
commit 5d3fd6f3b7
2 changed files with 5 additions and 3 deletions

View File

@ -1,5 +1,7 @@
*SVN*
* Fix Ajax.PeriodicalUpdater for compatibility with Ajax.Response. Closes #9321. [kampers]
* Ensure that classes always have an initialize method. [Mislav Marohnić]
* Update Template, Selector, Ajax.*, and ObjectRange classes to use the new class system. [Mislav Marohnić]

View File

@ -362,12 +362,12 @@ Ajax.PeriodicalUpdater = Class.create(Ajax.Base, {
(this.onComplete || Prototype.emptyFunction).apply(this, arguments);
},
updateComplete: function(responseText) {
updateComplete: function(response) {
if (this.options.decay) {
this.decay = (responseText == this.lastText ?
this.decay = (response.responseText == this.lastText ?
this.decay * this.options.decay : 1);
this.lastText = responseText;
this.lastText = response.responseText;
}
this.timer = this.onTimerEvent.bind(this).delay(this.decay * this.frequency);
},