Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function(open, send) {
- XMLHttpRequest.prototype.open = function(method, url, async, user, pass) {
- this.addEventListener("readystatechange", function() {
- if(this.readyState === 4 {
- // code
- }
- }, false);
- open.call(this, method, url, async, user, pass);
- };
- XMLHttpRequest.prototype.send = function(params) {
- send.call(this, params);
- }
- })(XMLHttpRequest.prototype.open, XMLHttpRequest.prototype.send);
Advertisement
Add Comment
Please, Sign In to add comment