try_api 0.0.10 → 0.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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,424 +0,0 @@
1
- define( [
2
- "./core",
3
- "./var/pnum",
4
- "./core/access",
5
- "./css/var/rmargin",
6
- "./var/document",
7
- "./var/rcssNum",
8
- "./css/var/rnumnonpx",
9
- "./css/var/cssExpand",
10
- "./css/var/getStyles",
11
- "./css/var/swap",
12
- "./css/curCSS",
13
- "./css/adjustCSS",
14
- "./css/addGetHookIf",
15
- "./css/support",
16
-
17
- "./core/init",
18
- "./core/ready",
19
- "./selector" // contains
20
- ], function( jQuery, pnum, access, rmargin, document, rcssNum, rnumnonpx, cssExpand,
21
- getStyles, swap, curCSS, adjustCSS, addGetHookIf, support ) {
22
-
23
- "use strict";
24
-
25
- var
26
-
27
- // Swappable if display is none or starts with table
28
- // except "table", "table-cell", or "table-caption"
29
- // See here for display values: https://developer.mozilla.org/en-US/docs/CSS/display
30
- rdisplayswap = /^(none|table(?!-c[ea]).+)/,
31
- cssShow = { position: "absolute", visibility: "hidden", display: "block" },
32
- cssNormalTransform = {
33
- letterSpacing: "0",
34
- fontWeight: "400"
35
- },
36
-
37
- cssPrefixes = [ "Webkit", "Moz", "ms" ],
38
- emptyStyle = document.createElement( "div" ).style;
39
-
40
- // Return a css property mapped to a potentially vendor prefixed property
41
- function vendorPropName( name ) {
42
-
43
- // Shortcut for names that are not vendor prefixed
44
- if ( name in emptyStyle ) {
45
- return name;
46
- }
47
-
48
- // Check for vendor prefixed names
49
- var capName = name[ 0 ].toUpperCase() + name.slice( 1 ),
50
- i = cssPrefixes.length;
51
-
52
- while ( i-- ) {
53
- name = cssPrefixes[ i ] + capName;
54
- if ( name in emptyStyle ) {
55
- return name;
56
- }
57
- }
58
- }
59
-
60
- function setPositiveNumber( elem, value, subtract ) {
61
-
62
- // Any relative (+/-) values have already been
63
- // normalized at this point
64
- var matches = rcssNum.exec( value );
65
- return matches ?
66
-
67
- // Guard against undefined "subtract", e.g., when used as in cssHooks
68
- Math.max( 0, matches[ 2 ] - ( subtract || 0 ) ) + ( matches[ 3 ] || "px" ) :
69
- value;
70
- }
71
-
72
- function augmentWidthOrHeight( elem, name, extra, isBorderBox, styles ) {
73
- var i = extra === ( isBorderBox ? "border" : "content" ) ?
74
-
75
- // If we already have the right measurement, avoid augmentation
76
- 4 :
77
-
78
- // Otherwise initialize for horizontal or vertical properties
79
- name === "width" ? 1 : 0,
80
-
81
- val = 0;
82
-
83
- for ( ; i < 4; i += 2 ) {
84
-
85
- // Both box models exclude margin, so add it if we want it
86
- if ( extra === "margin" ) {
87
- val += jQuery.css( elem, extra + cssExpand[ i ], true, styles );
88
- }
89
-
90
- if ( isBorderBox ) {
91
-
92
- // border-box includes padding, so remove it if we want content
93
- if ( extra === "content" ) {
94
- val -= jQuery.css( elem, "padding" + cssExpand[ i ], true, styles );
95
- }
96
-
97
- // At this point, extra isn't border nor margin, so remove border
98
- if ( extra !== "margin" ) {
99
- val -= jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles );
100
- }
101
- } else {
102
-
103
- // At this point, extra isn't content, so add padding
104
- val += jQuery.css( elem, "padding" + cssExpand[ i ], true, styles );
105
-
106
- // At this point, extra isn't content nor padding, so add border
107
- if ( extra !== "padding" ) {
108
- val += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles );
109
- }
110
- }
111
- }
112
-
113
- return val;
114
- }
115
-
116
- function getWidthOrHeight( elem, name, extra ) {
117
-
118
- // Start with offset property, which is equivalent to the border-box value
119
- var val,
120
- valueIsBorderBox = true,
121
- styles = getStyles( elem ),
122
- isBorderBox = jQuery.css( elem, "boxSizing", false, styles ) === "border-box";
123
-
124
- // Support: IE <=11 only
125
- // Running getBoundingClientRect on a disconnected node
126
- // in IE throws an error.
127
- if ( elem.getClientRects().length ) {
128
- val = elem.getBoundingClientRect()[ name ];
129
- }
130
-
131
- // Some non-html elements return undefined for offsetWidth, so check for null/undefined
132
- // svg - https://bugzilla.mozilla.org/show_bug.cgi?id=649285
133
- // MathML - https://bugzilla.mozilla.org/show_bug.cgi?id=491668
134
- if ( val <= 0 || val == null ) {
135
-
136
- // Fall back to computed then uncomputed css if necessary
137
- val = curCSS( elem, name, styles );
138
- if ( val < 0 || val == null ) {
139
- val = elem.style[ name ];
140
- }
141
-
142
- // Computed unit is not pixels. Stop here and return.
143
- if ( rnumnonpx.test( val ) ) {
144
- return val;
145
- }
146
-
147
- // Check for style in case a browser which returns unreliable values
148
- // for getComputedStyle silently falls back to the reliable elem.style
149
- valueIsBorderBox = isBorderBox &&
150
- ( support.boxSizingReliable() || val === elem.style[ name ] );
151
-
152
- // Normalize "", auto, and prepare for extra
153
- val = parseFloat( val ) || 0;
154
- }
155
-
156
- // Use the active box-sizing model to add/subtract irrelevant styles
157
- return ( val +
158
- augmentWidthOrHeight(
159
- elem,
160
- name,
161
- extra || ( isBorderBox ? "border" : "content" ),
162
- valueIsBorderBox,
163
- styles
164
- )
165
- ) + "px";
166
- }
167
-
168
- jQuery.extend( {
169
-
170
- // Add in style property hooks for overriding the default
171
- // behavior of getting and setting a style property
172
- cssHooks: {
173
- opacity: {
174
- get: function( elem, computed ) {
175
- if ( computed ) {
176
-
177
- // We should always get a number back from opacity
178
- var ret = curCSS( elem, "opacity" );
179
- return ret === "" ? "1" : ret;
180
- }
181
- }
182
- }
183
- },
184
-
185
- // Don't automatically add "px" to these possibly-unitless properties
186
- cssNumber: {
187
- "animationIterationCount": true,
188
- "columnCount": true,
189
- "fillOpacity": true,
190
- "flexGrow": true,
191
- "flexShrink": true,
192
- "fontWeight": true,
193
- "lineHeight": true,
194
- "opacity": true,
195
- "order": true,
196
- "orphans": true,
197
- "widows": true,
198
- "zIndex": true,
199
- "zoom": true
200
- },
201
-
202
- // Add in properties whose names you wish to fix before
203
- // setting or getting the value
204
- cssProps: {
205
- "float": "cssFloat"
206
- },
207
-
208
- // Get and set the style property on a DOM Node
209
- style: function( elem, name, value, extra ) {
210
-
211
- // Don't set styles on text and comment nodes
212
- if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
213
- return;
214
- }
215
-
216
- // Make sure that we're working with the right name
217
- var ret, type, hooks,
218
- origName = jQuery.camelCase( name ),
219
- style = elem.style;
220
-
221
- name = jQuery.cssProps[ origName ] ||
222
- ( jQuery.cssProps[ origName ] = vendorPropName( origName ) || origName );
223
-
224
- // Gets hook for the prefixed version, then unprefixed version
225
- hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];
226
-
227
- // Check if we're setting a value
228
- if ( value !== undefined ) {
229
- type = typeof value;
230
-
231
- // Convert "+=" or "-=" to relative numbers (#7345)
232
- if ( type === "string" && ( ret = rcssNum.exec( value ) ) && ret[ 1 ] ) {
233
- value = adjustCSS( elem, name, ret );
234
-
235
- // Fixes bug #9237
236
- type = "number";
237
- }
238
-
239
- // Make sure that null and NaN values aren't set (#7116)
240
- if ( value == null || value !== value ) {
241
- return;
242
- }
243
-
244
- // If a number was passed in, add the unit (except for certain CSS properties)
245
- if ( type === "number" ) {
246
- value += ret && ret[ 3 ] || ( jQuery.cssNumber[ origName ] ? "" : "px" );
247
- }
248
-
249
- // background-* props affect original clone's values
250
- if ( !support.clearCloneStyle && value === "" && name.indexOf( "background" ) === 0 ) {
251
- style[ name ] = "inherit";
252
- }
253
-
254
- // If a hook was provided, use that value, otherwise just set the specified value
255
- if ( !hooks || !( "set" in hooks ) ||
256
- ( value = hooks.set( elem, value, extra ) ) !== undefined ) {
257
-
258
- style[ name ] = value;
259
- }
260
-
261
- } else {
262
-
263
- // If a hook was provided get the non-computed value from there
264
- if ( hooks && "get" in hooks &&
265
- ( ret = hooks.get( elem, false, extra ) ) !== undefined ) {
266
-
267
- return ret;
268
- }
269
-
270
- // Otherwise just get the value from the style object
271
- return style[ name ];
272
- }
273
- },
274
-
275
- css: function( elem, name, extra, styles ) {
276
- var val, num, hooks,
277
- origName = jQuery.camelCase( name );
278
-
279
- // Make sure that we're working with the right name
280
- name = jQuery.cssProps[ origName ] ||
281
- ( jQuery.cssProps[ origName ] = vendorPropName( origName ) || origName );
282
-
283
- // Try prefixed name followed by the unprefixed name
284
- hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];
285
-
286
- // If a hook was provided get the computed value from there
287
- if ( hooks && "get" in hooks ) {
288
- val = hooks.get( elem, true, extra );
289
- }
290
-
291
- // Otherwise, if a way to get the computed value exists, use that
292
- if ( val === undefined ) {
293
- val = curCSS( elem, name, styles );
294
- }
295
-
296
- // Convert "normal" to computed value
297
- if ( val === "normal" && name in cssNormalTransform ) {
298
- val = cssNormalTransform[ name ];
299
- }
300
-
301
- // Make numeric if forced or a qualifier was provided and val looks numeric
302
- if ( extra === "" || extra ) {
303
- num = parseFloat( val );
304
- return extra === true || isFinite( num ) ? num || 0 : val;
305
- }
306
- return val;
307
- }
308
- } );
309
-
310
- jQuery.each( [ "height", "width" ], function( i, name ) {
311
- jQuery.cssHooks[ name ] = {
312
- get: function( elem, computed, extra ) {
313
- if ( computed ) {
314
-
315
- // Certain elements can have dimension info if we invisibly show them
316
- // but it must have a current display style that would benefit
317
- return rdisplayswap.test( jQuery.css( elem, "display" ) ) &&
318
-
319
- // Support: Safari 8+
320
- // Table columns in Safari have non-zero offsetWidth & zero
321
- // getBoundingClientRect().width unless display is changed.
322
- // Support: IE <=11 only
323
- // Running getBoundingClientRect on a disconnected node
324
- // in IE throws an error.
325
- ( !elem.getClientRects().length || !elem.getBoundingClientRect().width ) ?
326
- swap( elem, cssShow, function() {
327
- return getWidthOrHeight( elem, name, extra );
328
- } ) :
329
- getWidthOrHeight( elem, name, extra );
330
- }
331
- },
332
-
333
- set: function( elem, value, extra ) {
334
- var matches,
335
- styles = extra && getStyles( elem ),
336
- subtract = extra && augmentWidthOrHeight(
337
- elem,
338
- name,
339
- extra,
340
- jQuery.css( elem, "boxSizing", false, styles ) === "border-box",
341
- styles
342
- );
343
-
344
- // Convert to pixels if value adjustment is needed
345
- if ( subtract && ( matches = rcssNum.exec( value ) ) &&
346
- ( matches[ 3 ] || "px" ) !== "px" ) {
347
-
348
- elem.style[ name ] = value;
349
- value = jQuery.css( elem, name );
350
- }
351
-
352
- return setPositiveNumber( elem, value, subtract );
353
- }
354
- };
355
- } );
356
-
357
- jQuery.cssHooks.marginLeft = addGetHookIf( support.reliableMarginLeft,
358
- function( elem, computed ) {
359
- if ( computed ) {
360
- return ( parseFloat( curCSS( elem, "marginLeft" ) ) ||
361
- elem.getBoundingClientRect().left -
362
- swap( elem, { marginLeft: 0 }, function() {
363
- return elem.getBoundingClientRect().left;
364
- } )
365
- ) + "px";
366
- }
367
- }
368
- );
369
-
370
- // These hooks are used by animate to expand properties
371
- jQuery.each( {
372
- margin: "",
373
- padding: "",
374
- border: "Width"
375
- }, function( prefix, suffix ) {
376
- jQuery.cssHooks[ prefix + suffix ] = {
377
- expand: function( value ) {
378
- var i = 0,
379
- expanded = {},
380
-
381
- // Assumes a single number if not a string
382
- parts = typeof value === "string" ? value.split( " " ) : [ value ];
383
-
384
- for ( ; i < 4; i++ ) {
385
- expanded[ prefix + cssExpand[ i ] + suffix ] =
386
- parts[ i ] || parts[ i - 2 ] || parts[ 0 ];
387
- }
388
-
389
- return expanded;
390
- }
391
- };
392
-
393
- if ( !rmargin.test( prefix ) ) {
394
- jQuery.cssHooks[ prefix + suffix ].set = setPositiveNumber;
395
- }
396
- } );
397
-
398
- jQuery.fn.extend( {
399
- css: function( name, value ) {
400
- return access( this, function( elem, name, value ) {
401
- var styles, len,
402
- map = {},
403
- i = 0;
404
-
405
- if ( jQuery.isArray( name ) ) {
406
- styles = getStyles( elem );
407
- len = name.length;
408
-
409
- for ( ; i < len; i++ ) {
410
- map[ name[ i ] ] = jQuery.css( elem, name[ i ], false, styles );
411
- }
412
-
413
- return map;
414
- }
415
-
416
- return value !== undefined ?
417
- jQuery.style( elem, name, value ) :
418
- jQuery.css( elem, name );
419
- }, name, value, arguments.length > 1 );
420
- }
421
- } );
422
-
423
- return jQuery;
424
- } );
@@ -1,161 +0,0 @@
1
- define( [
2
- "../core",
3
- "../var/rnotwhite",
4
- "./var/acceptData"
5
- ], function( jQuery, rnotwhite, acceptData ) {
6
-
7
- "use strict";
8
-
9
- function Data() {
10
- this.expando = jQuery.expando + Data.uid++;
11
- }
12
-
13
- Data.uid = 1;
14
-
15
- Data.prototype = {
16
-
17
- cache: function( owner ) {
18
-
19
- // Check if the owner object already has a cache
20
- var value = owner[ this.expando ];
21
-
22
- // If not, create one
23
- if ( !value ) {
24
- value = {};
25
-
26
- // We can accept data for non-element nodes in modern browsers,
27
- // but we should not, see #8335.
28
- // Always return an empty object.
29
- if ( acceptData( owner ) ) {
30
-
31
- // If it is a node unlikely to be stringify-ed or looped over
32
- // use plain assignment
33
- if ( owner.nodeType ) {
34
- owner[ this.expando ] = value;
35
-
36
- // Otherwise secure it in a non-enumerable property
37
- // configurable must be true to allow the property to be
38
- // deleted when data is removed
39
- } else {
40
- Object.defineProperty( owner, this.expando, {
41
- value: value,
42
- configurable: true
43
- } );
44
- }
45
- }
46
- }
47
-
48
- return value;
49
- },
50
- set: function( owner, data, value ) {
51
- var prop,
52
- cache = this.cache( owner );
53
-
54
- // Handle: [ owner, key, value ] args
55
- // Always use camelCase key (gh-2257)
56
- if ( typeof data === "string" ) {
57
- cache[ jQuery.camelCase( data ) ] = value;
58
-
59
- // Handle: [ owner, { properties } ] args
60
- } else {
61
-
62
- // Copy the properties one-by-one to the cache object
63
- for ( prop in data ) {
64
- cache[ jQuery.camelCase( prop ) ] = data[ prop ];
65
- }
66
- }
67
- return cache;
68
- },
69
- get: function( owner, key ) {
70
- return key === undefined ?
71
- this.cache( owner ) :
72
-
73
- // Always use camelCase key (gh-2257)
74
- owner[ this.expando ] && owner[ this.expando ][ jQuery.camelCase( key ) ];
75
- },
76
- access: function( owner, key, value ) {
77
-
78
- // In cases where either:
79
- //
80
- // 1. No key was specified
81
- // 2. A string key was specified, but no value provided
82
- //
83
- // Take the "read" path and allow the get method to determine
84
- // which value to return, respectively either:
85
- //
86
- // 1. The entire cache object
87
- // 2. The data stored at the key
88
- //
89
- if ( key === undefined ||
90
- ( ( key && typeof key === "string" ) && value === undefined ) ) {
91
-
92
- return this.get( owner, key );
93
- }
94
-
95
- // When the key is not a string, or both a key and value
96
- // are specified, set or extend (existing objects) with either:
97
- //
98
- // 1. An object of properties
99
- // 2. A key and value
100
- //
101
- this.set( owner, key, value );
102
-
103
- // Since the "set" path can have two possible entry points
104
- // return the expected data based on which path was taken[*]
105
- return value !== undefined ? value : key;
106
- },
107
- remove: function( owner, key ) {
108
- var i,
109
- cache = owner[ this.expando ];
110
-
111
- if ( cache === undefined ) {
112
- return;
113
- }
114
-
115
- if ( key !== undefined ) {
116
-
117
- // Support array or space separated string of keys
118
- if ( jQuery.isArray( key ) ) {
119
-
120
- // If key is an array of keys...
121
- // We always set camelCase keys, so remove that.
122
- key = key.map( jQuery.camelCase );
123
- } else {
124
- key = jQuery.camelCase( key );
125
-
126
- // If a key with the spaces exists, use it.
127
- // Otherwise, create an array by matching non-whitespace
128
- key = key in cache ?
129
- [ key ] :
130
- ( key.match( rnotwhite ) || [] );
131
- }
132
-
133
- i = key.length;
134
-
135
- while ( i-- ) {
136
- delete cache[ key[ i ] ];
137
- }
138
- }
139
-
140
- // Remove the expando if there's no more data
141
- if ( key === undefined || jQuery.isEmptyObject( cache ) ) {
142
-
143
- // Support: Chrome <=35 - 45
144
- // Webkit & Blink performance suffers when deleting properties
145
- // from DOM nodes, so set to undefined instead
146
- // https://bugs.chromium.org/p/chromium/issues/detail?id=378607 (bug restricted)
147
- if ( owner.nodeType ) {
148
- owner[ this.expando ] = undefined;
149
- } else {
150
- delete owner[ this.expando ];
151
- }
152
- }
153
- },
154
- hasData: function( owner ) {
155
- var cache = owner[ this.expando ];
156
- return cache !== undefined && !jQuery.isEmptyObject( cache );
157
- }
158
- };
159
-
160
- return Data;
161
- } );
@@ -1,19 +0,0 @@
1
- define( function() {
2
-
3
- "use strict";
4
-
5
- /**
6
- * Determines whether an object can have data
7
- */
8
- return function( owner ) {
9
-
10
- // Accepts only:
11
- // - Node
12
- // - Node.ELEMENT_NODE
13
- // - Node.DOCUMENT_NODE
14
- // - Object
15
- // - Any
16
- return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType );
17
- };
18
-
19
- } );
@@ -1,7 +0,0 @@
1
- define( [
2
- "../Data"
3
- ], function( Data ) {
4
- "use strict";
5
-
6
- return new Data();
7
- } );
@@ -1,7 +0,0 @@
1
- define( [
2
- "../Data"
3
- ], function( Data ) {
4
- "use strict";
5
-
6
- return new Data();
7
- } );