Skip to content

Instantly share code, notes, and snippets.

@Yuffster
Created August 22, 2008 00:16
Show Gist options
  • Save Yuffster/6672 to your computer and use it in GitHub Desktop.
Save Yuffster/6672 to your computer and use it in GitHub Desktop.
Request.Persistent = new Class({
Extends: Request,
onStateChange: function(e) {
var patt = this.laststr;
this.laststr = this.xhr.responseText;
this.fireEvent('onUpdate', this.laststr.replace(patt, ''));
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment