aboutsummaryrefslogtreecommitdiffstats
path: root/src/manipulation.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/manipulation.js')
-rw-r--r--src/manipulation.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/manipulation.js b/src/manipulation.js
index cadd89a2e..4e64cd132 100644
--- a/src/manipulation.js
+++ b/src/manipulation.js
@@ -18,13 +18,14 @@ define( [
"./core/DOMEval",
"./core/init",
+ "./core/nodeName",
"./traversing",
"./selector",
"./event"
], function( jQuery, concat, push, rcheckableType,
access, rtagName, rscriptType,
wrapMap, getAll, setGlobalEval, buildFragment, support,
- dataPriv, dataUser, acceptData, DOMEval ) {
+ dataPriv, dataUser, acceptData, DOMEval, nodeName ) {
"use strict";
@@ -49,8 +50,8 @@ var
// Prefer a tbody over its parent table for containing new rows
function manipulationTarget( elem, content ) {
- if ( jQuery.nodeName( elem, "table" ) &&
- jQuery.nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ) {
+ if ( nodeName( elem, "table" ) &&
+ nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ) {
return jQuery( ">tbody", elem )[ 0 ] || elem;
}