kanpachi 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (136) hide show
  1. checksums.yaml +4 -4
  2. data/.bowerrc +3 -0
  3. data/.travis.yml +3 -1
  4. data/bower.json +22 -0
  5. data/kanpachi.gemspec +6 -6
  6. data/lib/kanpachi/doc/template/components/html5shiv/.bower.json +26 -0
  7. data/lib/kanpachi/doc/template/components/html5shiv/dist/html5shiv-printshiv.js +11 -0
  8. data/lib/kanpachi/doc/template/{source/javascripts → components/html5shiv/dist}/html5shiv.js +4 -5
  9. data/lib/kanpachi/doc/template/components/html5shiv/readme.md +143 -0
  10. data/lib/kanpachi/doc/template/components/jquery/.bower.json +37 -0
  11. data/lib/kanpachi/doc/template/components/jquery/MIT-LICENSE.txt +21 -0
  12. data/lib/kanpachi/doc/template/components/jquery/bower.json +27 -0
  13. data/lib/kanpachi/doc/template/components/jquery/dist/jquery.js +10337 -0
  14. data/lib/kanpachi/doc/template/components/jquery/dist/jquery.min.js +5 -0
  15. data/lib/kanpachi/doc/template/components/jquery/dist/jquery.min.map +1 -0
  16. data/lib/kanpachi/doc/template/components/jquery/src/ajax.js +807 -0
  17. data/lib/kanpachi/doc/template/components/jquery/src/ajax/jsonp.js +89 -0
  18. data/lib/kanpachi/doc/template/components/jquery/src/ajax/load.js +75 -0
  19. data/lib/kanpachi/doc/template/components/jquery/src/ajax/parseJSON.js +51 -0
  20. data/lib/kanpachi/doc/template/components/jquery/src/ajax/parseXML.js +31 -0
  21. data/lib/kanpachi/doc/template/components/jquery/src/ajax/script.js +93 -0
  22. data/lib/kanpachi/doc/template/components/jquery/src/ajax/var/nonce.js +5 -0
  23. data/lib/kanpachi/doc/template/components/jquery/src/ajax/var/rquery.js +3 -0
  24. data/lib/kanpachi/doc/template/components/jquery/src/ajax/xhr.js +196 -0
  25. data/lib/kanpachi/doc/template/components/jquery/src/attributes.js +11 -0
  26. data/lib/kanpachi/doc/template/components/jquery/src/attributes/attr.js +271 -0
  27. data/lib/kanpachi/doc/template/components/jquery/src/attributes/classes.js +157 -0
  28. data/lib/kanpachi/doc/template/components/jquery/src/attributes/prop.js +134 -0
  29. data/lib/kanpachi/doc/template/components/jquery/src/attributes/support.js +64 -0
  30. data/lib/kanpachi/doc/template/components/jquery/src/attributes/val.js +176 -0
  31. data/lib/kanpachi/doc/template/components/jquery/src/callbacks.js +205 -0
  32. data/lib/kanpachi/doc/template/components/jquery/src/core.js +542 -0
  33. data/lib/kanpachi/doc/template/components/jquery/src/core/access.js +60 -0
  34. data/lib/kanpachi/doc/template/components/jquery/src/core/init.js +132 -0
  35. data/lib/kanpachi/doc/template/components/jquery/src/core/parseHTML.js +39 -0
  36. data/lib/kanpachi/doc/template/components/jquery/src/core/ready.js +151 -0
  37. data/lib/kanpachi/doc/template/components/jquery/src/core/var/rsingleTag.js +4 -0
  38. data/lib/kanpachi/doc/template/components/jquery/src/css.js +508 -0
  39. data/lib/kanpachi/doc/template/components/jquery/src/css/addGetHookIf.js +32 -0
  40. data/lib/kanpachi/doc/template/components/jquery/src/css/curCSS.js +117 -0
  41. data/lib/kanpachi/doc/template/components/jquery/src/css/defaultDisplay.js +68 -0
  42. data/lib/kanpachi/doc/template/components/jquery/src/css/hiddenVisibleSelectors.js +20 -0
  43. data/lib/kanpachi/doc/template/components/jquery/src/css/support.js +193 -0
  44. data/lib/kanpachi/doc/template/components/jquery/src/css/swap.js +28 -0
  45. data/lib/kanpachi/doc/template/components/jquery/src/css/var/cssExpand.js +3 -0
  46. data/lib/kanpachi/doc/template/components/jquery/src/css/var/isHidden.js +13 -0
  47. data/lib/kanpachi/doc/template/components/jquery/src/css/var/rmargin.js +3 -0
  48. data/lib/kanpachi/doc/template/components/jquery/src/css/var/rnumnonpx.js +5 -0
  49. data/lib/kanpachi/doc/template/components/jquery/src/data.js +332 -0
  50. data/lib/kanpachi/doc/template/components/jquery/src/data/accepts.js +21 -0
  51. data/lib/kanpachi/doc/template/components/jquery/src/data/support.js +25 -0
  52. data/lib/kanpachi/doc/template/components/jquery/src/deferred.js +150 -0
  53. data/lib/kanpachi/doc/template/components/jquery/src/deprecated.js +13 -0
  54. data/lib/kanpachi/doc/template/components/jquery/src/dimensions.js +50 -0
  55. data/lib/kanpachi/doc/template/components/jquery/src/effects.js +648 -0
  56. data/lib/kanpachi/doc/template/components/jquery/src/effects/Tween.js +114 -0
  57. data/lib/kanpachi/doc/template/components/jquery/src/effects/animatedSelector.js +13 -0
  58. data/lib/kanpachi/doc/template/components/jquery/src/effects/support.js +76 -0
  59. data/lib/kanpachi/doc/template/components/jquery/src/event.js +1029 -0
  60. data/lib/kanpachi/doc/template/components/jquery/src/event/alias.js +39 -0
  61. data/lib/kanpachi/doc/template/components/jquery/src/event/support.js +26 -0
  62. data/lib/kanpachi/doc/template/components/jquery/src/exports/amd.js +18 -0
  63. data/lib/kanpachi/doc/template/components/jquery/src/exports/global.js +32 -0
  64. data/lib/kanpachi/doc/template/components/jquery/src/intro.js +44 -0
  65. data/lib/kanpachi/doc/template/components/jquery/src/jquery.js +37 -0
  66. data/lib/kanpachi/doc/template/components/jquery/src/manipulation.js +744 -0
  67. data/lib/kanpachi/doc/template/components/jquery/src/manipulation/_evalUrl.js +18 -0
  68. data/lib/kanpachi/doc/template/components/jquery/src/manipulation/support.js +79 -0
  69. data/lib/kanpachi/doc/template/components/jquery/src/manipulation/var/rcheckableType.js +3 -0
  70. data/lib/kanpachi/doc/template/components/jquery/src/offset.js +211 -0
  71. data/lib/kanpachi/doc/template/components/jquery/src/outro.js +1 -0
  72. data/lib/kanpachi/doc/template/components/jquery/src/queue.js +142 -0
  73. data/lib/kanpachi/doc/template/components/jquery/src/queue/delay.js +22 -0
  74. data/lib/kanpachi/doc/template/components/jquery/src/selector-sizzle.js +14 -0
  75. data/lib/kanpachi/doc/template/components/jquery/src/selector.js +1 -0
  76. data/lib/kanpachi/doc/template/components/jquery/src/serialize.js +110 -0
  77. data/lib/kanpachi/doc/template/components/jquery/src/sizzle/dist/sizzle.js +2015 -0
  78. data/lib/kanpachi/doc/template/components/jquery/src/sizzle/dist/sizzle.min.js +3 -0
  79. data/lib/kanpachi/doc/template/components/jquery/src/sizzle/dist/sizzle.min.map +1 -0
  80. data/lib/kanpachi/doc/template/components/jquery/src/support.js +62 -0
  81. data/lib/kanpachi/doc/template/components/jquery/src/traversing.js +200 -0
  82. data/lib/kanpachi/doc/template/components/jquery/src/traversing/findFilter.js +100 -0
  83. data/lib/kanpachi/doc/template/components/jquery/src/traversing/var/rneedsContext.js +6 -0
  84. data/lib/kanpachi/doc/template/components/jquery/src/var/class2type.js +4 -0
  85. data/lib/kanpachi/doc/template/components/jquery/src/var/concat.js +5 -0
  86. data/lib/kanpachi/doc/template/components/jquery/src/var/deletedIds.js +3 -0
  87. data/lib/kanpachi/doc/template/components/jquery/src/var/hasOwn.js +5 -0
  88. data/lib/kanpachi/doc/template/components/jquery/src/var/indexOf.js +5 -0
  89. data/lib/kanpachi/doc/template/components/jquery/src/var/pnum.js +3 -0
  90. data/lib/kanpachi/doc/template/components/jquery/src/var/push.js +5 -0
  91. data/lib/kanpachi/doc/template/components/jquery/src/var/rnotwhite.js +3 -0
  92. data/lib/kanpachi/doc/template/components/jquery/src/var/slice.js +5 -0
  93. data/lib/kanpachi/doc/template/components/jquery/src/var/strundefined.js +3 -0
  94. data/lib/kanpachi/doc/template/components/jquery/src/var/support.js +4 -0
  95. data/lib/kanpachi/doc/template/components/jquery/src/var/toString.js +5 -0
  96. data/lib/kanpachi/doc/template/components/jquery/src/var/trim.js +3 -0
  97. data/lib/kanpachi/doc/template/components/jquery/src/wrap.js +75 -0
  98. data/lib/kanpachi/doc/template/components/respond/.bower.json +20 -0
  99. data/lib/kanpachi/doc/template/components/respond/Gruntfile.js +90 -0
  100. data/lib/kanpachi/doc/template/components/respond/LICENSE-MIT +22 -0
  101. data/lib/kanpachi/doc/template/components/respond/README.md +114 -0
  102. data/lib/kanpachi/doc/template/components/respond/bower.json +10 -0
  103. data/lib/kanpachi/doc/template/components/respond/cross-domain/example.html +24 -0
  104. data/lib/kanpachi/doc/template/components/respond/cross-domain/respond-proxy.html +96 -0
  105. data/lib/kanpachi/doc/template/components/respond/cross-domain/respond.proxy.gif +0 -0
  106. data/lib/kanpachi/doc/template/components/respond/cross-domain/respond.proxy.js +127 -0
  107. data/lib/kanpachi/doc/template/components/respond/dest/respond.matchmedia.addListener.min.js +5 -0
  108. data/lib/kanpachi/doc/template/components/respond/dest/respond.matchmedia.addListener.src.js +273 -0
  109. data/lib/kanpachi/doc/template/components/respond/dest/respond.min.js +5 -0
  110. data/lib/kanpachi/doc/template/components/respond/dest/respond.src.js +224 -0
  111. data/lib/kanpachi/doc/template/components/respond/package.json +32 -0
  112. data/lib/kanpachi/doc/template/components/respond/src/matchmedia.addListener.js +76 -0
  113. data/lib/kanpachi/doc/template/components/respond/src/matchmedia.polyfill.js +36 -0
  114. data/lib/kanpachi/doc/template/components/respond/src/respond.js +341 -0
  115. data/lib/kanpachi/doc/template/config.rb +4 -0
  116. data/lib/kanpachi/doc/template/source/fonts/glyphicons-halflings-regular.eot +0 -0
  117. data/lib/kanpachi/doc/template/source/fonts/glyphicons-halflings-regular.svg +201 -200
  118. data/lib/kanpachi/doc/template/source/fonts/glyphicons-halflings-regular.ttf +0 -0
  119. data/lib/kanpachi/doc/template/source/fonts/glyphicons-halflings-regular.woff +0 -0
  120. data/lib/kanpachi/doc/template/source/javascripts/all.coffee +2 -0
  121. data/lib/kanpachi/doc/template/source/javascripts/bootstrap.js +271 -319
  122. data/lib/kanpachi/doc/template/source/javascripts/bootstrap.min.js +6 -6
  123. data/lib/kanpachi/doc/template/source/javascripts/ie.coffee +2 -0
  124. data/lib/kanpachi/doc/template/source/layouts/layout.slim +4 -6
  125. data/lib/kanpachi/doc/template/source/stylesheets/bootstrap-theme.css +192 -229
  126. data/lib/kanpachi/doc/template/source/stylesheets/bootstrap-theme.css.map +1 -0
  127. data/lib/kanpachi/doc/template/source/stylesheets/bootstrap-theme.min.css +7 -1
  128. data/lib/kanpachi/doc/template/source/stylesheets/bootstrap.css +2036 -3056
  129. data/lib/kanpachi/doc/template/source/stylesheets/bootstrap.css.map +1 -0
  130. data/lib/kanpachi/doc/template/source/stylesheets/bootstrap.min.css +6 -8
  131. data/lib/kanpachi/version.rb +1 -1
  132. data/wercker.yml +27 -0
  133. metadata +143 -31
  134. data/lib/kanpachi/doc/template/source/javascripts/all.js +0 -1
  135. data/lib/kanpachi/doc/template/source/javascripts/jquery-1.10.2.min.js +0 -6
  136. data/lib/kanpachi/doc/template/source/javascripts/respond.min.js +0 -7
