try_api 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (154) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/try_api/application.js.coffee +0 -3
  3. data/app/assets/javascripts/try_api/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.eot +0 -0
  4. data/app/assets/javascripts/try_api/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf +0 -0
  5. data/app/assets/javascripts/try_api/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.woff +0 -0
  6. data/app/assets/javascripts/try_api/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2 +0 -0
  7. data/app/assets/javascripts/try_api/bower_components/bootstrap/fonts/glyphicons-halflings-regular.eot +0 -0
  8. data/app/assets/javascripts/try_api/bower_components/bootstrap/fonts/glyphicons-halflings-regular.ttf +0 -0
  9. data/app/assets/javascripts/try_api/bower_components/bootstrap/fonts/glyphicons-halflings-regular.woff +0 -0
  10. data/app/assets/javascripts/try_api/bower_components/bootstrap/fonts/glyphicons-halflings-regular.woff2 +0 -0
  11. data/app/assets/javascripts/try_api/bower_components/bootstrap/grunt/change-version.js +0 -0
  12. data/app/assets/javascripts/try_api/param.directive.js.coffee +9 -4
  13. data/app/models/try_api/menu_item.rb +0 -2
  14. data/app/models/try_api/method.rb +2 -2
  15. data/app/views/layouts/try_api/application.html.erb +4 -0
  16. data/app/views/try_api/pages/index.html +15 -10
  17. data/lib/try_api/version.rb +1 -1
  18. metadata +2 -138
  19. data/app/assets/javascripts/try_api/bower_components/jquery/AUTHORS.txt +0 -295
  20. data/app/assets/javascripts/try_api/bower_components/jquery/LICENSE.txt +0 -36
  21. data/app/assets/javascripts/try_api/bower_components/jquery/README.md +0 -65
  22. data/app/assets/javascripts/try_api/bower_components/jquery/bower.json +0 -14
  23. data/app/assets/javascripts/try_api/bower_components/jquery/dist/core.js +0 -481
  24. data/app/assets/javascripts/try_api/bower_components/jquery/dist/jquery.js +0 -10074
  25. data/app/assets/javascripts/try_api/bower_components/jquery/dist/jquery.min.js +0 -4
  26. data/app/assets/javascripts/try_api/bower_components/jquery/dist/jquery.slim.js +0 -7966
  27. data/app/assets/javascripts/try_api/bower_components/jquery/dist/jquery.slim.min.js +0 -4
  28. data/app/assets/javascripts/try_api/bower_components/jquery/external/sizzle/LICENSE.txt +0 -36
  29. data/app/assets/javascripts/try_api/bower_components/jquery/external/sizzle/dist/sizzle.js +0 -2217
  30. data/app/assets/javascripts/try_api/bower_components/jquery/external/sizzle/dist/sizzle.min.js +0 -3
  31. data/app/assets/javascripts/try_api/bower_components/jquery/external/sizzle/dist/sizzle.min.map +0 -1
  32. data/app/assets/javascripts/try_api/bower_components/jquery/src/ajax/jsonp.js +0 -102
  33. data/app/assets/javascripts/try_api/bower_components/jquery/src/ajax/load.js +0 -75
  34. data/app/assets/javascripts/try_api/bower_components/jquery/src/ajax/parseXML.js +0 -30
  35. data/app/assets/javascripts/try_api/bower_components/jquery/src/ajax/script.js +0 -77
  36. data/app/assets/javascripts/try_api/bower_components/jquery/src/ajax/var/location.js +0 -5
  37. data/app/assets/javascripts/try_api/bower_components/jquery/src/ajax/var/nonce.js +0 -7
  38. data/app/assets/javascripts/try_api/bower_components/jquery/src/ajax/var/rquery.js +0 -5
  39. data/app/assets/javascripts/try_api/bower_components/jquery/src/ajax/xhr.js +0 -169
  40. data/app/assets/javascripts/try_api/bower_components/jquery/src/ajax.js +0 -855
  41. data/app/assets/javascripts/try_api/bower_components/jquery/src/attributes/attr.js +0 -137
  42. data/app/assets/javascripts/try_api/bower_components/jquery/src/attributes/classes.js +0 -179
  43. data/app/assets/javascripts/try_api/bower_components/jquery/src/attributes/prop.js +0 -128
  44. data/app/assets/javascripts/try_api/bower_components/jquery/src/attributes/support.js +0 -33
  45. data/app/assets/javascripts/try_api/bower_components/jquery/src/attributes/val.js +0 -184
  46. data/app/assets/javascripts/try_api/bower_components/jquery/src/attributes.js +0 -13
  47. data/app/assets/javascripts/try_api/bower_components/jquery/src/callbacks.js +0 -234
  48. data/app/assets/javascripts/try_api/bower_components/jquery/src/core/DOMEval.js +0 -16
  49. data/app/assets/javascripts/try_api/bower_components/jquery/src/core/access.js +0 -67
  50. data/app/assets/javascripts/try_api/bower_components/jquery/src/core/init.js +0 -127
  51. data/app/assets/javascripts/try_api/bower_components/jquery/src/core/parseHTML.js +0 -65
  52. data/app/assets/javascripts/try_api/bower_components/jquery/src/core/ready-no-deferred.js +0 -111
  53. data/app/assets/javascripts/try_api/bower_components/jquery/src/core/ready.js +0 -95
  54. data/app/assets/javascripts/try_api/bower_components/jquery/src/core/readyException.js +0 -13
  55. data/app/assets/javascripts/try_api/bower_components/jquery/src/core/support.js +0 -20
  56. data/app/assets/javascripts/try_api/bower_components/jquery/src/core/var/rsingleTag.js +0 -6
  57. data/app/assets/javascripts/try_api/bower_components/jquery/src/core.js +0 -481
  58. data/app/assets/javascripts/try_api/bower_components/jquery/src/css/addGetHookIf.js +0 -26
  59. data/app/assets/javascripts/try_api/bower_components/jquery/src/css/adjustCSS.js +0 -71
  60. data/app/assets/javascripts/try_api/bower_components/jquery/src/css/curCSS.js +0 -59
  61. data/app/assets/javascripts/try_api/bower_components/jquery/src/css/hiddenVisibleSelectors.js +0 -15
  62. data/app/assets/javascripts/try_api/bower_components/jquery/src/css/showHide.js +0 -105
  63. data/app/assets/javascripts/try_api/bower_components/jquery/src/css/support.js +0 -89
  64. data/app/assets/javascripts/try_api/bower_components/jquery/src/css/var/cssExpand.js +0 -5
  65. data/app/assets/javascripts/try_api/bower_components/jquery/src/css/var/getStyles.js +0 -17
  66. data/app/assets/javascripts/try_api/bower_components/jquery/src/css/var/isHiddenWithinTree.js +0 -34
  67. data/app/assets/javascripts/try_api/bower_components/jquery/src/css/var/rmargin.js +0 -5
  68. data/app/assets/javascripts/try_api/bower_components/jquery/src/css/var/rnumnonpx.js +0 -7
  69. data/app/assets/javascripts/try_api/bower_components/jquery/src/css/var/swap.js +0 -26
  70. data/app/assets/javascripts/try_api/bower_components/jquery/src/css.js +0 -424
  71. data/app/assets/javascripts/try_api/bower_components/jquery/src/data/Data.js +0 -161
  72. data/app/assets/javascripts/try_api/bower_components/jquery/src/data/var/acceptData.js +0 -19
  73. data/app/assets/javascripts/try_api/bower_components/jquery/src/data/var/dataPriv.js +0 -7
  74. data/app/assets/javascripts/try_api/bower_components/jquery/src/data/var/dataUser.js +0 -7
  75. data/app/assets/javascripts/try_api/bower_components/jquery/src/data.js +0 -161
  76. data/app/assets/javascripts/try_api/bower_components/jquery/src/deferred/exceptionHook.js +0 -21
  77. data/app/assets/javascripts/try_api/bower_components/jquery/src/deferred.js +0 -389
  78. data/app/assets/javascripts/try_api/bower_components/jquery/src/deprecated.js +0 -30
  79. data/app/assets/javascripts/try_api/bower_components/jquery/src/dimensions.js +0 -56
  80. data/app/assets/javascripts/try_api/bower_components/jquery/src/effects/Tween.js +0 -123
  81. data/app/assets/javascripts/try_api/bower_components/jquery/src/effects/animatedSelector.js +0 -15
  82. data/app/assets/javascripts/try_api/bower_components/jquery/src/effects.js +0 -688
  83. data/app/assets/javascripts/try_api/bower_components/jquery/src/event/ajax.js +0 -22
  84. data/app/assets/javascripts/try_api/bower_components/jquery/src/event/alias.js +0 -29
  85. data/app/assets/javascripts/try_api/bower_components/jquery/src/event/focusin.js +0 -55
  86. data/app/assets/javascripts/try_api/bower_components/jquery/src/event/support.js +0 -11
  87. data/app/assets/javascripts/try_api/bower_components/jquery/src/event/trigger.js +0 -185
  88. data/app/assets/javascripts/try_api/bower_components/jquery/src/event.js +0 -726
  89. data/app/assets/javascripts/try_api/bower_components/jquery/src/exports/amd.js +0 -26
  90. data/app/assets/javascripts/try_api/bower_components/jquery/src/exports/global.js +0 -34
  91. data/app/assets/javascripts/try_api/bower_components/jquery/src/jquery.js +0 -40
  92. data/app/assets/javascripts/try_api/bower_components/jquery/src/manipulation/_evalUrl.js +0 -23
  93. data/app/assets/javascripts/try_api/bower_components/jquery/src/manipulation/buildFragment.js +0 -104
  94. data/app/assets/javascripts/try_api/bower_components/jquery/src/manipulation/getAll.js +0 -23
  95. data/app/assets/javascripts/try_api/bower_components/jquery/src/manipulation/setGlobalEval.js +0 -22
  96. data/app/assets/javascripts/try_api/bower_components/jquery/src/manipulation/support.js +0 -35
  97. data/app/assets/javascripts/try_api/bower_components/jquery/src/manipulation/var/rcheckableType.js +0 -5
  98. data/app/assets/javascripts/try_api/bower_components/jquery/src/manipulation/var/rscriptType.js +0 -5
  99. data/app/assets/javascripts/try_api/bower_components/jquery/src/manipulation/var/rtagName.js +0 -5
  100. data/app/assets/javascripts/try_api/bower_components/jquery/src/manipulation/wrapMap.js +0 -29
  101. data/app/assets/javascripts/try_api/bower_components/jquery/src/manipulation.js +0 -486
  102. data/app/assets/javascripts/try_api/bower_components/jquery/src/offset.js +0 -232
  103. data/app/assets/javascripts/try_api/bower_components/jquery/src/queue/delay.js +0 -24
  104. data/app/assets/javascripts/try_api/bower_components/jquery/src/queue.js +0 -145
  105. data/app/assets/javascripts/try_api/bower_components/jquery/src/selector-native.js +0 -237
  106. data/app/assets/javascripts/try_api/bower_components/jquery/src/selector-sizzle.js +0 -19
  107. data/app/assets/javascripts/try_api/bower_components/jquery/src/selector.js +0 -3
  108. data/app/assets/javascripts/try_api/bower_components/jquery/src/serialize.js +0 -126
  109. data/app/assets/javascripts/try_api/bower_components/jquery/src/traversing/findFilter.js +0 -99
  110. data/app/assets/javascripts/try_api/bower_components/jquery/src/traversing/var/dir.js +0 -22
  111. data/app/assets/javascripts/try_api/bower_components/jquery/src/traversing/var/rneedsContext.js +0 -8
  112. data/app/assets/javascripts/try_api/bower_components/jquery/src/traversing/var/siblings.js +0 -17
  113. data/app/assets/javascripts/try_api/bower_components/jquery/src/traversing.js +0 -178
  114. data/app/assets/javascripts/try_api/bower_components/jquery/src/var/ObjectFunctionString.js +0 -7
  115. data/app/assets/javascripts/try_api/bower_components/jquery/src/var/arr.js +0 -5
  116. data/app/assets/javascripts/try_api/bower_components/jquery/src/var/class2type.js +0 -6
  117. data/app/assets/javascripts/try_api/bower_components/jquery/src/var/concat.js +0 -7
  118. data/app/assets/javascripts/try_api/bower_components/jquery/src/var/document.js +0 -5
  119. data/app/assets/javascripts/try_api/bower_components/jquery/src/var/documentElement.js +0 -7
  120. data/app/assets/javascripts/try_api/bower_components/jquery/src/var/fnToString.js +0 -7
  121. data/app/assets/javascripts/try_api/bower_components/jquery/src/var/getProto.js +0 -5
  122. data/app/assets/javascripts/try_api/bower_components/jquery/src/var/hasOwn.js +0 -7
  123. data/app/assets/javascripts/try_api/bower_components/jquery/src/var/indexOf.js +0 -7
  124. data/app/assets/javascripts/try_api/bower_components/jquery/src/var/pnum.js +0 -5
  125. data/app/assets/javascripts/try_api/bower_components/jquery/src/var/push.js +0 -7
  126. data/app/assets/javascripts/try_api/bower_components/jquery/src/var/rcssNum.js +0 -9
  127. data/app/assets/javascripts/try_api/bower_components/jquery/src/var/rnotwhite.js +0 -5
  128. data/app/assets/javascripts/try_api/bower_components/jquery/src/var/slice.js +0 -7
  129. data/app/assets/javascripts/try_api/bower_components/jquery/src/var/support.js +0 -6
  130. data/app/assets/javascripts/try_api/bower_components/jquery/src/var/toString.js +0 -7
  131. data/app/assets/javascripts/try_api/bower_components/jquery/src/wrap.js +0 -77
  132. data/app/assets/javascripts/try_api/bower_components/jquery-slimscroll/README.md +0 -8
  133. data/app/assets/javascripts/try_api/bower_components/jquery-slimscroll/bower.json +0 -46
  134. data/app/assets/javascripts/try_api/bower_components/jquery-slimscroll/examples/allow-page-scroll.html +0 -94
  135. data/app/assets/javascripts/try_api/bower_components/jquery-slimscroll/examples/chaining.html +0 -80
  136. data/app/assets/javascripts/try_api/bower_components/jquery-slimscroll/examples/disable-fade-out.html +0 -94
  137. data/app/assets/javascripts/try_api/bower_components/jquery-slimscroll/examples/dynamic-content.html +0 -81
  138. data/app/assets/javascripts/try_api/bower_components/jquery-slimscroll/examples/height-width.html +0 -125
  139. data/app/assets/javascripts/try_api/bower_components/jquery-slimscroll/examples/index.html +0 -9
  140. data/app/assets/javascripts/try_api/bower_components/jquery-slimscroll/examples/libs/prettify/prettify.css +0 -52
  141. data/app/assets/javascripts/try_api/bower_components/jquery-slimscroll/examples/libs/prettify/prettify.js +0 -1477
  142. data/app/assets/javascripts/try_api/bower_components/jquery-slimscroll/examples/mouse-wheel.html +0 -99
  143. data/app/assets/javascripts/try_api/bower_components/jquery-slimscroll/examples/multiple-elements.html +0 -120
  144. data/app/assets/javascripts/try_api/bower_components/jquery-slimscroll/examples/navigation.html +0 -30
  145. data/app/assets/javascripts/try_api/bower_components/jquery-slimscroll/examples/nested.html +0 -82
  146. data/app/assets/javascripts/try_api/bower_components/jquery-slimscroll/examples/programmatic-scrolling.html +0 -138
  147. data/app/assets/javascripts/try_api/bower_components/jquery-slimscroll/examples/rail.html +0 -190
  148. data/app/assets/javascripts/try_api/bower_components/jquery-slimscroll/examples/scroll-events.html +0 -88
  149. data/app/assets/javascripts/try_api/bower_components/jquery-slimscroll/examples/scrollbar.html +0 -189
  150. data/app/assets/javascripts/try_api/bower_components/jquery-slimscroll/examples/start-position.html +0 -100
  151. data/app/assets/javascripts/try_api/bower_components/jquery-slimscroll/examples/style.css +0 -13
  152. data/app/assets/javascripts/try_api/bower_components/jquery-slimscroll/jquery.slimscroll.js +0 -474
  153. data/app/assets/javascripts/try_api/bower_components/jquery-slimscroll/jquery.slimscroll.min.js +0 -16
  154. data/app/assets/javascripts/try_api/bower_components/jquery-slimscroll/package.json +0 -32
