diff options
author | Jason Bedard <jason+github@jbedard.ca> | 2018-01-14 00:46:20 -0800 |
---|---|---|
committer | Timmy Willison <4timmywil@gmail.com> | 2018-01-16 10:39:08 -0500 |
commit | 1ea092a54b00aa4d902f4e22ada3854d195d4a18 (patch) | |
tree | 705d445aa449743e06e6354bb3f746076700e31f /src/manipulation | |
parent | 91fb18190e5ab9821e3c74b6aecbb5d197c6c5f6 (diff) | |
download | jquery-1ea092a54b00aa4d902f4e22ada3854d195d4a18.tar.gz jquery-1ea092a54b00aa4d902f4e22ada3854d195d4a18.zip |
Core: deprecate jQuery.type
Fixes gh-3605
Close gh-3895
Diffstat (limited to 'src/manipulation')
-rw-r--r-- | src/manipulation/buildFragment.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/manipulation/buildFragment.js b/src/manipulation/buildFragment.js index bcb508531..782de0c61 100644 --- a/src/manipulation/buildFragment.js +++ b/src/manipulation/buildFragment.js @@ -1,11 +1,12 @@ define( [ "../core", + "../core/toType", "./var/rtagName", "./var/rscriptType", "./wrapMap", "./getAll", "./setGlobalEval" -], function( jQuery, rtagName, rscriptType, wrapMap, getAll, setGlobalEval ) { +], function( jQuery, toType, rtagName, rscriptType, wrapMap, getAll, setGlobalEval ) { "use strict"; @@ -24,7 +25,7 @@ function buildFragment( elems, context, scripts, selection, ignored ) { if ( elem || elem === 0 ) { // Add nodes directly - if ( jQuery.type( elem ) === "object" ) { + if ( toType( elem ) === "object" ) { // Support: Android <=4.0 only, PhantomJS 1 only // push.apply(_, arraylike) throws on ancient WebKit |