@@ -0,0 +1,89 @@
1
+ define([
2
+ "../core",
3
+ "./var/nonce",
4
+ "./var/rquery",
5
+ "../ajax"
6
+ ], function( jQuery, nonce, rquery ) {
7
+
8
+ var oldCallbacks = [],
9
+ rjsonp = /(=)\?(?=&|$)|\?\?/;
10
+
11
+ // Default jsonp settings
12
+ jQuery.ajaxSetup({
13
+ jsonp: "callback",
14
+ jsonpCallback: function() {
15
+ var callback = oldCallbacks.pop() || ( jQuery.expando + "_" + ( nonce++ ) );
16
+ this[ callback ] = true;
17
+ return callback;
18
+ }
19
+ });
20
+
21
+ // Detect, normalize options and install callbacks for jsonp requests
22
+ jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) {
23
+
24
+ var callbackName, overwritten, responseContainer,
25
+ jsonProp = s.jsonp !== false && ( rjsonp.test( s.url ) ?
26
+ "url" :
27
+ typeof s.data === "string" && !( s.contentType || "" ).indexOf("application/x-www-form-urlencoded") && rjsonp.test( s.data ) && "data"
28
+ );
29
+
30
+ // Handle iff the expected data type is "jsonp" or we have a parameter to set
31
+ if ( jsonProp || s.dataTypes[ 0 ] === "jsonp" ) {
32
+
33
+ // Get callback name, remembering preexisting value associated with it
34
+ callbackName = s.jsonpCallback = jQuery.isFunction( s.jsonpCallback ) ?
35
+ s.jsonpCallback() :
36
+ s.jsonpCallback;
37
+
38
+ // Insert callback into url or form data
39
+ if ( jsonProp ) {
40
+ s[ jsonProp ] = s[ jsonProp ].replace( rjsonp, "$1" + callbackName );
41
+ } else if ( s.jsonp !== false ) {
42
+ s.url += ( rquery.test( s.url ) ? "&" : "?" ) + s.jsonp + "=" + callbackName;
43
+ }
44
+
45
+ // Use data converter to retrieve json after script execution
46
+ s.converters["script json"] = function() {
47
+ if ( !responseContainer ) {
48
+ jQuery.error( callbackName + " was not called" );
49
+ }
50
+ return responseContainer[ 0 ];
51
+ };
52
+
53
+ // force json dataType
54
+ s.dataTypes[ 0 ] = "json";
55
+
56
+ // Install callback
57
+ overwritten = window[ callbackName ];
58
+ window[ callbackName ] = function() {
59
+ responseContainer = arguments;
60
+ };
61
+
62
+ // Clean-up function (fires after converters)
63
+ jqXHR.always(function() {
64
+ // Restore preexisting value
65
+ window[ callbackName ] = overwritten;
66
+
67
+ // Save back as free
68
+ if ( s[ callbackName ] ) {
69
+ // make sure that re-using the options doesn't screw things around
70
+ s.jsonpCallback = originalSettings.jsonpCallback;
71
+
72
+ // save the callback name for future use
73
+ oldCallbacks.push( callbackName );
74
+ }
75
+
76
+ // Call if it was a function and we have a response
77
+ if ( responseContainer && jQuery.isFunction( overwritten ) ) {
78
+ overwritten( responseContainer[ 0 ] );
79
+ }
80
+
81
+ responseContainer = overwritten = undefined;
82
+ });
83
+
84
+ // Delegate to script
85
+ return "script";
86
+ }
87
+ });
88
+
89
+ });
@@ -0,0 +1,75 @@
1
+ define([
2
+ "../core",
3
+ "../core/parseHTML",
4
+ "../ajax",
5
+ "../traversing",
6
+ "../manipulation",
7
+ "../selector",
8
+ // Optional event/alias dependency
9
+ "../event/alias"
10
+ ], function( jQuery ) {
11
+
12
+ // Keep a copy of the old load method
13
+ var _load = jQuery.fn.load;
14
+
15
+ /**
16
+ * Load a url into a page
17
+ */
18
+ jQuery.fn.load = function( url, params, callback ) {
19
+ if ( typeof url !== "string" && _load ) {
20
+ return _load.apply( this, arguments );
21
+ }
22
+
23
+ var selector, response, type,
24
+ self = this,
25
+ off = url.indexOf(" ");
26
+
27
+ if ( off >= 0 ) {
28
+ selector = url.slice( off, url.length );
29
+ url = url.slice( 0, off );
30
+ }
31
+
32
+ // If it's a function
33
+ if ( jQuery.isFunction( params ) ) {
34
+
35
+ // We assume that it's the callback
36
+ callback = params;
37
+ params = undefined;
38
+
39
+ // Otherwise, build a param string
40
+ } else if ( params && typeof params === "object" ) {
41
+ type = "POST";
42
+ }
43
+
44
+ // If we have elements to modify, make the request
45
+ if ( self.length > 0 ) {
46
+ jQuery.ajax({
47
+ url: url,
48
+
49
+ // if "type" variable is undefined, then "GET" method will be used
50
+ type: type,
51
+ dataType: "html",
52
+ data: params
53
+ }).done(function( responseText ) {
54
+
55
+ // Save response for use in complete callback
56
+ response = arguments;
57
+
58
+ self.html( selector ?
59
+
60
+ // If a selector was specified, locate the right elements in a dummy div
61
+ // Exclude scripts to avoid IE 'Permission Denied' errors
62
+ jQuery("<div>").append( jQuery.parseHTML( responseText ) ).find( selector ) :
63
+
64
+ // Otherwise use the full result
65
+ responseText );
66
+
67
+ }).complete( callback && function( jqXHR, status ) {
68
+ self.each( callback, response || [ jqXHR.responseText, status, jqXHR ] );
69
+ });
70
+ }
71
+
72
+ return this;
73
+ };
74
+
75
+ });
@@ -0,0 +1,51 @@
1
+ define([
2
+ "../core"
3
+ ], function( jQuery ) {
4
+
5
+ var rvalidtokens = /(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;
6
+
7
+ jQuery.parseJSON = function( data ) {
8
+ // Attempt to parse using the native JSON parser first
9
+ if ( window.JSON && window.JSON.parse ) {
10
+ // Support: Android 2.3
11
+ // Workaround failure to string-cast null input
12
+ return window.JSON.parse( data + "" );
13
+ }
14
+
15
+ var requireNonComma,
16
+ depth = null,
17
+ str = jQuery.trim( data + "" );
18
+
19
+ // Guard against invalid (and possibly dangerous) input by ensuring that nothing remains
20
+ // after removing valid tokens
21
+ return str && !jQuery.trim( str.replace( rvalidtokens, function( token, comma, open, close ) {
22
+
23
+ // Force termination if we see a misplaced comma
24
+ if ( requireNonComma && comma ) {
25
+ depth = 0;
26
+ }
27
+
28
+ // Perform no more replacements after returning to outermost depth
29
+ if ( depth === 0 ) {
30
+ return token;
31
+ }
32
+
33
+ // Commas must not follow "[", "{", or ","
34
+ requireNonComma = open || comma;
35
+
36
+ // Determine new depth
37
+ // array/object open ("[" or "{"): depth += true - false (increment)
38
+ // array/object close ("]" or "}"): depth += false - true (decrement)
39
+ // other cases ("," or primitive): depth += true - true (numeric cast)
40
+ depth += !close - !open;
41
+
42
+ // Remove this token
43
+ return "";
44
+ }) ) ?
45
+ ( Function( "return " + str ) )() :
46
+ jQuery.error( "Invalid JSON: " + data );
47
+ };
48
+
49
+ return jQuery.parseJSON;
50
+
51
+ });
@@ -0,0 +1,31 @@
1
+ define([
2
+ "../core"
3
+ ], function( jQuery ) {
4
+
5
+ // Cross-browser xml parsing
6
+ jQuery.parseXML = function( data ) {
7
+ var xml, tmp;
8
+ if ( !data || typeof data !== "string" ) {
9
+ return null;
10
+ }
11
+ try {
12
+ if ( window.DOMParser ) { // Standard
13
+ tmp = new DOMParser();
14
+ xml = tmp.parseFromString( data, "text/xml" );
15
+ } else { // IE
16
+ xml = new ActiveXObject( "Microsoft.XMLDOM" );
17
+ xml.async = "false";
18
+ xml.loadXML( data );
19
+ }
20
+ } catch( e ) {
21
+ xml = undefined;
22
+ }
23
+ if ( !xml || !xml.documentElement || xml.getElementsByTagName( "parsererror" ).length ) {
24
+ jQuery.error( "Invalid XML: " + data );
25
+ }
26
+ return xml;
27
+ };
28
+
29
+ return jQuery.parseXML;
30
+
31
+ });
@@ -0,0 +1,93 @@
1
+ define([
2
+ "../core",
3
+ "../ajax"
4
+ ], function( jQuery ) {
5
+
6
+ // Install script dataType
7
+ jQuery.ajaxSetup({
8
+ accepts: {
9
+ script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"
10
+ },
11
+ contents: {
12
+ script: /(?:java|ecma)script/
13
+ },
14
+ converters: {
15
+ "text script": function( text ) {
16
+ jQuery.globalEval( text );
17
+ return text;
18
+ }
19
+ }
20
+ });
21
+
22
+ // Handle cache's special case and global
23
+ jQuery.ajaxPrefilter( "script", function( s ) {
24
+ if ( s.cache === undefined ) {
25
+ s.cache = false;
26
+ }
27
+ if ( s.crossDomain ) {
28
+ s.type = "GET";
29
+ s.global = false;
30
+ }
31
+ });
32
+
33
+ // Bind script tag hack transport
34
+ jQuery.ajaxTransport( "script", function(s) {
35
+
36
+ // This transport only deals with cross domain requests
37
+ if ( s.crossDomain ) {
38
+
39
+ var script,
40
+ head = document.head || jQuery("head")[0] || document.documentElement;
41
+
42
+ return {
43
+
44
+ send: function( _, callback ) {
45
+
46
+ script = document.createElement("script");
47
+
48
+ script.async = true;
49
+
50
+ if ( s.scriptCharset ) {
51
+ script.charset = s.scriptCharset;
52
+ }
53
+
54
+ script.src = s.url;
55
+
56
+ // Attach handlers for all browsers
57
+ script.onload = script.onreadystatechange = function( _, isAbort ) {
58
+
59
+ if ( isAbort || !script.readyState || /loaded|complete/.test( script.readyState ) ) {
60
+
61
+ // Handle memory leak in IE
62
+ script.onload = script.onreadystatechange = null;
63
+
64
+ // Remove the script
65
+ if ( script.parentNode ) {
66
+ script.parentNode.removeChild( script );
67
+ }
68
+
69
+ // Dereference the script
70
+ script = null;
71
+
72
+ // Callback if not abort
73
+ if ( !isAbort ) {
74
+ callback( 200, "success" );
75
+ }
76
+ }
77
+ };
78
+
79
+ // Circumvent IE6 bugs with base elements (#2709 and #4378) by prepending
80
+ // Use native DOM manipulation to avoid our domManip AJAX trickery
81
+ head.insertBefore( script, head.firstChild );
82
+ },
83
+
84
+ abort: function() {
85
+ if ( script ) {
86
+ script.onload( undefined, true );
87
+ }
88
+ }
89
+ };
90
+ }
91
+ });
92
+
93
+ });
@@ -0,0 +1,5 @@
1
+ define([
2
+ "../../core"
3
+ ], function( jQuery ) {
4
+ return jQuery.now();
5
+ });
@@ -0,0 +1,3 @@
1
+ define(function() {
2
+ return (/\?/);
3
+ });
@@ -0,0 +1,196 @@
1
+ define([
2
+ "../core",
3
+ "../var/support",
4
+ "../ajax"
5
+ ], function( jQuery, support ) {
6
+
7
+ // Create the request object
8
+ // (This is still attached to ajaxSettings for backward compatibility)
9
+ jQuery.ajaxSettings.xhr = window.ActiveXObject !== undefined ?
10
+ // Support: IE6+
11
+ function() {
12
+
13
+ // XHR cannot access local files, always use ActiveX for that case
14
+ return !this.isLocal &&
15
+
16
+ // Support: IE7-8
17
+ // oldIE XHR does not support non-RFC2616 methods (#13240)
18
+ // See http://msdn.microsoft.com/en-us/library/ie/ms536648(v=vs.85).aspx
19
+ // and http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9
20
+ // Although this check for six methods instead of eight
21
+ // since IE also does not support "trace" and "connect"
22
+ /^(get|post|head|put|delete|options)$/i.test( this.type ) &&
23
+
24
+ createStandardXHR() || createActiveXHR();
25
+ } :
26
+ // For all other browsers, use the standard XMLHttpRequest object
27
+ createStandardXHR;
28
+
29
+ var xhrId = 0,
30
+ xhrCallbacks = {},
31
+ xhrSupported = jQuery.ajaxSettings.xhr();
32
+
33
+ // Support: IE<10
34
+ // Open requests must be manually aborted on unload (#5280)
35
+ if ( window.ActiveXObject ) {
36
+ jQuery( window ).on( "unload", function() {
37
+ for ( var key in xhrCallbacks ) {
38
+ xhrCallbacks[ key ]( undefined, true );
39
+ }
40
+ });
41
+ }
42
+
43
+ // Determine support properties
44
+ support.cors = !!xhrSupported && ( "withCredentials" in xhrSupported );
45
+ xhrSupported = support.ajax = !!xhrSupported;
46
+
47
+ // Create transport if the browser can provide an xhr
48
+ if ( xhrSupported ) {
49
+
50
+ jQuery.ajaxTransport(function( options ) {
51
+ // Cross domain only allowed if supported through XMLHttpRequest
52
+ if ( !options.crossDomain || support.cors ) {
53
+
54
+ var callback;
55
+
56
+ return {
57
+ send: function( headers, complete ) {
58
+ var i,
59
+ xhr = options.xhr(),
60
+ id = ++xhrId;
61
+
62
+ // Open the socket
63
+ xhr.open( options.type, options.url, options.async, options.username, options.password );
64
+
65
+ // Apply custom fields if provided
66
+ if ( options.xhrFields ) {
67
+ for ( i in options.xhrFields ) {
68
+ xhr[ i ] = options.xhrFields[ i ];
69
+ }
70
+ }
71
+
72
+ // Override mime type if needed
73
+ if ( options.mimeType && xhr.overrideMimeType ) {
74
+ xhr.overrideMimeType( options.mimeType );
75
+ }
76
+
77
+ // X-Requested-With header
78
+ // For cross-domain requests, seeing as conditions for a preflight are
79
+ // akin to a jigsaw puzzle, we simply never set it to be sure.
80
+ // (it can always be set on a per-request basis or even using ajaxSetup)
81
+ // For same-domain requests, won't change header if already provided.
82
+ if ( !options.crossDomain && !headers["X-Requested-With"] ) {
83
+ headers["X-Requested-With"] = "XMLHttpRequest";
84
+ }
85
+
86
+ // Set headers
87
+ for ( i in headers ) {
88
+ // Support: IE<9
89
+ // IE's ActiveXObject throws a 'Type Mismatch' exception when setting
90
+ // request header to a null-value.
91
+ //
92
+ // To keep consistent with other XHR implementations, cast the value
93
+ // to string and ignore `undefined`.
94
+ if ( headers[ i ] !== undefined ) {
95
+ xhr.setRequestHeader( i, headers[ i ] + "" );
96
+ }
97
+ }
98
+
99
+ // Do send the request
100
+ // This may raise an exception which is actually
101
+ // handled in jQuery.ajax (so no try/catch here)
102
+ xhr.send( ( options.hasContent && options.data ) || null );
103
+
104
+ // Listener
105
+ callback = function( _, isAbort ) {
106
+ var status, statusText, responses;
107
+
108
+ // Was never called and is aborted or complete
109
+ if ( callback && ( isAbort || xhr.readyState === 4 ) ) {
110
+ // Clean up
111
+ delete xhrCallbacks[ id ];
112
+ callback = undefined;
113
+ xhr.onreadystatechange = jQuery.noop;
114
+
115
+ // Abort manually if needed
116
+ if ( isAbort ) {
117
+ if ( xhr.readyState !== 4 ) {
118
+ xhr.abort();
119
+ }
120
+ } else {
121
+ responses = {};
122
+ status = xhr.status;
123
+
124
+ // Support: IE<10
125
+ // Accessing binary-data responseText throws an exception
126
+ // (#11426)
127
+ if ( typeof xhr.responseText === "string" ) {
128
+ responses.text = xhr.responseText;
129
+ }
130
+
131
+ // Firefox throws an exception when accessing
132
+ // statusText for faulty cross-domain requests
133
+ try {
134
+ statusText = xhr.statusText;
135
+ } catch( e ) {
136
+ // We normalize with Webkit giving an empty statusText
137
+ statusText = "";
138
+ }
139
+
140
+ // Filter status for non standard behaviors
141
+
142
+ // If the request is local and we have data: assume a success
143
+ // (success with no data won't get notified, that's the best we
144
+ // can do given current implementations)
145
+ if ( !status && options.isLocal && !options.crossDomain ) {
146
+ status = responses.text ? 200 : 404;
147
+ // IE - #1450: sometimes returns 1223 when it should be 204
148
+ } else if ( status === 1223 ) {
149
+ status = 204;
150
+ }
151
+ }
152
+ }
153
+
154
+ // Call complete if needed
155
+ if ( responses ) {
156
+ complete( status, statusText, responses, xhr.getAllResponseHeaders() );
157
+ }
158
+ };
159
+
160
+ if ( !options.async ) {
161
+ // if we're in sync mode we fire the callback
162
+ callback();
163
+ } else if ( xhr.readyState === 4 ) {
164
+ // (IE6 & IE7) if it's in cache and has been
165
+ // retrieved directly we need to fire the callback
166
+ setTimeout( callback );
167
+ } else {
168
+ // Add to the list of active xhr callbacks
169
+ xhr.onreadystatechange = xhrCallbacks[ id ] = callback;
170
+ }
171
+ },
172
+
173
+ abort: function() {
174
+ if ( callback ) {
175
+ callback( undefined, true );
176
+ }
177
+ }
178
+ };
179
+ }
180
+ });
181
+ }
182
+
183
+ // Functions to create xhrs
184
+ function createStandardXHR() {
185
+ try {
186
+ return new window.XMLHttpRequest();
187
+ } catch( e ) {}
188
+ }
189
+
190
+ function createActiveXHR() {
191
+ try {
192
+ return new window.ActiveXObject( "Microsoft.XMLHTTP" );
193
+ } catch( e ) {}
194
+ }
195
+
196
+ });