mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update components
This commit is contained in:
parent
7537bab562
commit
d84c5a7c1d
226 changed files with 51770 additions and 4157 deletions
38
dashboard-ui/bower_components/jquery/src/wrap.js
vendored
38
dashboard-ui/bower_components/jquery/src/wrap.js
vendored
|
@ -1,18 +1,18 @@
|
|||
define([
|
||||
define( [
|
||||
"./core",
|
||||
"./core/init",
|
||||
"./manipulation", // clone
|
||||
"./traversing" // parent, contents
|
||||
], function( jQuery ) {
|
||||
|
||||
jQuery.fn.extend({
|
||||
jQuery.fn.extend( {
|
||||
wrapAll: function( html ) {
|
||||
var wrap;
|
||||
|
||||
if ( jQuery.isFunction( html ) ) {
|
||||
return this.each(function( i ) {
|
||||
jQuery( this ).wrapAll( html.call(this, i) );
|
||||
});
|
||||
return this.each( function( i ) {
|
||||
jQuery( this ).wrapAll( html.call( this, i ) );
|
||||
} );
|
||||
}
|
||||
|
||||
if ( this[ 0 ] ) {
|
||||
|
@ -24,7 +24,7 @@ jQuery.fn.extend({
|
|||
wrap.insertBefore( this[ 0 ] );
|
||||
}
|
||||
|
||||
wrap.map(function() {
|
||||
wrap.map( function() {
|
||||
var elem = this;
|
||||
|
||||
while ( elem.firstElementChild ) {
|
||||
|
@ -32,7 +32,7 @@ jQuery.fn.extend({
|
|||
}
|
||||
|
||||
return elem;
|
||||
}).append( this );
|
||||
} ).append( this );
|
||||
}
|
||||
|
||||
return this;
|
||||
|
@ -40,12 +40,12 @@ jQuery.fn.extend({
|
|||
|
||||
wrapInner: function( html ) {
|
||||
if ( jQuery.isFunction( html ) ) {
|
||||
return this.each(function( i ) {
|
||||
jQuery( this ).wrapInner( html.call(this, i) );
|
||||
});
|
||||
return this.each( function( i ) {
|
||||
jQuery( this ).wrapInner( html.call( this, i ) );
|
||||
} );
|
||||
}
|
||||
|
||||
return this.each(function() {
|
||||
return this.each( function() {
|
||||
var self = jQuery( this ),
|
||||
contents = self.contents();
|
||||
|
||||
|
@ -55,25 +55,25 @@ jQuery.fn.extend({
|
|||
} else {
|
||||
self.append( html );
|
||||
}
|
||||
});
|
||||
} );
|
||||
},
|
||||
|
||||
wrap: function( html ) {
|
||||
var isFunction = jQuery.isFunction( html );
|
||||
|
||||
return this.each(function( i ) {
|
||||
jQuery( this ).wrapAll( isFunction ? html.call(this, i) : html );
|
||||
});
|
||||
return this.each( function( i ) {
|
||||
jQuery( this ).wrapAll( isFunction ? html.call( this, i ) : html );
|
||||
} );
|
||||
},
|
||||
|
||||
unwrap: function() {
|
||||
return this.parent().each(function() {
|
||||
return this.parent().each( function() {
|
||||
if ( !jQuery.nodeName( this, "body" ) ) {
|
||||
jQuery( this ).replaceWith( this.childNodes );
|
||||
}
|
||||
}).end();
|
||||
} ).end();
|
||||
}
|
||||
});
|
||||
} );
|
||||
|
||||
return jQuery;
|
||||
});
|
||||
} );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue