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,688 +0,0 @@
1
- define( [
2
- "./core",
3
- "./var/document",
4
- "./var/rcssNum",
5
- "./var/rnotwhite",
6
- "./css/var/cssExpand",
7
- "./css/var/isHiddenWithinTree",
8
- "./css/var/swap",
9
- "./css/adjustCSS",
10
- "./data/var/dataPriv",
11
- "./css/showHide",
12
-
13
- "./core/init",
14
- "./queue",
15
- "./deferred",
16
- "./traversing",
17
- "./manipulation",
18
- "./css",
19
- "./effects/Tween"
20
- ], function( jQuery, document, rcssNum, rnotwhite, cssExpand, isHiddenWithinTree, swap,
21
- adjustCSS, dataPriv, showHide ) {
22
-
23
- "use strict";
24
-
25
- var
26
- fxNow, timerId,
27
- rfxtypes = /^(?:toggle|show|hide)$/,
28
- rrun = /queueHooks$/;
29
-
30
- function raf() {
31
- if ( timerId ) {
32
- window.requestAnimationFrame( raf );
33
- jQuery.fx.tick();
34
- }
35
- }
36
-
37
- // Animations created synchronously will run synchronously
38
- function createFxNow() {
39
- window.setTimeout( function() {
40
- fxNow = undefined;
41
- } );
42
- return ( fxNow = jQuery.now() );
43
- }
44
-
45
- // Generate parameters to create a standard animation
46
- function genFx( type, includeWidth ) {
47
- var which,
48
- i = 0,
49
- attrs = { height: type };
50
-
51
- // If we include width, step value is 1 to do all cssExpand values,
52
- // otherwise step value is 2 to skip over Left and Right
53
- includeWidth = includeWidth ? 1 : 0;
54
- for ( ; i < 4; i += 2 - includeWidth ) {
55
- which = cssExpand[ i ];
56
- attrs[ "margin" + which ] = attrs[ "padding" + which ] = type;
57
- }
58
-
59
- if ( includeWidth ) {
60
- attrs.opacity = attrs.width = type;
61
- }
62
-
63
- return attrs;
64
- }
65
-
66
- function createTween( value, prop, animation ) {
67
- var tween,
68
- collection = ( Animation.tweeners[ prop ] || [] ).concat( Animation.tweeners[ "*" ] ),
69
- index = 0,
70
- length = collection.length;
71
- for ( ; index < length; index++ ) {
72
- if ( ( tween = collection[ index ].call( animation, prop, value ) ) ) {
73
-
74
- // We're done with this property
75
- return tween;
76
- }
77
- }
78
- }
79
-
80
- function defaultPrefilter( elem, props, opts ) {
81
- var prop, value, toggle, hooks, oldfire, propTween, restoreDisplay, display,
82
- isBox = "width" in props || "height" in props,
83
- anim = this,
84
- orig = {},
85
- style = elem.style,
86
- hidden = elem.nodeType && isHiddenWithinTree( elem ),
87
- dataShow = dataPriv.get( elem, "fxshow" );
88
-
89
- // Queue-skipping animations hijack the fx hooks
90
- if ( !opts.queue ) {
91
- hooks = jQuery._queueHooks( elem, "fx" );
92
- if ( hooks.unqueued == null ) {
93
- hooks.unqueued = 0;
94
- oldfire = hooks.empty.fire;
95
- hooks.empty.fire = function() {
96
- if ( !hooks.unqueued ) {
97
- oldfire();
98
- }
99
- };
100
- }
101
- hooks.unqueued++;
102
-
103
- anim.always( function() {
104
-
105
- // Ensure the complete handler is called before this completes
106
- anim.always( function() {
107
- hooks.unqueued--;
108
- if ( !jQuery.queue( elem, "fx" ).length ) {
109
- hooks.empty.fire();
110
- }
111
- } );
112
- } );
113
- }
114
-
115
- // Detect show/hide animations
116
- for ( prop in props ) {
117
- value = props[ prop ];
118
- if ( rfxtypes.test( value ) ) {
119
- delete props[ prop ];
120
- toggle = toggle || value === "toggle";
121
- if ( value === ( hidden ? "hide" : "show" ) ) {
122
-
123
- // Pretend to be hidden if this is a "show" and
124
- // there is still data from a stopped show/hide
125
- if ( value === "show" && dataShow && dataShow[ prop ] !== undefined ) {
126
- hidden = true;
127
-
128
- // Ignore all other no-op show/hide data
129
- } else {
130
- continue;
131
- }
132
- }
133
- orig[ prop ] = dataShow && dataShow[ prop ] || jQuery.style( elem, prop );
134
- }
135
- }
136
-
137
- // Bail out if this is a no-op like .hide().hide()
138
- propTween = !jQuery.isEmptyObject( props );
139
- if ( !propTween && jQuery.isEmptyObject( orig ) ) {
140
- return;
141
- }
142
-
143
- // Restrict "overflow" and "display" styles during box animations
144
- if ( isBox && elem.nodeType === 1 ) {
145
-
146
- // Support: IE <=9 - 11, Edge 12 - 13
147
- // Record all 3 overflow attributes because IE does not infer the shorthand
148
- // from identically-valued overflowX and overflowY
149
- opts.overflow = [ style.overflow, style.overflowX, style.overflowY ];
150
-
151
- // Identify a display type, preferring old show/hide data over the CSS cascade
152
- restoreDisplay = dataShow && dataShow.display;
153
- if ( restoreDisplay == null ) {
154
- restoreDisplay = dataPriv.get( elem, "display" );
155
- }
156
- display = jQuery.css( elem, "display" );
157
- if ( display === "none" ) {
158
- if ( restoreDisplay ) {
159
- display = restoreDisplay;
160
- } else {
161
-
162
- // Get nonempty value(s) by temporarily forcing visibility
163
- showHide( [ elem ], true );
164
- restoreDisplay = elem.style.display || restoreDisplay;
165
- display = jQuery.css( elem, "display" );
166
- showHide( [ elem ] );
167
- }
168
- }
169
-
170
- // Animate inline elements as inline-block
171
- if ( display === "inline" || display === "inline-block" && restoreDisplay != null ) {
172
- if ( jQuery.css( elem, "float" ) === "none" ) {
173
-
174
- // Restore the original display value at the end of pure show/hide animations
175
- if ( !propTween ) {
176
- anim.done( function() {
177
- style.display = restoreDisplay;
178
- } );
179
- if ( restoreDisplay == null ) {
180
- display = style.display;
181
- restoreDisplay = display === "none" ? "" : display;
182
- }
183
- }
184
- style.display = "inline-block";
185
- }
186
- }
187
- }
188
-
189
- if ( opts.overflow ) {
190
- style.overflow = "hidden";
191
- anim.always( function() {
192
- style.overflow = opts.overflow[ 0 ];
193
- style.overflowX = opts.overflow[ 1 ];
194
- style.overflowY = opts.overflow[ 2 ];
195
- } );
196
- }
197
-
198
- // Implement show/hide animations
199
- propTween = false;
200
- for ( prop in orig ) {
201
-
202
- // General show/hide setup for this element animation
203
- if ( !propTween ) {
204
- if ( dataShow ) {
205
- if ( "hidden" in dataShow ) {
206
- hidden = dataShow.hidden;
207
- }
208
- } else {
209
- dataShow = dataPriv.access( elem, "fxshow", { display: restoreDisplay } );
210
- }
211
-
212
- // Store hidden/visible for toggle so `.stop().toggle()` "reverses"
213
- if ( toggle ) {
214
- dataShow.hidden = !hidden;
215
- }
216
-
217
- // Show elements before animating them
218
- if ( hidden ) {
219
- showHide( [ elem ], true );
220
- }
221
-
222
- /* eslint-disable no-loop-func */
223
-
224
- anim.done( function() {
225
-
226
- /* eslint-enable no-loop-func */
227
-
228
- // The final step of a "hide" animation is actually hiding the element
229
- if ( !hidden ) {
230
- showHide( [ elem ] );
231
- }
232
- dataPriv.remove( elem, "fxshow" );
233
- for ( prop in orig ) {
234
- jQuery.style( elem, prop, orig[ prop ] );
235
- }
236
- } );
237
- }
238
-
239
- // Per-property setup
240
- propTween = createTween( hidden ? dataShow[ prop ] : 0, prop, anim );
241
- if ( !( prop in dataShow ) ) {
242
- dataShow[ prop ] = propTween.start;
243
- if ( hidden ) {
244
- propTween.end = propTween.start;
245
- propTween.start = 0;
246
- }
247
- }
248
- }
249
- }
250
-
251
- function propFilter( props, specialEasing ) {
252
- var index, name, easing, value, hooks;
253
-
254
- // camelCase, specialEasing and expand cssHook pass
255
- for ( index in props ) {
256
- name = jQuery.camelCase( index );
257
- easing = specialEasing[ name ];
258
- value = props[ index ];
259
- if ( jQuery.isArray( value ) ) {
260
- easing = value[ 1 ];
261
- value = props[ index ] = value[ 0 ];
262
- }
263
-
264
- if ( index !== name ) {
265
- props[ name ] = value;
266
- delete props[ index ];
267
- }
268
-
269
- hooks = jQuery.cssHooks[ name ];
270
- if ( hooks && "expand" in hooks ) {
271
- value = hooks.expand( value );
272
- delete props[ name ];
273
-
274
- // Not quite $.extend, this won't overwrite existing keys.
275
- // Reusing 'index' because we have the correct "name"
276
- for ( index in value ) {
277
- if ( !( index in props ) ) {
278
- props[ index ] = value[ index ];
279
- specialEasing[ index ] = easing;
280
- }
281
- }
282
- } else {
283
- specialEasing[ name ] = easing;
284
- }
285
- }
286
- }
287
-
288
- function Animation( elem, properties, options ) {
289
- var result,
290
- stopped,
291
- index = 0,
292
- length = Animation.prefilters.length,
293
- deferred = jQuery.Deferred().always( function() {
294
-
295
- // Don't match elem in the :animated selector
296
- delete tick.elem;
297
- } ),
298
- tick = function() {
299
- if ( stopped ) {
300
- return false;
301
- }
302
- var currentTime = fxNow || createFxNow(),
303
- remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ),
304
-
305
- // Support: Android 2.3 only
306
- // Archaic crash bug won't allow us to use `1 - ( 0.5 || 0 )` (#12497)
307
- temp = remaining / animation.duration || 0,
308
- percent = 1 - temp,
309
- index = 0,
310
- length = animation.tweens.length;
311
-
312
- for ( ; index < length; index++ ) {
313
- animation.tweens[ index ].run( percent );
314
- }
315
-
316
- deferred.notifyWith( elem, [ animation, percent, remaining ] );
317
-
318
- if ( percent < 1 && length ) {
319
- return remaining;
320
- } else {
321
- deferred.resolveWith( elem, [ animation ] );
322
- return false;
323
- }
324
- },
325
- animation = deferred.promise( {
326
- elem: elem,
327
- props: jQuery.extend( {}, properties ),
328
- opts: jQuery.extend( true, {
329
- specialEasing: {},
330
- easing: jQuery.easing._default
331
- }, options ),
332
- originalProperties: properties,
333
- originalOptions: options,
334
- startTime: fxNow || createFxNow(),
335
- duration: options.duration,
336
- tweens: [],
337
- createTween: function( prop, end ) {
338
- var tween = jQuery.Tween( elem, animation.opts, prop, end,
339
- animation.opts.specialEasing[ prop ] || animation.opts.easing );
340
- animation.tweens.push( tween );
341
- return tween;
342
- },
343
- stop: function( gotoEnd ) {
344
- var index = 0,
345
-
346
- // If we are going to the end, we want to run all the tweens
347
- // otherwise we skip this part
348
- length = gotoEnd ? animation.tweens.length : 0;
349
- if ( stopped ) {
350
- return this;
351
- }
352
- stopped = true;
353
- for ( ; index < length; index++ ) {
354
- animation.tweens[ index ].run( 1 );
355
- }
356
-
357
- // Resolve when we played the last frame; otherwise, reject
358
- if ( gotoEnd ) {
359
- deferred.notifyWith( elem, [ animation, 1, 0 ] );
360
- deferred.resolveWith( elem, [ animation, gotoEnd ] );
361
- } else {
362
- deferred.rejectWith( elem, [ animation, gotoEnd ] );
363
- }
364
- return this;
365
- }
366
- } ),
367
- props = animation.props;
368
-
369
- propFilter( props, animation.opts.specialEasing );
370
-
371
- for ( ; index < length; index++ ) {
372
- result = Animation.prefilters[ index ].call( animation, elem, props, animation.opts );
373
- if ( result ) {
374
- if ( jQuery.isFunction( result.stop ) ) {
375
- jQuery._queueHooks( animation.elem, animation.opts.queue ).stop =
376
- jQuery.proxy( result.stop, result );
377
- }
378
- return result;
379
- }
380
- }
381
-
382
- jQuery.map( props, createTween, animation );
383
-
384
- if ( jQuery.isFunction( animation.opts.start ) ) {
385
- animation.opts.start.call( elem, animation );
386
- }
387
-
388
- jQuery.fx.timer(
389
- jQuery.extend( tick, {
390
- elem: elem,
391
- anim: animation,
392
- queue: animation.opts.queue
393
- } )
394
- );
395
-
396
- // attach callbacks from options
397
- return animation.progress( animation.opts.progress )
398
- .done( animation.opts.done, animation.opts.complete )
399
- .fail( animation.opts.fail )
400
- .always( animation.opts.always );
401
- }
402
-
403
- jQuery.Animation = jQuery.extend( Animation, {
404
-
405
- tweeners: {
406
- "*": [ function( prop, value ) {
407
- var tween = this.createTween( prop, value );
408
- adjustCSS( tween.elem, prop, rcssNum.exec( value ), tween );
409
- return tween;
410
- } ]
411
- },
412
-
413
- tweener: function( props, callback ) {
414
- if ( jQuery.isFunction( props ) ) {
415
- callback = props;
416
- props = [ "*" ];
417
- } else {
418
- props = props.match( rnotwhite );
419
- }
420
-
421
- var prop,
422
- index = 0,
423
- length = props.length;
424
-
425
- for ( ; index < length; index++ ) {
426
- prop = props[ index ];
427
- Animation.tweeners[ prop ] = Animation.tweeners[ prop ] || [];
428
- Animation.tweeners[ prop ].unshift( callback );
429
- }
430
- },
431
-
432
- prefilters: [ defaultPrefilter ],
433
-
434
- prefilter: function( callback, prepend ) {
435
- if ( prepend ) {
436
- Animation.prefilters.unshift( callback );
437
- } else {
438
- Animation.prefilters.push( callback );
439
- }
440
- }
441
- } );
442
-
443
- jQuery.speed = function( speed, easing, fn ) {
444
- var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : {
445
- complete: fn || !fn && easing ||
446
- jQuery.isFunction( speed ) && speed,
447
- duration: speed,
448
- easing: fn && easing || easing && !jQuery.isFunction( easing ) && easing
449
- };
450
-
451
- // Go to the end state if fx are off or if document is hidden
452
- if ( jQuery.fx.off || document.hidden ) {
453
- opt.duration = 0;
454
-
455
- } else {
456
- opt.duration = typeof opt.duration === "number" ?
457
- opt.duration : opt.duration in jQuery.fx.speeds ?
458
- jQuery.fx.speeds[ opt.duration ] : jQuery.fx.speeds._default;
459
- }
460
-
461
- // Normalize opt.queue - true/undefined/null -> "fx"
462
- if ( opt.queue == null || opt.queue === true ) {
463
- opt.queue = "fx";
464
- }
465
-
466
- // Queueing
467
- opt.old = opt.complete;
468
-
469
- opt.complete = function() {
470
- if ( jQuery.isFunction( opt.old ) ) {
471
- opt.old.call( this );
472
- }
473
-
474
- if ( opt.queue ) {
475
- jQuery.dequeue( this, opt.queue );
476
- }
477
- };
478
-
479
- return opt;
480
- };
481
-
482
- jQuery.fn.extend( {
483
- fadeTo: function( speed, to, easing, callback ) {
484
-
485
- // Show any hidden elements after setting opacity to 0
486
- return this.filter( isHiddenWithinTree ).css( "opacity", 0 ).show()
487
-
488
- // Animate to the value specified
489
- .end().animate( { opacity: to }, speed, easing, callback );
490
- },
491
- animate: function( prop, speed, easing, callback ) {
492
- var empty = jQuery.isEmptyObject( prop ),
493
- optall = jQuery.speed( speed, easing, callback ),
494
- doAnimation = function() {
495
-
496
- // Operate on a copy of prop so per-property easing won't be lost
497
- var anim = Animation( this, jQuery.extend( {}, prop ), optall );
498
-
499
- // Empty animations, or finishing resolves immediately
500
- if ( empty || dataPriv.get( this, "finish" ) ) {
501
- anim.stop( true );
502
- }
503
- };
504
- doAnimation.finish = doAnimation;
505
-
506
- return empty || optall.queue === false ?
507
- this.each( doAnimation ) :
508
- this.queue( optall.queue, doAnimation );
509
- },
510
- stop: function( type, clearQueue, gotoEnd ) {
511
- var stopQueue = function( hooks ) {
512
- var stop = hooks.stop;
513
- delete hooks.stop;
514
- stop( gotoEnd );
515
- };
516
-
517
- if ( typeof type !== "string" ) {
518
- gotoEnd = clearQueue;
519
- clearQueue = type;
520
- type = undefined;
521
- }
522
- if ( clearQueue && type !== false ) {
523
- this.queue( type || "fx", [] );
524
- }
525
-
526
- return this.each( function() {
527
- var dequeue = true,
528
- index = type != null && type + "queueHooks",
529
- timers = jQuery.timers,
530
- data = dataPriv.get( this );
531
-
532
- if ( index ) {
533
- if ( data[ index ] && data[ index ].stop ) {
534
- stopQueue( data[ index ] );
535
- }
536
- } else {
537
- for ( index in data ) {
538
- if ( data[ index ] && data[ index ].stop && rrun.test( index ) ) {
539
- stopQueue( data[ index ] );
540
- }
541
- }
542
- }
543
-
544
- for ( index = timers.length; index--; ) {
545
- if ( timers[ index ].elem === this &&
546
- ( type == null || timers[ index ].queue === type ) ) {
547
-
548
- timers[ index ].anim.stop( gotoEnd );
549
- dequeue = false;
550
- timers.splice( index, 1 );
551
- }
552
- }
553
-
554
- // Start the next in the queue if the last step wasn't forced.
555
- // Timers currently will call their complete callbacks, which
556
- // will dequeue but only if they were gotoEnd.
557
- if ( dequeue || !gotoEnd ) {
558
- jQuery.dequeue( this, type );
559
- }
560
- } );
561
- },
562
- finish: function( type ) {
563
- if ( type !== false ) {
564
- type = type || "fx";
565
- }
566
- return this.each( function() {
567
- var index,
568
- data = dataPriv.get( this ),
569
- queue = data[ type + "queue" ],
570
- hooks = data[ type + "queueHooks" ],
571
- timers = jQuery.timers,
572
- length = queue ? queue.length : 0;
573
-
574
- // Enable finishing flag on private data
575
- data.finish = true;
576
-
577
- // Empty the queue first
578
- jQuery.queue( this, type, [] );
579
-
580
- if ( hooks && hooks.stop ) {
581
- hooks.stop.call( this, true );
582
- }
583
-
584
- // Look for any active animations, and finish them
585
- for ( index = timers.length; index--; ) {
586
- if ( timers[ index ].elem === this && timers[ index ].queue === type ) {
587
- timers[ index ].anim.stop( true );
588
- timers.splice( index, 1 );
589
- }
590
- }
591
-
592
- // Look for any animations in the old queue and finish them
593
- for ( index = 0; index < length; index++ ) {
594
- if ( queue[ index ] && queue[ index ].finish ) {
595
- queue[ index ].finish.call( this );
596
- }
597
- }
598
-
599
- // Turn off finishing flag
600
- delete data.finish;
601
- } );
602
- }
603
- } );
604
-
605
- jQuery.each( [ "toggle", "show", "hide" ], function( i, name ) {
606
- var cssFn = jQuery.fn[ name ];
607
- jQuery.fn[ name ] = function( speed, easing, callback ) {
608
- return speed == null || typeof speed === "boolean" ?
609
- cssFn.apply( this, arguments ) :
610
- this.animate( genFx( name, true ), speed, easing, callback );
611
- };
612
- } );
613
-
614
- // Generate shortcuts for custom animations
615
- jQuery.each( {
616
- slideDown: genFx( "show" ),
617
- slideUp: genFx( "hide" ),
618
- slideToggle: genFx( "toggle" ),
619
- fadeIn: { opacity: "show" },
620
- fadeOut: { opacity: "hide" },
621
- fadeToggle: { opacity: "toggle" }
622
- }, function( name, props ) {
623
- jQuery.fn[ name ] = function( speed, easing, callback ) {
624
- return this.animate( props, speed, easing, callback );
625
- };
626
- } );
627
-
628
- jQuery.timers = [];
629
- jQuery.fx.tick = function() {
630
- var timer,
631
- i = 0,
632
- timers = jQuery.timers;
633
-
634
- fxNow = jQuery.now();
635
-
636
- for ( ; i < timers.length; i++ ) {
637
- timer = timers[ i ];
638
-
639
- // Checks the timer has not already been removed
640
- if ( !timer() && timers[ i ] === timer ) {
641
- timers.splice( i--, 1 );
642
- }
643
- }
644
-
645
- if ( !timers.length ) {
646
- jQuery.fx.stop();
647
- }
648
- fxNow = undefined;
649
- };
650
-
651
- jQuery.fx.timer = function( timer ) {
652
- jQuery.timers.push( timer );
653
- if ( timer() ) {
654
- jQuery.fx.start();
655
- } else {
656
- jQuery.timers.pop();
657
- }
658
- };
659
-
660
- jQuery.fx.interval = 13;
661
- jQuery.fx.start = function() {
662
- if ( !timerId ) {
663
- timerId = window.requestAnimationFrame ?
664
- window.requestAnimationFrame( raf ) :
665
- window.setInterval( jQuery.fx.tick, jQuery.fx.interval );
666
- }
667
- };
668
-
669
- jQuery.fx.stop = function() {
670
- if ( window.cancelAnimationFrame ) {
671
- window.cancelAnimationFrame( timerId );
672
- } else {
673
- window.clearInterval( timerId );
674
- }
675
-
676
- timerId = null;
677
- };
678
-
679
- jQuery.fx.speeds = {
680
- slow: 600,
681
- fast: 200,
682
-
683
- // Default speed
684
- _default: 400
685
- };
686
-
687
- return jQuery;
688
- } );
@@ -1,22 +0,0 @@
1
- define( [
2
- "../core",
3
- "../event"
4
- ], function( jQuery ) {
5
-
6
- "use strict";
7
-
8
- // Attach a bunch of functions for handling common AJAX events
9
- jQuery.each( [
10
- "ajaxStart",
11
- "ajaxStop",
12
- "ajaxComplete",
13
- "ajaxError",
14
- "ajaxSuccess",
15
- "ajaxSend"
16
- ], function( i, type ) {
17
- jQuery.fn[ type ] = function( fn ) {
18
- return this.on( type, fn );
19
- };
20
- } );
21
-
22
- } );