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
84945cabc4
commit
ab2d2eaf94
111 changed files with 4302 additions and 3100 deletions
22
dashboard-ui/bower_components/jquery/src/wrap.js
vendored
22
dashboard-ui/bower_components/jquery/src/wrap.js
vendored
|
@ -5,17 +5,16 @@ define( [
|
|||
"./traversing" // parent, contents
|
||||
], function( jQuery ) {
|
||||
|
||||
"use strict";
|
||||
|
||||
jQuery.fn.extend( {
|
||||
wrapAll: function( html ) {
|
||||
var wrap;
|
||||
|
||||
if ( jQuery.isFunction( html ) ) {
|
||||
return this.each( function( i ) {
|
||||
jQuery( this ).wrapAll( html.call( this, i ) );
|
||||
} );
|
||||
}
|
||||
|
||||
if ( this[ 0 ] ) {
|
||||
if ( jQuery.isFunction( html ) ) {
|
||||
html = html.call( this[ 0 ] );
|
||||
}
|
||||
|
||||
// The elements to wrap the target around
|
||||
wrap = jQuery( html, this[ 0 ].ownerDocument ).eq( 0 ).clone( true );
|
||||
|
@ -66,12 +65,11 @@ jQuery.fn.extend( {
|
|||
} );
|
||||
},
|
||||
|
||||
unwrap: function() {
|
||||
return this.parent().each( function() {
|
||||
if ( !jQuery.nodeName( this, "body" ) ) {
|
||||
jQuery( this ).replaceWith( this.childNodes );
|
||||
}
|
||||
} ).end();
|
||||
unwrap: function( selector ) {
|
||||
this.parent( selector ).not( "body" ).each( function() {
|
||||
jQuery( this ).replaceWith( this.childNodes );
|
||||
} );
|
||||
return this;
|
||||
}
|
||||
} );
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue