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, 2 insertions, 3 deletions
diff --git a/src/callbacks.js b/src/callbacks.js
index 6cf54031e..140c4979e 100644
--- a/src/callbacks.js
+++ b/src/callbacks.js
@@ -1,9 +1,8 @@
define( [
"./core",
"./core/toType",
- "./var/isFunction",
"./var/rnothtmlwhite"
-], function( jQuery, toType, isFunction, rnothtmlwhite ) {
+], function( jQuery, toType, rnothtmlwhite ) {
"use strict";
@@ -127,7 +126,7 @@ jQuery.Callbacks = function( options ) {
( function add( args ) {
jQuery.each( args, function( _, arg ) {
- if ( isFunction( arg ) ) {
+ if ( typeof arg === "function" ) {
if ( !options.unique || !self.has( arg ) ) {
list.push( arg );
}