aboutsummaryrefslogtreecommitdiffstats
path: root/src/callbacks.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/callbacks.js')
-rw-r--r--src/callbacks.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/callbacks.js b/src/callbacks.js
index 78e9b4fd0..6cf54031e 100644
--- a/src/callbacks.js
+++ b/src/callbacks.js
@@ -1,8 +1,9 @@
define( [
"./core",
+ "./core/toType",
"./var/isFunction",
"./var/rnothtmlwhite"
-], function( jQuery, isFunction, rnothtmlwhite ) {
+], function( jQuery, toType, isFunction, rnothtmlwhite ) {
"use strict";
@@ -130,7 +131,7 @@ jQuery.Callbacks = function( options ) {
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 );