prototype: Fix Ajax.PeriodicalUpdater for compatibility with Ajax.Response. Closes #9321.
This commit is contained in:
parent
001b54865c
commit
5d3fd6f3b7
|
@ -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ć]
|
||||
|
|
|
@ -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);
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue