aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/init.js
diff options
context:
space:
mode:
authorJason Bedard <jason+github@jbedard.ca>2017-12-12 22:43:30 -0800
committerJason Bedard <jason+github@jbedard.ca>2018-01-15 09:26:19 -0800
commit3d732cca6b5076a9d13eee98e2b075b37384cd91 (patch)
tree7ad2375d276c212e7d252554b3f87e5b0b3bec5e /src/core/init.js
parent6c38ebbd47c6b0fa654733819bd5ae36c1ac6c48 (diff)
downloadjquery-3d732cca6b5076a9d13eee98e2b075b37384cd91.tar.gz
jquery-3d732cca6b5076a9d13eee98e2b075b37384cd91.zip
Core: deprecate jQuery.isFunction
Fixes gh-3609
Diffstat (limited to 'src/core/init.js')
-rw-r--r--src/core/init.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/init.js b/src/core/init.js
index 8841264de..8865238c8 100644
--- a/src/core/init.js
+++ b/src/core/init.js
@@ -2,10 +2,11 @@
define( [
"../core",
"../var/document",
+ "../var/isFunction",
"./var/rsingleTag",
"../traversing/findFilter"
-], function( jQuery, document, rsingleTag ) {
+], function( jQuery, document, isFunction, rsingleTag ) {
"use strict";
@@ -63,7 +64,7 @@ var rootjQuery,
for ( match in context ) {
// Properties of context are called as methods if possible
- if ( jQuery.isFunction( this[ match ] ) ) {
+ if ( isFunction( this[ match ] ) ) {
this[ match ]( context[ match ] );
// ...and otherwise set as attributes
@@ -106,7 +107,7 @@ var rootjQuery,
// HANDLE: $(function)
// Shortcut for document ready
- } else if ( jQuery.isFunction( selector ) ) {
+ } else if ( isFunction( selector ) ) {
return root.ready !== undefined ?
root.ready( selector ) :