Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jquery
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
jquery
Commits
6e0b3e8e
Commit
6e0b3e8e
authored
Apr 16, 2012
by
Rick Waldron waldron.rick@gmail.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More indent correction
Signed-off-by:
Rick Waldron waldron.rick@gmail.com
<
waldron.rick@gmail.com
>
parent
576607de
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
manipulation.js
src/manipulation.js
+10
-10
No files found.
src/manipulation.js
View file @
6e0b3e8e
...
...
@@ -314,8 +314,8 @@ jQuery.fn.extend({
if
(
this
[
0
]
)
{
results
=
jQuery
.
buildFragment
(
args
,
this
,
scripts
);
fragment
=
results
.
fragment
;
first
=
fragment
.
firstChild
;
first
=
fragment
.
firstChild
;
if
(
fragment
.
childNodes
.
length
===
1
)
{
fragment
=
first
;
}
...
...
@@ -630,7 +630,7 @@ jQuery.extend({
clean
:
function
(
elems
,
context
,
fragment
,
scripts
)
{
var
j
,
safe
,
elem
,
tag
,
wrap
,
depth
,
div
,
hasBody
,
tbody
,
len
,
handleScript
,
jsTags
,
i
=
0
,
ret
=
[];
ret
=
[];
// Ensure that context is a document
if
(
!
context
||
typeof
context
.
createDocumentFragment
===
"undefined"
)
{
...
...
@@ -699,33 +699,33 @@ jQuery.extend({
// Remember the top-level container for proper cleanup
div
=
safe
.
lastChild
;
}
}
}
}
if
(
elem
.
nodeType
)
{
ret
.
push
(
elem
);
}
else
{
ret
=
jQuery
.
merge
(
ret
,
elem
);
}
}
}
}
// Fix #11356: Clear elements from safeFragment
if
(
div
)
{
safe
.
removeChild
(
div
);
div
=
safe
=
null
;
}
}
// Reset defaultChecked for any radios and checkboxes
// about to be appended to the DOM in IE 6/7 (#8060)
if
(
!
jQuery
.
support
.
appendChecked
)
{
// about to be appended to the DOM in IE 6/7 (#8060)
if
(
!
jQuery
.
support
.
appendChecked
)
{
for
(
i
=
0
;
(
elem
=
ret
[
i
])
!=
null
;
i
++
)
{
if
(
jQuery
.
nodeName
(
elem
,
"input"
)
)
{
fixDefaultChecked
(
elem
);
}
else
if
(
typeof
elem
.
getElementsByTagName
!==
"undefined"
)
{
jQuery
.
grep
(
elem
.
getElementsByTagName
(
"input"
),
fixDefaultChecked
);
}
}
}
}
// Append elements to a provided document fragment
if
(
fragment
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment