trusty-cms 4.3.3 → 5.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +2 -1
- data/Gemfile.lock +87 -77
- data/app/assets/javascripts/ckeditor/config.js +2 -2
- data/app/assets/stylesheets/admin/partials/_content.scss +1 -0
- data/app/controllers/admin/assets_controller.rb +5 -1
- data/app/models/asset.rb +39 -48
- data/app/models/asset_type.rb +6 -2
- data/app/views/admin/assets/edit.html.haml +5 -3
- data/config/database.yml +2 -2
- data/config/locales/en.yml +1 -0
- data/coverage/index.html +1 -1
- data/lib/trusty_cms/deprecation.rb +13 -0
- data/lib/trusty_cms.rb +1 -1
- data/node_modules/path-parse/index.js +17 -35
- data/node_modules/path-parse/package.json +1 -1
- data/node_modules/postcss/CHANGELOG.md +27 -0
- data/node_modules/postcss/README.md +21 -0
- data/node_modules/postcss/lib/at-rule.js +2 -4
- data/node_modules/postcss/lib/comment.js +2 -4
- data/node_modules/postcss/lib/container.js +27 -122
- data/node_modules/postcss/lib/css-syntax-error.js +5 -7
- data/node_modules/postcss/lib/declaration.js +2 -4
- data/node_modules/postcss/lib/input.js +3 -5
- data/node_modules/postcss/lib/lazy-result.js +10 -17
- data/node_modules/postcss/lib/map-generator.js +10 -17
- data/node_modules/postcss/lib/node.js +2 -4
- data/node_modules/postcss/lib/parser.js +2 -4
- data/node_modules/postcss/lib/postcss.d.ts +25 -19
- data/node_modules/postcss/lib/previous-map.js +17 -6
- data/node_modules/postcss/lib/processor.js +16 -15
- data/node_modules/postcss/lib/result.js +2 -4
- data/node_modules/postcss/lib/root.js +10 -17
- data/node_modules/postcss/lib/rule.js +2 -4
- data/node_modules/postcss/lib/stringifier.js +2 -4
- data/node_modules/postcss/lib/warning.js +2 -4
- data/node_modules/postcss/package.json +16 -12
- data/spec/dummy/log/test.log +542 -443
- data/spec/dummy/tmp/cache/747/A70/TrustyCms%3A%3AConfig +0 -0
- data/spec/dummy/tmp/cache/85C/FA0/TrustyCms.cache_mtime +1 -1
- data/trusty_cms.gemspec +2 -1
- data/vendor/extensions/clipped-extension/lib/clipped/engine.rb +1 -1
- data/yarn.lock +3 -3
- metadata +31 -307
- data/config/initializers/interpolation.rb +0 -6
- data/node_modules/path-parse/test.js +0 -77
- data/node_modules/postcss/docs/api/assets/scripts.min.js +0 -8
- data/node_modules/postcss/docs/api/assets/styles.min.css +0 -1
- data/node_modules/postcss/docs/api/index.html +0 -22716
- data/spec/dummy/log/development.log +0 -158
- data/spec/dummy/node_modules/jquery/AUTHORS.txt +0 -327
- data/spec/dummy/node_modules/jquery/LICENSE.txt +0 -20
- data/spec/dummy/node_modules/jquery/README.md +0 -62
- data/spec/dummy/node_modules/jquery/bower.json +0 -14
- data/spec/dummy/node_modules/jquery/dist/jquery.js +0 -10872
- data/spec/dummy/node_modules/jquery/dist/jquery.min.js +0 -2
- data/spec/dummy/node_modules/jquery/dist/jquery.min.map +0 -1
- data/spec/dummy/node_modules/jquery/dist/jquery.slim.js +0 -8777
- data/spec/dummy/node_modules/jquery/dist/jquery.slim.min.js +0 -2
- data/spec/dummy/node_modules/jquery/dist/jquery.slim.min.map +0 -1
- data/spec/dummy/node_modules/jquery/external/sizzle/LICENSE.txt +0 -36
- data/spec/dummy/node_modules/jquery/external/sizzle/dist/sizzle.js +0 -2478
- data/spec/dummy/node_modules/jquery/external/sizzle/dist/sizzle.min.js +0 -3
- data/spec/dummy/node_modules/jquery/external/sizzle/dist/sizzle.min.map +0 -1
- data/spec/dummy/node_modules/jquery/package.json +0 -117
- data/spec/dummy/node_modules/jquery/src/ajax/jsonp.js +0 -103
- data/spec/dummy/node_modules/jquery/src/ajax/load.js +0 -77
- data/spec/dummy/node_modules/jquery/src/ajax/script.js +0 -74
- data/spec/dummy/node_modules/jquery/src/ajax/var/location.js +0 -5
- data/spec/dummy/node_modules/jquery/src/ajax/var/nonce.js +0 -5
- data/spec/dummy/node_modules/jquery/src/ajax/var/rquery.js +0 -5
- data/spec/dummy/node_modules/jquery/src/ajax/xhr.js +0 -170
- data/spec/dummy/node_modules/jquery/src/ajax.js +0 -873
- data/spec/dummy/node_modules/jquery/src/attributes/attr.js +0 -141
- data/spec/dummy/node_modules/jquery/src/attributes/classes.js +0 -186
- data/spec/dummy/node_modules/jquery/src/attributes/prop.js +0 -143
- data/spec/dummy/node_modules/jquery/src/attributes/support.js +0 -33
- data/spec/dummy/node_modules/jquery/src/attributes/val.js +0 -191
- data/spec/dummy/node_modules/jquery/src/attributes.js +0 -13
- data/spec/dummy/node_modules/jquery/src/callbacks.js +0 -236
- data/spec/dummy/node_modules/jquery/src/core/DOMEval.js +0 -43
- data/spec/dummy/node_modules/jquery/src/core/access.js +0 -72
- data/spec/dummy/node_modules/jquery/src/core/camelCase.js +0 -23
- data/spec/dummy/node_modules/jquery/src/core/init.js +0 -129
- data/spec/dummy/node_modules/jquery/src/core/isAttached.js +0 -26
- data/spec/dummy/node_modules/jquery/src/core/nodeName.js +0 -13
- data/spec/dummy/node_modules/jquery/src/core/parseHTML.js +0 -65
- data/spec/dummy/node_modules/jquery/src/core/parseXML.js +0 -30
- data/spec/dummy/node_modules/jquery/src/core/ready-no-deferred.js +0 -97
- data/spec/dummy/node_modules/jquery/src/core/ready.js +0 -86
- data/spec/dummy/node_modules/jquery/src/core/readyException.js +0 -13
- data/spec/dummy/node_modules/jquery/src/core/stripAndCollapse.js +0 -14
- data/spec/dummy/node_modules/jquery/src/core/support.js +0 -20
- data/spec/dummy/node_modules/jquery/src/core/toType.js +0 -20
- data/spec/dummy/node_modules/jquery/src/core/var/rsingleTag.js +0 -7
- data/spec/dummy/node_modules/jquery/src/core.js +0 -400
- data/spec/dummy/node_modules/jquery/src/css/addGetHookIf.js +0 -26
- data/spec/dummy/node_modules/jquery/src/css/adjustCSS.js +0 -74
- data/spec/dummy/node_modules/jquery/src/css/curCSS.js +0 -65
- data/spec/dummy/node_modules/jquery/src/css/finalPropName.js +0 -42
- data/spec/dummy/node_modules/jquery/src/css/hiddenVisibleSelectors.js +0 -15
- data/spec/dummy/node_modules/jquery/src/css/showHide.js +0 -105
- data/spec/dummy/node_modules/jquery/src/css/support.js +0 -133
- data/spec/dummy/node_modules/jquery/src/css/var/cssExpand.js +0 -5
- data/spec/dummy/node_modules/jquery/src/css/var/getStyles.js +0 -17
- data/spec/dummy/node_modules/jquery/src/css/var/isHiddenWithinTree.js +0 -34
- data/spec/dummy/node_modules/jquery/src/css/var/rboxStyle.js +0 -7
- data/spec/dummy/node_modules/jquery/src/css/var/rnumnonpx.js +0 -7
- data/spec/dummy/node_modules/jquery/src/css/var/swap.js +0 -26
- data/spec/dummy/node_modules/jquery/src/css.js +0 -494
- data/spec/dummy/node_modules/jquery/src/data/Data.js +0 -162
- data/spec/dummy/node_modules/jquery/src/data/var/acceptData.js +0 -19
- data/spec/dummy/node_modules/jquery/src/data/var/dataPriv.js +0 -7
- data/spec/dummy/node_modules/jquery/src/data/var/dataUser.js +0 -7
- data/spec/dummy/node_modules/jquery/src/data.js +0 -180
- data/spec/dummy/node_modules/jquery/src/deferred/exceptionHook.js +0 -21
- data/spec/dummy/node_modules/jquery/src/deferred.js +0 -399
- data/spec/dummy/node_modules/jquery/src/deprecated/ajax-event-alias.js +0 -22
- data/spec/dummy/node_modules/jquery/src/deprecated/event.js +0 -48
- data/spec/dummy/node_modules/jquery/src/deprecated.js +0 -87
- data/spec/dummy/node_modules/jquery/src/dimensions.js +0 -57
- data/spec/dummy/node_modules/jquery/src/effects/Tween.js +0 -125
- data/spec/dummy/node_modules/jquery/src/effects/animatedSelector.js +0 -15
- data/spec/dummy/node_modules/jquery/src/effects.js +0 -701
- data/spec/dummy/node_modules/jquery/src/event/focusin.js +0 -58
- data/spec/dummy/node_modules/jquery/src/event/support.js +0 -11
- data/spec/dummy/node_modules/jquery/src/event/trigger.js +0 -201
- data/spec/dummy/node_modules/jquery/src/event.js +0 -892
- data/spec/dummy/node_modules/jquery/src/exports/amd.js +0 -26
- data/spec/dummy/node_modules/jquery/src/exports/global.js +0 -34
- data/spec/dummy/node_modules/jquery/src/jquery.js +0 -41
- data/spec/dummy/node_modules/jquery/src/manipulation/_evalUrl.js +0 -32
- data/spec/dummy/node_modules/jquery/src/manipulation/buildFragment.js +0 -106
- data/spec/dummy/node_modules/jquery/src/manipulation/getAll.js +0 -32
- data/spec/dummy/node_modules/jquery/src/manipulation/setGlobalEval.js +0 -22
- data/spec/dummy/node_modules/jquery/src/manipulation/support.js +0 -41
- data/spec/dummy/node_modules/jquery/src/manipulation/var/rscriptType.js +0 -5
- data/spec/dummy/node_modules/jquery/src/manipulation/var/rtagName.js +0 -8
- data/spec/dummy/node_modules/jquery/src/manipulation/wrapMap.js +0 -30
- data/spec/dummy/node_modules/jquery/src/manipulation.js +0 -480
- data/spec/dummy/node_modules/jquery/src/offset.js +0 -238
- data/spec/dummy/node_modules/jquery/src/queue/delay.js +0 -24
- data/spec/dummy/node_modules/jquery/src/queue.js +0 -145
- data/spec/dummy/node_modules/jquery/src/selector-native.js +0 -241
- data/spec/dummy/node_modules/jquery/src/selector-sizzle.js +0 -19
- data/spec/dummy/node_modules/jquery/src/selector.js +0 -3
- data/spec/dummy/node_modules/jquery/src/serialize.js +0 -136
- data/spec/dummy/node_modules/jquery/src/traversing/findFilter.js +0 -97
- data/spec/dummy/node_modules/jquery/src/traversing/var/dir.js +0 -22
- data/spec/dummy/node_modules/jquery/src/traversing/var/rneedsContext.js +0 -8
- data/spec/dummy/node_modules/jquery/src/traversing/var/siblings.js +0 -17
- data/spec/dummy/node_modules/jquery/src/traversing.js +0 -198
- data/spec/dummy/node_modules/jquery/src/var/ObjectFunctionString.js +0 -7
- data/spec/dummy/node_modules/jquery/src/var/arr.js +0 -5
- data/spec/dummy/node_modules/jquery/src/var/class2type.js +0 -6
- data/spec/dummy/node_modules/jquery/src/var/document.js +0 -5
- data/spec/dummy/node_modules/jquery/src/var/documentElement.js +0 -7
- data/spec/dummy/node_modules/jquery/src/var/flat.js +0 -16
- data/spec/dummy/node_modules/jquery/src/var/fnToString.js +0 -7
- data/spec/dummy/node_modules/jquery/src/var/getProto.js +0 -5
- data/spec/dummy/node_modules/jquery/src/var/hasOwn.js +0 -7
- data/spec/dummy/node_modules/jquery/src/var/indexOf.js +0 -7
- data/spec/dummy/node_modules/jquery/src/var/isFunction.js +0 -13
- data/spec/dummy/node_modules/jquery/src/var/isWindow.js +0 -8
- data/spec/dummy/node_modules/jquery/src/var/pnum.js +0 -5
- data/spec/dummy/node_modules/jquery/src/var/push.js +0 -7
- data/spec/dummy/node_modules/jquery/src/var/rcheckableType.js +0 -5
- data/spec/dummy/node_modules/jquery/src/var/rcssNum.js +0 -9
- data/spec/dummy/node_modules/jquery/src/var/rnothtmlwhite.js +0 -8
- data/spec/dummy/node_modules/jquery/src/var/slice.js +0 -7
- data/spec/dummy/node_modules/jquery/src/var/support.js +0 -6
- data/spec/dummy/node_modules/jquery/src/var/toString.js +0 -7
- data/spec/dummy/node_modules/jquery/src/wrap.js +0 -78
- data/spec/dummy/node_modules/jquery-ui-bundle/AUTHORS.txt +0 -333
- data/spec/dummy/node_modules/jquery-ui-bundle/LICENSE.txt +0 -43
- data/spec/dummy/node_modules/jquery-ui-bundle/external/jquery/jquery.js +0 -11008
- data/spec/dummy/node_modules/jquery-ui-bundle/images/ui-icons_444444_256x240.png +0 -0
- data/spec/dummy/node_modules/jquery-ui-bundle/images/ui-icons_555555_256x240.png +0 -0
- data/spec/dummy/node_modules/jquery-ui-bundle/images/ui-icons_777620_256x240.png +0 -0
- data/spec/dummy/node_modules/jquery-ui-bundle/images/ui-icons_777777_256x240.png +0 -0
- data/spec/dummy/node_modules/jquery-ui-bundle/images/ui-icons_cc0000_256x240.png +0 -0
- data/spec/dummy/node_modules/jquery-ui-bundle/images/ui-icons_ffffff_256x240.png +0 -0
- data/spec/dummy/node_modules/jquery-ui-bundle/index.html +0 -559
- data/spec/dummy/node_modules/jquery-ui-bundle/jquery-ui.css +0 -1312
- data/spec/dummy/node_modules/jquery-ui-bundle/jquery-ui.js +0 -18706
- data/spec/dummy/node_modules/jquery-ui-bundle/jquery-ui.min.css +0 -7
- data/spec/dummy/node_modules/jquery-ui-bundle/jquery-ui.min.js +0 -13
- data/spec/dummy/node_modules/jquery-ui-bundle/jquery-ui.structure.css +0 -886
- data/spec/dummy/node_modules/jquery-ui-bundle/jquery-ui.structure.min.css +0 -5
- data/spec/dummy/node_modules/jquery-ui-bundle/jquery-ui.theme.css +0 -443
- data/spec/dummy/node_modules/jquery-ui-bundle/jquery-ui.theme.min.css +0 -5
- data/spec/dummy/node_modules/jquery-ui-bundle/package.json +0 -33
- data/spec/dummy/node_modules/jquery-ujs/CONTRIBUTING.md +0 -109
- data/spec/dummy/node_modules/jquery-ujs/MIT-LICENSE +0 -20
- data/spec/dummy/node_modules/jquery-ujs/README.md +0 -86
- data/spec/dummy/node_modules/jquery-ujs/RELEASE.md +0 -23
- data/spec/dummy/node_modules/jquery-ujs/bower.json +0 -19
- data/spec/dummy/node_modules/jquery-ujs/package.json +0 -26
- data/spec/dummy/node_modules/jquery-ujs/src/rails.js +0 -555
@@ -1,26 +0,0 @@
|
|
1
|
-
define( [
|
2
|
-
"../core"
|
3
|
-
], function( jQuery ) {
|
4
|
-
|
5
|
-
"use strict";
|
6
|
-
|
7
|
-
// Register as a named AMD module, since jQuery can be concatenated with other
|
8
|
-
// files that may use define, but not via a proper concatenation script that
|
9
|
-
// understands anonymous AMD modules. A named AMD is safest and most robust
|
10
|
-
// way to register. Lowercase jquery is used because AMD module names are
|
11
|
-
// derived from file names, and jQuery is normally delivered in a lowercase
|
12
|
-
// file name. Do this after creating the global so that if an AMD module wants
|
13
|
-
// to call noConflict to hide this version of jQuery, it will work.
|
14
|
-
|
15
|
-
// Note that for maximum portability, libraries that are not jQuery should
|
16
|
-
// declare themselves as anonymous modules, and avoid setting a global if an
|
17
|
-
// AMD loader is present. jQuery is a special case. For more information, see
|
18
|
-
// https://github.com/jrburke/requirejs/wiki/Updating-existing-libraries#wiki-anon
|
19
|
-
|
20
|
-
if ( typeof define === "function" && define.amd ) {
|
21
|
-
define( "jquery", [], function() {
|
22
|
-
return jQuery;
|
23
|
-
} );
|
24
|
-
}
|
25
|
-
|
26
|
-
} );
|
@@ -1,34 +0,0 @@
|
|
1
|
-
define( [
|
2
|
-
"../core"
|
3
|
-
], function( jQuery ) {
|
4
|
-
|
5
|
-
"use strict";
|
6
|
-
|
7
|
-
var
|
8
|
-
|
9
|
-
// Map over jQuery in case of overwrite
|
10
|
-
_jQuery = window.jQuery,
|
11
|
-
|
12
|
-
// Map over the $ in case of overwrite
|
13
|
-
_$ = window.$;
|
14
|
-
|
15
|
-
jQuery.noConflict = function( deep ) {
|
16
|
-
if ( window.$ === jQuery ) {
|
17
|
-
window.$ = _$;
|
18
|
-
}
|
19
|
-
|
20
|
-
if ( deep && window.jQuery === jQuery ) {
|
21
|
-
window.jQuery = _jQuery;
|
22
|
-
}
|
23
|
-
|
24
|
-
return jQuery;
|
25
|
-
};
|
26
|
-
|
27
|
-
// Expose jQuery and $ identifiers, even in AMD
|
28
|
-
// (#7102#comment:10, https://github.com/jquery/jquery/pull/557)
|
29
|
-
// and CommonJS for browser emulators (#13566)
|
30
|
-
if ( typeof noGlobal === "undefined" ) {
|
31
|
-
window.jQuery = window.$ = jQuery;
|
32
|
-
}
|
33
|
-
|
34
|
-
} );
|
@@ -1,41 +0,0 @@
|
|
1
|
-
define( [
|
2
|
-
"./core",
|
3
|
-
"./selector",
|
4
|
-
"./traversing",
|
5
|
-
"./callbacks",
|
6
|
-
"./deferred",
|
7
|
-
"./deferred/exceptionHook",
|
8
|
-
"./core/ready",
|
9
|
-
"./data",
|
10
|
-
"./queue",
|
11
|
-
"./queue/delay",
|
12
|
-
"./attributes",
|
13
|
-
"./event",
|
14
|
-
"./event/focusin",
|
15
|
-
"./manipulation",
|
16
|
-
"./manipulation/_evalUrl",
|
17
|
-
"./wrap",
|
18
|
-
"./css",
|
19
|
-
"./css/hiddenVisibleSelectors",
|
20
|
-
"./serialize",
|
21
|
-
"./ajax",
|
22
|
-
"./ajax/xhr",
|
23
|
-
"./ajax/script",
|
24
|
-
"./ajax/jsonp",
|
25
|
-
"./ajax/load",
|
26
|
-
"./core/parseXML",
|
27
|
-
"./core/parseHTML",
|
28
|
-
"./effects",
|
29
|
-
"./effects/animatedSelector",
|
30
|
-
"./offset",
|
31
|
-
"./dimensions",
|
32
|
-
"./deprecated",
|
33
|
-
"./exports/amd",
|
34
|
-
"./exports/global"
|
35
|
-
], function( jQuery ) {
|
36
|
-
|
37
|
-
"use strict";
|
38
|
-
|
39
|
-
return jQuery;
|
40
|
-
|
41
|
-
} );
|
@@ -1,32 +0,0 @@
|
|
1
|
-
define( [
|
2
|
-
"../ajax"
|
3
|
-
], function( jQuery ) {
|
4
|
-
|
5
|
-
"use strict";
|
6
|
-
|
7
|
-
jQuery._evalUrl = function( url, options, doc ) {
|
8
|
-
return jQuery.ajax( {
|
9
|
-
url: url,
|
10
|
-
|
11
|
-
// Make this explicit, since user can override this through ajaxSetup (#11264)
|
12
|
-
type: "GET",
|
13
|
-
dataType: "script",
|
14
|
-
cache: true,
|
15
|
-
async: false,
|
16
|
-
global: false,
|
17
|
-
|
18
|
-
// Only evaluate the response if it is successful (gh-4126)
|
19
|
-
// dataFilter is not invoked for failure responses, so using it instead
|
20
|
-
// of the default converter is kludgy but it works.
|
21
|
-
converters: {
|
22
|
-
"text script": function() {}
|
23
|
-
},
|
24
|
-
dataFilter: function( response ) {
|
25
|
-
jQuery.globalEval( response, options, doc );
|
26
|
-
}
|
27
|
-
} );
|
28
|
-
};
|
29
|
-
|
30
|
-
return jQuery._evalUrl;
|
31
|
-
|
32
|
-
} );
|
@@ -1,106 +0,0 @@
|
|
1
|
-
define( [
|
2
|
-
"../core",
|
3
|
-
"../core/toType",
|
4
|
-
"../core/isAttached",
|
5
|
-
"./var/rtagName",
|
6
|
-
"./var/rscriptType",
|
7
|
-
"./wrapMap",
|
8
|
-
"./getAll",
|
9
|
-
"./setGlobalEval"
|
10
|
-
], function( jQuery, toType, isAttached, rtagName, rscriptType, wrapMap, getAll, setGlobalEval ) {
|
11
|
-
|
12
|
-
"use strict";
|
13
|
-
|
14
|
-
var rhtml = /<|&#?\w+;/;
|
15
|
-
|
16
|
-
function buildFragment( elems, context, scripts, selection, ignored ) {
|
17
|
-
var elem, tmp, tag, wrap, attached, j,
|
18
|
-
fragment = context.createDocumentFragment(),
|
19
|
-
nodes = [],
|
20
|
-
i = 0,
|
21
|
-
l = elems.length;
|
22
|
-
|
23
|
-
for ( ; i < l; i++ ) {
|
24
|
-
elem = elems[ i ];
|
25
|
-
|
26
|
-
if ( elem || elem === 0 ) {
|
27
|
-
|
28
|
-
// Add nodes directly
|
29
|
-
if ( toType( elem ) === "object" ) {
|
30
|
-
|
31
|
-
// Support: Android <=4.0 only, PhantomJS 1 only
|
32
|
-
// push.apply(_, arraylike) throws on ancient WebKit
|
33
|
-
jQuery.merge( nodes, elem.nodeType ? [ elem ] : elem );
|
34
|
-
|
35
|
-
// Convert non-html into a text node
|
36
|
-
} else if ( !rhtml.test( elem ) ) {
|
37
|
-
nodes.push( context.createTextNode( elem ) );
|
38
|
-
|
39
|
-
// Convert html into DOM nodes
|
40
|
-
} else {
|
41
|
-
tmp = tmp || fragment.appendChild( context.createElement( "div" ) );
|
42
|
-
|
43
|
-
// Deserialize a standard representation
|
44
|
-
tag = ( rtagName.exec( elem ) || [ "", "" ] )[ 1 ].toLowerCase();
|
45
|
-
wrap = wrapMap[ tag ] || wrapMap._default;
|
46
|
-
tmp.innerHTML = wrap[ 1 ] + jQuery.htmlPrefilter( elem ) + wrap[ 2 ];
|
47
|
-
|
48
|
-
// Descend through wrappers to the right content
|
49
|
-
j = wrap[ 0 ];
|
50
|
-
while ( j-- ) {
|
51
|
-
tmp = tmp.lastChild;
|
52
|
-
}
|
53
|
-
|
54
|
-
// Support: Android <=4.0 only, PhantomJS 1 only
|
55
|
-
// push.apply(_, arraylike) throws on ancient WebKit
|
56
|
-
jQuery.merge( nodes, tmp.childNodes );
|
57
|
-
|
58
|
-
// Remember the top-level container
|
59
|
-
tmp = fragment.firstChild;
|
60
|
-
|
61
|
-
// Ensure the created nodes are orphaned (#12392)
|
62
|
-
tmp.textContent = "";
|
63
|
-
}
|
64
|
-
}
|
65
|
-
}
|
66
|
-
|
67
|
-
// Remove wrapper from fragment
|
68
|
-
fragment.textContent = "";
|
69
|
-
|
70
|
-
i = 0;
|
71
|
-
while ( ( elem = nodes[ i++ ] ) ) {
|
72
|
-
|
73
|
-
// Skip elements already in the context collection (trac-4087)
|
74
|
-
if ( selection && jQuery.inArray( elem, selection ) > -1 ) {
|
75
|
-
if ( ignored ) {
|
76
|
-
ignored.push( elem );
|
77
|
-
}
|
78
|
-
continue;
|
79
|
-
}
|
80
|
-
|
81
|
-
attached = isAttached( elem );
|
82
|
-
|
83
|
-
// Append to fragment
|
84
|
-
tmp = getAll( fragment.appendChild( elem ), "script" );
|
85
|
-
|
86
|
-
// Preserve script evaluation history
|
87
|
-
if ( attached ) {
|
88
|
-
setGlobalEval( tmp );
|
89
|
-
}
|
90
|
-
|
91
|
-
// Capture executables
|
92
|
-
if ( scripts ) {
|
93
|
-
j = 0;
|
94
|
-
while ( ( elem = tmp[ j++ ] ) ) {
|
95
|
-
if ( rscriptType.test( elem.type || "" ) ) {
|
96
|
-
scripts.push( elem );
|
97
|
-
}
|
98
|
-
}
|
99
|
-
}
|
100
|
-
}
|
101
|
-
|
102
|
-
return fragment;
|
103
|
-
}
|
104
|
-
|
105
|
-
return buildFragment;
|
106
|
-
} );
|
@@ -1,32 +0,0 @@
|
|
1
|
-
define( [
|
2
|
-
"../core",
|
3
|
-
"../core/nodeName"
|
4
|
-
], function( jQuery, nodeName ) {
|
5
|
-
|
6
|
-
"use strict";
|
7
|
-
|
8
|
-
function getAll( context, tag ) {
|
9
|
-
|
10
|
-
// Support: IE <=9 - 11 only
|
11
|
-
// Use typeof to avoid zero-argument method invocation on host objects (#15151)
|
12
|
-
var ret;
|
13
|
-
|
14
|
-
if ( typeof context.getElementsByTagName !== "undefined" ) {
|
15
|
-
ret = context.getElementsByTagName( tag || "*" );
|
16
|
-
|
17
|
-
} else if ( typeof context.querySelectorAll !== "undefined" ) {
|
18
|
-
ret = context.querySelectorAll( tag || "*" );
|
19
|
-
|
20
|
-
} else {
|
21
|
-
ret = [];
|
22
|
-
}
|
23
|
-
|
24
|
-
if ( tag === undefined || tag && nodeName( context, tag ) ) {
|
25
|
-
return jQuery.merge( [ context ], ret );
|
26
|
-
}
|
27
|
-
|
28
|
-
return ret;
|
29
|
-
}
|
30
|
-
|
31
|
-
return getAll;
|
32
|
-
} );
|
@@ -1,22 +0,0 @@
|
|
1
|
-
define( [
|
2
|
-
"../data/var/dataPriv"
|
3
|
-
], function( dataPriv ) {
|
4
|
-
|
5
|
-
"use strict";
|
6
|
-
|
7
|
-
// Mark scripts as having already been evaluated
|
8
|
-
function setGlobalEval( elems, refElements ) {
|
9
|
-
var i = 0,
|
10
|
-
l = elems.length;
|
11
|
-
|
12
|
-
for ( ; i < l; i++ ) {
|
13
|
-
dataPriv.set(
|
14
|
-
elems[ i ],
|
15
|
-
"globalEval",
|
16
|
-
!refElements || dataPriv.get( refElements[ i ], "globalEval" )
|
17
|
-
);
|
18
|
-
}
|
19
|
-
}
|
20
|
-
|
21
|
-
return setGlobalEval;
|
22
|
-
} );
|
@@ -1,41 +0,0 @@
|
|
1
|
-
define( [
|
2
|
-
"../var/document",
|
3
|
-
"../var/support"
|
4
|
-
], function( document, support ) {
|
5
|
-
|
6
|
-
"use strict";
|
7
|
-
|
8
|
-
( function() {
|
9
|
-
var fragment = document.createDocumentFragment(),
|
10
|
-
div = fragment.appendChild( document.createElement( "div" ) ),
|
11
|
-
input = document.createElement( "input" );
|
12
|
-
|
13
|
-
// Support: Android 4.0 - 4.3 only
|
14
|
-
// Check state lost if the name is set (#11217)
|
15
|
-
// Support: Windows Web Apps (WWA)
|
16
|
-
// `name` and `type` must use .setAttribute for WWA (#14901)
|
17
|
-
input.setAttribute( "type", "radio" );
|
18
|
-
input.setAttribute( "checked", "checked" );
|
19
|
-
input.setAttribute( "name", "t" );
|
20
|
-
|
21
|
-
div.appendChild( input );
|
22
|
-
|
23
|
-
// Support: Android <=4.1 only
|
24
|
-
// Older WebKit doesn't clone checked state correctly in fragments
|
25
|
-
support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked;
|
26
|
-
|
27
|
-
// Support: IE <=11 only
|
28
|
-
// Make sure textarea (and checkbox) defaultValue is properly cloned
|
29
|
-
div.innerHTML = "<textarea>x</textarea>";
|
30
|
-
support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue;
|
31
|
-
|
32
|
-
// Support: IE <=9 only
|
33
|
-
// IE <=9 replaces <option> tags with their contents when inserted outside of
|
34
|
-
// the select element.
|
35
|
-
div.innerHTML = "<option></option>";
|
36
|
-
support.option = !!div.lastChild;
|
37
|
-
} )();
|
38
|
-
|
39
|
-
return support;
|
40
|
-
|
41
|
-
} );
|
@@ -1,8 +0,0 @@
|
|
1
|
-
define( function() {
|
2
|
-
"use strict";
|
3
|
-
|
4
|
-
// rtagName captures the name from the first start tag in a string of HTML
|
5
|
-
// https://html.spec.whatwg.org/multipage/syntax.html#tag-open-state
|
6
|
-
// https://html.spec.whatwg.org/multipage/syntax.html#tag-name-state
|
7
|
-
return ( /<([a-z][^\/\0>\x20\t\r\n\f]*)/i );
|
8
|
-
} );
|
@@ -1,30 +0,0 @@
|
|
1
|
-
define( [
|
2
|
-
"./support"
|
3
|
-
], function( support ) {
|
4
|
-
|
5
|
-
"use strict";
|
6
|
-
|
7
|
-
// We have to close these tags to support XHTML (#13200)
|
8
|
-
var wrapMap = {
|
9
|
-
|
10
|
-
// XHTML parsers do not magically insert elements in the
|
11
|
-
// same way that tag soup parsers do. So we cannot shorten
|
12
|
-
// this by omitting <tbody> or other required elements.
|
13
|
-
thead: [ 1, "<table>", "</table>" ],
|
14
|
-
col: [ 2, "<table><colgroup>", "</colgroup></table>" ],
|
15
|
-
tr: [ 2, "<table><tbody>", "</tbody></table>" ],
|
16
|
-
td: [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ],
|
17
|
-
|
18
|
-
_default: [ 0, "", "" ]
|
19
|
-
};
|
20
|
-
|
21
|
-
wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
|
22
|
-
wrapMap.th = wrapMap.td;
|
23
|
-
|
24
|
-
// Support: IE <=9 only
|
25
|
-
if ( !support.option ) {
|
26
|
-
wrapMap.optgroup = wrapMap.option = [ 1, "<select multiple='multiple'>", "</select>" ];
|
27
|
-
}
|
28
|
-
|
29
|
-
return wrapMap;
|
30
|
-
} );
|