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,7 +1,9 @@
define( [
"./core",
"./core/toType",
"./var/isFunction",
"./var/rnothtmlwhite"
], function( jQuery, rnothtmlwhite ) {
], function( jQuery, toType, isFunction, rnothtmlwhite ) {
"use strict";
@@ -125,11 +127,11 @@ jQuery.Callbacks = function( options ) {
( function add( args ) {
jQuery.each( args, function( _, arg ) {
if ( jQuery.isFunction( arg ) ) {
if ( isFunction( arg ) ) {
if ( !options.unique || !self.has( arg ) ) {
list.push( arg );
}
} else if ( arg && arg.length && jQuery.type( arg ) !== "string" ) {
} else if ( arg && arg.length && toType( arg ) !== "string" ) {
// Inspect recursively
add( arg );