Update dependencies

This commit is contained in:
Abdullah Almsaeed
2018-02-04 07:51:11 -05:00
parent 278785ad49
commit 281bb899b5
1333 changed files with 33649 additions and 110545 deletions

View File

@@ -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 );
} );
},