My favorites | Sign in
Project Logo
             
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*!
* jQuery.XHR
* Copyright (c) 2008 Ariel Flesler - aflesler(at)gmail(dot)com | http://flesler.blogspot.com
* Dual licensed under MIT and GPL.
* Date: 8/7/2008
*
* @projectDescription Registry of XHR implementations
*
* @author Ariel Flesler
* @version 1.0.0
*/
;(function( $ ){

var as = $.ajaxSettings;

$.xhr = {
r : {
xhr: as.xhr
},
register:function( name, fn ){
this.r[name] = fn;
}
};

// The built-in method is used by default
// To set another one as default, use $.ajaxSetup({ transport:'my_xhr' })
as.transport = 'xhr';

// This handler is used instead, don't override it
as.xhr = function(){
return $.xhr.r[ this.transport ]( this );
};

})( jQuery );
Show details Hide details

Change log

r2 by aflesler on Jun 04, 2009   Diff
  * Moving all to this repository
Go to: 
Sign in to write a code review

Older revisions

All revisions of this file

File info

Size: 739 bytes, 34 lines
Powered by Google Project Hosting