We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7aca0d4 + 8fc4a29 commit f77fa04Copy full SHA for f77fa04
jQuery.XDomainRequest.js
@@ -1,7 +1,15 @@
1
// jQuery.XDomainRequest.js
2
// Author: Jason Moon - @JSONMOON
3
// IE8+
4
-(function($){
+(function (factory) {
5
+ if (typeof define === 'function' && define.amd) {
6
+ // AMD. Register as anonymous module.
7
+ define(['jquery'], factory);
8
+ } else {
9
+ // Browser globals.
10
+ factory(jQuery);
11
+ }
12
+}(function ($) {
13
14
if (!$.support.cors && $.ajaxTransport && window.XDomainRequest) {
15
var httpRegEx = /^https?:\/\//i;
@@ -91,4 +99,4 @@ if (!$.support.cors && $.ajaxTransport && window.XDomainRequest) {
91
99
});
92
100
}
93
101
94
-})(jQuery);
102
+}));
0 commit comments