CGI-Application-Search
view release on metacpan or search on metacpan
templates/prototype_javascript.tmpl view on Meta::CPAN
353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384
this.start();
},
start: function() {
this.options.onComplete = this.updateComplete.
bind
(this);
this.onTimerEvent();
},
stop: function() {
this.updater.onComplete = undefined;
clearTimeout(this.timer);
(this.onComplete || Ajax.emptyFunction).apply(this, arguments);
},
updateComplete: function(request) {
if
(this.options.decay) {
this.decay = (request.responseText == this.lastText ?
this.decay * this.options.decay : 1);
this.lastText = request.responseText;
}
this.timer = setTimeout(this.onTimerEvent.
bind
(this),
this.decay * this.frequency * 1000);
},
onTimerEvent: function() {
this.updater = new Ajax.Updater(this.container, this.url, this.options);
}
});
document.getElementsByClassName = function(className) {
var children = document.getElementsByTagName(
'*'
) || document.all;
( run in 0.369 second using v1.01-cache-2.11-cpan-95122f20152 )