@@ -1,24 +0,0 @@
1
- define( [
2
- "../core",
3
- "../queue",
4
- "../effects" // Delay is optional because of this dependency
5
- ], function( jQuery ) {
6
-
7
- "use strict";
8
-
9
- // Based off of the plugin by Clint Helfers, with permission.
10
- // https://web.archive.org/web/20100324014747/http://blindsignals.com/index.php/2009/07/jquery-delay/
11
- jQuery.fn.delay = function( time, type ) {
12
- time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time;
13
- type = type || "fx";
14
-
15
- return this.queue( type, function( next, hooks ) {
16
- var timeout = window.setTimeout( next, time );
17
- hooks.stop = function() {
18
- window.clearTimeout( timeout );
19
- };
20
- } );
21
- };
22
-
23
- return jQuery.fn.delay;
24
- } );
@@ -1,145 +0,0 @@
1
- define( [
2
- "./core",
3
- "./data/var/dataPriv",
4
- "./deferred",
5
- "./callbacks"
6
- ], function( jQuery, dataPriv ) {
7
-
8
- "use strict";
9
-
10
- jQuery.extend( {
11
- queue: function( elem, type, data ) {
12
- var queue;
13
-
14
- if ( elem ) {
15
- type = ( type || "fx" ) + "queue";
16
- queue = dataPriv.get( elem, type );
17
-
18
- // Speed up dequeue by getting out quickly if this is just a lookup
19
- if ( data ) {
20
- if ( !queue || jQuery.isArray( data ) ) {
21
- queue = dataPriv.access( elem, type, jQuery.makeArray( data ) );
22
- } else {
23
- queue.push( data );
24
- }
25
- }
26
- return queue || [];
27
- }
28
- },
29
-
30
- dequeue: function( elem, type ) {
31
- type = type || "fx";
32
-
33
- var queue = jQuery.queue( elem, type ),
34
- startLength = queue.length,
35
- fn = queue.shift(),
36
- hooks = jQuery._queueHooks( elem, type ),
37
- next = function() {
38
- jQuery.dequeue( elem, type );
39
- };
40
-
41
- // If the fx queue is dequeued, always remove the progress sentinel
42
- if ( fn === "inprogress" ) {
43
- fn = queue.shift();
44
- startLength--;
45
- }
46
-
47
- if ( fn ) {
48
-
49
- // Add a progress sentinel to prevent the fx queue from being
50
- // automatically dequeued
51
- if ( type === "fx" ) {
52
- queue.unshift( "inprogress" );
53
- }
54
-
55
- // Clear up the last queue stop function
56
- delete hooks.stop;
57
- fn.call( elem, next, hooks );
58
- }
59
-
60
- if ( !startLength && hooks ) {
61
- hooks.empty.fire();
62
- }
63
- },
64
-
65
- // Not public - generate a queueHooks object, or return the current one
66
- _queueHooks: function( elem, type ) {
67
- var key = type + "queueHooks";
68
- return dataPriv.get( elem, key ) || dataPriv.access( elem, key, {
69
- empty: jQuery.Callbacks( "once memory" ).add( function() {
70
- dataPriv.remove( elem, [ type + "queue", key ] );
71
- } )
72
- } );
73
- }
74
- } );
75
-
76
- jQuery.fn.extend( {
77
- queue: function( type, data ) {
78
- var setter = 2;
79
-
80
- if ( typeof type !== "string" ) {
81
- data = type;
82
- type = "fx";
83
- setter--;
84
- }
85
-
86
- if ( arguments.length < setter ) {
87
- return jQuery.queue( this[ 0 ], type );
88
- }
89
-
90
- return data === undefined ?
91
- this :
92
- this.each( function() {
93
- var queue = jQuery.queue( this, type, data );
94
-
95
- // Ensure a hooks for this queue
96
- jQuery._queueHooks( this, type );
97
-
98
- if ( type === "fx" && queue[ 0 ] !== "inprogress" ) {
99
- jQuery.dequeue( this, type );
100
- }
101
- } );
102
- },
103
- dequeue: function( type ) {
104
- return this.each( function() {
105
- jQuery.dequeue( this, type );
106
- } );
107
- },
108
- clearQueue: function( type ) {
109
- return this.queue( type || "fx", [] );
110
- },
111
-
112
- // Get a promise resolved when queues of a certain type
113
- // are emptied (fx is the type by default)
114
- promise: function( type, obj ) {
115
- var tmp,
116
- count = 1,
117
- defer = jQuery.Deferred(),
118
- elements = this,
119
- i = this.length,
120
- resolve = function() {
121
- if ( !( --count ) ) {
122
- defer.resolveWith( elements, [ elements ] );
123
- }
124
- };
125
-
126
- if ( typeof type !== "string" ) {
127
- obj = type;
128
- type = undefined;
129
- }
130
- type = type || "fx";
131
-
132
- while ( i-- ) {
133
- tmp = dataPriv.get( elements[ i ], type + "queueHooks" );
134
- if ( tmp && tmp.empty ) {
135
- count++;
136
- tmp.empty.add( resolve );
137
- }
138
- }
139
- resolve();
140
- return defer.promise( obj );
141
- }
142
- } );
143
-
144
- return jQuery;
145
- } );
@@ -1,237 +0,0 @@
1
- define( [
2
- "./core",
3
- "./var/document",
4
- "./var/documentElement",
5
- "./var/hasOwn",
6
- "./var/indexOf"
7
- ], function( jQuery, document, documentElement, hasOwn, indexOf ) {
8
-
9
- "use strict";
10
-
11
- /*
12
- * Optional (non-Sizzle) selector module for custom builds.
13
- *
14
- * Note that this DOES NOT SUPPORT many documented jQuery
15
- * features in exchange for its smaller size:
16
- *
17
- * Attribute not equal selector
18
- * Positional selectors (:first; :eq(n); :odd; etc.)
19
- * Type selectors (:input; :checkbox; :button; etc.)
20
- * State-based selectors (:animated; :visible; :hidden; etc.)
21
- * :has(selector)
22
- * :not(complex selector)
23
- * custom selectors via Sizzle extensions
24
- * Leading combinators (e.g., $collection.find("> *"))
25
- * Reliable functionality on XML fragments
26
- * Requiring all parts of a selector to match elements under context
27
- * (e.g., $div.find("div > *") now matches children of $div)
28
- * Matching against non-elements
29
- * Reliable sorting of disconnected nodes
30
- * querySelectorAll bug fixes (e.g., unreliable :focus on WebKit)
31
- *
32
- * If any of these are unacceptable tradeoffs, either use Sizzle or
33
- * customize this stub for the project's specific needs.
34
- */
35
-
36
- var hasDuplicate, sortInput,
37
- sortStable = jQuery.expando.split( "" ).sort( sortOrder ).join( "" ) === jQuery.expando,
38
- matches = documentElement.matches ||
39
- documentElement.webkitMatchesSelector ||
40
- documentElement.mozMatchesSelector ||
41
- documentElement.oMatchesSelector ||
42
- documentElement.msMatchesSelector,
43
-
44
- // CSS string/identifier serialization
45
- // https://drafts.csswg.org/cssom/#common-serializing-idioms
46
- rcssescape = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,
47
- fcssescape = function( ch, asCodePoint ) {
48
- if ( asCodePoint ) {
49
-
50
- // U+0000 NULL becomes U+FFFD REPLACEMENT CHARACTER
51
- if ( ch === "\0" ) {
52
- return "\uFFFD";
53
- }
54
-
55
- // Control characters and (dependent upon position) numbers get escaped as code points
56
- return ch.slice( 0, -1 ) + "\\" + ch.charCodeAt( ch.length - 1 ).toString( 16 ) + " ";
57
- }
58
-
59
- // Other potentially-special ASCII characters get backslash-escaped
60
- return "\\" + ch;
61
- };
62
-
63
- function sortOrder( a, b ) {
64
-
65
- // Flag for duplicate removal
66
- if ( a === b ) {
67
- hasDuplicate = true;
68
- return 0;
69
- }
70
-
71
- // Sort on method existence if only one input has compareDocumentPosition
72
- var compare = !a.compareDocumentPosition - !b.compareDocumentPosition;
73
- if ( compare ) {
74
- return compare;
75
- }
76
-
77
- // Calculate position if both inputs belong to the same document
78
- compare = ( a.ownerDocument || a ) === ( b.ownerDocument || b ) ?
79
- a.compareDocumentPosition( b ) :
80
-
81
- // Otherwise we know they are disconnected
82
- 1;
83
-
84
- // Disconnected nodes
85
- if ( compare & 1 ) {
86
-
87
- // Choose the first element that is related to our preferred document
88
- if ( a === document || a.ownerDocument === document &&
89
- jQuery.contains( document, a ) ) {
90
- return -1;
91
- }
92
- if ( b === document || b.ownerDocument === document &&
93
- jQuery.contains( document, b ) ) {
94
- return 1;
95
- }
96
-
97
- // Maintain original order
98
- return sortInput ?
99
- ( indexOf.call( sortInput, a ) - indexOf.call( sortInput, b ) ) :
100
- 0;
101
- }
102
-
103
- return compare & 4 ? -1 : 1;
104
- }
105
-
106
- function uniqueSort( results ) {
107
- var elem,
108
- duplicates = [],
109
- j = 0,
110
- i = 0;
111
-
112
- hasDuplicate = false;
113
- sortInput = !sortStable && results.slice( 0 );
114
- results.sort( sortOrder );
115
-
116
- if ( hasDuplicate ) {
117
- while ( ( elem = results[ i++ ] ) ) {
118
- if ( elem === results[ i ] ) {
119
- j = duplicates.push( i );
120
- }
121
- }
122
- while ( j-- ) {
123
- results.splice( duplicates[ j ], 1 );
124
- }
125
- }
126
-
127
- // Clear input after sorting to release objects
128
- // See https://github.com/jquery/sizzle/pull/225
129
- sortInput = null;
130
-
131
- return results;
132
- }
133
-
134
- function escape( sel ) {
135
- return ( sel + "" ).replace( rcssescape, fcssescape );
136
- }
137
-
138
- jQuery.extend( {
139
- uniqueSort: uniqueSort,
140
- unique: uniqueSort,
141
- escapeSelector: escape,
142
- find: function( selector, context, results, seed ) {
143
- var elem, nodeType,
144
- i = 0;
145
-
146
- results = results || [];
147
- context = context || document;
148
-
149
- // Same basic safeguard as Sizzle
150
- if ( !selector || typeof selector !== "string" ) {
151
- return results;
152
- }
153
-
154
- // Early return if context is not an element or document
155
- if ( ( nodeType = context.nodeType ) !== 1 && nodeType !== 9 ) {
156
- return [];
157
- }
158
-
159
- if ( seed ) {
160
- while ( ( elem = seed[ i++ ] ) ) {
161
- if ( jQuery.find.matchesSelector( elem, selector ) ) {
162
- results.push( elem );
163
- }
164
- }
165
- } else {
166
- jQuery.merge( results, context.querySelectorAll( selector ) );
167
- }
168
-
169
- return results;
170
- },
171
- text: function( elem ) {
172
- var node,
173
- ret = "",
174
- i = 0,
175
- nodeType = elem.nodeType;
176
-
177
- if ( !nodeType ) {
178
-
179
- // If no nodeType, this is expected to be an array
180
- while ( ( node = elem[ i++ ] ) ) {
181
-
182
- // Do not traverse comment nodes
183
- ret += jQuery.text( node );
184
- }
185
- } else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) {
186
-
187
- // Use textContent for elements
188
- return elem.textContent;
189
- } else if ( nodeType === 3 || nodeType === 4 ) {
190
- return elem.nodeValue;
191
- }
192
-
193
- // Do not include comment or processing instruction nodes
194
-
195
- return ret;
196
- },
197
- contains: function( a, b ) {
198
- var adown = a.nodeType === 9 ? a.documentElement : a,
199
- bup = b && b.parentNode;
200
- return a === bup || !!( bup && bup.nodeType === 1 && adown.contains( bup ) );
201
- },
202
- isXMLDoc: function( elem ) {
203
-
204
- // documentElement is verified for cases where it doesn't yet exist
205
- // (such as loading iframes in IE - #4833)
206
- var documentElement = elem && ( elem.ownerDocument || elem ).documentElement;
207
- return documentElement ? documentElement.nodeName !== "HTML" : false;
208
- },
209
- expr: {
210
- attrHandle: {},
211
- match: {
212
- bool: new RegExp( "^(?:checked|selected|async|autofocus|autoplay|controls|defer" +
213
- "|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)$", "i" ),
214
- needsContext: /^[\x20\t\r\n\f]*[>+~]/
215
- }
216
- }
217
- } );
218
-
219
- jQuery.extend( jQuery.find, {
220
- matches: function( expr, elements ) {
221
- return jQuery.find( expr, null, null, elements );
222
- },
223
- matchesSelector: function( elem, expr ) {
224
- return matches.call( elem, expr );
225
- },
226
- attr: function( elem, name ) {
227
- var fn = jQuery.expr.attrHandle[ name.toLowerCase() ],
228
-
229
- // Don't get fooled by Object.prototype properties (jQuery #13807)
230
- value = fn && hasOwn.call( jQuery.expr.attrHandle, name.toLowerCase() ) ?
231
- fn( elem, name, jQuery.isXMLDoc( elem ) ) :
232
- undefined;
233
- return value !== undefined ? value : elem.getAttribute( name );
234
- }
235
- } );
236
-
237
- } );
@@ -1,19 +0,0 @@
1
- define( [
2
- "./core",
3
- "../external/sizzle/dist/sizzle"
4
- ], function( jQuery, Sizzle ) {
5
-
6
- "use strict";
7
-
8
- jQuery.find = Sizzle;
9
- jQuery.expr = Sizzle.selectors;
10
-
11
- // Deprecated
12
- jQuery.expr[ ":" ] = jQuery.expr.pseudos;
13
- jQuery.uniqueSort = jQuery.unique = Sizzle.uniqueSort;
14
- jQuery.text = Sizzle.getText;
15
- jQuery.isXMLDoc = Sizzle.isXML;
16
- jQuery.contains = Sizzle.contains;
17
- jQuery.escapeSelector = Sizzle.escape;
18
-
19
- } );
@@ -1,3 +0,0 @@
1
- define( [ "./selector-sizzle" ], function() {
2
- "use strict";
3
- } );
@@ -1,126 +0,0 @@
1
- define( [
2
- "./core",
3
- "./manipulation/var/rcheckableType",
4
- "./core/init",
5
- "./traversing", // filter
6
- "./attributes/prop"
7
- ], function( jQuery, rcheckableType ) {
8
-
9
- "use strict";
10
-
11
- var
12
- rbracket = /\[\]$/,
13
- rCRLF = /\r?\n/g,
14
- rsubmitterTypes = /^(?:submit|button|image|reset|file)$/i,
15
- rsubmittable = /^(?:input|select|textarea|keygen)/i;
16
-
17
- function buildParams( prefix, obj, traditional, add ) {
18
- var name;
19
-
20
- if ( jQuery.isArray( obj ) ) {
21
-
22
- // Serialize array item.
23
- jQuery.each( obj, function( i, v ) {
24
- if ( traditional || rbracket.test( prefix ) ) {
25
-
26
- // Treat each array item as a scalar.
27
- add( prefix, v );
28
-
29
- } else {
30
-
31
- // Item is non-scalar (array or object), encode its numeric index.
32
- buildParams(
33
- prefix + "[" + ( typeof v === "object" && v != null ? i : "" ) + "]",
34
- v,
35
- traditional,
36
- add
37
- );
38
- }
39
- } );
40
-
41
- } else if ( !traditional && jQuery.type( obj ) === "object" ) {
42
-
43
- // Serialize object item.
44
- for ( name in obj ) {
45
- buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add );
46
- }
47
-
48
- } else {
49
-
50
- // Serialize scalar item.
51
- add( prefix, obj );
52
- }
53
- }
54
-
55
- // Serialize an array of form elements or a set of
56
- // key/values into a query string
57
- jQuery.param = function( a, traditional ) {
58
- var prefix,
59
- s = [],
60
- add = function( key, valueOrFunction ) {
61
-
62
- // If value is a function, invoke it and use its return value
63
- var value = jQuery.isFunction( valueOrFunction ) ?
64
- valueOrFunction() :
65
- valueOrFunction;
66
-
67
- s[ s.length ] = encodeURIComponent( key ) + "=" +
68
- encodeURIComponent( value == null ? "" : value );
69
- };
70
-
71
- // If an array was passed in, assume that it is an array of form elements.
72
- if ( jQuery.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) {
73
-
74
- // Serialize the form elements
75
- jQuery.each( a, function() {
76
- add( this.name, this.value );
77
- } );
78
-
79
- } else {
80
-
81
- // If traditional, encode the "old" way (the way 1.3.2 or older
82
- // did it), otherwise encode params recursively.
83
- for ( prefix in a ) {
84
- buildParams( prefix, a[ prefix ], traditional, add );
85
- }
86
- }
87
-
88
- // Return the resulting serialization
89
- return s.join( "&" );
90
- };
91
-
92
- jQuery.fn.extend( {
93
- serialize: function() {
94
- return jQuery.param( this.serializeArray() );
95
- },
96
- serializeArray: function() {
97
- return this.map( function() {
98
-
99
- // Can add propHook for "elements" to filter or add form elements
100
- var elements = jQuery.prop( this, "elements" );
101
- return elements ? jQuery.makeArray( elements ) : this;
102
- } )
103
- .filter( function() {
104
- var type = this.type;
105
-
106
- // Use .is( ":disabled" ) so that fieldset[disabled] works
107
- return this.name && !jQuery( this ).is( ":disabled" ) &&
108
- rsubmittable.test( this.nodeName ) && !rsubmitterTypes.test( type ) &&
109
- ( this.checked || !rcheckableType.test( type ) );
110
- } )
111
- .map( function( i, elem ) {
112
- var val = jQuery( this ).val();
113
-
114
- return val == null ?
115
- null :
116
- jQuery.isArray( val ) ?
117
- jQuery.map( val, function( val ) {
118
- return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
119
- } ) :
120
- { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
121
- } ).get();
122
- }
123
- } );
124
-
125
- return jQuery;
126
- } );
@@ -1,99 +0,0 @@
1
- define( [
2
- "../core",
3
- "../var/indexOf",
4
- "./var/rneedsContext",
5
- "../selector"
6
- ], function( jQuery, indexOf, rneedsContext ) {
7
-
8
- "use strict";
9
-
10
- var risSimple = /^.[^:#\[\.,]*$/;
11
-
12
- // Implement the identical functionality for filter and not
13
- function winnow( elements, qualifier, not ) {
14
- if ( jQuery.isFunction( qualifier ) ) {
15
- return jQuery.grep( elements, function( elem, i ) {
16
- return !!qualifier.call( elem, i, elem ) !== not;
17
- } );
18
-
19
- }
20
-
21
- if ( qualifier.nodeType ) {
22
- return jQuery.grep( elements, function( elem ) {
23
- return ( elem === qualifier ) !== not;
24
- } );
25
-
26
- }
27
-
28
- if ( typeof qualifier === "string" ) {
29
- if ( risSimple.test( qualifier ) ) {
30
- return jQuery.filter( qualifier, elements, not );
31
- }
32
-
33
- qualifier = jQuery.filter( qualifier, elements );
34
- }
35
-
36
- return jQuery.grep( elements, function( elem ) {
37
- return ( indexOf.call( qualifier, elem ) > -1 ) !== not && elem.nodeType === 1;
38
- } );
39
- }
40
-
41
- jQuery.filter = function( expr, elems, not ) {
42
- var elem = elems[ 0 ];
43
-
44
- if ( not ) {
45
- expr = ":not(" + expr + ")";
46
- }
47
-
48
- return elems.length === 1 && elem.nodeType === 1 ?
49
- jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : [] :
50
- jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) {
51
- return elem.nodeType === 1;
52
- } ) );
53
- };
54
-
55
- jQuery.fn.extend( {
56
- find: function( selector ) {
57
- var i, ret,
58
- len = this.length,
59
- self = this;
60
-
61
- if ( typeof selector !== "string" ) {
62
- return this.pushStack( jQuery( selector ).filter( function() {
63
- for ( i = 0; i < len; i++ ) {
64
- if ( jQuery.contains( self[ i ], this ) ) {
65
- return true;
66
- }
67
- }
68
- } ) );
69
- }
70
-
71
- ret = this.pushStack( [] );
72
-
73
- for ( i = 0; i < len; i++ ) {
74
- jQuery.find( selector, self[ i ], ret );
75
- }
76
-
77
- return len > 1 ? jQuery.uniqueSort( ret ) : ret;
78
- },
79
- filter: function( selector ) {
80
- return this.pushStack( winnow( this, selector || [], false ) );
81
- },
82
- not: function( selector ) {
83
- return this.pushStack( winnow( this, selector || [], true ) );
84
- },
85
- is: function( selector ) {
86
- return !!winnow(
87
- this,
88
-
89
- // If this is a positional/relative selector, check membership in the returned set
90
- // so $("p:first").is("p:last") won't return true for a doc with two "p".
91
- typeof selector === "string" && rneedsContext.test( selector ) ?
92
- jQuery( selector ) :
93
- selector || [],
94
- false
95
- ).length;
96
- }
97
- } );
98
-
99
- } );
@@ -1,22 +0,0 @@
1
- define( [
2
- "../../core"
3
- ], function( jQuery ) {
4
-
5
- "use strict";
6
-
7
- return function( elem, dir, until ) {
8
- var matched = [],
9
- truncate = until !== undefined;
10
-
11
- while ( ( elem = elem[ dir ] ) && elem.nodeType !== 9 ) {
12
- if ( elem.nodeType === 1 ) {
13
- if ( truncate && jQuery( elem ).is( until ) ) {
14
- break;
15
- }
16
- matched.push( elem );
17
- }
18
- }
19
- return matched;
20
- };
21
-
22
- } );
@@ -1,8 +0,0 @@
1
- define( [
2
- "../../core",
3
- "../../selector"
4
- ], function( jQuery ) {
5
- "use strict";
6
-
7
- return jQuery.expr.match.needsContext;
8
- } );
@@ -1,17 +0,0 @@
1
- define( function() {
2
-
3
- "use strict";
4
-
5
- return function( n, elem ) {
6
- var matched = [];
7
-
8
- for ( ; n; n = n.nextSibling ) {
9
- if ( n.nodeType === 1 && n !== elem ) {
10
- matched.push( n );
11
- }
12
- }
13
-
14
- return matched;
15
- };
16
-
17
- } );