Update dependencies
This commit is contained in:
11
bower_components/jquery/src/wrap.js
vendored
11
bower_components/jquery/src/wrap.js
vendored
@@ -1,9 +1,10 @@
|
||||
define( [
|
||||
"./core",
|
||||
"./var/isFunction",
|
||||
"./core/init",
|
||||
"./manipulation", // clone
|
||||
"./traversing" // parent, contents
|
||||
], function( jQuery ) {
|
||||
], function( jQuery, isFunction ) {
|
||||
|
||||
"use strict";
|
||||
|
||||
@@ -12,7 +13,7 @@ jQuery.fn.extend( {
|
||||
var wrap;
|
||||
|
||||
if ( this[ 0 ] ) {
|
||||
if ( jQuery.isFunction( html ) ) {
|
||||
if ( isFunction( html ) ) {
|
||||
html = html.call( this[ 0 ] );
|
||||
}
|
||||
|
||||
@@ -38,7 +39,7 @@ jQuery.fn.extend( {
|
||||
},
|
||||
|
||||
wrapInner: function( html ) {
|
||||
if ( jQuery.isFunction( html ) ) {
|
||||
if ( isFunction( html ) ) {
|
||||
return this.each( function( i ) {
|
||||
jQuery( this ).wrapInner( html.call( this, i ) );
|
||||
} );
|
||||
@@ -58,10 +59,10 @@ jQuery.fn.extend( {
|
||||
},
|
||||
|
||||
wrap: function( html ) {
|
||||
var isFunction = jQuery.isFunction( html );
|
||||
var htmlIsFunction = isFunction( html );
|
||||
|
||||
return this.each( function( i ) {
|
||||
jQuery( this ).wrapAll( isFunction ? html.call( this, i ) : html );
|
||||
jQuery( this ).wrapAll( htmlIsFunction ? html.call( this, i ) : html );
|
||||
} );
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user