trusty-cms 4.3.4 → 5.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (197) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +2 -1
  3. data/Gemfile.lock +25 -15
  4. data/app/assets/stylesheets/admin/partials/_content.scss +1 -0
  5. data/app/controllers/admin/assets_controller.rb +5 -1
  6. data/app/models/asset.rb +39 -48
  7. data/app/models/asset_type.rb +6 -2
  8. data/app/views/admin/assets/edit.html.haml +5 -3
  9. data/config/database.yml +2 -2
  10. data/config/locales/en.yml +1 -0
  11. data/coverage/index.html +1 -1
  12. data/lib/trusty_cms/deprecation.rb +13 -0
  13. data/lib/trusty_cms.rb +1 -1
  14. data/node_modules/path-parse/index.js +17 -35
  15. data/node_modules/path-parse/package.json +1 -1
  16. data/node_modules/postcss/CHANGELOG.md +27 -0
  17. data/node_modules/postcss/README.md +21 -0
  18. data/node_modules/postcss/lib/at-rule.js +2 -4
  19. data/node_modules/postcss/lib/comment.js +2 -4
  20. data/node_modules/postcss/lib/container.js +27 -122
  21. data/node_modules/postcss/lib/css-syntax-error.js +5 -7
  22. data/node_modules/postcss/lib/declaration.js +2 -4
  23. data/node_modules/postcss/lib/input.js +3 -5
  24. data/node_modules/postcss/lib/lazy-result.js +10 -17
  25. data/node_modules/postcss/lib/map-generator.js +10 -17
  26. data/node_modules/postcss/lib/node.js +2 -4
  27. data/node_modules/postcss/lib/parser.js +2 -4
  28. data/node_modules/postcss/lib/postcss.d.ts +25 -19
  29. data/node_modules/postcss/lib/previous-map.js +17 -6
  30. data/node_modules/postcss/lib/processor.js +16 -15
  31. data/node_modules/postcss/lib/result.js +2 -4
  32. data/node_modules/postcss/lib/root.js +10 -17
  33. data/node_modules/postcss/lib/rule.js +2 -4
  34. data/node_modules/postcss/lib/stringifier.js +2 -4
  35. data/node_modules/postcss/lib/warning.js +2 -4
  36. data/node_modules/postcss/package.json +16 -12
  37. data/spec/dummy/log/test.log +542 -443
  38. data/spec/dummy/tmp/cache/747/A70/TrustyCms%3A%3AConfig +0 -0
  39. data/spec/dummy/tmp/cache/85C/FA0/TrustyCms.cache_mtime +1 -1
  40. data/trusty_cms.gemspec +2 -1
  41. data/vendor/extensions/clipped-extension/lib/clipped/engine.rb +1 -1
  42. metadata +31 -307
  43. data/config/initializers/interpolation.rb +0 -6
  44. data/node_modules/path-parse/test.js +0 -77
  45. data/node_modules/postcss/docs/api/assets/scripts.min.js +0 -8
  46. data/node_modules/postcss/docs/api/assets/styles.min.css +0 -1
  47. data/node_modules/postcss/docs/api/index.html +0 -22716
  48. data/spec/dummy/log/development.log +0 -158
  49. data/spec/dummy/node_modules/jquery/AUTHORS.txt +0 -327
  50. data/spec/dummy/node_modules/jquery/LICENSE.txt +0 -20
  51. data/spec/dummy/node_modules/jquery/README.md +0 -62
  52. data/spec/dummy/node_modules/jquery/bower.json +0 -14
  53. data/spec/dummy/node_modules/jquery/dist/jquery.js +0 -10872
  54. data/spec/dummy/node_modules/jquery/dist/jquery.min.js +0 -2
  55. data/spec/dummy/node_modules/jquery/dist/jquery.min.map +0 -1
  56. data/spec/dummy/node_modules/jquery/dist/jquery.slim.js +0 -8777
  57. data/spec/dummy/node_modules/jquery/dist/jquery.slim.min.js +0 -2
  58. data/spec/dummy/node_modules/jquery/dist/jquery.slim.min.map +0 -1
  59. data/spec/dummy/node_modules/jquery/external/sizzle/LICENSE.txt +0 -36
  60. data/spec/dummy/node_modules/jquery/external/sizzle/dist/sizzle.js +0 -2478
  61. data/spec/dummy/node_modules/jquery/external/sizzle/dist/sizzle.min.js +0 -3
  62. data/spec/dummy/node_modules/jquery/external/sizzle/dist/sizzle.min.map +0 -1
  63. data/spec/dummy/node_modules/jquery/package.json +0 -117
  64. data/spec/dummy/node_modules/jquery/src/ajax/jsonp.js +0 -103
  65. data/spec/dummy/node_modules/jquery/src/ajax/load.js +0 -77
  66. data/spec/dummy/node_modules/jquery/src/ajax/script.js +0 -74
  67. data/spec/dummy/node_modules/jquery/src/ajax/var/location.js +0 -5
  68. data/spec/dummy/node_modules/jquery/src/ajax/var/nonce.js +0 -5
  69. data/spec/dummy/node_modules/jquery/src/ajax/var/rquery.js +0 -5
  70. data/spec/dummy/node_modules/jquery/src/ajax/xhr.js +0 -170
  71. data/spec/dummy/node_modules/jquery/src/ajax.js +0 -873
  72. data/spec/dummy/node_modules/jquery/src/attributes/attr.js +0 -141
  73. data/spec/dummy/node_modules/jquery/src/attributes/classes.js +0 -186
  74. data/spec/dummy/node_modules/jquery/src/attributes/prop.js +0 -143
  75. data/spec/dummy/node_modules/jquery/src/attributes/support.js +0 -33
  76. data/spec/dummy/node_modules/jquery/src/attributes/val.js +0 -191
  77. data/spec/dummy/node_modules/jquery/src/attributes.js +0 -13
  78. data/spec/dummy/node_modules/jquery/src/callbacks.js +0 -236
  79. data/spec/dummy/node_modules/jquery/src/core/DOMEval.js +0 -43
  80. data/spec/dummy/node_modules/jquery/src/core/access.js +0 -72
  81. data/spec/dummy/node_modules/jquery/src/core/camelCase.js +0 -23
  82. data/spec/dummy/node_modules/jquery/src/core/init.js +0 -129
  83. data/spec/dummy/node_modules/jquery/src/core/isAttached.js +0 -26
  84. data/spec/dummy/node_modules/jquery/src/core/nodeName.js +0 -13
  85. data/spec/dummy/node_modules/jquery/src/core/parseHTML.js +0 -65
  86. data/spec/dummy/node_modules/jquery/src/core/parseXML.js +0 -30
  87. data/spec/dummy/node_modules/jquery/src/core/ready-no-deferred.js +0 -97
  88. data/spec/dummy/node_modules/jquery/src/core/ready.js +0 -86
  89. data/spec/dummy/node_modules/jquery/src/core/readyException.js +0 -13
  90. data/spec/dummy/node_modules/jquery/src/core/stripAndCollapse.js +0 -14
  91. data/spec/dummy/node_modules/jquery/src/core/support.js +0 -20
  92. data/spec/dummy/node_modules/jquery/src/core/toType.js +0 -20
  93. data/spec/dummy/node_modules/jquery/src/core/var/rsingleTag.js +0 -7
  94. data/spec/dummy/node_modules/jquery/src/core.js +0 -400
  95. data/spec/dummy/node_modules/jquery/src/css/addGetHookIf.js +0 -26
  96. data/spec/dummy/node_modules/jquery/src/css/adjustCSS.js +0 -74
  97. data/spec/dummy/node_modules/jquery/src/css/curCSS.js +0 -65
  98. data/spec/dummy/node_modules/jquery/src/css/finalPropName.js +0 -42
  99. data/spec/dummy/node_modules/jquery/src/css/hiddenVisibleSelectors.js +0 -15
  100. data/spec/dummy/node_modules/jquery/src/css/showHide.js +0 -105
  101. data/spec/dummy/node_modules/jquery/src/css/support.js +0 -133
  102. data/spec/dummy/node_modules/jquery/src/css/var/cssExpand.js +0 -5
  103. data/spec/dummy/node_modules/jquery/src/css/var/getStyles.js +0 -17
  104. data/spec/dummy/node_modules/jquery/src/css/var/isHiddenWithinTree.js +0 -34
  105. data/spec/dummy/node_modules/jquery/src/css/var/rboxStyle.js +0 -7
  106. data/spec/dummy/node_modules/jquery/src/css/var/rnumnonpx.js +0 -7
  107. data/spec/dummy/node_modules/jquery/src/css/var/swap.js +0 -26
  108. data/spec/dummy/node_modules/jquery/src/css.js +0 -494
  109. data/spec/dummy/node_modules/jquery/src/data/Data.js +0 -162
  110. data/spec/dummy/node_modules/jquery/src/data/var/acceptData.js +0 -19
  111. data/spec/dummy/node_modules/jquery/src/data/var/dataPriv.js +0 -7
  112. data/spec/dummy/node_modules/jquery/src/data/var/dataUser.js +0 -7
  113. data/spec/dummy/node_modules/jquery/src/data.js +0 -180
  114. data/spec/dummy/node_modules/jquery/src/deferred/exceptionHook.js +0 -21
  115. data/spec/dummy/node_modules/jquery/src/deferred.js +0 -399
  116. data/spec/dummy/node_modules/jquery/src/deprecated/ajax-event-alias.js +0 -22
  117. data/spec/dummy/node_modules/jquery/src/deprecated/event.js +0 -48
  118. data/spec/dummy/node_modules/jquery/src/deprecated.js +0 -87
  119. data/spec/dummy/node_modules/jquery/src/dimensions.js +0 -57
  120. data/spec/dummy/node_modules/jquery/src/effects/Tween.js +0 -125
  121. data/spec/dummy/node_modules/jquery/src/effects/animatedSelector.js +0 -15
  122. data/spec/dummy/node_modules/jquery/src/effects.js +0 -701
  123. data/spec/dummy/node_modules/jquery/src/event/focusin.js +0 -58
  124. data/spec/dummy/node_modules/jquery/src/event/support.js +0 -11
  125. data/spec/dummy/node_modules/jquery/src/event/trigger.js +0 -201
  126. data/spec/dummy/node_modules/jquery/src/event.js +0 -892
  127. data/spec/dummy/node_modules/jquery/src/exports/amd.js +0 -26
  128. data/spec/dummy/node_modules/jquery/src/exports/global.js +0 -34
  129. data/spec/dummy/node_modules/jquery/src/jquery.js +0 -41
  130. data/spec/dummy/node_modules/jquery/src/manipulation/_evalUrl.js +0 -32
  131. data/spec/dummy/node_modules/jquery/src/manipulation/buildFragment.js +0 -106
  132. data/spec/dummy/node_modules/jquery/src/manipulation/getAll.js +0 -32
  133. data/spec/dummy/node_modules/jquery/src/manipulation/setGlobalEval.js +0 -22
  134. data/spec/dummy/node_modules/jquery/src/manipulation/support.js +0 -41
  135. data/spec/dummy/node_modules/jquery/src/manipulation/var/rscriptType.js +0 -5
  136. data/spec/dummy/node_modules/jquery/src/manipulation/var/rtagName.js +0 -8
  137. data/spec/dummy/node_modules/jquery/src/manipulation/wrapMap.js +0 -30
  138. data/spec/dummy/node_modules/jquery/src/manipulation.js +0 -480
  139. data/spec/dummy/node_modules/jquery/src/offset.js +0 -238
  140. data/spec/dummy/node_modules/jquery/src/queue/delay.js +0 -24
  141. data/spec/dummy/node_modules/jquery/src/queue.js +0 -145
  142. data/spec/dummy/node_modules/jquery/src/selector-native.js +0 -241
  143. data/spec/dummy/node_modules/jquery/src/selector-sizzle.js +0 -19
  144. data/spec/dummy/node_modules/jquery/src/selector.js +0 -3
  145. data/spec/dummy/node_modules/jquery/src/serialize.js +0 -136
  146. data/spec/dummy/node_modules/jquery/src/traversing/findFilter.js +0 -97
  147. data/spec/dummy/node_modules/jquery/src/traversing/var/dir.js +0 -22
  148. data/spec/dummy/node_modules/jquery/src/traversing/var/rneedsContext.js +0 -8
  149. data/spec/dummy/node_modules/jquery/src/traversing/var/siblings.js +0 -17
  150. data/spec/dummy/node_modules/jquery/src/traversing.js +0 -198
  151. data/spec/dummy/node_modules/jquery/src/var/ObjectFunctionString.js +0 -7
  152. data/spec/dummy/node_modules/jquery/src/var/arr.js +0 -5
  153. data/spec/dummy/node_modules/jquery/src/var/class2type.js +0 -6
  154. data/spec/dummy/node_modules/jquery/src/var/document.js +0 -5
  155. data/spec/dummy/node_modules/jquery/src/var/documentElement.js +0 -7
  156. data/spec/dummy/node_modules/jquery/src/var/flat.js +0 -16
  157. data/spec/dummy/node_modules/jquery/src/var/fnToString.js +0 -7
  158. data/spec/dummy/node_modules/jquery/src/var/getProto.js +0 -5
  159. data/spec/dummy/node_modules/jquery/src/var/hasOwn.js +0 -7
  160. data/spec/dummy/node_modules/jquery/src/var/indexOf.js +0 -7
  161. data/spec/dummy/node_modules/jquery/src/var/isFunction.js +0 -13
  162. data/spec/dummy/node_modules/jquery/src/var/isWindow.js +0 -8
  163. data/spec/dummy/node_modules/jquery/src/var/pnum.js +0 -5
  164. data/spec/dummy/node_modules/jquery/src/var/push.js +0 -7
  165. data/spec/dummy/node_modules/jquery/src/var/rcheckableType.js +0 -5
  166. data/spec/dummy/node_modules/jquery/src/var/rcssNum.js +0 -9
  167. data/spec/dummy/node_modules/jquery/src/var/rnothtmlwhite.js +0 -8
  168. data/spec/dummy/node_modules/jquery/src/var/slice.js +0 -7
  169. data/spec/dummy/node_modules/jquery/src/var/support.js +0 -6
  170. data/spec/dummy/node_modules/jquery/src/var/toString.js +0 -7
  171. data/spec/dummy/node_modules/jquery/src/wrap.js +0 -78
  172. data/spec/dummy/node_modules/jquery-ui-bundle/AUTHORS.txt +0 -333
  173. data/spec/dummy/node_modules/jquery-ui-bundle/LICENSE.txt +0 -43
  174. data/spec/dummy/node_modules/jquery-ui-bundle/external/jquery/jquery.js +0 -11008
  175. data/spec/dummy/node_modules/jquery-ui-bundle/images/ui-icons_444444_256x240.png +0 -0
  176. data/spec/dummy/node_modules/jquery-ui-bundle/images/ui-icons_555555_256x240.png +0 -0
  177. data/spec/dummy/node_modules/jquery-ui-bundle/images/ui-icons_777620_256x240.png +0 -0
  178. data/spec/dummy/node_modules/jquery-ui-bundle/images/ui-icons_777777_256x240.png +0 -0
  179. data/spec/dummy/node_modules/jquery-ui-bundle/images/ui-icons_cc0000_256x240.png +0 -0
  180. data/spec/dummy/node_modules/jquery-ui-bundle/images/ui-icons_ffffff_256x240.png +0 -0
  181. data/spec/dummy/node_modules/jquery-ui-bundle/index.html +0 -559
  182. data/spec/dummy/node_modules/jquery-ui-bundle/jquery-ui.css +0 -1312
  183. data/spec/dummy/node_modules/jquery-ui-bundle/jquery-ui.js +0 -18706
  184. data/spec/dummy/node_modules/jquery-ui-bundle/jquery-ui.min.css +0 -7
  185. data/spec/dummy/node_modules/jquery-ui-bundle/jquery-ui.min.js +0 -13
  186. data/spec/dummy/node_modules/jquery-ui-bundle/jquery-ui.structure.css +0 -886
  187. data/spec/dummy/node_modules/jquery-ui-bundle/jquery-ui.structure.min.css +0 -5
  188. data/spec/dummy/node_modules/jquery-ui-bundle/jquery-ui.theme.css +0 -443
  189. data/spec/dummy/node_modules/jquery-ui-bundle/jquery-ui.theme.min.css +0 -5
  190. data/spec/dummy/node_modules/jquery-ui-bundle/package.json +0 -33
  191. data/spec/dummy/node_modules/jquery-ujs/CONTRIBUTING.md +0 -109
  192. data/spec/dummy/node_modules/jquery-ujs/MIT-LICENSE +0 -20
  193. data/spec/dummy/node_modules/jquery-ujs/README.md +0 -86
  194. data/spec/dummy/node_modules/jquery-ujs/RELEASE.md +0 -23
  195. data/spec/dummy/node_modules/jquery-ujs/bower.json +0 -19
  196. data/spec/dummy/node_modules/jquery-ujs/package.json +0 -26
  197. data/spec/dummy/node_modules/jquery-ujs/src/rails.js +0 -555
