diff options
Diffstat (limited to 'src/manipulation/buildFragment.js')
-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 |