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,486 +0,0 @@
1
- define( [
2
- "./core",
3
- "./var/concat",
4
- "./var/push",
5
- "./core/access",
6
- "./manipulation/var/rcheckableType",
7
- "./manipulation/var/rtagName",
8
- "./manipulation/var/rscriptType",
9
- "./manipulation/wrapMap",
10
- "./manipulation/getAll",
11
- "./manipulation/setGlobalEval",
12
- "./manipulation/buildFragment",
13
- "./manipulation/support",
14
-
15
- "./data/var/dataPriv",
16
- "./data/var/dataUser",
17
- "./data/var/acceptData",
18
- "./core/DOMEval",
19
-
20
- "./core/init",
21
- "./traversing",
22
- "./selector",
23
- "./event"
24
- ], function( jQuery, concat, push, access,
25
- rcheckableType, rtagName, rscriptType,
26
- wrapMap, getAll, setGlobalEval, buildFragment, support,
27
- dataPriv, dataUser, acceptData, DOMEval ) {
28
-
29
- "use strict";
30
-
31
- var
32
-
33
- /* eslint-disable max-len */
34
-
35
- // See https://github.com/eslint/eslint/issues/3229
36
- rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,
37
-
38
- /* eslint-enable */
39
-
40
- // Support: IE <=10 - 11, Edge 12 - 13
41
- // In IE/Edge using regex groups here causes severe slowdowns.
42
- // See https://connect.microsoft.com/IE/feedback/details/1736512/
43
- rnoInnerhtml = /<script|<style|<link/i,
44
-
45
- // checked="checked" or checked
46
- rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i,
47
- rscriptTypeMasked = /^true\/(.*)/,
48
- rcleanScript = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;
49
-
50
- function manipulationTarget( elem, content ) {
51
- if ( jQuery.nodeName( elem, "table" ) &&
52
- jQuery.nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ) {
53
-
54
- return elem.getElementsByTagName( "tbody" )[ 0 ] || elem;
55
- }
56
-
57
- return elem;
58
- }
59
-
60
- // Replace/restore the type attribute of script elements for safe DOM manipulation
61
- function disableScript( elem ) {
62
- elem.type = ( elem.getAttribute( "type" ) !== null ) + "/" + elem.type;
63
- return elem;
64
- }
65
- function restoreScript( elem ) {
66
- var match = rscriptTypeMasked.exec( elem.type );
67
-
68
- if ( match ) {
69
- elem.type = match[ 1 ];
70
- } else {
71
- elem.removeAttribute( "type" );
72
- }
73
-
74
- return elem;
75
- }
76
-
77
- function cloneCopyEvent( src, dest ) {
78
- var i, l, type, pdataOld, pdataCur, udataOld, udataCur, events;
79
-
80
- if ( dest.nodeType !== 1 ) {
81
- return;
82
- }
83
-
84
- // 1. Copy private data: events, handlers, etc.
85
- if ( dataPriv.hasData( src ) ) {
86
- pdataOld = dataPriv.access( src );
87
- pdataCur = dataPriv.set( dest, pdataOld );
88
- events = pdataOld.events;
89
-
90
- if ( events ) {
91
- delete pdataCur.handle;
92
- pdataCur.events = {};
93
-
94
- for ( type in events ) {
95
- for ( i = 0, l = events[ type ].length; i < l; i++ ) {
96
- jQuery.event.add( dest, type, events[ type ][ i ] );
97
- }
98
- }
99
- }
100
- }
101
-
102
- // 2. Copy user data
103
- if ( dataUser.hasData( src ) ) {
104
- udataOld = dataUser.access( src );
105
- udataCur = jQuery.extend( {}, udataOld );
106
-
107
- dataUser.set( dest, udataCur );
108
- }
109
- }
110
-
111
- // Fix IE bugs, see support tests
112
- function fixInput( src, dest ) {
113
- var nodeName = dest.nodeName.toLowerCase();
114
-
115
- // Fails to persist the checked state of a cloned checkbox or radio button.
116
- if ( nodeName === "input" && rcheckableType.test( src.type ) ) {
117
- dest.checked = src.checked;
118
-
119
- // Fails to return the selected option to the default selected state when cloning options
120
- } else if ( nodeName === "input" || nodeName === "textarea" ) {
121
- dest.defaultValue = src.defaultValue;
122
- }
123
- }
124
-
125
- function domManip( collection, args, callback, ignored ) {
126
-
127
- // Flatten any nested arrays
128
- args = concat.apply( [], args );
129
-
130
- var fragment, first, scripts, hasScripts, node, doc,
131
- i = 0,
132
- l = collection.length,
133
- iNoClone = l - 1,
134
- value = args[ 0 ],
135
- isFunction = jQuery.isFunction( value );
136
-
137
- // We can't cloneNode fragments that contain checked, in WebKit
138
- if ( isFunction ||
139
- ( l > 1 && typeof value === "string" &&
140
- !support.checkClone && rchecked.test( value ) ) ) {
141
- return collection.each( function( index ) {
142
- var self = collection.eq( index );
143
- if ( isFunction ) {
144
- args[ 0 ] = value.call( this, index, self.html() );
145
- }
146
- domManip( self, args, callback, ignored );
147
- } );
148
- }
149
-
150
- if ( l ) {
151
- fragment = buildFragment( args, collection[ 0 ].ownerDocument, false, collection, ignored );
152
- first = fragment.firstChild;
153
-
154
- if ( fragment.childNodes.length === 1 ) {
155
- fragment = first;
156
- }
157
-
158
- // Require either new content or an interest in ignored elements to invoke the callback
159
- if ( first || ignored ) {
160
- scripts = jQuery.map( getAll( fragment, "script" ), disableScript );
161
- hasScripts = scripts.length;
162
-
163
- // Use the original fragment for the last item
164
- // instead of the first because it can end up
165
- // being emptied incorrectly in certain situations (#8070).
166
- for ( ; i < l; i++ ) {
167
- node = fragment;
168
-
169
- if ( i !== iNoClone ) {
170
- node = jQuery.clone( node, true, true );
171
-
172
- // Keep references to cloned scripts for later restoration
173
- if ( hasScripts ) {
174
-
175
- // Support: Android <=4.0 only, PhantomJS 1 only
176
- // push.apply(_, arraylike) throws on ancient WebKit
177
- jQuery.merge( scripts, getAll( node, "script" ) );
178
- }
179
- }
180
-
181
- callback.call( collection[ i ], node, i );
182
- }
183
-
184
- if ( hasScripts ) {
185
- doc = scripts[ scripts.length - 1 ].ownerDocument;
186
-
187
- // Reenable scripts
188
- jQuery.map( scripts, restoreScript );
189
-
190
- // Evaluate executable scripts on first document insertion
191
- for ( i = 0; i < hasScripts; i++ ) {
192
- node = scripts[ i ];
193
- if ( rscriptType.test( node.type || "" ) &&
194
- !dataPriv.access( node, "globalEval" ) &&
195
- jQuery.contains( doc, node ) ) {
196
-
197
- if ( node.src ) {
198
-
199
- // Optional AJAX dependency, but won't run scripts if not present
200
- if ( jQuery._evalUrl ) {
201
- jQuery._evalUrl( node.src );
202
- }
203
- } else {
204
- DOMEval( node.textContent.replace( rcleanScript, "" ), doc );
205
- }
206
- }
207
- }
208
- }
209
- }
210
- }
211
-
212
- return collection;
213
- }
214
-
215
- function remove( elem, selector, keepData ) {
216
- var node,
217
- nodes = selector ? jQuery.filter( selector, elem ) : elem,
218
- i = 0;
219
-
220
- for ( ; ( node = nodes[ i ] ) != null; i++ ) {
221
- if ( !keepData && node.nodeType === 1 ) {
222
- jQuery.cleanData( getAll( node ) );
223
- }
224
-
225
- if ( node.parentNode ) {
226
- if ( keepData && jQuery.contains( node.ownerDocument, node ) ) {
227
- setGlobalEval( getAll( node, "script" ) );
228
- }
229
- node.parentNode.removeChild( node );
230
- }
231
- }
232
-
233
- return elem;
234
- }
235
-
236
- jQuery.extend( {
237
- htmlPrefilter: function( html ) {
238
- return html.replace( rxhtmlTag, "<$1></$2>" );
239
- },
240
-
241
- clone: function( elem, dataAndEvents, deepDataAndEvents ) {
242
- var i, l, srcElements, destElements,
243
- clone = elem.cloneNode( true ),
244
- inPage = jQuery.contains( elem.ownerDocument, elem );
245
-
246
- // Fix IE cloning issues
247
- if ( !support.noCloneChecked && ( elem.nodeType === 1 || elem.nodeType === 11 ) &&
248
- !jQuery.isXMLDoc( elem ) ) {
249
-
250
- // We eschew Sizzle here for performance reasons: https://jsperf.com/getall-vs-sizzle/2
251
- destElements = getAll( clone );
252
- srcElements = getAll( elem );
253
-
254
- for ( i = 0, l = srcElements.length; i < l; i++ ) {
255
- fixInput( srcElements[ i ], destElements[ i ] );
256
- }
257
- }
258
-
259
- // Copy the events from the original to the clone
260
- if ( dataAndEvents ) {
261
- if ( deepDataAndEvents ) {
262
- srcElements = srcElements || getAll( elem );
263
- destElements = destElements || getAll( clone );
264
-
265
- for ( i = 0, l = srcElements.length; i < l; i++ ) {
266
- cloneCopyEvent( srcElements[ i ], destElements[ i ] );
267
- }
268
- } else {
269
- cloneCopyEvent( elem, clone );
270
- }
271
- }
272
-
273
- // Preserve script evaluation history
274
- destElements = getAll( clone, "script" );
275
- if ( destElements.length > 0 ) {
276
- setGlobalEval( destElements, !inPage && getAll( elem, "script" ) );
277
- }
278
-
279
- // Return the cloned set
280
- return clone;
281
- },
282
-
283
- cleanData: function( elems ) {
284
- var data, elem, type,
285
- special = jQuery.event.special,
286
- i = 0;
287
-
288
- for ( ; ( elem = elems[ i ] ) !== undefined; i++ ) {
289
- if ( acceptData( elem ) ) {
290
- if ( ( data = elem[ dataPriv.expando ] ) ) {
291
- if ( data.events ) {
292
- for ( type in data.events ) {
293
- if ( special[ type ] ) {
294
- jQuery.event.remove( elem, type );
295
-
296
- // This is a shortcut to avoid jQuery.event.remove's overhead
297
- } else {
298
- jQuery.removeEvent( elem, type, data.handle );
299
- }
300
- }
301
- }
302
-
303
- // Support: Chrome <=35 - 45+
304
- // Assign undefined instead of using delete, see Data#remove
305
- elem[ dataPriv.expando ] = undefined;
306
- }
307
- if ( elem[ dataUser.expando ] ) {
308
-
309
- // Support: Chrome <=35 - 45+
310
- // Assign undefined instead of using delete, see Data#remove
311
- elem[ dataUser.expando ] = undefined;
312
- }
313
- }
314
- }
315
- }
316
- } );
317
-
318
- jQuery.fn.extend( {
319
- detach: function( selector ) {
320
- return remove( this, selector, true );
321
- },
322
-
323
- remove: function( selector ) {
324
- return remove( this, selector );
325
- },
326
-
327
- text: function( value ) {
328
- return access( this, function( value ) {
329
- return value === undefined ?
330
- jQuery.text( this ) :
331
- this.empty().each( function() {
332
- if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {
333
- this.textContent = value;
334
- }
335
- } );
336
- }, null, value, arguments.length );
337
- },
338
-
339
- append: function() {
340
- return domManip( this, arguments, function( elem ) {
341
- if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {
342
- var target = manipulationTarget( this, elem );
343
- target.appendChild( elem );
344
- }
345
- } );
346
- },
347
-
348
- prepend: function() {
349
- return domManip( this, arguments, function( elem ) {
350
- if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {
351
- var target = manipulationTarget( this, elem );
352
- target.insertBefore( elem, target.firstChild );
353
- }
354
- } );
355
- },
356
-
357
- before: function() {
358
- return domManip( this, arguments, function( elem ) {
359
- if ( this.parentNode ) {
360
- this.parentNode.insertBefore( elem, this );
361
- }
362
- } );
363
- },
364
-
365
- after: function() {
366
- return domManip( this, arguments, function( elem ) {
367
- if ( this.parentNode ) {
368
- this.parentNode.insertBefore( elem, this.nextSibling );
369
- }
370
- } );
371
- },
372
-
373
- empty: function() {
374
- var elem,
375
- i = 0;
376
-
377
- for ( ; ( elem = this[ i ] ) != null; i++ ) {
378
- if ( elem.nodeType === 1 ) {
379
-
380
- // Prevent memory leaks
381
- jQuery.cleanData( getAll( elem, false ) );
382
-
383
- // Remove any remaining nodes
384
- elem.textContent = "";
385
- }
386
- }
387
-
388
- return this;
389
- },
390
-
391
- clone: function( dataAndEvents, deepDataAndEvents ) {
392
- dataAndEvents = dataAndEvents == null ? false : dataAndEvents;
393
- deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents;
394
-
395
- return this.map( function() {
396
- return jQuery.clone( this, dataAndEvents, deepDataAndEvents );
397
- } );
398
- },
399
-
400
- html: function( value ) {
401
- return access( this, function( value ) {
402
- var elem = this[ 0 ] || {},
403
- i = 0,
404
- l = this.length;
405
-
406
- if ( value === undefined && elem.nodeType === 1 ) {
407
- return elem.innerHTML;
408
- }
409
-
410
- // See if we can take a shortcut and just use innerHTML
411
- if ( typeof value === "string" && !rnoInnerhtml.test( value ) &&
412
- !wrapMap[ ( rtagName.exec( value ) || [ "", "" ] )[ 1 ].toLowerCase() ] ) {
413
-
414
- value = jQuery.htmlPrefilter( value );
415
-
416
- try {
417
- for ( ; i < l; i++ ) {
418
- elem = this[ i ] || {};
419
-
420
- // Remove element nodes and prevent memory leaks
421
- if ( elem.nodeType === 1 ) {
422
- jQuery.cleanData( getAll( elem, false ) );
423
- elem.innerHTML = value;
424
- }
425
- }
426
-
427
- elem = 0;
428
-
429
- // If using innerHTML throws an exception, use the fallback method
430
- } catch ( e ) {}
431
- }
432
-
433
- if ( elem ) {
434
- this.empty().append( value );
435
- }
436
- }, null, value, arguments.length );
437
- },
438
-
439
- replaceWith: function() {
440
- var ignored = [];
441
-
442
- // Make the changes, replacing each non-ignored context element with the new content
443
- return domManip( this, arguments, function( elem ) {
444
- var parent = this.parentNode;
445
-
446
- if ( jQuery.inArray( this, ignored ) < 0 ) {
447
- jQuery.cleanData( getAll( this ) );
448
- if ( parent ) {
449
- parent.replaceChild( elem, this );
450
- }
451
- }
452
-
453
- // Force callback invocation
454
- }, ignored );
455
- }
456
- } );
457
-
458
- jQuery.each( {
459
- appendTo: "append",
460
- prependTo: "prepend",
461
- insertBefore: "before",
462
- insertAfter: "after",
463
- replaceAll: "replaceWith"
464
- }, function( name, original ) {
465
- jQuery.fn[ name ] = function( selector ) {
466
- var elems,
467
- ret = [],
468
- insert = jQuery( selector ),
469
- last = insert.length - 1,
470
- i = 0;
471
-
472
- for ( ; i <= last; i++ ) {
473
- elems = i === last ? this : this.clone( true );
474
- jQuery( insert[ i ] )[ original ]( elems );
475
-
476
- // Support: Android <=4.0 only, PhantomJS 1 only
477
- // .get() because push.apply(_, arraylike) throws on ancient WebKit
478
- push.apply( ret, elems.get() );
479
- }
480
-
481
- return this.pushStack( ret );
482
- };
483
- } );
484
-
485
- return jQuery;
486
- } );
@@ -1,232 +0,0 @@
1
- define( [
2
- "./core",
3
- "./core/access",
4
- "./var/document",
5
- "./var/documentElement",
6
- "./css/var/rnumnonpx",
7
- "./css/curCSS",
8
- "./css/addGetHookIf",
9
- "./css/support",
10
-
11
- "./core/init",
12
- "./css",
13
- "./selector" // contains
14
- ], function( jQuery, access, document, documentElement, rnumnonpx, curCSS, addGetHookIf, support ) {
15
-
16
- "use strict";
17
-
18
- /**
19
- * Gets a window from an element
20
- */
21
- function getWindow( elem ) {
22
- return jQuery.isWindow( elem ) ? elem : elem.nodeType === 9 && elem.defaultView;
23
- }
24
-
25
- jQuery.offset = {
26
- setOffset: function( elem, options, i ) {
27
- var curPosition, curLeft, curCSSTop, curTop, curOffset, curCSSLeft, calculatePosition,
28
- position = jQuery.css( elem, "position" ),
29
- curElem = jQuery( elem ),
30
- props = {};
31
-
32
- // Set position first, in-case top/left are set even on static elem
33
- if ( position === "static" ) {
34
- elem.style.position = "relative";
35
- }
36
-
37
- curOffset = curElem.offset();
38
- curCSSTop = jQuery.css( elem, "top" );
39
- curCSSLeft = jQuery.css( elem, "left" );
40
- calculatePosition = ( position === "absolute" || position === "fixed" ) &&
41
- ( curCSSTop + curCSSLeft ).indexOf( "auto" ) > -1;
42
-
43
- // Need to be able to calculate position if either
44
- // top or left is auto and position is either absolute or fixed
45
- if ( calculatePosition ) {
46
- curPosition = curElem.position();
47
- curTop = curPosition.top;
48
- curLeft = curPosition.left;
49
-
50
- } else {
51
- curTop = parseFloat( curCSSTop ) || 0;
52
- curLeft = parseFloat( curCSSLeft ) || 0;
53
- }
54
-
55
- if ( jQuery.isFunction( options ) ) {
56
-
57
- // Use jQuery.extend here to allow modification of coordinates argument (gh-1848)
58
- options = options.call( elem, i, jQuery.extend( {}, curOffset ) );
59
- }
60
-
61
- if ( options.top != null ) {
62
- props.top = ( options.top - curOffset.top ) + curTop;
63
- }
64
- if ( options.left != null ) {
65
- props.left = ( options.left - curOffset.left ) + curLeft;
66
- }
67
-
68
- if ( "using" in options ) {
69
- options.using.call( elem, props );
70
-
71
- } else {
72
- curElem.css( props );
73
- }
74
- }
75
- };
76
-
77
- jQuery.fn.extend( {
78
- offset: function( options ) {
79
-
80
- // Preserve chaining for setter
81
- if ( arguments.length ) {
82
- return options === undefined ?
83
- this :
84
- this.each( function( i ) {
85
- jQuery.offset.setOffset( this, options, i );
86
- } );
87
- }
88
-
89
- var docElem, win, rect, doc,
90
- elem = this[ 0 ];
91
-
92
- if ( !elem ) {
93
- return;
94
- }
95
-
96
- // Support: IE <=11 only
97
- // Running getBoundingClientRect on a
98
- // disconnected node in IE throws an error
99
- if ( !elem.getClientRects().length ) {
100
- return { top: 0, left: 0 };
101
- }
102
-
103
- rect = elem.getBoundingClientRect();
104
-
105
- // Make sure element is not hidden (display: none)
106
- if ( rect.width || rect.height ) {
107
- doc = elem.ownerDocument;
108
- win = getWindow( doc );
109
- docElem = doc.documentElement;
110
-
111
- return {
112
- top: rect.top + win.pageYOffset - docElem.clientTop,
113
- left: rect.left + win.pageXOffset - docElem.clientLeft
114
- };
115
- }
116
-
117
- // Return zeros for disconnected and hidden elements (gh-2310)
118
- return rect;
119
- },
120
-
121
- position: function() {
122
- if ( !this[ 0 ] ) {
123
- return;
124
- }
125
-
126
- var offsetParent, offset,
127
- elem = this[ 0 ],
128
- parentOffset = { top: 0, left: 0 };
129
-
130
- // Fixed elements are offset from window (parentOffset = {top:0, left: 0},
131
- // because it is its only offset parent
132
- if ( jQuery.css( elem, "position" ) === "fixed" ) {
133
-
134
- // Assume getBoundingClientRect is there when computed position is fixed
135
- offset = elem.getBoundingClientRect();
136
-
137
- } else {
138
-
139
- // Get *real* offsetParent
140
- offsetParent = this.offsetParent();
141
-
142
- // Get correct offsets
143
- offset = this.offset();
144
- if ( !jQuery.nodeName( offsetParent[ 0 ], "html" ) ) {
145
- parentOffset = offsetParent.offset();
146
- }
147
-
148
- // Add offsetParent borders
149
- parentOffset = {
150
- top: parentOffset.top + jQuery.css( offsetParent[ 0 ], "borderTopWidth", true ),
151
- left: parentOffset.left + jQuery.css( offsetParent[ 0 ], "borderLeftWidth", true )
152
- };
153
- }
154
-
155
- // Subtract parent offsets and element margins
156
- return {
157
- top: offset.top - parentOffset.top - jQuery.css( elem, "marginTop", true ),
158
- left: offset.left - parentOffset.left - jQuery.css( elem, "marginLeft", true )
159
- };
160
- },
161
-
162
- // This method will return documentElement in the following cases:
163
- // 1) For the element inside the iframe without offsetParent, this method will return
164
- // documentElement of the parent window
165
- // 2) For the hidden or detached element
166
- // 3) For body or html element, i.e. in case of the html node - it will return itself
167
- //
168
- // but those exceptions were never presented as a real life use-cases
169
- // and might be considered as more preferable results.
170
- //
171
- // This logic, however, is not guaranteed and can change at any point in the future
172
- offsetParent: function() {
173
- return this.map( function() {
174
- var offsetParent = this.offsetParent;
175
-
176
- while ( offsetParent && jQuery.css( offsetParent, "position" ) === "static" ) {
177
- offsetParent = offsetParent.offsetParent;
178
- }
179
-
180
- return offsetParent || documentElement;
181
- } );
182
- }
183
- } );
184
-
185
- // Create scrollLeft and scrollTop methods
186
- jQuery.each( { scrollLeft: "pageXOffset", scrollTop: "pageYOffset" }, function( method, prop ) {
187
- var top = "pageYOffset" === prop;
188
-
189
- jQuery.fn[ method ] = function( val ) {
190
- return access( this, function( elem, method, val ) {
191
- var win = getWindow( elem );
192
-
193
- if ( val === undefined ) {
194
- return win ? win[ prop ] : elem[ method ];
195
- }
196
-
197
- if ( win ) {
198
- win.scrollTo(
199
- !top ? val : win.pageXOffset,
200
- top ? val : win.pageYOffset
201
- );
202
-
203
- } else {
204
- elem[ method ] = val;
205
- }
206
- }, method, val, arguments.length );
207
- };
208
- } );
209
-
210
- // Support: Safari <=7 - 9.1, Chrome <=37 - 49
211
- // Add the top/left cssHooks using jQuery.fn.position
212
- // Webkit bug: https://bugs.webkit.org/show_bug.cgi?id=29084
213
- // Blink bug: https://bugs.chromium.org/p/chromium/issues/detail?id=589347
214
- // getComputedStyle returns percent when specified for top/left/bottom/right;
215
- // rather than make the css module depend on the offset module, just check for it here
216
- jQuery.each( [ "top", "left" ], function( i, prop ) {
217
- jQuery.cssHooks[ prop ] = addGetHookIf( support.pixelPosition,
218
- function( elem, computed ) {
219
- if ( computed ) {
220
- computed = curCSS( elem, prop );
221
-
222
- // If curCSS returns percentage, fallback to offset
223
- return rnumnonpx.test( computed ) ?
224
- jQuery( elem ).position()[ prop ] + "px" :
225
- computed;
226
- }
227
- }
228
- );
229
- } );
230
-
231
- return jQuery;
232
- } );