demo___customer_pitch-c4152739-a50b-4b5b-9d4d-0561461666d9.zip-extract/_dependencies/npm/jquery-3.3.1/src/wrap.js

Path
demo___customer_pitch-c4152739-a50b-4b5b-9d4d-0561461666d9.zip-extract/_dependencies/npm/jquery-3.3.1/src/wrap.js
Status
scanned
Type
file
Name
wrap.js
Extension
.js
Programming language
JavaScript
Mime type
text/plain
File type
ASCII text
Tag

      
    
Rootfs path

      
    
Size
1477 (1.4 KB)
MD5
d70039df56a311b4db73e78c455398e0
SHA1
58b4741817cdc81c0a1f3cacf3acb93e63695968
SHA256
f9513bfa8389a0373c280a08aec8c23af8b8a8e2d18de0aced68436d60aaf3ad
SHA512

      
    
SHA1_git
41b716f9f78a00a1d5d917b3d1fc84757ffedb47
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
wrap.js | 1.4 KB |

define( [ "./core", "./var/isFunction", "./core/init", "./manipulation", // clone "./traversing" // parent, contents ], function( jQuery, isFunction ) { "use strict"; jQuery.fn.extend( { wrapAll: function( html ) { var wrap; if ( this[ 0 ] ) { if ( isFunction( html ) ) { html = html.call( this[ 0 ] ); } // The elements to wrap the target around wrap = jQuery( html, this[ 0 ].ownerDocument ).eq( 0 ).clone( true ); if ( this[ 0 ].parentNode ) { wrap.insertBefore( this[ 0 ] ); } wrap.map( function() { var elem = this; while ( elem.firstElementChild ) { elem = elem.firstElementChild; } return elem; } ).append( this ); } return this; }, wrapInner: function( html ) { if ( isFunction( html ) ) { return this.each( function( i ) { jQuery( this ).wrapInner( html.call( this, i ) ); } ); } return this.each( function() { var self = jQuery( this ), contents = self.contents(); if ( contents.length ) { contents.wrapAll( html ); } else { self.append( html ); } } ); }, wrap: function( html ) { var htmlIsFunction = isFunction( html ); return this.each( function( i ) { jQuery( this ).wrapAll( htmlIsFunction ? html.call( this, i ) : html ); } ); }, unwrap: function( selector ) { this.parent( selector ).not( "body" ).each( function() { jQuery( this ).replaceWith( this.childNodes ); } ); return this; } } ); return jQuery; } );
Package URL License Primary language
pkg:npm/jquery@3.3.1 mit JavaScript
pkg:npm/acme-demo-app@1.0.0 JavaScript