@@ -1,17 +0,0 @@
1
- define( function() {
2
-
3
- "use strict";
4
-
5
- return function( n, elem ) {
6
- var matched = [];
7
-
8
- for ( ; n; n = n.nextSibling ) {
9
- if ( n.nodeType === 1 && n !== elem ) {
10
- matched.push( n );
11
- }
12
- }
13
-
14
- return matched;
15
- };
16
-
17
- } );
@@ -1,198 +0,0 @@
1
- define( [
2
- "./core",
3
- "./var/getProto",
4
- "./var/indexOf",
5
- "./traversing/var/dir",
6
- "./traversing/var/siblings",
7
- "./traversing/var/rneedsContext",
8
- "./core/nodeName",
9
-
10
- "./core/init",
11
- "./traversing/findFilter",
12
- "./selector"
13
- ], function( jQuery, getProto, indexOf, dir, siblings, rneedsContext, nodeName ) {
14
-
15
- "use strict";
16
-
17
- var rparentsprev = /^(?:parents|prev(?:Until|All))/,
18
-
19
- // Methods guaranteed to produce a unique set when starting from a unique set
20
- guaranteedUnique = {
21
- children: true,
22
- contents: true,
23
- next: true,
24
- prev: true
25
- };
26
-
27
- jQuery.fn.extend( {
28
- has: function( target ) {
29
- var targets = jQuery( target, this ),
30
- l = targets.length;
31
-
32
- return this.filter( function() {
33
- var i = 0;
34
- for ( ; i < l; i++ ) {
35
- if ( jQuery.contains( this, targets[ i ] ) ) {
36
- return true;
37
- }
38
- }
39
- } );
40
- },
41
-
42
- closest: function( selectors, context ) {
43
- var cur,
44
- i = 0,
45
- l = this.length,
46
- matched = [],
47
- targets = typeof selectors !== "string" && jQuery( selectors );
48
-
49
- // Positional selectors never match, since there's no _selection_ context
50
- if ( !rneedsContext.test( selectors ) ) {
51
- for ( ; i < l; i++ ) {
52
- for ( cur = this[ i ]; cur && cur !== context; cur = cur.parentNode ) {
53
-
54
- // Always skip document fragments
55
- if ( cur.nodeType < 11 && ( targets ?
56
- targets.index( cur ) > -1 :
57
-
58
- // Don't pass non-elements to Sizzle
59
- cur.nodeType === 1 &&
60
- jQuery.find.matchesSelector( cur, selectors ) ) ) {
61
-
62
- matched.push( cur );
63
- break;
64
- }
65
- }
66
- }
67
- }
68
-
69
- return this.pushStack( matched.length > 1 ? jQuery.uniqueSort( matched ) : matched );
70
- },
71
-
72
- // Determine the position of an element within the set
73
- index: function( elem ) {
74
-
75
- // No argument, return index in parent
76
- if ( !elem ) {
77
- return ( this[ 0 ] && this[ 0 ].parentNode ) ? this.first().prevAll().length : -1;
78
- }
79
-
80
- // Index in selector
81
- if ( typeof elem === "string" ) {
82
- return indexOf.call( jQuery( elem ), this[ 0 ] );
83
- }
84
-
85
- // Locate the position of the desired element
86
- return indexOf.call( this,
87
-
88
- // If it receives a jQuery object, the first element is used
89
- elem.jquery ? elem[ 0 ] : elem
90
- );
91
- },
92
-
93
- add: function( selector, context ) {
94
- return this.pushStack(
95
- jQuery.uniqueSort(
96
- jQuery.merge( this.get(), jQuery( selector, context ) )
97
- )
98
- );
99
- },
100
-
101
- addBack: function( selector ) {
102
- return this.add( selector == null ?
103
- this.prevObject : this.prevObject.filter( selector )
104
- );
105
- }
106
- } );
107
-
108
- function sibling( cur, dir ) {
109
- while ( ( cur = cur[ dir ] ) && cur.nodeType !== 1 ) {}
110
- return cur;
111
- }
112
-
113
- jQuery.each( {
114
- parent: function( elem ) {
115
- var parent = elem.parentNode;
116
- return parent && parent.nodeType !== 11 ? parent : null;
117
- },
118
- parents: function( elem ) {
119
- return dir( elem, "parentNode" );
120
- },
121
- parentsUntil: function( elem, _i, until ) {
122
- return dir( elem, "parentNode", until );
123
- },
124
- next: function( elem ) {
125
- return sibling( elem, "nextSibling" );
126
- },
127
- prev: function( elem ) {
128
- return sibling( elem, "previousSibling" );
129
- },
130
- nextAll: function( elem ) {
131
- return dir( elem, "nextSibling" );
132
- },
133
- prevAll: function( elem ) {
134
- return dir( elem, "previousSibling" );
135
- },
136
- nextUntil: function( elem, _i, until ) {
137
- return dir( elem, "nextSibling", until );
138
- },
139
- prevUntil: function( elem, _i, until ) {
140
- return dir( elem, "previousSibling", until );
141
- },
142
- siblings: function( elem ) {
143
- return siblings( ( elem.parentNode || {} ).firstChild, elem );
144
- },
145
- children: function( elem ) {
146
- return siblings( elem.firstChild );
147
- },
148
- contents: function( elem ) {
149
- if ( elem.contentDocument != null &&
150
-
151
- // Support: IE 11+
152
- // <object> elements with no `data` attribute has an object
153
- // `contentDocument` with a `null` prototype.
154
- getProto( elem.contentDocument ) ) {
155
-
156
- return elem.contentDocument;
157
- }
158
-
159
- // Support: IE 9 - 11 only, iOS 7 only, Android Browser <=4.3 only
160
- // Treat the template element as a regular one in browsers that
161
- // don't support it.
162
- if ( nodeName( elem, "template" ) ) {
163
- elem = elem.content || elem;
164
- }
165
-
166
- return jQuery.merge( [], elem.childNodes );
167
- }
168
- }, function( name, fn ) {
169
- jQuery.fn[ name ] = function( until, selector ) {
170
- var matched = jQuery.map( this, fn, until );
171
-
172
- if ( name.slice( -5 ) !== "Until" ) {
173
- selector = until;
174
- }
175
-
176
- if ( selector && typeof selector === "string" ) {
177
- matched = jQuery.filter( selector, matched );
178
- }
179
-
180
- if ( this.length > 1 ) {
181
-
182
- // Remove duplicates
183
- if ( !guaranteedUnique[ name ] ) {
184
- jQuery.uniqueSort( matched );
185
- }
186
-
187
- // Reverse order for parents* and prev-derivatives
188
- if ( rparentsprev.test( name ) ) {
189
- matched.reverse();
190
- }
191
- }
192
-
193
- return this.pushStack( matched );
194
- };
195
- } );
196
-
197
- return jQuery;
198
- } );
@@ -1,7 +0,0 @@
1
- define( [
2
- "./fnToString"
3
- ], function( fnToString ) {
4
- "use strict";
5
-
6
- return fnToString.call( Object );
7
- } );
@@ -1,5 +0,0 @@
1
- define( function() {
2
- "use strict";
3
-
4
- return [];
5
- } );
@@ -1,6 +0,0 @@
1
- define( function() {
2
- "use strict";
3
-
4
- // [[Class]] -> type pairs
5
- return {};
6
- } );
@@ -1,5 +0,0 @@
1
- define( function() {
2
- "use strict";
3
-
4
- return window.document;
5
- } );
@@ -1,7 +0,0 @@
1
- define( [
2
- "./document"
3
- ], function( document ) {
4
- "use strict";
5
-
6
- return document.documentElement;
7
- } );
@@ -1,16 +0,0 @@
1
- define( [
2
- "./arr"
3
- ], function( arr ) {
4
-
5
- "use strict";
6
-
7
- // Support: IE 9 - 11+, Edge 18+, Android Browser 4.0 - 4.3 only, iOS 7 - 11 only, Safari 11 only,
8
- // Firefox <= 61 only
9
- // Provide fallback for browsers without Array#flat.
10
- return arr.flat ? function( array ) {
11
- return arr.flat.call( array );
12
- } : function( array ) {
13
- return arr.concat.apply( [], array );
14
- };
15
-
16
- } );
@@ -1,7 +0,0 @@
1
- define( [
2
- "./hasOwn"
3
- ], function( hasOwn ) {
4
- "use strict";
5
-
6
- return hasOwn.toString;
7
- } );
@@ -1,5 +0,0 @@
1
- define( function() {
2
- "use strict";
3
-
4
- return Object.getPrototypeOf;
5
- } );
@@ -1,7 +0,0 @@
1
- define( [
2
- "./class2type"
3
- ], function( class2type ) {
4
- "use strict";
5
-
6
- return class2type.hasOwnProperty;
7
- } );
@@ -1,7 +0,0 @@
1
- define( [
2
- "./arr"
3
- ], function( arr ) {
4
- "use strict";
5
-
6
- return arr.indexOf;
7
- } );
@@ -1,13 +0,0 @@
1
- define( function() {
2
- "use strict";
3
-
4
- return function isFunction( obj ) {
5
-
6
- // Support: Chrome <=57, Firefox <=52
7
- // In some browsers, typeof returns "function" for HTML <object> elements
8
- // (i.e., `typeof document.createElement( "object" ) === "function"`).
9
- // We don't want to classify *any* DOM node as a function.
10
- return typeof obj === "function" && typeof obj.nodeType !== "number";
11
- };
12
-
13
- } );
@@ -1,8 +0,0 @@
1
- define( function() {
2
- "use strict";
3
-
4
- return function isWindow( obj ) {
5
- return obj != null && obj === obj.window;
6
- };
7
-
8
- } );
@@ -1,5 +0,0 @@
1
- define( function() {
2
- "use strict";
3
-
4
- return ( /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/ ).source;
5
- } );
@@ -1,7 +0,0 @@
1
- define( [
2
- "./arr"
3
- ], function( arr ) {
4
- "use strict";
5
-
6
- return arr.push;
7
- } );
@@ -1,5 +0,0 @@
1
- define( function() {
2
- "use strict";
3
-
4
- return ( /^(?:checkbox|radio)$/i );
5
- } );
@@ -1,9 +0,0 @@
1
- define( [
2
- "../var/pnum"
3
- ], function( pnum ) {
4
-
5
- "use strict";
6
-
7
- return new RegExp( "^(?:([+-])=|)(" + pnum + ")([a-z%]*)$", "i" );
8
-
9
- } );
@@ -1,8 +0,0 @@
1
- define( function() {
2
- "use strict";
3
-
4
- // Only count HTML whitespace
5
- // Other whitespace should count in values
6
- // https://infra.spec.whatwg.org/#ascii-whitespace
7
- return ( /[^\x20\t\r\n\f]+/g );
8
- } );
@@ -1,7 +0,0 @@
1
- define( [
2
- "./arr"
3
- ], function( arr ) {
4
- "use strict";
5
-
6
- return arr.slice;
7
- } );
@@ -1,6 +0,0 @@
1
- define( function() {
2
- "use strict";
3
-
4
- // All support tests are defined in their respective modules.
5
- return {};
6
- } );
@@ -1,7 +0,0 @@
1
- define( [
2
- "./class2type"
3
- ], function( class2type ) {
4
- "use strict";
5
-
6
- return class2type.toString;
7
- } );
@@ -1,78 +0,0 @@
1
- define( [
2
- "./core",
3
- "./var/isFunction",
4
- "./core/init",
5
- "./manipulation", // clone
6
- "./traversing" // parent, contents
7
- ], function( jQuery, isFunction ) {
8
-
9
- "use strict";
10
-
11
- jQuery.fn.extend( {
12
- wrapAll: function( html ) {
13
- var wrap;
14
-
15
- if ( this[ 0 ] ) {
16
- if ( isFunction( html ) ) {
17
- html = html.call( this[ 0 ] );
18
- }
19
-
20
- // The elements to wrap the target around
21
- wrap = jQuery( html, this[ 0 ].ownerDocument ).eq( 0 ).clone( true );
22
-
23
- if ( this[ 0 ].parentNode ) {
24
- wrap.insertBefore( this[ 0 ] );
25
- }
26
-
27
- wrap.map( function() {
28
- var elem = this;
29
-
30
- while ( elem.firstElementChild ) {
31
- elem = elem.firstElementChild;
32
- }
33
-
34
- return elem;
35
- } ).append( this );
36
- }
37
-
38
- return this;
39
- },
40
-
41
- wrapInner: function( html ) {
42
- if ( isFunction( html ) ) {
43
- return this.each( function( i ) {
44
- jQuery( this ).wrapInner( html.call( this, i ) );
45
- } );
46
- }
47
-
48
- return this.each( function() {
49
- var self = jQuery( this ),
50
- contents = self.contents();
51
-
52
- if ( contents.length ) {
53
- contents.wrapAll( html );
54
-
55
- } else {
56
- self.append( html );
57
- }
58
- } );
59
- },
60
-
61
- wrap: function( html ) {
62
- var htmlIsFunction = isFunction( html );
63
-
64
- return this.each( function( i ) {
65
- jQuery( this ).wrapAll( htmlIsFunction ? html.call( this, i ) : html );
66
- } );
67
- },
68
-
69
- unwrap: function( selector ) {
70
- this.parent( selector ).not( "body" ).each( function() {
71
- jQuery( this ).replaceWith( this.childNodes );
72
- } );
73
- return this;
74
- }
75
- } );
76
-
77
- return jQuery;
78
- } );