adoption to design of sp-magic
This commit is contained in:
parent
bc6fa550f9
commit
f65d081896
143 changed files with 13685 additions and 2590 deletions
|
@ -2,6 +2,8 @@ define( [
|
|||
"../ajax"
|
||||
], function( jQuery ) {
|
||||
|
||||
"use strict";
|
||||
|
||||
jQuery._evalUrl = function( url ) {
|
||||
return jQuery.ajax( {
|
||||
url: url,
|
||||
|
@ -9,6 +11,7 @@ jQuery._evalUrl = function( url ) {
|
|||
// Make this explicit, since user can override this through ajaxSetup (#11264)
|
||||
type: "GET",
|
||||
dataType: "script",
|
||||
cache: true,
|
||||
async: false,
|
||||
global: false,
|
||||
"throws": true
|
||||
|
|
|
@ -7,6 +7,8 @@ define( [
|
|||
"./setGlobalEval"
|
||||
], function( jQuery, rtagName, rscriptType, wrapMap, getAll, setGlobalEval ) {
|
||||
|
||||
"use strict";
|
||||
|
||||
var rhtml = /<|&#?\w+;/;
|
||||
|
||||
function buildFragment( elems, context, scripts, selection, ignored ) {
|
||||
|
@ -24,7 +26,7 @@ function buildFragment( elems, context, scripts, selection, ignored ) {
|
|||
// Add nodes directly
|
||||
if ( jQuery.type( elem ) === "object" ) {
|
||||
|
||||
// Support: Android<4.1, PhantomJS<2
|
||||
// Support: Android <=4.0 only, PhantomJS 1 only
|
||||
// push.apply(_, arraylike) throws on ancient WebKit
|
||||
jQuery.merge( nodes, elem.nodeType ? [ elem ] : elem );
|
||||
|
||||
|
@ -47,7 +49,7 @@ function buildFragment( elems, context, scripts, selection, ignored ) {
|
|||
tmp = tmp.lastChild;
|
||||
}
|
||||
|
||||
// Support: Android<4.1, PhantomJS<2
|
||||
// Support: Android <=4.0 only, PhantomJS 1 only
|
||||
// push.apply(_, arraylike) throws on ancient WebKit
|
||||
jQuery.merge( nodes, tmp.childNodes );
|
||||
|
||||
|
|
|
@ -2,19 +2,29 @@ define( [
|
|||
"../core"
|
||||
], function( jQuery ) {
|
||||
|
||||
"use strict";
|
||||
|
||||
function getAll( context, tag ) {
|
||||
|
||||
// Support: IE9-11+
|
||||
// Support: IE <=9 - 11 only
|
||||
// Use typeof to avoid zero-argument method invocation on host objects (#15151)
|
||||
var ret = typeof context.getElementsByTagName !== "undefined" ?
|
||||
context.getElementsByTagName( tag || "*" ) :
|
||||
typeof context.querySelectorAll !== "undefined" ?
|
||||
context.querySelectorAll( tag || "*" ) :
|
||||
[];
|
||||
var ret;
|
||||
|
||||
return tag === undefined || tag && jQuery.nodeName( context, tag ) ?
|
||||
jQuery.merge( [ context ], ret ) :
|
||||
ret;
|
||||
if ( typeof context.getElementsByTagName !== "undefined" ) {
|
||||
ret = context.getElementsByTagName( tag || "*" );
|
||||
|
||||
} else if ( typeof context.querySelectorAll !== "undefined" ) {
|
||||
ret = context.querySelectorAll( tag || "*" );
|
||||
|
||||
} else {
|
||||
ret = [];
|
||||
}
|
||||
|
||||
if ( tag === undefined || tag && jQuery.nodeName( context, tag ) ) {
|
||||
return jQuery.merge( [ context ], ret );
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
return getAll;
|
||||
|
|
|
@ -2,6 +2,8 @@ define( [
|
|||
"../data/var/dataPriv"
|
||||
], function( dataPriv ) {
|
||||
|
||||
"use strict";
|
||||
|
||||
// Mark scripts as having already been evaluated
|
||||
function setGlobalEval( elems, refElements ) {
|
||||
var i = 0,
|
||||
|
|
|
@ -3,12 +3,14 @@ define( [
|
|||
"../var/support"
|
||||
], function( document, support ) {
|
||||
|
||||
"use strict";
|
||||
|
||||
( function() {
|
||||
var fragment = document.createDocumentFragment(),
|
||||
div = fragment.appendChild( document.createElement( "div" ) ),
|
||||
input = document.createElement( "input" );
|
||||
|
||||
// Support: Android 4.0-4.3, Safari<=5.1
|
||||
// Support: Android 4.0 - 4.3 only
|
||||
// Check state lost if the name is set (#11217)
|
||||
// Support: Windows Web Apps (WWA)
|
||||
// `name` and `type` must use .setAttribute for WWA (#14901)
|
||||
|
@ -18,11 +20,11 @@ define( [
|
|||
|
||||
div.appendChild( input );
|
||||
|
||||
// Support: Safari<=5.1, Android<4.2
|
||||
// Support: Android <=4.1 only
|
||||
// Older WebKit doesn't clone checked state correctly in fragments
|
||||
support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked;
|
||||
|
||||
// Support: IE<=11+
|
||||
// Support: IE <=11 only
|
||||
// Make sure textarea (and checkbox) defaultValue is properly cloned
|
||||
div.innerHTML = "<textarea>x</textarea>";
|
||||
support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
define( function() {
|
||||
"use strict";
|
||||
|
||||
return ( /^(?:checkbox|radio)$/i );
|
||||
} );
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
define( function() {
|
||||
"use strict";
|
||||
|
||||
return ( /^$|\/(?:java|ecma)script/i );
|
||||
} );
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
define( function() {
|
||||
return ( /<([\w:-]+)/ );
|
||||
"use strict";
|
||||
|
||||
return ( /<([a-z][^\/\0>\x20\t\r\n\f]+)/i );
|
||||
} );
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
define( function() {
|
||||
|
||||
"use strict";
|
||||
|
||||
// We have to close these tags to support XHTML (#13200)
|
||||
var wrapMap = {
|
||||
|
||||
// Support: IE9
|
||||
// Support: IE <=9 only
|
||||
option: [ 1, "<select multiple='multiple'>", "</select>" ],
|
||||
|
||||
// XHTML parsers do not magically insert elements in the
|
||||
|
@ -17,7 +19,7 @@ var wrapMap = {
|
|||
_default: [ 0, "", "" ]
|
||||
};
|
||||
|
||||
// Support: IE9
|
||||
// Support: IE <=9 only
|
||||
wrapMap.optgroup = wrapMap.option;
|
||||
|
||||
wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue