Update dependencies
This commit is contained in:
8
bower_components/jquery/src/callbacks.js
vendored
8
bower_components/jquery/src/callbacks.js
vendored
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user